From ffaad0e76a6111a36b7be661277dbe5a3c6ebcfa Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 20 Jan 2023 16:42:18 +0000 Subject: [PATCH] chore(bazel): [aiplatform] update protobuf to v3.21.12 (#8993) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 503267695 Source-Link: https://togithub.com/googleapis/googleapis/commit/c79059008c6d2e66d4cc65a1a7d8bee7160e3f83 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/b98230b9e68a3828cf138296e9a20e03749ae0a0 Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiJiOTgyMzBiOWU2OGEzODI4Y2YxMzgyOTZlOWEyMGUwMzc0OWFlMGEwIn0= BEGIN_NESTED_COMMIT feat: [aiplatform] add enable_dashboard_access in aiplatform v1 and v1beta1 custom_job.proto PiperOrigin-RevId: 502722710 Source-Link: https://togithub.com/googleapis/googleapis/commit/6d9a0f3f1a4dffeba42c91794b240b7bb7ede967 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/845ecc6047adfd16dee956b85cab7dbd569f8352 Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiI4NDVlY2M2MDQ3YWRmZDE2ZGVlOTU2Yjg1Y2FiN2RiZDU2OWY4MzUyIn0= END_NESTED_COMMIT --- java-aiplatform/README.md | 6 +- .../aiplatform/v1/ActiveLearningConfig.java | 138 +- ...dContextArtifactsAndExecutionsRequest.java | 69 +- .../v1/AddContextChildrenRequest.java | 52 +- .../v1/AddExecutionEventsRequest.java | 56 +- .../v1/AddTrialMeasurementRequest.java | 84 +- .../cloud/aiplatform/v1/Annotation.java | 303 ++-- .../aiplatform/v1/AnnotationOrBuilder.java | 1 - .../cloud/aiplatform/v1/AnnotationSpec.java | 168 +- .../google/cloud/aiplatform/v1/Artifact.java | 340 ++-- .../aiplatform/v1/ArtifactOrBuilder.java | 1 - .../cloud/aiplatform/v1/Attribution.java | 166 +- .../aiplatform/v1/AutomaticResources.java | 34 +- .../aiplatform/v1/AutoscalingMetricSpec.java | 40 +- .../cloud/aiplatform/v1/AvroSource.java | 65 +- .../BatchCreateFeaturesOperationMetadata.java | 68 +- .../v1/BatchCreateFeaturesRequest.java | 56 +- .../v1/BatchCreateFeaturesResponse.java | 20 +- .../v1/BatchCreateTensorboardRunsRequest.java | 57 +- .../BatchCreateTensorboardRunsResponse.java | 21 +- ...tchCreateTensorboardTimeSeriesRequest.java | 57 +- ...chCreateTensorboardTimeSeriesResponse.java | 21 +- .../v1/BatchDedicatedResources.java | 90 +- ...tchImportModelEvaluationSlicesRequest.java | 57 +- ...chImportModelEvaluationSlicesResponse.java | 21 +- ...atchMigrateResourcesOperationMetadata.java | 190 +- .../v1/BatchMigrateResourcesRequest.java | 56 +- .../v1/BatchMigrateResourcesResponse.java | 21 +- .../aiplatform/v1/BatchPredictionJob.java | 1395 ++++++++------- .../v1/BatchPredictionJobOrBuilder.java | 1 - ...tchReadFeatureValuesOperationMetadata.java | 68 +- .../v1/BatchReadFeatureValuesRequest.java | 356 ++-- ...hReadTensorboardTimeSeriesDataRequest.java | 53 +- ...ReadTensorboardTimeSeriesDataResponse.java | 21 +- .../aiplatform/v1/BigQueryDestination.java | 28 +- .../cloud/aiplatform/v1/BigQuerySource.java | 28 +- .../aiplatform/v1/BlurBaselineConfig.java | 22 +- .../google/cloud/aiplatform/v1/BoolArray.java | 22 +- .../v1/CancelBatchPredictionJobRequest.java | 29 +- .../aiplatform/v1/CancelCustomJobRequest.java | 28 +- .../v1/CancelDataLabelingJobRequest.java | 28 +- .../CancelHyperparameterTuningJobRequest.java | 29 +- .../v1/CancelPipelineJobRequest.java | 28 +- .../v1/CancelTrainingPipelineRequest.java | 29 +- ...CheckTrialEarlyStoppingStateMetatdata.java | 104 +- .../CheckTrialEarlyStoppingStateRequest.java | 29 +- .../CheckTrialEarlyStoppingStateResponse.java | 23 +- .../aiplatform/v1/CompleteTrialRequest.java | 115 +- .../cloud/aiplatform/v1/CompletionStats.java | 58 +- .../v1/ContainerRegistryDestination.java | 28 +- .../cloud/aiplatform/v1/ContainerSpec.java | 87 +- .../google/cloud/aiplatform/v1/Context.java | 325 ++-- .../cloud/aiplatform/v1/ContextOrBuilder.java | 1 - .../aiplatform/v1/CreateArtifactRequest.java | 101 +- .../v1/CreateBatchPredictionJobRequest.java | 88 +- .../aiplatform/v1/CreateContextRequest.java | 101 +- .../aiplatform/v1/CreateCustomJobRequest.java | 83 +- .../v1/CreateDataLabelingJobRequest.java | 85 +- .../v1/CreateDatasetOperationMetadata.java | 68 +- .../aiplatform/v1/CreateDatasetRequest.java | 83 +- .../v1/CreateEndpointOperationMetadata.java | 68 +- .../aiplatform/v1/CreateEndpointRequest.java | 101 +- .../v1/CreateEntityTypeOperationMetadata.java | 68 +- .../v1/CreateEntityTypeRequest.java | 101 +- .../aiplatform/v1/CreateExecutionRequest.java | 101 +- .../v1/CreateFeatureOperationMetadata.java | 68 +- .../aiplatform/v1/CreateFeatureRequest.java | 101 +- .../CreateFeaturestoreOperationMetadata.java | 68 +- .../v1/CreateFeaturestoreRequest.java | 102 +- .../CreateHyperparameterTuningJobRequest.java | 89 +- .../CreateIndexEndpointOperationMetadata.java | 68 +- .../v1/CreateIndexEndpointRequest.java | 85 +- .../v1/CreateIndexOperationMetadata.java | 132 +- .../aiplatform/v1/CreateIndexRequest.java | 81 +- .../v1/CreateMetadataSchemaRequest.java | 103 +- .../CreateMetadataStoreOperationMetadata.java | 68 +- .../v1/CreateMetadataStoreRequest.java | 103 +- ...teModelDeploymentMonitoringJobRequest.java | 90 +- .../v1/CreatePipelineJobRequest.java | 102 +- ...CreateSpecialistPoolOperationMetadata.java | 68 +- .../v1/CreateSpecialistPoolRequest.java | 85 +- .../aiplatform/v1/CreateStudyRequest.java | 81 +- .../CreateTensorboardExperimentRequest.java | 107 +- .../CreateTensorboardOperationMetadata.java | 68 +- .../v1/CreateTensorboardRequest.java | 84 +- .../v1/CreateTensorboardRunRequest.java | 103 +- .../CreateTensorboardTimeSeriesRequest.java | 107 +- .../v1/CreateTrainingPipelineRequest.java | 86 +- .../aiplatform/v1/CreateTrialRequest.java | 81 +- .../cloud/aiplatform/v1/CsvDestination.java | 67 +- .../google/cloud/aiplatform/v1/CsvSource.java | 65 +- .../google/cloud/aiplatform/v1/CustomJob.java | 493 +++--- .../aiplatform/v1/CustomJobOrBuilder.java | 2 - .../cloud/aiplatform/v1/CustomJobProto.java | 56 +- .../cloud/aiplatform/v1/CustomJobSpec.java | 342 +++- .../aiplatform/v1/CustomJobSpecOrBuilder.java | 21 + .../google/cloud/aiplatform/v1/DataItem.java | 228 +-- .../aiplatform/v1/DataItemOrBuilder.java | 1 - .../cloud/aiplatform/v1/DataItemView.java | 104 +- .../cloud/aiplatform/v1/DataLabelingJob.java | 599 ++++--- .../v1/DataLabelingJobOrBuilder.java | 2 - .../google/cloud/aiplatform/v1/Dataset.java | 388 +++-- .../cloud/aiplatform/v1/DatasetOrBuilder.java | 1 - .../aiplatform/v1/DedicatedResources.java | 118 +- .../aiplatform/v1/DeleteArtifactRequest.java | 46 +- .../v1/DeleteBatchPredictionJobRequest.java | 29 +- .../aiplatform/v1/DeleteContextRequest.java | 58 +- .../aiplatform/v1/DeleteCustomJobRequest.java | 28 +- .../v1/DeleteDataLabelingJobRequest.java | 28 +- .../aiplatform/v1/DeleteDatasetRequest.java | 28 +- .../aiplatform/v1/DeleteEndpointRequest.java | 28 +- .../v1/DeleteEntityTypeRequest.java | 40 +- .../aiplatform/v1/DeleteExecutionRequest.java | 46 +- .../aiplatform/v1/DeleteFeatureRequest.java | 28 +- .../v1/DeleteFeaturestoreRequest.java | 40 +- .../DeleteHyperparameterTuningJobRequest.java | 29 +- .../v1/DeleteIndexEndpointRequest.java | 28 +- .../aiplatform/v1/DeleteIndexRequest.java | 28 +- .../DeleteMetadataStoreOperationMetadata.java | 68 +- .../v1/DeleteMetadataStoreRequest.java | 40 +- ...teModelDeploymentMonitoringJobRequest.java | 29 +- .../aiplatform/v1/DeleteModelRequest.java | 28 +- .../v1/DeleteModelVersionRequest.java | 28 +- .../v1/DeleteOperationMetadata.java | 67 +- .../v1/DeletePipelineJobRequest.java | 28 +- .../v1/DeleteSpecialistPoolRequest.java | 40 +- .../aiplatform/v1/DeleteStudyRequest.java | 28 +- .../DeleteTensorboardExperimentRequest.java | 29 +- .../v1/DeleteTensorboardRequest.java | 28 +- .../v1/DeleteTensorboardRunRequest.java | 28 +- .../DeleteTensorboardTimeSeriesRequest.java | 29 +- .../v1/DeleteTrainingPipelineRequest.java | 29 +- .../aiplatform/v1/DeleteTrialRequest.java | 28 +- .../v1/DeployIndexOperationMetadata.java | 85 +- .../aiplatform/v1/DeployIndexRequest.java | 85 +- .../aiplatform/v1/DeployIndexResponse.java | 67 +- .../v1/DeployModelOperationMetadata.java | 67 +- .../aiplatform/v1/DeployModelRequest.java | 101 +- .../aiplatform/v1/DeployModelResponse.java | 67 +- .../cloud/aiplatform/v1/DeployedIndex.java | 461 ++--- .../v1/DeployedIndexAuthConfig.java | 92 +- .../cloud/aiplatform/v1/DeployedIndexRef.java | 46 +- .../cloud/aiplatform/v1/DeployedModel.java | 316 ++-- .../cloud/aiplatform/v1/DeployedModelRef.java | 46 +- .../v1/DestinationFeatureSetting.java | 46 +- .../google/cloud/aiplatform/v1/DiskSpec.java | 40 +- .../cloud/aiplatform/v1/DoubleArray.java | 22 +- .../cloud/aiplatform/v1/EncryptionSpec.java | 28 +- .../google/cloud/aiplatform/v1/Endpoint.java | 423 +++-- .../aiplatform/v1/EndpointOrBuilder.java | 1 - .../cloud/aiplatform/v1/EntityType.java | 255 +-- .../aiplatform/v1/EntityTypeOrBuilder.java | 1 - .../google/cloud/aiplatform/v1/EnvVar.java | 46 +- .../com/google/cloud/aiplatform/v1/Event.java | 146 +- .../cloud/aiplatform/v1/EventOrBuilder.java | 1 - .../cloud/aiplatform/v1/ExamplesOverride.java | 95 +- .../v1/ExamplesRestrictionsNamespace.java | 69 +- .../google/cloud/aiplatform/v1/Execution.java | 322 ++-- .../aiplatform/v1/ExecutionOrBuilder.java | 1 - .../cloud/aiplatform/v1/ExplainRequest.java | 184 +- .../cloud/aiplatform/v1/ExplainResponse.java | 57 +- .../cloud/aiplatform/v1/Explanation.java | 21 +- .../aiplatform/v1/ExplanationMetadata.java | 651 ++++--- .../v1/ExplanationMetadataOrBuilder.java | 2 - .../v1/ExplanationMetadataOverride.java | 56 +- .../ExplanationMetadataOverrideOrBuilder.java | 1 - .../aiplatform/v1/ExplanationParameters.java | 116 +- .../cloud/aiplatform/v1/ExplanationSpec.java | 124 +- .../v1/ExplanationSpecOverride.java | 184 +- .../cloud/aiplatform/v1/ExportDataConfig.java | 44 +- .../v1/ExportDataOperationMetadata.java | 85 +- .../aiplatform/v1/ExportDataRequest.java | 85 +- .../aiplatform/v1/ExportDataResponse.java | 20 +- .../ExportFeatureValuesOperationMetadata.java | 68 +- .../v1/ExportFeatureValuesRequest.java | 439 ++--- .../v1/ExportModelOperationMetadata.java | 175 +- .../aiplatform/v1/ExportModelRequest.java | 238 +-- ...xportTensorboardTimeSeriesDataRequest.java | 95 +- ...portTensorboardTimeSeriesDataResponse.java | 39 +- .../google/cloud/aiplatform/v1/Feature.java | 348 ++-- .../aiplatform/v1/FeatureNoiseSigma.java | 61 +- .../cloud/aiplatform/v1/FeatureOrBuilder.java | 1 - .../cloud/aiplatform/v1/FeatureSelector.java | 65 +- .../aiplatform/v1/FeatureStatsAnomaly.java | 186 +- .../cloud/aiplatform/v1/FeatureValue.java | 195 +-- .../v1/FeatureValueDestination.java | 48 +- .../cloud/aiplatform/v1/FeatureValueList.java | 20 +- .../cloud/aiplatform/v1/Featurestore.java | 434 +++-- .../v1/FeaturestoreMonitoringConfig.java | 382 ++-- .../aiplatform/v1/FeaturestoreOrBuilder.java | 1 - .../cloud/aiplatform/v1/FilterSplit.java | 64 +- .../cloud/aiplatform/v1/FractionSplit.java | 46 +- .../cloud/aiplatform/v1/GcsDestination.java | 28 +- .../google/cloud/aiplatform/v1/GcsSource.java | 19 +- .../v1/GenericOperationMetadata.java | 122 +- .../v1/GetAnnotationSpecRequest.java | 79 +- .../aiplatform/v1/GetArtifactRequest.java | 28 +- .../v1/GetBatchPredictionJobRequest.java | 28 +- .../aiplatform/v1/GetContextRequest.java | 28 +- .../aiplatform/v1/GetCustomJobRequest.java | 28 +- .../v1/GetDataLabelingJobRequest.java | 28 +- .../aiplatform/v1/GetDatasetRequest.java | 79 +- .../aiplatform/v1/GetEndpointRequest.java | 28 +- .../aiplatform/v1/GetEntityTypeRequest.java | 28 +- .../aiplatform/v1/GetExecutionRequest.java | 28 +- .../aiplatform/v1/GetFeatureRequest.java | 28 +- .../aiplatform/v1/GetFeaturestoreRequest.java | 28 +- .../v1/GetHyperparameterTuningJobRequest.java | 29 +- .../v1/GetIndexEndpointRequest.java | 28 +- .../cloud/aiplatform/v1/GetIndexRequest.java | 28 +- .../v1/GetMetadataSchemaRequest.java | 28 +- .../v1/GetMetadataStoreRequest.java | 28 +- ...etModelDeploymentMonitoringJobRequest.java | 29 +- .../v1/GetModelEvaluationRequest.java | 28 +- .../v1/GetModelEvaluationSliceRequest.java | 29 +- .../cloud/aiplatform/v1/GetModelRequest.java | 28 +- .../aiplatform/v1/GetPipelineJobRequest.java | 28 +- .../v1/GetSpecialistPoolRequest.java | 28 +- .../cloud/aiplatform/v1/GetStudyRequest.java | 28 +- .../v1/GetTensorboardExperimentRequest.java | 29 +- .../aiplatform/v1/GetTensorboardRequest.java | 28 +- .../v1/GetTensorboardRunRequest.java | 28 +- .../v1/GetTensorboardTimeSeriesRequest.java | 29 +- .../v1/GetTrainingPipelineRequest.java | 28 +- .../cloud/aiplatform/v1/GetTrialRequest.java | 28 +- .../v1/HyperparameterTuningJob.java | 584 ++++--- .../v1/HyperparameterTuningJobOrBuilder.java | 1 - .../google/cloud/aiplatform/v1/IdMatcher.java | 19 +- .../cloud/aiplatform/v1/ImportDataConfig.java | 103 +- .../v1/ImportDataConfigOrBuilder.java | 2 - .../v1/ImportDataOperationMetadata.java | 67 +- .../aiplatform/v1/ImportDataRequest.java | 56 +- .../ImportFeatureValuesOperationMetadata.java | 140 +- .../v1/ImportFeatureValuesRequest.java | 209 ++- .../v1/ImportFeatureValuesResponse.java | 58 +- .../v1/ImportModelEvaluationRequest.java | 85 +- .../com/google/cloud/aiplatform/v1/Index.java | 385 ++-- .../cloud/aiplatform/v1/IndexDatapoint.java | 227 ++- .../cloud/aiplatform/v1/IndexEndpoint.java | 270 +-- .../aiplatform/v1/IndexEndpointOrBuilder.java | 1 - .../cloud/aiplatform/v1/IndexOrBuilder.java | 1 - .../aiplatform/v1/IndexPrivateEndpoints.java | 46 +- .../cloud/aiplatform/v1/IndexStats.java | 34 +- .../cloud/aiplatform/v1/InputDataConfig.java | 169 +- .../cloud/aiplatform/v1/Int64Array.java | 22 +- .../v1/IntegratedGradientsAttribution.java | 141 +- .../cloud/aiplatform/v1/LineageSubgraph.java | 23 +- .../aiplatform/v1/ListAnnotationsRequest.java | 145 +- .../v1/ListAnnotationsResponse.java | 38 +- .../aiplatform/v1/ListArtifactsRequest.java | 94 +- .../aiplatform/v1/ListArtifactsResponse.java | 38 +- .../v1/ListBatchPredictionJobsRequest.java | 128 +- .../v1/ListBatchPredictionJobsResponse.java | 39 +- .../aiplatform/v1/ListContextsRequest.java | 94 +- .../aiplatform/v1/ListContextsResponse.java | 38 +- .../aiplatform/v1/ListCustomJobsRequest.java | 127 +- .../aiplatform/v1/ListCustomJobsResponse.java | 38 +- .../aiplatform/v1/ListDataItemsRequest.java | 145 +- .../aiplatform/v1/ListDataItemsResponse.java | 38 +- .../v1/ListDataLabelingJobsRequest.java | 145 +- .../v1/ListDataLabelingJobsResponse.java | 38 +- .../aiplatform/v1/ListDatasetsRequest.java | 145 +- .../aiplatform/v1/ListDatasetsResponse.java | 38 +- .../aiplatform/v1/ListEndpointsRequest.java | 145 +- .../aiplatform/v1/ListEndpointsResponse.java | 38 +- .../aiplatform/v1/ListEntityTypesRequest.java | 145 +- .../v1/ListEntityTypesResponse.java | 38 +- .../aiplatform/v1/ListExecutionsRequest.java | 94 +- .../aiplatform/v1/ListExecutionsResponse.java | 38 +- .../aiplatform/v1/ListFeaturesRequest.java | 157 +- .../aiplatform/v1/ListFeaturesResponse.java | 38 +- .../v1/ListFeaturestoresRequest.java | 145 +- .../v1/ListFeaturestoresResponse.java | 38 +- .../ListHyperparameterTuningJobsRequest.java | 128 +- .../ListHyperparameterTuningJobsResponse.java | 39 +- .../v1/ListIndexEndpointsRequest.java | 127 +- .../v1/ListIndexEndpointsResponse.java | 38 +- .../aiplatform/v1/ListIndexesRequest.java | 127 +- .../aiplatform/v1/ListIndexesResponse.java | 38 +- .../v1/ListMetadataSchemasRequest.java | 76 +- .../v1/ListMetadataSchemasResponse.java | 38 +- .../v1/ListMetadataStoresRequest.java | 58 +- .../v1/ListMetadataStoresResponse.java | 38 +- ...tModelDeploymentMonitoringJobsRequest.java | 128 +- ...ModelDeploymentMonitoringJobsResponse.java | 39 +- .../v1/ListModelEvaluationSlicesRequest.java | 128 +- .../v1/ListModelEvaluationSlicesResponse.java | 39 +- .../v1/ListModelEvaluationsRequest.java | 127 +- .../v1/ListModelEvaluationsResponse.java | 38 +- .../v1/ListModelVersionsRequest.java | 145 +- .../v1/ListModelVersionsResponse.java | 38 +- .../aiplatform/v1/ListModelsRequest.java | 145 +- .../aiplatform/v1/ListModelsResponse.java | 38 +- .../v1/ListOptimalTrialsRequest.java | 28 +- .../v1/ListOptimalTrialsResponse.java | 20 +- .../v1/ListPipelineJobsRequest.java | 145 +- .../v1/ListPipelineJobsResponse.java | 38 +- .../v1/ListSavedQueriesRequest.java | 145 +- .../v1/ListSavedQueriesResponse.java | 38 +- .../v1/ListSpecialistPoolsRequest.java | 109 +- .../v1/ListSpecialistPoolsResponse.java | 38 +- .../aiplatform/v1/ListStudiesRequest.java | 58 +- .../aiplatform/v1/ListStudiesResponse.java | 38 +- .../v1/ListTensorboardExperimentsRequest.java | 146 +- .../ListTensorboardExperimentsResponse.java | 39 +- .../v1/ListTensorboardRunsRequest.java | 145 +- .../v1/ListTensorboardRunsResponse.java | 38 +- .../v1/ListTensorboardTimeSeriesRequest.java | 146 +- .../v1/ListTensorboardTimeSeriesResponse.java | 39 +- .../v1/ListTensorboardsRequest.java | 145 +- .../v1/ListTensorboardsResponse.java | 38 +- .../v1/ListTrainingPipelinesRequest.java | 127 +- .../v1/ListTrainingPipelinesResponse.java | 39 +- .../aiplatform/v1/ListTrialsRequest.java | 58 +- .../aiplatform/v1/ListTrialsResponse.java | 38 +- .../aiplatform/v1/LookupStudyRequest.java | 46 +- .../cloud/aiplatform/v1/MachineSpec.java | 61 +- .../v1/ManualBatchTuningParameters.java | 22 +- .../cloud/aiplatform/v1/Measurement.java | 145 +- .../v1/MergeVersionAliasesRequest.java | 52 +- .../cloud/aiplatform/v1/MetadataSchema.java | 154 +- .../cloud/aiplatform/v1/MetadataStore.java | 289 +-- .../aiplatform/v1/MigratableResource.java | 434 +++-- .../aiplatform/v1/MigrateResourceRequest.java | 325 ++-- .../v1/MigrateResourceResponse.java | 82 +- .../com/google/cloud/aiplatform/v1/Model.java | 958 +++++----- .../aiplatform/v1/ModelContainerSpec.java | 144 +- ...odelDeploymentMonitoringBigQueryTable.java | 71 +- .../v1/ModelDeploymentMonitoringJob.java | 1036 +++++------ ...ModelDeploymentMonitoringJobOrBuilder.java | 1 - ...elDeploymentMonitoringObjectiveConfig.java | 88 +- ...delDeploymentMonitoringScheduleConfig.java | 125 +- .../cloud/aiplatform/v1/ModelEvaluation.java | 442 ++--- .../aiplatform/v1/ModelEvaluationSlice.java | 253 +-- .../cloud/aiplatform/v1/ModelExplanation.java | 20 +- .../v1/ModelMonitoringAlertConfig.java | 60 +- .../v1/ModelMonitoringObjectiveConfig.java | 816 +++++---- .../v1/ModelMonitoringStatsAnomalies.java | 265 +-- .../cloud/aiplatform/v1/ModelOrBuilder.java | 1 - .../cloud/aiplatform/v1/ModelSourceInfo.java | 31 +- .../MutateDeployedIndexOperationMetadata.java | 86 +- .../v1/MutateDeployedIndexRequest.java | 85 +- .../v1/MutateDeployedIndexResponse.java | 67 +- ...earestNeighborSearchOperationMetadata.java | 223 ++- .../google/cloud/aiplatform/v1/Neighbor.java | 40 +- .../google/cloud/aiplatform/v1/NfsMount.java | 64 +- ...seModelDeploymentMonitoringJobRequest.java | 29 +- .../cloud/aiplatform/v1/PipelineJob.java | 847 +++++---- .../aiplatform/v1/PipelineJobDetail.java | 154 +- .../aiplatform/v1/PipelineJobOrBuilder.java | 1 - .../aiplatform/v1/PipelineTaskDetail.java | 653 +++---- .../v1/PipelineTaskDetailOrBuilder.java | 2 - .../v1/PipelineTaskExecutorDetail.java | 154 +- .../v1/PipelineTemplateMetadata.java | 28 +- .../com/google/cloud/aiplatform/v1/Port.java | 22 +- .../cloud/aiplatform/v1/PredefinedSplit.java | 28 +- .../cloud/aiplatform/v1/PredictRequest.java | 106 +- .../PredictRequestResponseLoggingConfig.java | 94 +- .../cloud/aiplatform/v1/PredictResponse.java | 91 +- .../cloud/aiplatform/v1/PredictSchemata.java | 64 +- .../cloud/aiplatform/v1/PrivateEndpoints.java | 82 +- .../aiplatform/v1/PurgeArtifactsMetadata.java | 67 +- .../aiplatform/v1/PurgeArtifactsRequest.java | 58 +- .../aiplatform/v1/PurgeArtifactsResponse.java | 46 +- .../aiplatform/v1/PurgeContextsMetadata.java | 67 +- .../aiplatform/v1/PurgeContextsRequest.java | 58 +- .../aiplatform/v1/PurgeContextsResponse.java | 46 +- .../v1/PurgeExecutionsMetadata.java | 67 +- .../aiplatform/v1/PurgeExecutionsRequest.java | 58 +- .../v1/PurgeExecutionsResponse.java | 46 +- .../aiplatform/v1/PythonPackageSpec.java | 106 +- .../QueryArtifactLineageSubgraphRequest.java | 59 +- .../QueryContextLineageSubgraphRequest.java | 29 +- ...QueryExecutionInputsAndOutputsRequest.java | 29 +- .../aiplatform/v1/RawPredictRequest.java | 78 +- .../v1/ReadFeatureValuesRequest.java | 103 +- .../v1/ReadFeatureValuesResponse.java | 309 ++-- .../v1/ReadTensorboardBlobDataRequest.java | 53 +- .../v1/ReadTensorboardBlobDataResponse.java | 21 +- .../ReadTensorboardTimeSeriesDataRequest.java | 59 +- ...ReadTensorboardTimeSeriesDataResponse.java | 68 +- .../v1/ReadTensorboardUsageRequest.java | 28 +- .../v1/ReadTensorboardUsageResponse.java | 97 +- ...ReadTensorboardUsageResponseOrBuilder.java | 1 - .../v1/RemoveContextChildrenRequest.java | 52 +- .../v1/RemoveDatapointsRequest.java | 52 +- .../aiplatform/v1/ResourcesConsumed.java | 22 +- ...meModelDeploymentMonitoringJobRequest.java | 29 +- .../cloud/aiplatform/v1/SampleConfig.java | 45 +- .../v1/SampledShapleyAttribution.java | 22 +- .../cloud/aiplatform/v1/SamplingStrategy.java | 94 +- .../cloud/aiplatform/v1/SavedQuery.java | 281 +-- .../google/cloud/aiplatform/v1/Scalar.java | 22 +- .../cloud/aiplatform/v1/Scheduling.java | 73 +- .../aiplatform/v1/SearchDataItemsRequest.java | 299 ++-- .../v1/SearchDataItemsResponse.java | 38 +- .../aiplatform/v1/SearchFeaturesRequest.java | 76 +- .../aiplatform/v1/SearchFeaturesResponse.java | 38 +- .../v1/SearchMigratableResourcesRequest.java | 77 +- .../v1/SearchMigratableResourcesResponse.java | 39 +- ...oymentMonitoringStatsAnomaliesRequest.java | 273 +-- ...ymentMonitoringStatsAnomaliesResponse.java | 41 +- .../cloud/aiplatform/v1/SmoothGradConfig.java | 42 +- .../cloud/aiplatform/v1/SpecialistPool.java | 113 +- .../cloud/aiplatform/v1/StopTrialRequest.java | 28 +- .../cloud/aiplatform/v1/StratifiedSplit.java | 64 +- .../v1/StreamingReadFeatureValuesRequest.java | 110 +- .../cloud/aiplatform/v1/StringArray.java | 19 +- .../com/google/cloud/aiplatform/v1/Study.java | 193 +- .../google/cloud/aiplatform/v1/StudySpec.java | 839 +++++---- .../aiplatform/v1/SuggestTrialsMetadata.java | 85 +- .../aiplatform/v1/SuggestTrialsRequest.java | 58 +- .../aiplatform/v1/SuggestTrialsResponse.java | 143 +- .../aiplatform/v1/TFRecordDestination.java | 67 +- .../cloud/aiplatform/v1/Tensorboard.java | 301 ++-- .../cloud/aiplatform/v1/TensorboardBlob.java | 41 +- .../v1/TensorboardBlobSequence.java | 20 +- .../aiplatform/v1/TensorboardExperiment.java | 232 +-- .../v1/TensorboardExperimentOrBuilder.java | 1 - .../aiplatform/v1/TensorboardOrBuilder.java | 1 - .../cloud/aiplatform/v1/TensorboardRun.java | 214 ++- .../v1/TensorboardRunOrBuilder.java | 1 - .../aiplatform/v1/TensorboardTensor.java | 35 +- .../aiplatform/v1/TensorboardTimeSeries.java | 388 +++-- .../cloud/aiplatform/v1/ThresholdConfig.java | 19 +- .../cloud/aiplatform/v1/TimeSeriesData.java | 76 +- .../aiplatform/v1/TimeSeriesDataPoint.java | 111 +- .../cloud/aiplatform/v1/TimestampSplit.java | 64 +- .../cloud/aiplatform/v1/TrainingConfig.java | 22 +- .../cloud/aiplatform/v1/TrainingPipeline.java | 691 ++++---- .../v1/TrainingPipelineOrBuilder.java | 1 - .../com/google/cloud/aiplatform/v1/Trial.java | 437 +++-- .../cloud/aiplatform/v1/TrialOrBuilder.java | 1 - .../v1/UndeployIndexOperationMetadata.java | 68 +- .../aiplatform/v1/UndeployIndexRequest.java | 46 +- .../v1/UndeployModelOperationMetadata.java | 68 +- .../aiplatform/v1/UndeployModelRequest.java | 62 +- .../v1/UnmanagedContainerModel.java | 144 +- .../aiplatform/v1/UpdateArtifactRequest.java | 130 +- .../aiplatform/v1/UpdateContextRequest.java | 130 +- .../aiplatform/v1/UpdateDatasetRequest.java | 118 +- .../aiplatform/v1/UpdateEndpointRequest.java | 118 +- .../v1/UpdateEntityTypeRequest.java | 118 +- .../aiplatform/v1/UpdateExecutionRequest.java | 130 +- .../aiplatform/v1/UpdateFeatureRequest.java | 118 +- .../UpdateFeaturestoreOperationMetadata.java | 68 +- .../v1/UpdateFeaturestoreRequest.java | 119 +- .../v1/UpdateIndexEndpointRequest.java | 120 +- .../v1/UpdateIndexOperationMetadata.java | 132 +- .../aiplatform/v1/UpdateIndexRequest.java | 116 +- ...loymentMonitoringJobOperationMetadata.java | 68 +- ...teModelDeploymentMonitoringJobRequest.java | 125 +- .../aiplatform/v1/UpdateModelRequest.java | 116 +- ...UpdateSpecialistPoolOperationMetadata.java | 86 +- .../v1/UpdateSpecialistPoolRequest.java | 120 +- .../UpdateTensorboardExperimentRequest.java | 124 +- .../UpdateTensorboardOperationMetadata.java | 68 +- .../v1/UpdateTensorboardRequest.java | 119 +- .../v1/UpdateTensorboardRunRequest.java | 120 +- .../UpdateTensorboardTimeSeriesRequest.java | 124 +- .../v1/UploadModelOperationMetadata.java | 67 +- .../aiplatform/v1/UploadModelRequest.java | 135 +- .../aiplatform/v1/UploadModelResponse.java | 46 +- .../v1/UpsertDatapointsRequest.java | 56 +- .../aiplatform/v1/UserActionReference.java | 39 +- .../com/google/cloud/aiplatform/v1/Value.java | 26 +- .../cloud/aiplatform/v1/WorkerPoolSpec.java | 187 +- .../v1/WriteFeatureValuesPayload.java | 57 +- .../WriteFeatureValuesPayloadOrBuilder.java | 1 - .../v1/WriteFeatureValuesRequest.java | 56 +- ...WriteTensorboardExperimentDataRequest.java | 57 +- .../v1/WriteTensorboardRunDataRequest.java | 57 +- .../cloud/aiplatform/v1/XraiAttribution.java | 140 +- ...ImageClassificationPredictionInstance.java | 48 +- ...mageObjectDetectionPredictionInstance.java | 49 +- .../ImageSegmentationPredictionInstance.java | 48 +- .../TextClassificationPredictionInstance.java | 48 +- .../TextExtractionPredictionInstance.java | 66 +- .../TextSentimentPredictionInstance.java | 48 +- ...eoActionRecognitionPredictionInstance.java | 85 +- ...VideoClassificationPredictionInstance.java | 84 +- ...VideoObjectTrackingPredictionInstance.java | 84 +- .../ImageClassificationPredictionParams.java | 36 +- .../ImageObjectDetectionPredictionParams.java | 36 +- .../ImageSegmentationPredictionParams.java | 24 +- ...ideoActionRecognitionPredictionParams.java | 36 +- .../VideoClassificationPredictionParams.java | 72 +- .../VideoObjectTrackingPredictionParams.java | 48 +- .../ClassificationPredictionResult.java | 33 +- .../ImageObjectDetectionPredictionResult.java | 37 +- .../ImageSegmentationPredictionResult.java | 48 +- ...TabularClassificationPredictionResult.java | 30 +- .../TabularRegressionPredictionResult.java | 48 +- .../TextExtractionPredictionResult.java | 43 +- .../TextSentimentPredictionResult.java | 24 +- ...ideoActionRecognitionPredictionResult.java | 218 +-- .../VideoClassificationPredictionResult.java | 235 +-- .../VideoObjectTrackingPredictionResult.java | 521 +++--- .../definition/AutoMlImageClassification.java | 132 +- .../AutoMlImageClassificationInputs.java | 87 +- .../AutoMlImageClassificationMetadata.java | 46 +- .../AutoMlImageObjectDetection.java | 132 +- .../AutoMlImageObjectDetectionInputs.java | 58 +- .../AutoMlImageObjectDetectionMetadata.java | 46 +- .../definition/AutoMlImageSegmentation.java | 132 +- .../AutoMlImageSegmentationInputs.java | 63 +- .../AutoMlImageSegmentationMetadata.java | 45 +- .../trainingjob/definition/AutoMlTables.java | 131 +- .../definition/AutoMlTablesInputs.java | 629 ++++--- .../definition/AutoMlTablesMetadata.java | 23 +- .../definition/AutoMlTextClassification.java | 71 +- .../AutoMlTextClassificationInputs.java | 24 +- .../definition/AutoMlTextExtraction.java | 70 +- .../definition/AutoMlTextSentiment.java | 70 +- .../definition/AutoMlTextSentimentInputs.java | 24 +- .../AutoMlVideoActionRecognition.java | 71 +- .../AutoMlVideoActionRecognitionInputs.java | 34 +- .../definition/AutoMlVideoClassification.java | 71 +- .../AutoMlVideoClassificationInputs.java | 33 +- .../definition/AutoMlVideoObjectTracking.java | 71 +- .../AutoMlVideoObjectTrackingInputs.java | 33 +- .../ExportEvaluatedDataItemsConfig.java | 42 +- .../cloud/aiplatform/v1/custom_job.proto | 12 + .../v1beta1/ActiveLearningConfig.java | 140 +- ...dContextArtifactsAndExecutionsRequest.java | 69 +- .../v1beta1/AddContextChildrenRequest.java | 53 +- .../v1beta1/AddExecutionEventsRequest.java | 57 +- .../v1beta1/AddTrialMeasurementRequest.java | 86 +- .../cloud/aiplatform/v1beta1/Annotation.java | 303 ++-- .../v1beta1/AnnotationOrBuilder.java | 1 - .../aiplatform/v1beta1/AnnotationSpec.java | 168 +- .../cloud/aiplatform/v1beta1/Artifact.java | 340 ++-- .../aiplatform/v1beta1/ArtifactOrBuilder.java | 1 - .../cloud/aiplatform/v1beta1/Attribution.java | 167 +- .../v1beta1/AutomaticResources.java | 34 +- .../v1beta1/AutoscalingMetricSpec.java | 40 +- .../cloud/aiplatform/v1beta1/AvroSource.java | 65 +- .../BatchCreateFeaturesOperationMetadata.java | 70 +- .../v1beta1/BatchCreateFeaturesRequest.java | 57 +- .../v1beta1/BatchCreateFeaturesResponse.java | 21 +- .../BatchCreateTensorboardRunsRequest.java | 57 +- .../BatchCreateTensorboardRunsResponse.java | 21 +- ...tchCreateTensorboardTimeSeriesRequest.java | 57 +- ...chCreateTensorboardTimeSeriesResponse.java | 21 +- .../v1beta1/BatchDedicatedResources.java | 91 +- ...tchImportModelEvaluationSlicesRequest.java | 57 +- ...chImportModelEvaluationSlicesResponse.java | 21 +- ...atchMigrateResourcesOperationMetadata.java | 193 +- .../v1beta1/BatchMigrateResourcesRequest.java | 57 +- .../BatchMigrateResourcesResponse.java | 21 +- .../v1beta1/BatchPredictionJob.java | 1550 +++++++++-------- .../v1beta1/BatchPredictionJobOrBuilder.java | 1 - ...tchReadFeatureValuesOperationMetadata.java | 70 +- .../BatchReadFeatureValuesRequest.java | 358 ++-- ...hReadTensorboardTimeSeriesDataRequest.java | 53 +- ...ReadTensorboardTimeSeriesDataResponse.java | 21 +- .../v1beta1/BigQueryDestination.java | 28 +- .../aiplatform/v1beta1/BigQuerySource.java | 28 +- .../v1beta1/BlurBaselineConfig.java | 22 +- .../cloud/aiplatform/v1beta1/BoolArray.java | 22 +- .../CancelBatchPredictionJobRequest.java | 29 +- .../v1beta1/CancelCustomJobRequest.java | 28 +- .../v1beta1/CancelDataLabelingJobRequest.java | 29 +- .../CancelHyperparameterTuningJobRequest.java | 29 +- .../v1beta1/CancelPipelineJobRequest.java | 29 +- .../CancelTrainingPipelineRequest.java | 29 +- ...CheckTrialEarlyStoppingStateMetatdata.java | 106 +- .../CheckTrialEarlyStoppingStateRequest.java | 29 +- .../CheckTrialEarlyStoppingStateResponse.java | 23 +- .../v1beta1/CompleteTrialRequest.java | 115 +- .../aiplatform/v1beta1/CompletionStats.java | 58 +- .../v1beta1/ContainerRegistryDestination.java | 29 +- .../aiplatform/v1beta1/ContainerSpec.java | 88 +- .../cloud/aiplatform/v1beta1/Context.java | 325 ++-- .../aiplatform/v1beta1/ContextOrBuilder.java | 1 - .../v1beta1/CreateArtifactRequest.java | 101 +- .../CreateBatchPredictionJobRequest.java | 88 +- .../v1beta1/CreateContextRequest.java | 101 +- .../v1beta1/CreateCustomJobRequest.java | 83 +- .../v1beta1/CreateDataLabelingJobRequest.java | 86 +- .../CreateDatasetOperationMetadata.java | 70 +- .../v1beta1/CreateDatasetRequest.java | 83 +- ...ploymentResourcePoolOperationMetadata.java | 70 +- .../CreateDeploymentResourcePoolRequest.java | 108 +- .../CreateEndpointOperationMetadata.java | 70 +- .../v1beta1/CreateEndpointRequest.java | 101 +- .../CreateEntityTypeOperationMetadata.java | 70 +- .../v1beta1/CreateEntityTypeRequest.java | 101 +- .../v1beta1/CreateExecutionRequest.java | 101 +- .../CreateFeatureOperationMetadata.java | 70 +- .../v1beta1/CreateFeatureRequest.java | 101 +- .../CreateFeaturestoreOperationMetadata.java | 70 +- .../v1beta1/CreateFeaturestoreRequest.java | 104 +- .../CreateHyperparameterTuningJobRequest.java | 90 +- .../CreateIndexEndpointOperationMetadata.java | 70 +- .../v1beta1/CreateIndexEndpointRequest.java | 86 +- .../v1beta1/CreateIndexOperationMetadata.java | 136 +- .../v1beta1/CreateIndexRequest.java | 81 +- .../v1beta1/CreateMetadataSchemaRequest.java | 104 +- .../CreateMetadataStoreOperationMetadata.java | 70 +- .../v1beta1/CreateMetadataStoreRequest.java | 104 +- ...teModelDeploymentMonitoringJobRequest.java | 90 +- .../v1beta1/CreatePipelineJobRequest.java | 104 +- ...CreateSpecialistPoolOperationMetadata.java | 70 +- .../v1beta1/CreateSpecialistPoolRequest.java | 86 +- .../v1beta1/CreateStudyRequest.java | 81 +- .../CreateTensorboardExperimentRequest.java | 107 +- .../CreateTensorboardOperationMetadata.java | 70 +- .../v1beta1/CreateTensorboardRequest.java | 86 +- .../v1beta1/CreateTensorboardRunRequest.java | 104 +- .../CreateTensorboardTimeSeriesRequest.java | 107 +- .../CreateTrainingPipelineRequest.java | 86 +- .../v1beta1/CreateTrialRequest.java | 81 +- .../aiplatform/v1beta1/CsvDestination.java | 67 +- .../cloud/aiplatform/v1beta1/CsvSource.java | 65 +- .../cloud/aiplatform/v1beta1/CustomJob.java | 493 +++--- .../v1beta1/CustomJobOrBuilder.java | 2 - .../aiplatform/v1beta1/CustomJobProto.java | 60 +- .../aiplatform/v1beta1/CustomJobSpec.java | 343 +++- .../v1beta1/CustomJobSpecOrBuilder.java | 21 + .../cloud/aiplatform/v1beta1/DataItem.java | 228 +-- .../aiplatform/v1beta1/DataItemOrBuilder.java | 1 - .../aiplatform/v1beta1/DataItemView.java | 105 +- .../aiplatform/v1beta1/DataLabelingJob.java | 601 ++++--- .../v1beta1/DataLabelingJobOrBuilder.java | 2 - .../cloud/aiplatform/v1beta1/Dataset.java | 388 +++-- .../aiplatform/v1beta1/DatasetOrBuilder.java | 1 - .../v1beta1/DedicatedResources.java | 119 +- .../v1beta1/DeleteArtifactRequest.java | 46 +- .../DeleteBatchPredictionJobRequest.java | 29 +- .../v1beta1/DeleteContextRequest.java | 58 +- .../v1beta1/DeleteCustomJobRequest.java | 28 +- .../v1beta1/DeleteDataLabelingJobRequest.java | 29 +- .../v1beta1/DeleteDatasetRequest.java | 28 +- .../DeleteDeploymentResourcePoolRequest.java | 29 +- .../v1beta1/DeleteEndpointRequest.java | 28 +- .../v1beta1/DeleteEntityTypeRequest.java | 40 +- .../v1beta1/DeleteExecutionRequest.java | 46 +- .../v1beta1/DeleteFeatureRequest.java | 28 +- .../DeleteFeatureValuesOperationMetadata.java | 70 +- .../v1beta1/DeleteFeatureValuesRequest.java | 261 +-- .../v1beta1/DeleteFeaturestoreRequest.java | 41 +- .../DeleteHyperparameterTuningJobRequest.java | 29 +- .../v1beta1/DeleteIndexEndpointRequest.java | 29 +- .../v1beta1/DeleteIndexRequest.java | 28 +- .../DeleteMetadataStoreOperationMetadata.java | 70 +- .../v1beta1/DeleteMetadataStoreRequest.java | 41 +- ...teModelDeploymentMonitoringJobRequest.java | 29 +- .../v1beta1/DeleteModelRequest.java | 28 +- .../v1beta1/DeleteModelVersionRequest.java | 29 +- .../v1beta1/DeleteOperationMetadata.java | 69 +- .../v1beta1/DeletePipelineJobRequest.java | 29 +- .../v1beta1/DeleteSpecialistPoolRequest.java | 41 +- .../v1beta1/DeleteStudyRequest.java | 28 +- .../DeleteTensorboardExperimentRequest.java | 29 +- .../v1beta1/DeleteTensorboardRequest.java | 29 +- .../v1beta1/DeleteTensorboardRunRequest.java | 29 +- .../DeleteTensorboardTimeSeriesRequest.java | 29 +- .../DeleteTrainingPipelineRequest.java | 29 +- .../v1beta1/DeleteTrialRequest.java | 28 +- .../v1beta1/DeployIndexOperationMetadata.java | 88 +- .../v1beta1/DeployIndexRequest.java | 85 +- .../v1beta1/DeployIndexResponse.java | 67 +- .../v1beta1/DeployModelOperationMetadata.java | 70 +- .../v1beta1/DeployModelRequest.java | 101 +- .../v1beta1/DeployModelResponse.java | 67 +- .../aiplatform/v1beta1/DeployedIndex.java | 464 ++--- .../v1beta1/DeployedIndexAuthConfig.java | 93 +- .../aiplatform/v1beta1/DeployedIndexRef.java | 46 +- .../aiplatform/v1beta1/DeployedModel.java | 317 ++-- .../aiplatform/v1beta1/DeployedModelRef.java | 46 +- .../v1beta1/DeploymentResourcePool.java | 140 +- .../v1beta1/DestinationFeatureSetting.java | 47 +- .../cloud/aiplatform/v1beta1/DiskSpec.java | 40 +- .../cloud/aiplatform/v1beta1/DoubleArray.java | 23 +- .../aiplatform/v1beta1/EncryptionSpec.java | 28 +- .../cloud/aiplatform/v1beta1/Endpoint.java | 424 +++-- .../aiplatform/v1beta1/EndpointOrBuilder.java | 1 - .../aiplatform/v1beta1/EntityIdSelector.java | 44 +- .../cloud/aiplatform/v1beta1/EntityType.java | 267 +-- .../v1beta1/EntityTypeOrBuilder.java | 1 - .../cloud/aiplatform/v1beta1/EnvVar.java | 46 +- .../cloud/aiplatform/v1beta1/Event.java | 146 +- .../aiplatform/v1beta1/EventOrBuilder.java | 1 - .../cloud/aiplatform/v1beta1/Examples.java | 104 +- .../aiplatform/v1beta1/ExamplesOverride.java | 95 +- .../ExamplesRestrictionsNamespace.java | 69 +- .../cloud/aiplatform/v1beta1/Execution.java | 322 ++-- .../v1beta1/ExecutionOrBuilder.java | 1 - .../aiplatform/v1beta1/ExplainRequest.java | 186 +- .../aiplatform/v1beta1/ExplainResponse.java | 58 +- .../cloud/aiplatform/v1beta1/Explanation.java | 22 +- .../v1beta1/ExplanationMetadata.java | 649 ++++--- .../v1beta1/ExplanationMetadataOrBuilder.java | 2 - .../v1beta1/ExplanationMetadataOverride.java | 59 +- .../ExplanationMetadataOverrideOrBuilder.java | 1 - .../v1beta1/ExplanationParameters.java | 126 +- .../aiplatform/v1beta1/ExplanationSpec.java | 124 +- .../v1beta1/ExplanationSpecOverride.java | 184 +- .../aiplatform/v1beta1/ExportDataConfig.java | 44 +- .../v1beta1/ExportDataOperationMetadata.java | 88 +- .../aiplatform/v1beta1/ExportDataRequest.java | 85 +- .../v1beta1/ExportDataResponse.java | 20 +- .../ExportFeatureValuesOperationMetadata.java | 70 +- .../v1beta1/ExportFeatureValuesRequest.java | 441 ++--- .../v1beta1/ExportModelOperationMetadata.java | 178 +- .../v1beta1/ExportModelRequest.java | 238 +-- ...xportTensorboardTimeSeriesDataRequest.java | 95 +- ...portTensorboardTimeSeriesDataResponse.java | 39 +- .../cloud/aiplatform/v1beta1/Feature.java | 430 +++-- .../aiplatform/v1beta1/FeatureNoiseSigma.java | 61 +- .../aiplatform/v1beta1/FeatureOrBuilder.java | 1 - .../aiplatform/v1beta1/FeatureSelector.java | 65 +- .../v1beta1/FeatureStatsAnomaly.java | 186 +- .../aiplatform/v1beta1/FeatureValue.java | 195 +-- .../v1beta1/FeatureValueDestination.java | 49 +- .../aiplatform/v1beta1/FeatureValueList.java | 20 +- .../aiplatform/v1beta1/Featurestore.java | 446 ++--- .../v1beta1/FeaturestoreMonitoringConfig.java | 442 +++-- .../v1beta1/FeaturestoreOrBuilder.java | 1 - .../cloud/aiplatform/v1beta1/FilterSplit.java | 64 +- .../aiplatform/v1beta1/FractionSplit.java | 46 +- .../aiplatform/v1beta1/GcsDestination.java | 28 +- .../cloud/aiplatform/v1beta1/GcsSource.java | 19 +- .../v1beta1/GenericOperationMetadata.java | 123 +- .../v1beta1/GetAnnotationSpecRequest.java | 80 +- .../v1beta1/GetArtifactRequest.java | 28 +- .../v1beta1/GetBatchPredictionJobRequest.java | 29 +- .../aiplatform/v1beta1/GetContextRequest.java | 28 +- .../v1beta1/GetCustomJobRequest.java | 28 +- .../v1beta1/GetDataLabelingJobRequest.java | 29 +- .../aiplatform/v1beta1/GetDatasetRequest.java | 79 +- .../GetDeploymentResourcePoolRequest.java | 29 +- .../v1beta1/GetEndpointRequest.java | 28 +- .../v1beta1/GetEntityTypeRequest.java | 28 +- .../v1beta1/GetExecutionRequest.java | 28 +- .../aiplatform/v1beta1/GetFeatureRequest.java | 28 +- .../v1beta1/GetFeaturestoreRequest.java | 28 +- .../GetHyperparameterTuningJobRequest.java | 29 +- .../v1beta1/GetIndexEndpointRequest.java | 28 +- .../aiplatform/v1beta1/GetIndexRequest.java | 28 +- .../v1beta1/GetMetadataSchemaRequest.java | 29 +- .../v1beta1/GetMetadataStoreRequest.java | 28 +- ...etModelDeploymentMonitoringJobRequest.java | 29 +- .../v1beta1/GetModelEvaluationRequest.java | 29 +- .../GetModelEvaluationSliceRequest.java | 29 +- .../aiplatform/v1beta1/GetModelRequest.java | 28 +- .../v1beta1/GetPipelineJobRequest.java | 28 +- .../v1beta1/GetSpecialistPoolRequest.java | 29 +- .../aiplatform/v1beta1/GetStudyRequest.java | 28 +- .../GetTensorboardExperimentRequest.java | 29 +- .../v1beta1/GetTensorboardRequest.java | 28 +- .../v1beta1/GetTensorboardRunRequest.java | 29 +- .../GetTensorboardTimeSeriesRequest.java | 29 +- .../v1beta1/GetTrainingPipelineRequest.java | 29 +- .../aiplatform/v1beta1/GetTrialRequest.java | 28 +- .../v1beta1/HyperparameterTuningJob.java | 585 ++++--- .../HyperparameterTuningJobOrBuilder.java | 1 - .../cloud/aiplatform/v1beta1/IdMatcher.java | 19 +- .../aiplatform/v1beta1/ImportDataConfig.java | 103 +- .../v1beta1/ImportDataConfigOrBuilder.java | 2 - .../v1beta1/ImportDataOperationMetadata.java | 70 +- .../aiplatform/v1beta1/ImportDataRequest.java | 56 +- .../ImportFeatureValuesOperationMetadata.java | 142 +- .../v1beta1/ImportFeatureValuesRequest.java | 210 ++- .../v1beta1/ImportFeatureValuesResponse.java | 59 +- .../v1beta1/ImportModelEvaluationRequest.java | 86 +- .../cloud/aiplatform/v1beta1/Index.java | 385 ++-- .../aiplatform/v1beta1/IndexDatapoint.java | 232 ++- .../aiplatform/v1beta1/IndexEndpoint.java | 271 +-- .../v1beta1/IndexEndpointOrBuilder.java | 1 - .../aiplatform/v1beta1/IndexOrBuilder.java | 1 - .../v1beta1/IndexPrivateEndpoints.java | 46 +- .../cloud/aiplatform/v1beta1/IndexStats.java | 34 +- .../aiplatform/v1beta1/InputDataConfig.java | 169 +- .../cloud/aiplatform/v1beta1/Int64Array.java | 22 +- .../IntegratedGradientsAttribution.java | 141 +- .../aiplatform/v1beta1/LineageSubgraph.java | 24 +- .../v1beta1/ListAnnotationsRequest.java | 145 +- .../v1beta1/ListAnnotationsResponse.java | 38 +- .../v1beta1/ListArtifactsRequest.java | 94 +- .../v1beta1/ListArtifactsResponse.java | 38 +- .../ListBatchPredictionJobsRequest.java | 128 +- .../ListBatchPredictionJobsResponse.java | 39 +- .../v1beta1/ListContextsRequest.java | 94 +- .../v1beta1/ListContextsResponse.java | 38 +- .../v1beta1/ListCustomJobsRequest.java | 127 +- .../v1beta1/ListCustomJobsResponse.java | 38 +- .../v1beta1/ListDataItemsRequest.java | 145 +- .../v1beta1/ListDataItemsResponse.java | 38 +- .../v1beta1/ListDataLabelingJobsRequest.java | 146 +- .../v1beta1/ListDataLabelingJobsResponse.java | 39 +- .../v1beta1/ListDatasetsRequest.java | 145 +- .../v1beta1/ListDatasetsResponse.java | 38 +- .../ListDeploymentResourcePoolsRequest.java | 59 +- .../ListDeploymentResourcePoolsResponse.java | 39 +- .../v1beta1/ListEndpointsRequest.java | 127 +- .../v1beta1/ListEndpointsResponse.java | 38 +- .../v1beta1/ListEntityTypesRequest.java | 145 +- .../v1beta1/ListEntityTypesResponse.java | 38 +- .../v1beta1/ListExecutionsRequest.java | 94 +- .../v1beta1/ListExecutionsResponse.java | 38 +- .../v1beta1/ListFeaturesRequest.java | 157 +- .../v1beta1/ListFeaturesResponse.java | 38 +- .../v1beta1/ListFeaturestoresRequest.java | 146 +- .../v1beta1/ListFeaturestoresResponse.java | 39 +- .../ListHyperparameterTuningJobsRequest.java | 128 +- .../ListHyperparameterTuningJobsResponse.java | 39 +- .../v1beta1/ListIndexEndpointsRequest.java | 128 +- .../v1beta1/ListIndexEndpointsResponse.java | 39 +- .../v1beta1/ListIndexesRequest.java | 127 +- .../v1beta1/ListIndexesResponse.java | 38 +- .../v1beta1/ListMetadataSchemasRequest.java | 77 +- .../v1beta1/ListMetadataSchemasResponse.java | 39 +- .../v1beta1/ListMetadataStoresRequest.java | 59 +- .../v1beta1/ListMetadataStoresResponse.java | 39 +- ...tModelDeploymentMonitoringJobsRequest.java | 128 +- ...ModelDeploymentMonitoringJobsResponse.java | 39 +- .../ListModelEvaluationSlicesRequest.java | 128 +- .../ListModelEvaluationSlicesResponse.java | 39 +- .../v1beta1/ListModelEvaluationsRequest.java | 128 +- .../v1beta1/ListModelEvaluationsResponse.java | 39 +- .../v1beta1/ListModelVersionsRequest.java | 146 +- .../v1beta1/ListModelVersionsResponse.java | 39 +- .../aiplatform/v1beta1/ListModelsRequest.java | 127 +- .../v1beta1/ListModelsResponse.java | 38 +- .../v1beta1/ListOptimalTrialsRequest.java | 29 +- .../v1beta1/ListOptimalTrialsResponse.java | 21 +- .../v1beta1/ListPipelineJobsRequest.java | 145 +- .../v1beta1/ListPipelineJobsResponse.java | 39 +- .../v1beta1/ListSavedQueriesRequest.java | 145 +- .../v1beta1/ListSavedQueriesResponse.java | 39 +- .../v1beta1/ListSpecialistPoolsRequest.java | 110 +- .../v1beta1/ListSpecialistPoolsResponse.java | 39 +- .../v1beta1/ListStudiesRequest.java | 58 +- .../v1beta1/ListStudiesResponse.java | 38 +- .../ListTensorboardExperimentsRequest.java | 146 +- .../ListTensorboardExperimentsResponse.java | 39 +- .../v1beta1/ListTensorboardRunsRequest.java | 146 +- .../v1beta1/ListTensorboardRunsResponse.java | 39 +- .../ListTensorboardTimeSeriesRequest.java | 146 +- .../ListTensorboardTimeSeriesResponse.java | 39 +- .../v1beta1/ListTensorboardsRequest.java | 145 +- .../v1beta1/ListTensorboardsResponse.java | 39 +- .../v1beta1/ListTrainingPipelinesRequest.java | 128 +- .../ListTrainingPipelinesResponse.java | 39 +- .../aiplatform/v1beta1/ListTrialsRequest.java | 58 +- .../v1beta1/ListTrialsResponse.java | 38 +- .../v1beta1/LookupStudyRequest.java | 46 +- .../cloud/aiplatform/v1beta1/MachineSpec.java | 61 +- .../v1beta1/ManualBatchTuningParameters.java | 23 +- .../cloud/aiplatform/v1beta1/Measurement.java | 146 +- .../v1beta1/MergeVersionAliasesRequest.java | 53 +- .../aiplatform/v1beta1/MetadataSchema.java | 155 +- .../aiplatform/v1beta1/MetadataStore.java | 290 +-- .../v1beta1/MigratableResource.java | 434 +++-- .../v1beta1/MigrateResourceRequest.java | 331 ++-- .../v1beta1/MigrateResourceResponse.java | 83 +- .../cloud/aiplatform/v1beta1/Model.java | 958 +++++----- .../v1beta1/ModelContainerSpec.java | 144 +- ...odelDeploymentMonitoringBigQueryTable.java | 73 +- .../v1beta1/ModelDeploymentMonitoringJob.java | 1038 +++++------ ...ModelDeploymentMonitoringJobOrBuilder.java | 1 - ...elDeploymentMonitoringObjectiveConfig.java | 88 +- ...delDeploymentMonitoringScheduleConfig.java | 125 +- .../aiplatform/v1beta1/ModelEvaluation.java | 408 +++-- .../v1beta1/ModelEvaluationSlice.java | 255 +-- .../aiplatform/v1beta1/ModelExplanation.java | 20 +- .../v1beta1/ModelMonitoringAlertConfig.java | 61 +- .../v1beta1/ModelMonitoringConfig.java | 157 +- .../ModelMonitoringObjectiveConfig.java | 811 +++++---- .../ModelMonitoringStatsAnomalies.java | 266 +-- .../aiplatform/v1beta1/ModelOrBuilder.java | 1 - .../aiplatform/v1beta1/ModelSourceInfo.java | 32 +- .../MutateDeployedIndexOperationMetadata.java | 88 +- .../v1beta1/MutateDeployedIndexRequest.java | 86 +- .../v1beta1/MutateDeployedIndexResponse.java | 68 +- ...earestNeighborSearchOperationMetadata.java | 223 ++- .../cloud/aiplatform/v1beta1/Neighbor.java | 40 +- .../cloud/aiplatform/v1beta1/NfsMount.java | 64 +- ...seModelDeploymentMonitoringJobRequest.java | 29 +- .../cloud/aiplatform/v1beta1/PipelineJob.java | 854 ++++----- .../aiplatform/v1beta1/PipelineJobDetail.java | 156 +- .../v1beta1/PipelineJobOrBuilder.java | 1 - .../v1beta1/PipelineTaskDetail.java | 655 +++---- .../v1beta1/PipelineTaskDetailOrBuilder.java | 2 - .../v1beta1/PipelineTaskExecutorDetail.java | 155 +- .../v1beta1/PipelineTemplateMetadata.java | 29 +- .../google/cloud/aiplatform/v1beta1/Port.java | 22 +- .../aiplatform/v1beta1/PredefinedSplit.java | 28 +- .../aiplatform/v1beta1/PredictRequest.java | 107 +- .../PredictRequestResponseLoggingConfig.java | 95 +- .../aiplatform/v1beta1/PredictResponse.java | 92 +- .../aiplatform/v1beta1/PredictSchemata.java | 64 +- .../cloud/aiplatform/v1beta1/Presets.java | 47 +- .../aiplatform/v1beta1/PrivateEndpoints.java | 82 +- .../v1beta1/PurgeArtifactsMetadata.java | 69 +- .../v1beta1/PurgeArtifactsRequest.java | 58 +- .../v1beta1/PurgeArtifactsResponse.java | 46 +- .../v1beta1/PurgeContextsMetadata.java | 69 +- .../v1beta1/PurgeContextsRequest.java | 58 +- .../v1beta1/PurgeContextsResponse.java | 46 +- .../v1beta1/PurgeExecutionsMetadata.java | 69 +- .../v1beta1/PurgeExecutionsRequest.java | 58 +- .../v1beta1/PurgeExecutionsResponse.java | 46 +- .../aiplatform/v1beta1/PythonPackageSpec.java | 106 +- .../QueryArtifactLineageSubgraphRequest.java | 59 +- .../QueryContextLineageSubgraphRequest.java | 29 +- .../v1beta1/QueryDeployedModelsRequest.java | 59 +- .../v1beta1/QueryDeployedModelsResponse.java | 83 +- ...QueryExecutionInputsAndOutputsRequest.java | 29 +- .../aiplatform/v1beta1/RawPredictRequest.java | 78 +- .../v1beta1/ReadFeatureValuesRequest.java | 104 +- .../v1beta1/ReadFeatureValuesResponse.java | 312 ++-- .../ReadTensorboardBlobDataRequest.java | 53 +- .../ReadTensorboardBlobDataResponse.java | 21 +- .../ReadTensorboardTimeSeriesDataRequest.java | 59 +- ...ReadTensorboardTimeSeriesDataResponse.java | 68 +- .../v1beta1/ReadTensorboardUsageRequest.java | 29 +- .../v1beta1/ReadTensorboardUsageResponse.java | 101 +- ...ReadTensorboardUsageResponseOrBuilder.java | 1 - .../v1beta1/RemoveContextChildrenRequest.java | 53 +- .../v1beta1/RemoveDatapointsRequest.java | 52 +- .../aiplatform/v1beta1/ResourcesConsumed.java | 22 +- ...meModelDeploymentMonitoringJobRequest.java | 29 +- .../aiplatform/v1beta1/SampleConfig.java | 46 +- .../v1beta1/SampledShapleyAttribution.java | 23 +- .../aiplatform/v1beta1/SamplingStrategy.java | 95 +- .../cloud/aiplatform/v1beta1/SavedQuery.java | 281 +-- .../cloud/aiplatform/v1beta1/Scalar.java | 22 +- .../cloud/aiplatform/v1beta1/Scheduling.java | 73 +- .../v1beta1/SearchDataItemsRequest.java | 300 ++-- .../v1beta1/SearchDataItemsResponse.java | 38 +- .../v1beta1/SearchFeaturesRequest.java | 76 +- .../v1beta1/SearchFeaturesResponse.java | 38 +- .../SearchMigratableResourcesRequest.java | 77 +- .../SearchMigratableResourcesResponse.java | 39 +- ...oymentMonitoringStatsAnomaliesRequest.java | 274 +-- ...ymentMonitoringStatsAnomaliesResponse.java | 41 +- .../aiplatform/v1beta1/SmoothGradConfig.java | 42 +- .../aiplatform/v1beta1/SpecialistPool.java | 114 +- .../aiplatform/v1beta1/StopTrialRequest.java | 28 +- .../aiplatform/v1beta1/StratifiedSplit.java | 64 +- .../StreamingReadFeatureValuesRequest.java | 110 +- .../cloud/aiplatform/v1beta1/StringArray.java | 20 +- .../cloud/aiplatform/v1beta1/Study.java | 193 +- .../cloud/aiplatform/v1beta1/StudySpec.java | 1041 ++++++----- .../v1beta1/SuggestTrialsMetadata.java | 87 +- .../v1beta1/SuggestTrialsRequest.java | 58 +- .../v1beta1/SuggestTrialsResponse.java | 143 +- .../v1beta1/TFRecordDestination.java | 67 +- .../cloud/aiplatform/v1beta1/Tensorboard.java | 301 ++-- .../aiplatform/v1beta1/TensorboardBlob.java | 41 +- .../v1beta1/TensorboardBlobSequence.java | 20 +- .../v1beta1/TensorboardExperiment.java | 232 +-- .../TensorboardExperimentOrBuilder.java | 1 - .../v1beta1/TensorboardOrBuilder.java | 1 - .../aiplatform/v1beta1/TensorboardRun.java | 214 ++- .../v1beta1/TensorboardRunOrBuilder.java | 1 - .../aiplatform/v1beta1/TensorboardTensor.java | 35 +- .../v1beta1/TensorboardTimeSeries.java | 389 +++-- .../aiplatform/v1beta1/ThresholdConfig.java | 19 +- .../aiplatform/v1beta1/TimeSeriesData.java | 77 +- .../v1beta1/TimeSeriesDataPoint.java | 112 +- .../aiplatform/v1beta1/TimestampSplit.java | 64 +- .../aiplatform/v1beta1/TrainingConfig.java | 22 +- .../aiplatform/v1beta1/TrainingPipeline.java | 691 ++++---- .../v1beta1/TrainingPipelineOrBuilder.java | 1 - .../cloud/aiplatform/v1beta1/Trial.java | 437 +++-- .../aiplatform/v1beta1/TrialOrBuilder.java | 1 - .../UndeployIndexOperationMetadata.java | 70 +- .../v1beta1/UndeployIndexRequest.java | 46 +- .../UndeployModelOperationMetadata.java | 70 +- .../v1beta1/UndeployModelRequest.java | 62 +- .../v1beta1/UnmanagedContainerModel.java | 144 +- .../v1beta1/UpdateArtifactRequest.java | 130 +- .../v1beta1/UpdateContextRequest.java | 130 +- .../v1beta1/UpdateDatasetRequest.java | 118 +- ...ploymentResourcePoolOperationMetadata.java | 70 +- .../v1beta1/UpdateEndpointRequest.java | 118 +- .../v1beta1/UpdateEntityTypeRequest.java | 118 +- .../v1beta1/UpdateExecutionRequest.java | 130 +- ...teExplanationDatasetOperationMetadata.java | 70 +- .../UpdateExplanationDatasetRequest.java | 84 +- .../v1beta1/UpdateFeatureRequest.java | 118 +- .../UpdateFeaturestoreOperationMetadata.java | 70 +- .../v1beta1/UpdateFeaturestoreRequest.java | 121 +- .../v1beta1/UpdateIndexEndpointRequest.java | 121 +- .../v1beta1/UpdateIndexOperationMetadata.java | 136 +- .../v1beta1/UpdateIndexRequest.java | 116 +- ...loymentMonitoringJobOperationMetadata.java | 71 +- ...teModelDeploymentMonitoringJobRequest.java | 125 +- .../v1beta1/UpdateModelRequest.java | 116 +- ...UpdateSpecialistPoolOperationMetadata.java | 88 +- .../v1beta1/UpdateSpecialistPoolRequest.java | 121 +- .../UpdateTensorboardExperimentRequest.java | 124 +- .../UpdateTensorboardOperationMetadata.java | 70 +- .../v1beta1/UpdateTensorboardRequest.java | 121 +- .../v1beta1/UpdateTensorboardRunRequest.java | 121 +- .../UpdateTensorboardTimeSeriesRequest.java | 124 +- .../v1beta1/UploadModelOperationMetadata.java | 70 +- .../v1beta1/UploadModelRequest.java | 135 +- .../v1beta1/UploadModelResponse.java | 46 +- .../v1beta1/UpsertDatapointsRequest.java | 56 +- .../v1beta1/UserActionReference.java | 40 +- .../cloud/aiplatform/v1beta1/Value.java | 26 +- .../aiplatform/v1beta1/WorkerPoolSpec.java | 189 +- .../v1beta1/WriteFeatureValuesPayload.java | 59 +- .../WriteFeatureValuesPayloadOrBuilder.java | 1 - .../v1beta1/WriteFeatureValuesRequest.java | 57 +- ...WriteTensorboardExperimentDataRequest.java | 57 +- .../WriteTensorboardRunDataRequest.java | 57 +- .../aiplatform/v1beta1/XraiAttribution.java | 140 +- ...ImageClassificationPredictionInstance.java | 49 +- ...mageObjectDetectionPredictionInstance.java | 49 +- .../ImageSegmentationPredictionInstance.java | 49 +- .../TextClassificationPredictionInstance.java | 49 +- .../TextExtractionPredictionInstance.java | 66 +- .../TextSentimentPredictionInstance.java | 48 +- ...eoActionRecognitionPredictionInstance.java | 85 +- ...VideoClassificationPredictionInstance.java | 85 +- ...VideoObjectTrackingPredictionInstance.java | 85 +- .../ImageClassificationPredictionParams.java | 37 +- .../ImageObjectDetectionPredictionParams.java | 37 +- .../ImageSegmentationPredictionParams.java | 24 +- ...ideoActionRecognitionPredictionParams.java | 37 +- .../VideoClassificationPredictionParams.java | 73 +- .../VideoObjectTrackingPredictionParams.java | 49 +- .../ClassificationPredictionResult.java | 33 +- .../ImageObjectDetectionPredictionResult.java | 37 +- .../ImageSegmentationPredictionResult.java | 49 +- ...TabularClassificationPredictionResult.java | 30 +- .../TabularRegressionPredictionResult.java | 49 +- .../TextExtractionPredictionResult.java | 43 +- .../TextSentimentPredictionResult.java | 24 +- ...TimeSeriesForecastingPredictionResult.java | 25 +- ...ideoActionRecognitionPredictionResult.java | 218 +-- .../VideoClassificationPredictionResult.java | 236 +-- .../VideoObjectTrackingPredictionResult.java | 523 +++--- .../definition/AutoMlForecasting.java | 132 +- .../definition/AutoMlForecastingInputs.java | 683 +++++--- .../definition/AutoMlForecastingMetadata.java | 24 +- .../definition/AutoMlImageClassification.java | 132 +- .../AutoMlImageClassificationInputs.java | 88 +- .../AutoMlImageClassificationMetadata.java | 46 +- .../AutoMlImageObjectDetection.java | 132 +- .../AutoMlImageObjectDetectionInputs.java | 58 +- .../AutoMlImageObjectDetectionMetadata.java | 46 +- .../definition/AutoMlImageSegmentation.java | 132 +- .../AutoMlImageSegmentationInputs.java | 64 +- .../AutoMlImageSegmentationMetadata.java | 46 +- .../trainingjob/definition/AutoMlTables.java | 131 +- .../definition/AutoMlTablesInputs.java | 632 ++++--- .../definition/AutoMlTablesMetadata.java | 24 +- .../definition/AutoMlTextClassification.java | 71 +- .../AutoMlTextClassificationInputs.java | 25 +- .../definition/AutoMlTextExtraction.java | 71 +- .../definition/AutoMlTextSentiment.java | 71 +- .../definition/AutoMlTextSentimentInputs.java | 24 +- .../AutoMlVideoActionRecognition.java | 72 +- .../AutoMlVideoActionRecognitionInputs.java | 34 +- .../definition/AutoMlVideoClassification.java | 71 +- .../AutoMlVideoClassificationInputs.java | 34 +- .../definition/AutoMlVideoObjectTracking.java | 71 +- .../AutoMlVideoObjectTrackingInputs.java | 34 +- .../ExportEvaluatedDataItemsConfig.java | 43 +- .../cloud/aiplatform/v1beta1/custom_job.proto | 12 + 1067 files changed, 64431 insertions(+), 44511 deletions(-) diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index 3de6f858c3e9..15815136a095 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-aiplatform - 3.8.0 + 3.9.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-aiplatform:3.8.0' +implementation 'com.google.cloud:google-cloud-aiplatform:3.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.8.0" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.9.0" ``` ## Authentication diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ActiveLearningConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ActiveLearningConfig.java index 3eee1786aa4d..eb54003fccb2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ActiveLearningConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ActiveLearningConfig.java @@ -232,7 +232,9 @@ public com.google.cloud.aiplatform.v1.SampleConfig getSampleConfig() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.SampleConfigOrBuilder getSampleConfigOrBuilder() { - return getSampleConfig(); + return sampleConfig_ == null + ? com.google.cloud.aiplatform.v1.SampleConfig.getDefaultInstance() + : sampleConfig_; } public static final int TRAINING_CONFIG_FIELD_NUMBER = 4; @@ -286,7 +288,9 @@ public com.google.cloud.aiplatform.v1.TrainingConfig getTrainingConfig() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.TrainingConfigOrBuilder getTrainingConfigOrBuilder() { - return getTrainingConfig(); + return trainingConfig_ == null + ? com.google.cloud.aiplatform.v1.TrainingConfig.getDefaultInstance() + : trainingConfig_; } private byte memoizedIsInitialized = -1; @@ -546,16 +550,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (sampleConfigBuilder_ == null) { - sampleConfig_ = null; - } else { - sampleConfig_ = null; + bitField0_ = 0; + sampleConfig_ = null; + if (sampleConfigBuilder_ != null) { + sampleConfigBuilder_.dispose(); sampleConfigBuilder_ = null; } - if (trainingConfigBuilder_ == null) { - trainingConfig_ = null; - } else { - trainingConfig_ = null; + trainingConfig_ = null; + if (trainingConfigBuilder_ != null) { + trainingConfigBuilder_.dispose(); trainingConfigBuilder_ = null; } humanLabelingBudgetCase_ = 0; @@ -587,25 +590,29 @@ public com.google.cloud.aiplatform.v1.ActiveLearningConfig build() { public com.google.cloud.aiplatform.v1.ActiveLearningConfig buildPartial() { com.google.cloud.aiplatform.v1.ActiveLearningConfig result = new com.google.cloud.aiplatform.v1.ActiveLearningConfig(this); - if (humanLabelingBudgetCase_ == 1) { - result.humanLabelingBudget_ = humanLabelingBudget_; - } - if (humanLabelingBudgetCase_ == 2) { - result.humanLabelingBudget_ = humanLabelingBudget_; + if (bitField0_ != 0) { + buildPartial0(result); } - if (sampleConfigBuilder_ == null) { - result.sampleConfig_ = sampleConfig_; - } else { - result.sampleConfig_ = sampleConfigBuilder_.build(); + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ActiveLearningConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sampleConfig_ = + sampleConfigBuilder_ == null ? sampleConfig_ : sampleConfigBuilder_.build(); } - if (trainingConfigBuilder_ == null) { - result.trainingConfig_ = trainingConfig_; - } else { - result.trainingConfig_ = trainingConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.trainingConfig_ = + trainingConfigBuilder_ == null ? trainingConfig_ : trainingConfigBuilder_.build(); } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.ActiveLearningConfig result) { result.humanLabelingBudgetCase_ = humanLabelingBudgetCase_; - onBuilt(); - return result; + result.humanLabelingBudget_ = this.humanLabelingBudget_; } @java.lang.Override @@ -717,13 +724,13 @@ public Builder mergeFrom( case 26: { input.readMessage(getSampleConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getTrainingConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -757,6 +764,8 @@ public Builder clearHumanLabelingBudget() { return this; } + private int bitField0_; + /** * * @@ -801,6 +810,7 @@ public long getMaxDataItemCount() { * @return This builder for chaining. */ public Builder setMaxDataItemCount(long value) { + humanLabelingBudgetCase_ = 1; humanLabelingBudget_ = value; onChanged(); @@ -870,6 +880,7 @@ public int getMaxDataItemPercentage() { * @return This builder for chaining. */ public Builder setMaxDataItemPercentage(int value) { + humanLabelingBudgetCase_ = 2; humanLabelingBudget_ = value; onChanged(); @@ -914,7 +925,7 @@ public Builder clearMaxDataItemPercentage() { * @return Whether the sampleConfig field is set. */ public boolean hasSampleConfig() { - return sampleConfigBuilder_ != null || sampleConfig_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -953,11 +964,11 @@ public Builder setSampleConfig(com.google.cloud.aiplatform.v1.SampleConfig value throw new NullPointerException(); } sampleConfig_ = value; - onChanged(); } else { sampleConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -974,11 +985,11 @@ public Builder setSampleConfig( com.google.cloud.aiplatform.v1.SampleConfig.Builder builderForValue) { if (sampleConfigBuilder_ == null) { sampleConfig_ = builderForValue.build(); - onChanged(); } else { sampleConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -993,19 +1004,18 @@ public Builder setSampleConfig( */ public Builder mergeSampleConfig(com.google.cloud.aiplatform.v1.SampleConfig value) { if (sampleConfigBuilder_ == null) { - if (sampleConfig_ != null) { - sampleConfig_ = - com.google.cloud.aiplatform.v1.SampleConfig.newBuilder(sampleConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && sampleConfig_ != null + && sampleConfig_ != com.google.cloud.aiplatform.v1.SampleConfig.getDefaultInstance()) { + getSampleConfigBuilder().mergeFrom(value); } else { sampleConfig_ = value; } - onChanged(); } else { sampleConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1019,14 +1029,13 @@ public Builder mergeSampleConfig(com.google.cloud.aiplatform.v1.SampleConfig val * .google.cloud.aiplatform.v1.SampleConfig sample_config = 3; */ public Builder clearSampleConfig() { - if (sampleConfigBuilder_ == null) { - sampleConfig_ = null; - onChanged(); - } else { - sampleConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + sampleConfig_ = null; + if (sampleConfigBuilder_ != null) { + sampleConfigBuilder_.dispose(); sampleConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1040,7 +1049,7 @@ public Builder clearSampleConfig() { * .google.cloud.aiplatform.v1.SampleConfig sample_config = 3; */ public com.google.cloud.aiplatform.v1.SampleConfig.Builder getSampleConfigBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getSampleConfigFieldBuilder().getBuilder(); } @@ -1110,7 +1119,7 @@ public com.google.cloud.aiplatform.v1.SampleConfigOrBuilder getSampleConfigOrBui * @return Whether the trainingConfig field is set. */ public boolean hasTrainingConfig() { - return trainingConfigBuilder_ != null || trainingConfig_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1151,11 +1160,11 @@ public Builder setTrainingConfig(com.google.cloud.aiplatform.v1.TrainingConfig v throw new NullPointerException(); } trainingConfig_ = value; - onChanged(); } else { trainingConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1173,11 +1182,11 @@ public Builder setTrainingConfig( com.google.cloud.aiplatform.v1.TrainingConfig.Builder builderForValue) { if (trainingConfigBuilder_ == null) { trainingConfig_ = builderForValue.build(); - onChanged(); } else { trainingConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1193,19 +1202,19 @@ public Builder setTrainingConfig( */ public Builder mergeTrainingConfig(com.google.cloud.aiplatform.v1.TrainingConfig value) { if (trainingConfigBuilder_ == null) { - if (trainingConfig_ != null) { - trainingConfig_ = - com.google.cloud.aiplatform.v1.TrainingConfig.newBuilder(trainingConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && trainingConfig_ != null + && trainingConfig_ + != com.google.cloud.aiplatform.v1.TrainingConfig.getDefaultInstance()) { + getTrainingConfigBuilder().mergeFrom(value); } else { trainingConfig_ = value; } - onChanged(); } else { trainingConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1220,14 +1229,13 @@ public Builder mergeTrainingConfig(com.google.cloud.aiplatform.v1.TrainingConfig * .google.cloud.aiplatform.v1.TrainingConfig training_config = 4; */ public Builder clearTrainingConfig() { - if (trainingConfigBuilder_ == null) { - trainingConfig_ = null; - onChanged(); - } else { - trainingConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + trainingConfig_ = null; + if (trainingConfigBuilder_ != null) { + trainingConfigBuilder_.dispose(); trainingConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1242,7 +1250,7 @@ public Builder clearTrainingConfig() { * .google.cloud.aiplatform.v1.TrainingConfig training_config = 4; */ public com.google.cloud.aiplatform.v1.TrainingConfig.Builder getTrainingConfigBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getTrainingConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextArtifactsAndExecutionsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextArtifactsAndExecutionsRequest.java index 0e1d1f9eb792..0a8ffa67c55a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextArtifactsAndExecutionsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextArtifactsAndExecutionsRequest.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTEXT_FIELD_NUMBER = 1; - private volatile java.lang.Object context_; + + @SuppressWarnings("serial") + private volatile java.lang.Object context_ = ""; /** * * @@ -130,6 +132,8 @@ public com.google.protobuf.ByteString getContextBytes() { } public static final int ARTIFACTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList artifacts_; /** * @@ -199,6 +203,8 @@ public com.google.protobuf.ByteString getArtifactsBytes(int index) { } public static final int EXECUTIONS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList executions_; /** * @@ -504,12 +510,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; context_ = ""; - artifacts_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - executions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); + executions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -540,20 +546,34 @@ public com.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest bu public com.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest buildPartial() { com.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest result = new com.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest(this); - int from_bitField0_ = bitField0_; - result.context_ = context_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest result) { + if (((bitField0_ & 0x00000002) != 0)) { artifacts_ = artifacts_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.artifacts_ = artifacts_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { executions_ = executions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.executions_ = executions_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.context_ = context_; + } } @java.lang.Override @@ -607,12 +627,13 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getContext().isEmpty()) { context_ = other.context_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.artifacts_.isEmpty()) { if (artifacts_.isEmpty()) { artifacts_ = other.artifacts_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureArtifactsIsMutable(); artifacts_.addAll(other.artifacts_); @@ -622,7 +643,7 @@ public Builder mergeFrom( if (!other.executions_.isEmpty()) { if (executions_.isEmpty()) { executions_ = other.executions_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureExecutionsIsMutable(); executions_.addAll(other.executions_); @@ -658,7 +679,7 @@ public Builder mergeFrom( case 10: { context_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -767,8 +788,8 @@ public Builder setContext(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - context_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -788,8 +809,8 @@ public Builder setContext(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContext() { - context_ = getDefaultInstance().getContext(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -814,8 +835,8 @@ public Builder setContextBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - context_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -824,9 +845,9 @@ public Builder setContextBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArtifactsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { artifacts_ = new com.google.protobuf.LazyStringArrayList(artifacts_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -977,7 +998,7 @@ public Builder addAllArtifacts(java.lang.Iterable values) { */ public Builder clearArtifacts() { artifacts_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1010,9 +1031,9 @@ public Builder addArtifactsBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExecutionsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { executions_ = new com.google.protobuf.LazyStringArrayList(executions_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } /** @@ -1171,7 +1192,7 @@ public Builder addAllExecutions(java.lang.Iterable values) { */ public Builder clearExecutions() { executions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextChildrenRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextChildrenRequest.java index 07e3ad9a6ddc..1bc60b6b33d7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextChildrenRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddContextChildrenRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTEXT_FIELD_NUMBER = 1; - private volatile java.lang.Object context_; + + @SuppressWarnings("serial") + private volatile java.lang.Object context_ = ""; /** * * @@ -127,6 +129,8 @@ public com.google.protobuf.ByteString getContextBytes() { } public static final int CHILD_CONTEXTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList childContexts_; /** * @@ -402,10 +406,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; context_ = ""; - childContexts_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -433,17 +437,30 @@ public com.google.cloud.aiplatform.v1.AddContextChildrenRequest build() { public com.google.cloud.aiplatform.v1.AddContextChildrenRequest buildPartial() { com.google.cloud.aiplatform.v1.AddContextChildrenRequest result = new com.google.cloud.aiplatform.v1.AddContextChildrenRequest(this); - int from_bitField0_ = bitField0_; - result.context_ = context_; - if (((bitField0_ & 0x00000001) != 0)) { - childContexts_ = childContexts_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.childContexts_ = childContexts_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.AddContextChildrenRequest result) { + if (((bitField0_ & 0x00000002) != 0)) { + childContexts_ = childContexts_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.childContexts_ = childContexts_; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.AddContextChildrenRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.context_ = context_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -492,12 +509,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.AddContextChildrenReques return this; if (!other.getContext().isEmpty()) { context_ = other.context_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.childContexts_.isEmpty()) { if (childContexts_.isEmpty()) { childContexts_ = other.childContexts_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureChildContextsIsMutable(); childContexts_.addAll(other.childContexts_); @@ -533,7 +551,7 @@ public Builder mergeFrom( case 10: { context_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -635,8 +653,8 @@ public Builder setContext(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - context_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -656,8 +674,8 @@ public Builder setContext(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContext() { - context_ = getDefaultInstance().getContext(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -682,8 +700,8 @@ public Builder setContextBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - context_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -692,9 +710,9 @@ public Builder setContextBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureChildContextsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { childContexts_ = new com.google.protobuf.LazyStringArrayList(childContexts_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -829,7 +847,7 @@ public Builder addAllChildContexts(java.lang.Iterable values) */ public Builder clearChildContexts() { childContexts_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddExecutionEventsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddExecutionEventsRequest.java index 1bd77b2a2fe2..a9d321e52b4d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddExecutionEventsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddExecutionEventsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int EXECUTION_FIELD_NUMBER = 1; - private volatile java.lang.Object execution_; + + @SuppressWarnings("serial") + private volatile java.lang.Object execution_ = ""; /** * * @@ -129,6 +131,8 @@ public com.google.protobuf.ByteString getExecutionBytes() { } public static final int EVENTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List events_; /** * @@ -407,15 +411,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; execution_ = ""; - if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); } else { events_ = null; eventsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -443,19 +447,32 @@ public com.google.cloud.aiplatform.v1.AddExecutionEventsRequest build() { public com.google.cloud.aiplatform.v1.AddExecutionEventsRequest buildPartial() { com.google.cloud.aiplatform.v1.AddExecutionEventsRequest result = new com.google.cloud.aiplatform.v1.AddExecutionEventsRequest(this); - int from_bitField0_ = bitField0_; - result.execution_ = execution_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.AddExecutionEventsRequest result) { if (eventsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { events_ = java.util.Collections.unmodifiableList(events_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.events_ = events_; } else { result.events_ = eventsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.AddExecutionEventsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.execution_ = execution_; + } } @java.lang.Override @@ -506,13 +523,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.AddExecutionEventsReques return this; if (!other.getExecution().isEmpty()) { execution_ = other.execution_; + bitField0_ |= 0x00000001; onChanged(); } if (eventsBuilder_ == null) { if (!other.events_.isEmpty()) { if (events_.isEmpty()) { events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureEventsIsMutable(); events_.addAll(other.events_); @@ -525,7 +543,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.AddExecutionEventsReques eventsBuilder_.dispose(); eventsBuilder_ = null; events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); eventsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEventsFieldBuilder() @@ -564,7 +582,7 @@ public Builder mergeFrom( case 10: { execution_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -675,8 +693,8 @@ public Builder setExecution(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - execution_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -697,8 +715,8 @@ public Builder setExecution(java.lang.String value) { * @return This builder for chaining. */ public Builder clearExecution() { - execution_ = getDefaultInstance().getExecution(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -724,8 +742,8 @@ public Builder setExecutionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - execution_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -734,9 +752,9 @@ public Builder setExecutionBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureEventsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { events_ = new java.util.ArrayList(events_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -951,7 +969,7 @@ public Builder addAllEvents( public Builder clearEvents() { if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { eventsBuilder_.clear(); @@ -1072,7 +1090,7 @@ public java.util.List getEventsBui com.google.cloud.aiplatform.v1.Event, com.google.cloud.aiplatform.v1.Event.Builder, com.google.cloud.aiplatform.v1.EventOrBuilder>( - events_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + events_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); events_ = null; } return eventsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddTrialMeasurementRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddTrialMeasurementRequest.java index cdc9a3c0cb28..2ba1daf725ce 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddTrialMeasurementRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AddTrialMeasurementRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRIAL_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object trialName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object trialName_ = ""; /** * * @@ -176,7 +178,9 @@ public com.google.cloud.aiplatform.v1.Measurement getMeasurement() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.MeasurementOrBuilder getMeasurementOrBuilder() { - return getMeasurement(); + return measurement_ == null + ? com.google.cloud.aiplatform.v1.Measurement.getDefaultInstance() + : measurement_; } private byte memoizedIsInitialized = -1; @@ -392,12 +396,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; trialName_ = ""; - - if (measurementBuilder_ == null) { - measurement_ = null; - } else { - measurement_ = null; + measurement_ = null; + if (measurementBuilder_ != null) { + measurementBuilder_.dispose(); measurementBuilder_ = null; } return this; @@ -427,16 +430,24 @@ public com.google.cloud.aiplatform.v1.AddTrialMeasurementRequest build() { public com.google.cloud.aiplatform.v1.AddTrialMeasurementRequest buildPartial() { com.google.cloud.aiplatform.v1.AddTrialMeasurementRequest result = new com.google.cloud.aiplatform.v1.AddTrialMeasurementRequest(this); - result.trialName_ = trialName_; - if (measurementBuilder_ == null) { - result.measurement_ = measurement_; - } else { - result.measurement_ = measurementBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.AddTrialMeasurementRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trialName_ = trialName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.measurement_ = + measurementBuilder_ == null ? measurement_ : measurementBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -485,6 +496,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.AddTrialMeasurementReque return this; if (!other.getTrialName().isEmpty()) { trialName_ = other.trialName_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasMeasurement()) { @@ -519,13 +531,13 @@ public Builder mergeFrom( case 10: { trialName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: { input.readMessage(getMeasurementFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 26 default: @@ -545,6 +557,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object trialName_ = ""; /** * @@ -618,8 +632,8 @@ public Builder setTrialName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - trialName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -639,8 +653,8 @@ public Builder setTrialName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTrialName() { - trialName_ = getDefaultInstance().getTrialName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -665,8 +679,8 @@ public Builder setTrialNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - trialName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -691,7 +705,7 @@ public Builder setTrialNameBytes(com.google.protobuf.ByteString value) { * @return Whether the measurement field is set. */ public boolean hasMeasurement() { - return measurementBuilder_ != null || measurement_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -732,11 +746,11 @@ public Builder setMeasurement(com.google.cloud.aiplatform.v1.Measurement value) throw new NullPointerException(); } measurement_ = value; - onChanged(); } else { measurementBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -754,11 +768,11 @@ public Builder setMeasurement( com.google.cloud.aiplatform.v1.Measurement.Builder builderForValue) { if (measurementBuilder_ == null) { measurement_ = builderForValue.build(); - onChanged(); } else { measurementBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -774,19 +788,18 @@ public Builder setMeasurement( */ public Builder mergeMeasurement(com.google.cloud.aiplatform.v1.Measurement value) { if (measurementBuilder_ == null) { - if (measurement_ != null) { - measurement_ = - com.google.cloud.aiplatform.v1.Measurement.newBuilder(measurement_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && measurement_ != null + && measurement_ != com.google.cloud.aiplatform.v1.Measurement.getDefaultInstance()) { + getMeasurementBuilder().mergeFrom(value); } else { measurement_ = value; } - onChanged(); } else { measurementBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -801,14 +814,13 @@ public Builder mergeMeasurement(com.google.cloud.aiplatform.v1.Measurement value * */ public Builder clearMeasurement() { - if (measurementBuilder_ == null) { - measurement_ = null; - onChanged(); - } else { - measurement_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + measurement_ = null; + if (measurementBuilder_ != null) { + measurementBuilder_.dispose(); measurementBuilder_ = null; } - + onChanged(); return this; } /** @@ -823,7 +835,7 @@ public Builder clearMeasurement() { * */ public com.google.cloud.aiplatform.v1.Measurement.Builder getMeasurementBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMeasurementFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Annotation.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Annotation.java index 7bd8884bde37..c14133f3d63f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Annotation.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Annotation.java @@ -82,7 +82,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -131,7 +133,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int PAYLOAD_SCHEMA_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object payloadSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object payloadSchemaUri_ = ""; /** * * @@ -239,7 +243,7 @@ public com.google.protobuf.Value getPayload() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getPayloadOrBuilder() { - return getPayload(); + return payload_ == null ? com.google.protobuf.Value.getDefaultInstance() : payload_; } public static final int CREATE_TIME_FIELD_NUMBER = 4; @@ -288,7 +292,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 7; @@ -337,11 +341,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ETAG_FIELD_NUMBER = 8; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -443,7 +449,9 @@ public com.google.cloud.aiplatform.v1.UserActionReference getAnnotationSource() @java.lang.Override public com.google.cloud.aiplatform.v1.UserActionReferenceOrBuilder getAnnotationSourceOrBuilder() { - return getAnnotationSource(); + return annotationSource_ == null + ? com.google.cloud.aiplatform.v1.UserActionReference.getDefaultInstance() + : annotationSource_; } public static final int LABELS_FIELD_NUMBER = 6; @@ -459,6 +467,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -564,7 +573,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -917,34 +929,28 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - payloadSchemaUri_ = ""; - - if (payloadBuilder_ == null) { - payload_ = null; - } else { - payload_ = null; + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); payloadBuilder_ = null; } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } etag_ = ""; - - if (annotationSourceBuilder_ == null) { - annotationSource_ = null; - } else { - annotationSource_ = null; + annotationSource_ = null; + if (annotationSourceBuilder_ != null) { + annotationSourceBuilder_.dispose(); annotationSourceBuilder_ = null; } internalGetMutableLabels().clear(); @@ -975,34 +981,41 @@ public com.google.cloud.aiplatform.v1.Annotation build() { public com.google.cloud.aiplatform.v1.Annotation buildPartial() { com.google.cloud.aiplatform.v1.Annotation result = new com.google.cloud.aiplatform.v1.Annotation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Annotation result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - result.payloadSchemaUri_ = payloadSchemaUri_; - if (payloadBuilder_ == null) { - result.payload_ = payload_; - } else { - result.payload_ = payloadBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.payloadSchemaUri_ = payloadSchemaUri_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.payload_ = payloadBuilder_ == null ? payload_ : payloadBuilder_.build(); } - result.etag_ = etag_; - if (annotationSourceBuilder_ == null) { - result.annotationSource_ = annotationSource_; - } else { - result.annotationSource_ = annotationSourceBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.annotationSource_ = + annotationSourceBuilder_ == null ? annotationSource_ : annotationSourceBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - onBuilt(); - return result; } @java.lang.Override @@ -1052,10 +1065,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Annotation other) { if (other == com.google.cloud.aiplatform.v1.Annotation.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getPayloadSchemaUri().isEmpty()) { payloadSchemaUri_ = other.payloadSchemaUri_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasPayload()) { @@ -1069,12 +1084,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Annotation other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasAnnotationSource()) { mergeAnnotationSource(other.getAnnotationSource()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1104,32 +1121,32 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { payloadSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getPayloadFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getAnnotationSourceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 42 case 50: @@ -1141,18 +1158,19 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; break; } // case 50 case 58: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 58 case 66: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 66 default: @@ -1235,8 +1253,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1252,8 +1270,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1274,8 +1292,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1362,8 +1380,8 @@ public Builder setPayloadSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - payloadSchemaUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1386,8 +1404,8 @@ public Builder setPayloadSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPayloadSchemaUri() { - payloadSchemaUri_ = getDefaultInstance().getPayloadSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1415,8 +1433,8 @@ public Builder setPayloadSchemaUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - payloadSchemaUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1440,7 +1458,7 @@ public Builder setPayloadSchemaUriBytes(com.google.protobuf.ByteString value) { * @return Whether the payload field is set. */ public boolean hasPayload() { - return payloadBuilder_ != null || payload_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1477,11 +1495,11 @@ public Builder setPayload(com.google.protobuf.Value value) { throw new NullPointerException(); } payload_ = value; - onChanged(); } else { payloadBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1497,11 +1515,11 @@ public Builder setPayload(com.google.protobuf.Value value) { public Builder setPayload(com.google.protobuf.Value.Builder builderForValue) { if (payloadBuilder_ == null) { payload_ = builderForValue.build(); - onChanged(); } else { payloadBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1516,16 +1534,18 @@ public Builder setPayload(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergePayload(com.google.protobuf.Value value) { if (payloadBuilder_ == null) { - if (payload_ != null) { - payload_ = com.google.protobuf.Value.newBuilder(payload_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && payload_ != null + && payload_ != com.google.protobuf.Value.getDefaultInstance()) { + getPayloadBuilder().mergeFrom(value); } else { payload_ = value; } - onChanged(); } else { payloadBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1539,14 +1559,13 @@ public Builder mergePayload(com.google.protobuf.Value value) { * .google.protobuf.Value payload = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPayload() { - if (payloadBuilder_ == null) { - payload_ = null; - onChanged(); - } else { - payload_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); payloadBuilder_ = null; } - + onChanged(); return this; } /** @@ -1560,7 +1579,7 @@ public Builder clearPayload() { * .google.protobuf.Value payload = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Value.Builder getPayloadBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getPayloadFieldBuilder().getBuilder(); } @@ -1628,7 +1647,7 @@ public com.google.protobuf.ValueOrBuilder getPayloadOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1669,11 +1688,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1690,11 +1709,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1710,17 +1729,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1735,14 +1755,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1757,7 +1776,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1829,7 +1848,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1870,11 +1889,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1891,11 +1910,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1911,17 +1930,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1936,14 +1956,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1958,7 +1977,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2074,8 +2093,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2092,8 +2111,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2115,8 +2134,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2141,7 +2160,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { * @return Whether the annotationSource field is set. */ public boolean hasAnnotationSource() { - return annotationSourceBuilder_ != null || annotationSource_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2182,11 +2201,11 @@ public Builder setAnnotationSource(com.google.cloud.aiplatform.v1.UserActionRefe throw new NullPointerException(); } annotationSource_ = value; - onChanged(); } else { annotationSourceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2204,11 +2223,11 @@ public Builder setAnnotationSource( com.google.cloud.aiplatform.v1.UserActionReference.Builder builderForValue) { if (annotationSourceBuilder_ == null) { annotationSource_ = builderForValue.build(); - onChanged(); } else { annotationSourceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2224,19 +2243,19 @@ public Builder setAnnotationSource( */ public Builder mergeAnnotationSource(com.google.cloud.aiplatform.v1.UserActionReference value) { if (annotationSourceBuilder_ == null) { - if (annotationSource_ != null) { - annotationSource_ = - com.google.cloud.aiplatform.v1.UserActionReference.newBuilder(annotationSource_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && annotationSource_ != null + && annotationSource_ + != com.google.cloud.aiplatform.v1.UserActionReference.getDefaultInstance()) { + getAnnotationSourceBuilder().mergeFrom(value); } else { annotationSource_ = value; } - onChanged(); } else { annotationSourceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2251,14 +2270,13 @@ public Builder mergeAnnotationSource(com.google.cloud.aiplatform.v1.UserActionRe * */ public Builder clearAnnotationSource() { - if (annotationSourceBuilder_ == null) { - annotationSource_ = null; - onChanged(); - } else { - annotationSource_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + annotationSource_ = null; + if (annotationSourceBuilder_ != null) { + annotationSourceBuilder_.dispose(); annotationSourceBuilder_ = null; } - + onChanged(); return this; } /** @@ -2273,7 +2291,7 @@ public Builder clearAnnotationSource() { * */ public com.google.cloud.aiplatform.v1.UserActionReference.Builder getAnnotationSourceBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getAnnotationSourceFieldBuilder().getBuilder(); } @@ -2337,14 +2355,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000080; + onChanged(); return labels_; } @@ -2444,8 +2462,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2490,6 +2510,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000080); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -2528,6 +2549,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000080; return internalGetMutableLabels().getMutableMap(); } /** @@ -2562,8 +2584,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000080; return this; } /** @@ -2593,6 +2615,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000080; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationOrBuilder.java index e467ce242841..43c379efbf8e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationOrBuilder.java @@ -375,7 +375,6 @@ public interface AnnotationOrBuilder * * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpec.java index 6ef063a4d80e..3d762f725f5b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpec.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -119,7 +121,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -217,7 +221,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 4; @@ -266,11 +270,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ETAG_FIELD_NUMBER = 5; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -563,24 +569,20 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } etag_ = ""; - return this; } @@ -608,23 +610,32 @@ public com.google.cloud.aiplatform.v1.AnnotationSpec build() { public com.google.cloud.aiplatform.v1.AnnotationSpec buildPartial() { com.google.cloud.aiplatform.v1.AnnotationSpec result = new com.google.cloud.aiplatform.v1.AnnotationSpec(this); - result.name_ = name_; - result.displayName_ = displayName_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.etag_ = etag_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.AnnotationSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.etag_ = etag_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -672,10 +683,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.AnnotationSpec other) { if (other == com.google.cloud.aiplatform.v1.AnnotationSpec.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasCreateTime()) { @@ -686,6 +699,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.AnnotationSpec other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -717,31 +731,31 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -761,6 +775,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -822,8 +838,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -839,8 +855,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -861,8 +877,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -934,8 +950,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -953,8 +969,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -977,8 +993,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1003,7 +1019,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1044,11 +1060,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1065,11 +1081,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1085,17 +1101,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1110,14 +1127,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1132,7 +1148,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1204,7 +1220,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1245,11 +1261,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1266,11 +1282,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1286,17 +1302,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1311,14 +1328,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1333,7 +1349,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -1449,8 +1465,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1467,8 +1483,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1490,8 +1506,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Artifact.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Artifact.java index d5249899651e..467f6bfe397d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Artifact.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Artifact.java @@ -247,7 +247,9 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -296,7 +298,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -347,7 +351,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int URI_FIELD_NUMBER = 6; - private volatile java.lang.Object uri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; /** * * @@ -398,7 +404,9 @@ public com.google.protobuf.ByteString getUriBytes() { } public static final int ETAG_FIELD_NUMBER = 9; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -461,6 +469,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -533,7 +542,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 10; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -612,7 +624,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 12; @@ -661,11 +673,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int STATE_FIELD_NUMBER = 13; - private int state_; + private int state_ = 0; /** * * @@ -700,14 +712,15 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.Artifact.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Artifact.State result = - com.google.cloud.aiplatform.v1.Artifact.State.valueOf(state_); + com.google.cloud.aiplatform.v1.Artifact.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.Artifact.State.UNRECOGNIZED : result; } public static final int SCHEMA_TITLE_FIELD_NUMBER = 14; - private volatile java.lang.Object schemaTitle_; + + @SuppressWarnings("serial") + private volatile java.lang.Object schemaTitle_ = ""; /** * * @@ -762,7 +775,9 @@ public com.google.protobuf.ByteString getSchemaTitleBytes() { } public static final int SCHEMA_VERSION_FIELD_NUMBER = 15; - private volatile java.lang.Object schemaVersion_; + + @SuppressWarnings("serial") + private volatile java.lang.Object schemaVersion_ = ""; /** * * @@ -865,11 +880,13 @@ public com.google.protobuf.Struct getMetadata() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } public static final int DESCRIPTION_FIELD_NUMBER = 17; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -1255,41 +1272,31 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - uri_ = ""; - etag_ = ""; - internalGetMutableLabels().clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } state_ = 0; - schemaTitle_ = ""; - schemaVersion_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } description_ = ""; - return this; } @@ -1317,34 +1324,52 @@ public com.google.cloud.aiplatform.v1.Artifact build() { public com.google.cloud.aiplatform.v1.Artifact buildPartial() { com.google.cloud.aiplatform.v1.Artifact result = new com.google.cloud.aiplatform.v1.Artifact(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Artifact result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.uri_ = uri_; - result.etag_ = etag_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - result.state_ = state_; - result.schemaTitle_ = schemaTitle_; - result.schemaVersion_ = schemaVersion_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.schemaTitle_ = schemaTitle_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.schemaVersion_ = schemaVersion_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.description_ = description_; } - result.description_ = description_; - onBuilt(); - return result; } @java.lang.Override @@ -1394,21 +1419,26 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Artifact other) { if (other == com.google.cloud.aiplatform.v1.Artifact.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getUri().isEmpty()) { uri_ = other.uri_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000008; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1420,10 +1450,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Artifact other) { } if (!other.getSchemaTitle().isEmpty()) { schemaTitle_ = other.schemaTitle_; + bitField0_ |= 0x00000100; onChanged(); } if (!other.getSchemaVersion().isEmpty()) { schemaVersion_ = other.schemaVersion_; + bitField0_ |= 0x00000200; onChanged(); } if (other.hasMetadata()) { @@ -1431,6 +1463,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Artifact other) { } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000800; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1462,25 +1495,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 50: { uri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 50 case 74: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 74 case 82: @@ -1492,48 +1525,49 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; break; } // case 82 case 90: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 90 case 98: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 98 case 104: { state_ = input.readEnum(); - + bitField0_ |= 0x00000080; break; } // case 104 case 114: { schemaTitle_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 114 case 122: { schemaVersion_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000200; break; } // case 122 case 130: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 130 case 138: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000800; break; } // case 138 default: @@ -1616,8 +1650,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1633,8 +1667,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1655,8 +1689,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1725,8 +1759,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1743,8 +1777,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1766,8 +1800,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1836,8 +1870,8 @@ public Builder setUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - uri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1854,8 +1888,8 @@ public Builder setUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearUri() { - uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1877,8 +1911,8 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - uri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1947,8 +1981,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1965,8 +1999,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1988,8 +2022,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2005,14 +2039,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000010; + onChanged(); return labels_; } @@ -2079,8 +2113,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 10; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2114,6 +2150,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -2141,6 +2178,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000010; return internalGetMutableLabels().getMutableMap(); } /** @@ -2164,8 +2202,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; return this; } /** @@ -2184,6 +2222,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; return this; } @@ -2207,7 +2246,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2248,11 +2287,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2269,11 +2308,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2289,17 +2328,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2314,14 +2354,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2336,7 +2375,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2408,7 +2447,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2449,11 +2488,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2470,11 +2509,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2490,17 +2529,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2515,14 +2555,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2537,7 +2576,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2624,8 +2663,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2645,9 +2684,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.Artifact.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Artifact.State result = - com.google.cloud.aiplatform.v1.Artifact.State.valueOf(state_); + com.google.cloud.aiplatform.v1.Artifact.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.Artifact.State.UNRECOGNIZED : result; } /** @@ -2669,7 +2707,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.Artifact.State value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000080; state_ = value.getNumber(); onChanged(); return this; @@ -2689,7 +2727,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.Artifact.State value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000080); state_ = 0; onChanged(); return this; @@ -2765,8 +2803,8 @@ public Builder setSchemaTitle(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - schemaTitle_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2785,8 +2823,8 @@ public Builder setSchemaTitle(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSchemaTitle() { - schemaTitle_ = getDefaultInstance().getSchemaTitle(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2810,8 +2848,8 @@ public Builder setSchemaTitleBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - schemaTitle_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2886,8 +2924,8 @@ public Builder setSchemaVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - schemaVersion_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2906,8 +2944,8 @@ public Builder setSchemaVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSchemaVersion() { - schemaVersion_ = getDefaultInstance().getSchemaVersion(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -2931,8 +2969,8 @@ public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - schemaVersion_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2957,7 +2995,7 @@ public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -2996,11 +3034,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) { throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3017,11 +3055,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) { public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3037,17 +3075,18 @@ public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Struct value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3062,14 +3101,13 @@ public Builder mergeMetadata(com.google.protobuf.Struct value) { * .google.protobuf.Struct metadata = 16; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -3084,7 +3122,7 @@ public Builder clearMetadata() { * .google.protobuf.Struct metadata = 16; */ public com.google.protobuf.Struct.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -3195,8 +3233,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3212,8 +3250,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -3234,8 +3272,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactOrBuilder.java index aac2dbfc9904..70aae3442a95 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactOrBuilder.java @@ -191,7 +191,6 @@ public interface ArtifactOrBuilder * * map<string, string> labels = 10; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Attribution.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Attribution.java index babc2e4729f0..4fab280d40d8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Attribution.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Attribution.java @@ -70,7 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int BASELINE_OUTPUT_VALUE_FIELD_NUMBER = 1; - private double baselineOutputValue_; + private double baselineOutputValue_ = 0D; /** * * @@ -96,7 +96,7 @@ public double getBaselineOutputValue() { } public static final int INSTANCE_OUTPUT_VALUE_FIELD_NUMBER = 2; - private double instanceOutputValue_; + private double instanceOutputValue_ = 0D; /** * * @@ -245,10 +245,14 @@ public com.google.protobuf.Value getFeatureAttributions() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getFeatureAttributionsOrBuilder() { - return getFeatureAttributions(); + return featureAttributions_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : featureAttributions_; } public static final int OUTPUT_INDEX_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList outputIndex_; /** * @@ -313,7 +317,9 @@ public int getOutputIndex(int index) { private int outputIndexMemoizedSerializedSize = -1; public static final int OUTPUT_DISPLAY_NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object outputDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputDisplayName_ = ""; /** * * @@ -374,7 +380,7 @@ public com.google.protobuf.ByteString getOutputDisplayNameBytes() { } public static final int APPROXIMATION_ERROR_FIELD_NUMBER = 6; - private double approximationError_; + private double approximationError_ = 0D; /** * * @@ -412,7 +418,9 @@ public double getApproximationError() { } public static final int OUTPUT_NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object outputName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputName_ = ""; /** * * @@ -747,24 +755,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; baselineOutputValue_ = 0D; - instanceOutputValue_ = 0D; - - if (featureAttributionsBuilder_ == null) { - featureAttributions_ = null; - } else { - featureAttributions_ = null; + featureAttributions_ = null; + if (featureAttributionsBuilder_ != null) { + featureAttributionsBuilder_.dispose(); featureAttributionsBuilder_ = null; } outputIndex_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); outputDisplayName_ = ""; - approximationError_ = 0D; - outputName_ = ""; - return this; } @@ -792,24 +794,45 @@ public com.google.cloud.aiplatform.v1.Attribution build() { public com.google.cloud.aiplatform.v1.Attribution buildPartial() { com.google.cloud.aiplatform.v1.Attribution result = new com.google.cloud.aiplatform.v1.Attribution(this); - int from_bitField0_ = bitField0_; - result.baselineOutputValue_ = baselineOutputValue_; - result.instanceOutputValue_ = instanceOutputValue_; - if (featureAttributionsBuilder_ == null) { - result.featureAttributions_ = featureAttributions_; - } else { - result.featureAttributions_ = featureAttributionsBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - if (((bitField0_ & 0x00000001) != 0)) { + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.Attribution result) { + if (((bitField0_ & 0x00000008) != 0)) { outputIndex_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.outputIndex_ = outputIndex_; - result.outputDisplayName_ = outputDisplayName_; - result.approximationError_ = approximationError_; - result.outputName_ = outputName_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Attribution result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.baselineOutputValue_ = baselineOutputValue_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.instanceOutputValue_ = instanceOutputValue_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.featureAttributions_ = + featureAttributionsBuilder_ == null + ? featureAttributions_ + : featureAttributionsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.outputDisplayName_ = outputDisplayName_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.approximationError_ = approximationError_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.outputName_ = outputName_; + } } @java.lang.Override @@ -869,7 +892,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Attribution other) { if (!other.outputIndex_.isEmpty()) { if (outputIndex_.isEmpty()) { outputIndex_ = other.outputIndex_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureOutputIndexIsMutable(); outputIndex_.addAll(other.outputIndex_); @@ -878,6 +901,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Attribution other) { } if (!other.getOutputDisplayName().isEmpty()) { outputDisplayName_ = other.outputDisplayName_; + bitField0_ |= 0x00000010; onChanged(); } if (other.getApproximationError() != 0D) { @@ -885,6 +909,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Attribution other) { } if (!other.getOutputName().isEmpty()) { outputName_ = other.outputName_; + bitField0_ |= 0x00000040; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -916,20 +941,20 @@ public Builder mergeFrom( case 9: { baselineOutputValue_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 case 17: { instanceOutputValue_ = input.readDouble(); - + bitField0_ |= 0x00000002; break; } // case 17 case 26: { input.readMessage( getFeatureAttributionsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 32: @@ -953,19 +978,19 @@ public Builder mergeFrom( case 42: { outputDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 case 49: { approximationError_ = input.readDouble(); - + bitField0_ |= 0x00000020; break; } // case 49 case 58: { outputName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 58 default: @@ -1034,6 +1059,7 @@ public double getBaselineOutputValue() { public Builder setBaselineOutputValue(double value) { baselineOutputValue_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1057,7 +1083,7 @@ public Builder setBaselineOutputValue(double value) { * @return This builder for chaining. */ public Builder clearBaselineOutputValue() { - + bitField0_ = (bitField0_ & ~0x00000001); baselineOutputValue_ = 0D; onChanged(); return this; @@ -1106,6 +1132,7 @@ public double getInstanceOutputValue() { public Builder setInstanceOutputValue(double value) { instanceOutputValue_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1127,7 +1154,7 @@ public Builder setInstanceOutputValue(double value) { * @return This builder for chaining. */ public Builder clearInstanceOutputValue() { - + bitField0_ = (bitField0_ & ~0x00000002); instanceOutputValue_ = 0D; onChanged(); return this; @@ -1178,7 +1205,7 @@ public Builder clearInstanceOutputValue() { * @return Whether the featureAttributions field is set. */ public boolean hasFeatureAttributions() { - return featureAttributionsBuilder_ != null || featureAttributions_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1269,11 +1296,11 @@ public Builder setFeatureAttributions(com.google.protobuf.Value value) { throw new NullPointerException(); } featureAttributions_ = value; - onChanged(); } else { featureAttributionsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1315,11 +1342,11 @@ public Builder setFeatureAttributions(com.google.protobuf.Value value) { public Builder setFeatureAttributions(com.google.protobuf.Value.Builder builderForValue) { if (featureAttributionsBuilder_ == null) { featureAttributions_ = builderForValue.build(); - onChanged(); } else { featureAttributionsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1360,19 +1387,18 @@ public Builder setFeatureAttributions(com.google.protobuf.Value.Builder builderF */ public Builder mergeFeatureAttributions(com.google.protobuf.Value value) { if (featureAttributionsBuilder_ == null) { - if (featureAttributions_ != null) { - featureAttributions_ = - com.google.protobuf.Value.newBuilder(featureAttributions_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && featureAttributions_ != null + && featureAttributions_ != com.google.protobuf.Value.getDefaultInstance()) { + getFeatureAttributionsBuilder().mergeFrom(value); } else { featureAttributions_ = value; } - onChanged(); } else { featureAttributionsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1412,14 +1438,13 @@ public Builder mergeFeatureAttributions(com.google.protobuf.Value value) { * */ public Builder clearFeatureAttributions() { - if (featureAttributionsBuilder_ == null) { - featureAttributions_ = null; - onChanged(); - } else { - featureAttributions_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + featureAttributions_ = null; + if (featureAttributionsBuilder_ != null) { + featureAttributionsBuilder_.dispose(); featureAttributionsBuilder_ = null; } - + onChanged(); return this; } /** @@ -1459,7 +1484,7 @@ public Builder clearFeatureAttributions() { * */ public com.google.protobuf.Value.Builder getFeatureAttributionsBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getFeatureAttributionsFieldBuilder().getBuilder(); } @@ -1564,9 +1589,9 @@ public com.google.protobuf.ValueOrBuilder getFeatureAttributionsOrBuilder() { private com.google.protobuf.Internal.IntList outputIndex_ = emptyIntList(); private void ensureOutputIndexIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { outputIndex_ = mutableCopy(outputIndex_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } /** @@ -1586,7 +1611,7 @@ private void ensureOutputIndexIsMutable() { * @return A list containing the outputIndex. */ public java.util.List getOutputIndexList() { - return ((bitField0_ & 0x00000001) != 0) + return ((bitField0_ & 0x00000008) != 0) ? java.util.Collections.unmodifiableList(outputIndex_) : outputIndex_; } @@ -1648,6 +1673,7 @@ public int getOutputIndex(int index) { * @return This builder for chaining. */ public Builder setOutputIndex(int index, int value) { + ensureOutputIndexIsMutable(); outputIndex_.setInt(index, value); onChanged(); @@ -1671,6 +1697,7 @@ public Builder setOutputIndex(int index, int value) { * @return This builder for chaining. */ public Builder addOutputIndex(int value) { + ensureOutputIndexIsMutable(); outputIndex_.addInt(value); onChanged(); @@ -1717,7 +1744,7 @@ public Builder addAllOutputIndex(java.lang.Iterable */ public Builder clearOutputIndex() { outputIndex_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1801,8 +1828,8 @@ public Builder setOutputDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - outputDisplayName_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1824,8 +1851,8 @@ public Builder setOutputDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOutputDisplayName() { - outputDisplayName_ = getDefaultInstance().getOutputDisplayName(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1852,8 +1879,8 @@ public Builder setOutputDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - outputDisplayName_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1929,6 +1956,7 @@ public double getApproximationError() { public Builder setApproximationError(double value) { approximationError_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1964,7 +1992,7 @@ public Builder setApproximationError(double value) { * @return This builder for chaining. */ public Builder clearApproximationError() { - + bitField0_ = (bitField0_ & ~0x00000020); approximationError_ = 0D; onChanged(); return this; @@ -2034,8 +2062,8 @@ public Builder setOutputName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - outputName_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2052,8 +2080,8 @@ public Builder setOutputName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOutputName() { - outputName_ = getDefaultInstance().getOutputName(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2075,8 +2103,8 @@ public Builder setOutputNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - outputName_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutomaticResources.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutomaticResources.java index b9bdfd598339..d68220fbaa8e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutomaticResources.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutomaticResources.java @@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MIN_REPLICA_COUNT_FIELD_NUMBER = 1; - private int minReplicaCount_; + private int minReplicaCount_ = 0; /** * * @@ -91,7 +91,7 @@ public int getMinReplicaCount() { } public static final int MAX_REPLICA_COUNT_FIELD_NUMBER = 2; - private int maxReplicaCount_; + private int maxReplicaCount_ = 0; /** * * @@ -324,10 +324,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; minReplicaCount_ = 0; - maxReplicaCount_ = 0; - return this; } @@ -355,12 +354,23 @@ public com.google.cloud.aiplatform.v1.AutomaticResources build() { public com.google.cloud.aiplatform.v1.AutomaticResources buildPartial() { com.google.cloud.aiplatform.v1.AutomaticResources result = new com.google.cloud.aiplatform.v1.AutomaticResources(this); - result.minReplicaCount_ = minReplicaCount_; - result.maxReplicaCount_ = maxReplicaCount_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.AutomaticResources result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.minReplicaCount_ = minReplicaCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxReplicaCount_ = maxReplicaCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -442,13 +452,13 @@ public Builder mergeFrom( case 8: { minReplicaCount_ = input.readInt32(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { maxReplicaCount_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -468,6 +478,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int minReplicaCount_; /** * @@ -509,6 +521,7 @@ public int getMinReplicaCount() { public Builder setMinReplicaCount(int value) { minReplicaCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -529,7 +542,7 @@ public Builder setMinReplicaCount(int value) { * @return This builder for chaining. */ public Builder clearMinReplicaCount() { - + bitField0_ = (bitField0_ & ~0x00000001); minReplicaCount_ = 0; onChanged(); return this; @@ -582,6 +595,7 @@ public int getMaxReplicaCount() { public Builder setMaxReplicaCount(int value) { maxReplicaCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -605,7 +619,7 @@ public Builder setMaxReplicaCount(int value) { * @return This builder for chaining. */ public Builder clearMaxReplicaCount() { - + bitField0_ = (bitField0_ & ~0x00000002); maxReplicaCount_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutoscalingMetricSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutoscalingMetricSpec.java index 0d66dd2d293b..4e125454f95b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutoscalingMetricSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutoscalingMetricSpec.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int METRIC_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object metricName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metricName_ = ""; /** * * @@ -127,7 +129,7 @@ public com.google.protobuf.ByteString getMetricNameBytes() { } public static final int TARGET_FIELD_NUMBER = 2; - private int target_; + private int target_ = 0; /** * * @@ -355,10 +357,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; metricName_ = ""; - target_ = 0; - return this; } @@ -386,12 +387,23 @@ public com.google.cloud.aiplatform.v1.AutoscalingMetricSpec build() { public com.google.cloud.aiplatform.v1.AutoscalingMetricSpec buildPartial() { com.google.cloud.aiplatform.v1.AutoscalingMetricSpec result = new com.google.cloud.aiplatform.v1.AutoscalingMetricSpec(this); - result.metricName_ = metricName_; - result.target_ = target_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.AutoscalingMetricSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricName_ = metricName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.target_ = target_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -440,6 +452,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.AutoscalingMetricSpec ot return this; if (!other.getMetricName().isEmpty()) { metricName_ = other.metricName_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getTarget() != 0) { @@ -474,13 +487,13 @@ public Builder mergeFrom( case 10: { metricName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { target_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -500,6 +513,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object metricName_ = ""; /** * @@ -573,8 +588,8 @@ public Builder setMetricName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metricName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -594,8 +609,8 @@ public Builder setMetricName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetricName() { - metricName_ = getDefaultInstance().getMetricName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -620,8 +635,8 @@ public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metricName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -663,6 +678,7 @@ public int getTarget() { public Builder setTarget(int value) { target_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -681,7 +697,7 @@ public Builder setTarget(int value) { * @return This builder for chaining. */ public Builder clearTarget() { - + bitField0_ = (bitField0_ & ~0x00000002); target_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AvroSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AvroSource.java index 088ce239f325..3dc536d46646 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AvroSource.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AvroSource.java @@ -116,7 +116,9 @@ public com.google.cloud.aiplatform.v1.GcsSource getGcsSource() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { - return getGcsSource(); + return gcsSource_ == null + ? com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance() + : gcsSource_; } private byte memoizedIsInitialized = -1; @@ -321,10 +323,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (gcsSourceBuilder_ == null) { - gcsSource_ = null; - } else { - gcsSource_ = null; + bitField0_ = 0; + gcsSource_ = null; + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.dispose(); gcsSourceBuilder_ = null; } return this; @@ -354,15 +356,20 @@ public com.google.cloud.aiplatform.v1.AvroSource build() { public com.google.cloud.aiplatform.v1.AvroSource buildPartial() { com.google.cloud.aiplatform.v1.AvroSource result = new com.google.cloud.aiplatform.v1.AvroSource(this); - if (gcsSourceBuilder_ == null) { - result.gcsSource_ = gcsSource_; - } else { - result.gcsSource_ = gcsSourceBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.AvroSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gcsSource_ = gcsSourceBuilder_ == null ? gcsSource_ : gcsSourceBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -440,7 +447,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -460,6 +467,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GcsSource gcsSource_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GcsSource, @@ -480,7 +489,7 @@ public Builder mergeFrom( * @return Whether the gcsSource field is set. */ public boolean hasGcsSource() { - return gcsSourceBuilder_ != null || gcsSource_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -521,11 +530,11 @@ public Builder setGcsSource(com.google.cloud.aiplatform.v1.GcsSource value) { throw new NullPointerException(); } gcsSource_ = value; - onChanged(); } else { gcsSourceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -542,11 +551,11 @@ public Builder setGcsSource(com.google.cloud.aiplatform.v1.GcsSource value) { public Builder setGcsSource(com.google.cloud.aiplatform.v1.GcsSource.Builder builderForValue) { if (gcsSourceBuilder_ == null) { gcsSource_ = builderForValue.build(); - onChanged(); } else { gcsSourceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -562,19 +571,18 @@ public Builder setGcsSource(com.google.cloud.aiplatform.v1.GcsSource.Builder bui */ public Builder mergeGcsSource(com.google.cloud.aiplatform.v1.GcsSource value) { if (gcsSourceBuilder_ == null) { - if (gcsSource_ != null) { - gcsSource_ = - com.google.cloud.aiplatform.v1.GcsSource.newBuilder(gcsSource_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && gcsSource_ != null + && gcsSource_ != com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance()) { + getGcsSourceBuilder().mergeFrom(value); } else { gcsSource_ = value; } - onChanged(); } else { gcsSourceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -589,14 +597,13 @@ public Builder mergeGcsSource(com.google.cloud.aiplatform.v1.GcsSource value) { * */ public Builder clearGcsSource() { - if (gcsSourceBuilder_ == null) { - gcsSource_ = null; - onChanged(); - } else { - gcsSource_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + gcsSource_ = null; + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.dispose(); gcsSourceBuilder_ = null; } - + onChanged(); return this; } /** @@ -611,7 +618,7 @@ public Builder clearGcsSource() { * */ public com.google.cloud.aiplatform.v1.GcsSource.Builder getGcsSourceBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGcsSourceFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesOperationMetadata.java index 50700f609122..91c49ab90e23 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesOperationMetadata.java @@ -113,7 +113,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -321,10 +323,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -356,15 +358,22 @@ public com.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata build public com.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata result = new com.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -446,7 +455,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -466,6 +475,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -484,7 +495,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -522,11 +533,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -542,11 +553,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -561,19 +572,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -586,14 +597,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -607,7 +617,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesRequest.java index ed615f975d40..659423b7c465 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,6 +129,8 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List requests_; /** * @@ -436,15 +440,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); } else { requests_ = null; requestsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -472,19 +476,32 @@ public com.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest build() { public com.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest buildPartial() { com.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest result = new com.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest result) { if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.requests_ = requests_; } else { result.requests_ = requestsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } } @java.lang.Override @@ -535,13 +552,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchCreateFeaturesReque return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRequestsIsMutable(); requests_.addAll(other.requests_); @@ -554,7 +572,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchCreateFeaturesReque requestsBuilder_.dispose(); requestsBuilder_ = null; requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); requestsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRequestsFieldBuilder() @@ -593,7 +611,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -702,8 +720,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -723,8 +741,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -749,8 +767,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -759,10 +777,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { requests_ = new java.util.ArrayList(requests_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1046,7 +1064,7 @@ public Builder addAllRequests( public Builder clearRequests() { if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { requestsBuilder_.clear(); @@ -1214,7 +1232,7 @@ public com.google.cloud.aiplatform.v1.CreateFeatureRequest.Builder addRequestsBu com.google.cloud.aiplatform.v1.CreateFeatureRequest, com.google.cloud.aiplatform.v1.CreateFeatureRequest.Builder, com.google.cloud.aiplatform.v1.CreateFeatureRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesResponse.java index 29052c3a1a39..cccf153258d3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateFeaturesResponse.java @@ -69,6 +69,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int FEATURES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List features_; /** * @@ -338,6 +340,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (featuresBuilder_ == null) { features_ = java.util.Collections.emptyList(); } else { @@ -372,7 +375,16 @@ public com.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse build() { public com.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse buildPartial() { com.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse result = new com.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse result) { if (featuresBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); @@ -382,8 +394,10 @@ public com.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse buildPartial() } else { result.features_ = featuresBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardRunsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardRunsRequest.java index 96089ffd5da8..8dcd4f87adcb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardRunsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardRunsRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -132,6 +134,8 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List requests_; /** * @@ -428,15 +432,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); } else { requests_ = null; requestsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -465,19 +469,33 @@ public com.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest build() public com.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest buildPartial() { com.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest result = new com.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest result) { if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.requests_ = requests_; } else { result.requests_ = requestsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } } @java.lang.Override @@ -530,13 +548,14 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRequestsIsMutable(); requests_.addAll(other.requests_); @@ -549,7 +568,7 @@ public Builder mergeFrom( requestsBuilder_.dispose(); requestsBuilder_ = null; requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); requestsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRequestsFieldBuilder() @@ -588,7 +607,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -703,8 +722,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -726,8 +745,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -754,8 +773,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -764,11 +783,11 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { requests_ = new java.util.ArrayList( requests_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1023,7 +1042,7 @@ public Builder addAllRequests( public Builder clearRequests() { if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { requestsBuilder_.clear(); @@ -1173,7 +1192,7 @@ public com.google.cloud.aiplatform.v1.CreateTensorboardRunRequest.Builder addReq com.google.cloud.aiplatform.v1.CreateTensorboardRunRequest, com.google.cloud.aiplatform.v1.CreateTensorboardRunRequest.Builder, com.google.cloud.aiplatform.v1.CreateTensorboardRunRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardRunsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardRunsResponse.java index e974908fdd93..b98258239569 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardRunsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardRunsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_RUNS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List tensorboardRuns_; /** * @@ -342,6 +344,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (tensorboardRunsBuilder_ == null) { tensorboardRuns_ = java.util.Collections.emptyList(); } else { @@ -377,7 +380,16 @@ public com.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse build() public com.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse buildPartial() { com.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse result = new com.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse result) { if (tensorboardRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { tensorboardRuns_ = java.util.Collections.unmodifiableList(tensorboardRuns_); @@ -387,8 +399,11 @@ public com.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse buildPa } else { result.tensorboardRuns_ = tensorboardRunsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardTimeSeriesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardTimeSeriesRequest.java index 048aa6df0b25..6a70f63e9d0d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardTimeSeriesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardTimeSeriesRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -137,6 +139,8 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List requests_; /** @@ -436,15 +440,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); } else { requests_ = null; requestsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -475,19 +479,33 @@ public com.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest bu public com.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest buildPartial() { com.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest result = new com.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest result) { if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.requests_ = requests_; } else { result.requests_ = requestsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } } @java.lang.Override @@ -541,13 +559,14 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRequestsIsMutable(); requests_.addAll(other.requests_); @@ -560,7 +579,7 @@ public Builder mergeFrom( requestsBuilder_.dispose(); requestsBuilder_ = null; requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); requestsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRequestsFieldBuilder() @@ -599,7 +618,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -720,8 +739,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -745,8 +764,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -775,8 +794,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -785,11 +804,11 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { requests_ = java.util.Collections.emptyList(); private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { requests_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest>(requests_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1047,7 +1066,7 @@ public Builder addAllRequests( public Builder clearRequests() { if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { requestsBuilder_.clear(); @@ -1200,7 +1219,7 @@ public Builder removeRequests(int index) { com.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest, com.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest.Builder, com.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardTimeSeriesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardTimeSeriesResponse.java index 3434a6edfd35..495d8f622a47 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardTimeSeriesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCreateTensorboardTimeSeriesResponse.java @@ -71,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_TIME_SERIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List tensorboardTimeSeries_; /** @@ -353,6 +355,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (tensorboardTimeSeriesBuilder_ == null) { tensorboardTimeSeries_ = java.util.Collections.emptyList(); } else { @@ -390,7 +393,16 @@ public com.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse b public com.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse buildPartial() { com.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse result = new com.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse result) { if (tensorboardTimeSeriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { tensorboardTimeSeries_ = java.util.Collections.unmodifiableList(tensorboardTimeSeries_); @@ -400,8 +412,11 @@ public com.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse b } else { result.tensorboardTimeSeries_ = tensorboardTimeSeriesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDedicatedResources.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDedicatedResources.java index c2924ec84257..f6853acc1668 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDedicatedResources.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDedicatedResources.java @@ -117,11 +117,13 @@ public com.google.cloud.aiplatform.v1.MachineSpec getMachineSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.MachineSpecOrBuilder getMachineSpecOrBuilder() { - return getMachineSpec(); + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1.MachineSpec.getDefaultInstance() + : machineSpec_; } public static final int STARTING_REPLICA_COUNT_FIELD_NUMBER = 2; - private int startingReplicaCount_; + private int startingReplicaCount_ = 0; /** * * @@ -141,7 +143,7 @@ public int getStartingReplicaCount() { } public static final int MAX_REPLICA_COUNT_FIELD_NUMBER = 3; - private int maxReplicaCount_; + private int maxReplicaCount_ = 0; /** * * @@ -381,16 +383,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (machineSpecBuilder_ == null) { - machineSpec_ = null; - } else { - machineSpec_ = null; + bitField0_ = 0; + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); machineSpecBuilder_ = null; } startingReplicaCount_ = 0; - maxReplicaCount_ = 0; - return this; } @@ -418,17 +418,27 @@ public com.google.cloud.aiplatform.v1.BatchDedicatedResources build() { public com.google.cloud.aiplatform.v1.BatchDedicatedResources buildPartial() { com.google.cloud.aiplatform.v1.BatchDedicatedResources result = new com.google.cloud.aiplatform.v1.BatchDedicatedResources(this); - if (machineSpecBuilder_ == null) { - result.machineSpec_ = machineSpec_; - } else { - result.machineSpec_ = machineSpecBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.startingReplicaCount_ = startingReplicaCount_; - result.maxReplicaCount_ = maxReplicaCount_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.BatchDedicatedResources result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.machineSpec_ = + machineSpecBuilder_ == null ? machineSpec_ : machineSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startingReplicaCount_ = startingReplicaCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxReplicaCount_ = maxReplicaCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -513,19 +523,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getMachineSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { startingReplicaCount_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { maxReplicaCount_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -545,6 +555,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.MachineSpec machineSpec_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.MachineSpec, @@ -565,7 +577,7 @@ public Builder mergeFrom( * @return Whether the machineSpec field is set. */ public boolean hasMachineSpec() { - return machineSpecBuilder_ != null || machineSpec_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -606,11 +618,11 @@ public Builder setMachineSpec(com.google.cloud.aiplatform.v1.MachineSpec value) throw new NullPointerException(); } machineSpec_ = value; - onChanged(); } else { machineSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -628,11 +640,11 @@ public Builder setMachineSpec( com.google.cloud.aiplatform.v1.MachineSpec.Builder builderForValue) { if (machineSpecBuilder_ == null) { machineSpec_ = builderForValue.build(); - onChanged(); } else { machineSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -648,19 +660,18 @@ public Builder setMachineSpec( */ public Builder mergeMachineSpec(com.google.cloud.aiplatform.v1.MachineSpec value) { if (machineSpecBuilder_ == null) { - if (machineSpec_ != null) { - machineSpec_ = - com.google.cloud.aiplatform.v1.MachineSpec.newBuilder(machineSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && machineSpec_ != null + && machineSpec_ != com.google.cloud.aiplatform.v1.MachineSpec.getDefaultInstance()) { + getMachineSpecBuilder().mergeFrom(value); } else { machineSpec_ = value; } - onChanged(); } else { machineSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -675,14 +686,13 @@ public Builder mergeMachineSpec(com.google.cloud.aiplatform.v1.MachineSpec value * */ public Builder clearMachineSpec() { - if (machineSpecBuilder_ == null) { - machineSpec_ = null; - onChanged(); - } else { - machineSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); machineSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -697,7 +707,7 @@ public Builder clearMachineSpec() { * */ public com.google.cloud.aiplatform.v1.MachineSpec.Builder getMachineSpecBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getMachineSpecFieldBuilder().getBuilder(); } @@ -784,6 +794,7 @@ public int getStartingReplicaCount() { public Builder setStartingReplicaCount(int value) { startingReplicaCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -801,7 +812,7 @@ public Builder setStartingReplicaCount(int value) { * @return This builder for chaining. */ public Builder clearStartingReplicaCount() { - + bitField0_ = (bitField0_ & ~0x00000002); startingReplicaCount_ = 0; onChanged(); return this; @@ -840,6 +851,7 @@ public int getMaxReplicaCount() { public Builder setMaxReplicaCount(int value) { maxReplicaCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -856,7 +868,7 @@ public Builder setMaxReplicaCount(int value) { * @return This builder for chaining. */ public Builder clearMaxReplicaCount() { - + bitField0_ = (bitField0_ & ~0x00000004); maxReplicaCount_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchImportModelEvaluationSlicesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchImportModelEvaluationSlicesRequest.java index 79fea3976ae1..bce518926b75 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchImportModelEvaluationSlicesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchImportModelEvaluationSlicesRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,6 +131,8 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int MODEL_EVALUATION_SLICES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List modelEvaluationSlices_; /** @@ -424,15 +428,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - if (modelEvaluationSlicesBuilder_ == null) { modelEvaluationSlices_ = java.util.Collections.emptyList(); } else { modelEvaluationSlices_ = null; modelEvaluationSlicesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -463,19 +467,33 @@ public com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest bu public com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest buildPartial() { com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest result = new com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest result) { if (modelEvaluationSlicesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { modelEvaluationSlices_ = java.util.Collections.unmodifiableList(modelEvaluationSlices_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.modelEvaluationSlices_ = modelEvaluationSlices_; } else { result.modelEvaluationSlices_ = modelEvaluationSlicesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } } @java.lang.Override @@ -529,13 +547,14 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (modelEvaluationSlicesBuilder_ == null) { if (!other.modelEvaluationSlices_.isEmpty()) { if (modelEvaluationSlices_.isEmpty()) { modelEvaluationSlices_ = other.modelEvaluationSlices_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureModelEvaluationSlicesIsMutable(); modelEvaluationSlices_.addAll(other.modelEvaluationSlices_); @@ -548,7 +567,7 @@ public Builder mergeFrom( modelEvaluationSlicesBuilder_.dispose(); modelEvaluationSlicesBuilder_ = null; modelEvaluationSlices_ = other.modelEvaluationSlices_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); modelEvaluationSlicesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getModelEvaluationSlicesFieldBuilder() @@ -587,7 +606,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -696,8 +715,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -717,8 +736,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -743,8 +762,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -753,11 +772,11 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { modelEvaluationSlices_ = java.util.Collections.emptyList(); private void ensureModelEvaluationSlicesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { modelEvaluationSlices_ = new java.util.ArrayList( modelEvaluationSlices_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -999,7 +1018,7 @@ public Builder addAllModelEvaluationSlices( public Builder clearModelEvaluationSlices() { if (modelEvaluationSlicesBuilder_ == null) { modelEvaluationSlices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { modelEvaluationSlicesBuilder_.clear(); @@ -1141,7 +1160,7 @@ public Builder removeModelEvaluationSlices(int index) { com.google.cloud.aiplatform.v1.ModelEvaluationSlice.Builder, com.google.cloud.aiplatform.v1.ModelEvaluationSliceOrBuilder>( modelEvaluationSlices_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); modelEvaluationSlices_ = null; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchImportModelEvaluationSlicesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchImportModelEvaluationSlicesResponse.java index 74c91af0425a..a0e11d9c6719 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchImportModelEvaluationSlicesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchImportModelEvaluationSlicesResponse.java @@ -71,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int IMPORTED_MODEL_EVALUATION_SLICES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList importedModelEvaluationSlices_; /** * @@ -354,6 +356,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; importedModelEvaluationSlices_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; @@ -386,14 +389,26 @@ public com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse b public com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse buildPartial() { com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse result = new com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse result) { if (((bitField0_ & 0x00000001) != 0)) { importedModelEvaluationSlices_ = importedModelEvaluationSlices_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.importedModelEvaluationSlices_ = importedModelEvaluationSlices_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesOperationMetadata.java index c2ff2d505641..bd08271651ea 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesOperationMetadata.java @@ -566,7 +566,9 @@ public com.google.cloud.aiplatform.v1.MigrateResourceRequest getRequest() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.MigrateResourceRequestOrBuilder getRequestOrBuilder() { - return getRequest(); + return request_ == null + ? com.google.cloud.aiplatform.v1.MigrateResourceRequest.getDefaultInstance() + : request_; } private byte memoizedIsInitialized = -1; @@ -851,13 +853,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (errorBuilder_ != null) { errorBuilder_.clear(); } - if (requestBuilder_ == null) { - request_ = null; - } else { - request_ = null; + request_ = null; + if (requestBuilder_ != null) { + requestBuilder_.dispose(); requestBuilder_ = null; } resultCase_ = 0; @@ -895,29 +897,33 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult result = new com.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult( this); - if (resultCase_ == 2) { - if (errorBuilder_ == null) { - result.result_ = result_; - } else { - result.result_ = errorBuilder_.build(); - } - } - if (resultCase_ == 3) { - result.result_ = result_; + if (bitField0_ != 0) { + buildPartial0(result); } - if (resultCase_ == 4) { - result.result_ = result_; - } - if (requestBuilder_ == null) { - result.request_ = request_; - } else { - result.request_ = requestBuilder_.build(); - } - result.resultCase_ = resultCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.request_ = requestBuilder_ == null ? request_ : requestBuilder_.build(); + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + result) { + result.resultCase_ = resultCase_; + result.result_ = this.result_; + if (resultCase_ == 2 && errorBuilder_ != null) { + result.result_ = errorBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1030,7 +1036,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getRequestFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 10 case 18: @@ -1084,6 +1090,8 @@ public Builder clearResult() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; @@ -1281,7 +1289,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } resultCase_ = 2; onChanged(); - ; return errorBuilder_; } @@ -1572,7 +1579,7 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { * @return Whether the request field is set. */ public boolean hasRequest() { - return requestBuilder_ != null || request_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1611,11 +1618,11 @@ public Builder setRequest(com.google.cloud.aiplatform.v1.MigrateResourceRequest throw new NullPointerException(); } request_ = value; - onChanged(); } else { requestBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1632,11 +1639,11 @@ public Builder setRequest( com.google.cloud.aiplatform.v1.MigrateResourceRequest.Builder builderForValue) { if (requestBuilder_ == null) { request_ = builderForValue.build(); - onChanged(); } else { requestBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1651,19 +1658,19 @@ public Builder setRequest( */ public Builder mergeRequest(com.google.cloud.aiplatform.v1.MigrateResourceRequest value) { if (requestBuilder_ == null) { - if (request_ != null) { - request_ = - com.google.cloud.aiplatform.v1.MigrateResourceRequest.newBuilder(request_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && request_ != null + && request_ + != com.google.cloud.aiplatform.v1.MigrateResourceRequest.getDefaultInstance()) { + getRequestBuilder().mergeFrom(value); } else { request_ = value; } - onChanged(); } else { requestBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1677,14 +1684,13 @@ public Builder mergeRequest(com.google.cloud.aiplatform.v1.MigrateResourceReques * .google.cloud.aiplatform.v1.MigrateResourceRequest request = 1; */ public Builder clearRequest() { - if (requestBuilder_ == null) { - request_ = null; - onChanged(); - } else { - request_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + request_ = null; + if (requestBuilder_ != null) { + requestBuilder_.dispose(); requestBuilder_ = null; } - + onChanged(); return this; } /** @@ -1698,7 +1704,7 @@ public Builder clearRequest() { * .google.cloud.aiplatform.v1.MigrateResourceRequest request = 1; */ public com.google.cloud.aiplatform.v1.MigrateResourceRequest.Builder getRequestBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getRequestFieldBuilder().getBuilder(); } @@ -1864,10 +1870,14 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } public static final int PARTIAL_RESULTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult> partialResults_; @@ -2173,10 +2183,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } if (partialResultsBuilder_ == null) { @@ -2185,7 +2195,7 @@ public Builder clear() { partialResults_ = null; partialResultsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -2215,23 +2225,34 @@ public com.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata bui public com.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata result = new com.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata(this); - int from_bitField0_ = bitField0_; - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata result) { if (partialResultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { partialResults_ = java.util.Collections.unmodifiableList(partialResults_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.partialResults_ = partialResults_; } else { result.partialResults_ = partialResultsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } } @java.lang.Override @@ -2290,7 +2311,7 @@ public Builder mergeFrom( if (!other.partialResults_.isEmpty()) { if (partialResults_.isEmpty()) { partialResults_ = other.partialResults_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePartialResultsIsMutable(); partialResults_.addAll(other.partialResults_); @@ -2303,7 +2324,7 @@ public Builder mergeFrom( partialResultsBuilder_.dispose(); partialResultsBuilder_ = null; partialResults_ = other.partialResults_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); partialResultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPartialResultsFieldBuilder() @@ -2342,7 +2363,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -2398,7 +2419,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -2436,11 +2457,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2456,11 +2477,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2475,19 +2496,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2500,14 +2521,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -2521,7 +2541,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } @@ -2575,12 +2595,12 @@ public Builder clearGenericMetadata() { partialResults_ = java.util.Collections.emptyList(); private void ensurePartialResultsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { partialResults_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata .PartialResult>(partialResults_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -2837,7 +2857,7 @@ public Builder addAllPartialResults( public Builder clearPartialResults() { if (partialResultsBuilder_ == null) { partialResults_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { partialResultsBuilder_.clear(); @@ -2996,7 +3016,7 @@ public Builder removePartialResults(int index) { com.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata .PartialResultOrBuilder>( partialResults_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); partialResults_ = null; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesRequest.java index b816b5c27b51..481b4bbabd3d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -125,6 +127,8 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int MIGRATE_RESOURCE_REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List migrateResourceRequests_; /** @@ -430,15 +434,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - if (migrateResourceRequestsBuilder_ == null) { migrateResourceRequests_ = java.util.Collections.emptyList(); } else { migrateResourceRequests_ = null; migrateResourceRequestsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -466,20 +470,33 @@ public com.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest build() { public com.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest buildPartial() { com.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest result = new com.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest result) { if (migrateResourceRequestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { migrateResourceRequests_ = java.util.Collections.unmodifiableList(migrateResourceRequests_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.migrateResourceRequests_ = migrateResourceRequests_; } else { result.migrateResourceRequests_ = migrateResourceRequestsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } } @java.lang.Override @@ -530,13 +547,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchMigrateResourcesReq return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (migrateResourceRequestsBuilder_ == null) { if (!other.migrateResourceRequests_.isEmpty()) { if (migrateResourceRequests_.isEmpty()) { migrateResourceRequests_ = other.migrateResourceRequests_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMigrateResourceRequestsIsMutable(); migrateResourceRequests_.addAll(other.migrateResourceRequests_); @@ -549,7 +567,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchMigrateResourcesReq migrateResourceRequestsBuilder_.dispose(); migrateResourceRequestsBuilder_ = null; migrateResourceRequests_ = other.migrateResourceRequests_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); migrateResourceRequestsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMigrateResourceRequestsFieldBuilder() @@ -588,7 +606,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -694,8 +712,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -714,8 +732,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -739,8 +757,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -749,11 +767,11 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { migrateResourceRequests_ = java.util.Collections.emptyList(); private void ensureMigrateResourceRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { migrateResourceRequests_ = new java.util.ArrayList( migrateResourceRequests_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1019,7 +1037,7 @@ public Builder addAllMigrateResourceRequests( public Builder clearMigrateResourceRequests() { if (migrateResourceRequestsBuilder_ == null) { migrateResourceRequests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { migrateResourceRequestsBuilder_.clear(); @@ -1175,7 +1193,7 @@ public Builder removeMigrateResourceRequests(int index) { com.google.cloud.aiplatform.v1.MigrateResourceRequest.Builder, com.google.cloud.aiplatform.v1.MigrateResourceRequestOrBuilder>( migrateResourceRequests_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); migrateResourceRequests_ = null; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesResponse.java index 5299d066b9a2..0761fb8a9e5b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchMigrateResourcesResponse.java @@ -69,6 +69,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MIGRATE_RESOURCE_RESPONSES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List migrateResourceResponses_; /** @@ -355,6 +357,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (migrateResourceResponsesBuilder_ == null) { migrateResourceResponses_ = java.util.Collections.emptyList(); } else { @@ -390,7 +393,16 @@ public com.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse build() { public com.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse buildPartial() { com.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse result = new com.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse result) { if (migrateResourceResponsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { migrateResourceResponses_ = @@ -401,8 +413,11 @@ public com.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse buildPartial } else { result.migrateResourceResponses_ = migrateResourceResponsesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java index 914bbb1c5774..f97ee5b697ea 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java @@ -422,7 +422,9 @@ public com.google.cloud.aiplatform.v1.BigQuerySourceOrBuilder getBigquerySourceO } public static final int INSTANCES_FORMAT_FIELD_NUMBER = 1; - private volatile java.lang.Object instancesFormat_; + + @SuppressWarnings("serial") + private volatile java.lang.Object instancesFormat_ = ""; /** * * @@ -717,6 +719,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (gcsSourceBuilder_ != null) { gcsSourceBuilder_.clear(); } @@ -724,7 +727,6 @@ public Builder clear() { bigquerySourceBuilder_.clear(); } instancesFormat_ = ""; - sourceCase_ = 0; source_ = null; return this; @@ -755,26 +757,34 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig build() { public com.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig buildPartial() { com.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig result = new com.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig(this); - if (sourceCase_ == 2) { - if (gcsSourceBuilder_ == null) { - result.source_ = source_; - } else { - result.source_ = gcsSourceBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (sourceCase_ == 3) { - if (bigquerySourceBuilder_ == null) { - result.source_ = source_; - } else { - result.source_ = bigquerySourceBuilder_.build(); - } - } - result.instancesFormat_ = instancesFormat_; - result.sourceCase_ = sourceCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.instancesFormat_ = instancesFormat_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 2 && gcsSourceBuilder_ != null) { + result.source_ = gcsSourceBuilder_.build(); + } + if (sourceCase_ == 3 && bigquerySourceBuilder_ != null) { + result.source_ = bigquerySourceBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -827,6 +837,7 @@ public Builder mergeFrom( return this; if (!other.getInstancesFormat().isEmpty()) { instancesFormat_ = other.instancesFormat_; + bitField0_ |= 0x00000004; onChanged(); } switch (other.getSourceCase()) { @@ -874,7 +885,7 @@ public Builder mergeFrom( case 10: { instancesFormat_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 10 case 18: @@ -921,6 +932,8 @@ public Builder clearSource() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GcsSource, com.google.cloud.aiplatform.v1.GcsSource.Builder, @@ -1127,7 +1140,6 @@ public com.google.cloud.aiplatform.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() } sourceCase_ = 2; onChanged(); - ; return gcsSourceBuilder_; } @@ -1373,7 +1385,6 @@ public com.google.cloud.aiplatform.v1.BigQuerySourceOrBuilder getBigquerySourceO } sourceCase_ = 3; onChanged(); - ; return bigquerySourceBuilder_; } @@ -1444,8 +1455,8 @@ public Builder setInstancesFormat(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - instancesFormat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1463,8 +1474,8 @@ public Builder setInstancesFormat(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInstancesFormat() { - instancesFormat_ = getDefaultInstance().getInstancesFormat(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1487,8 +1498,8 @@ public Builder setInstancesFormatBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - instancesFormat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1945,7 +1956,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INSTANCE_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object instanceType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceType_ = ""; /** * * @@ -2066,7 +2079,9 @@ public com.google.protobuf.ByteString getInstanceTypeBytes() { } public static final int KEY_FIELD_FIELD_NUMBER = 2; - private volatile java.lang.Object keyField_; + + @SuppressWarnings("serial") + private volatile java.lang.Object keyField_ = ""; /** * * @@ -2141,6 +2156,8 @@ public com.google.protobuf.ByteString getKeyFieldBytes() { } public static final int INCLUDED_FIELDS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList includedFields_; /** * @@ -2242,6 +2259,8 @@ public com.google.protobuf.ByteString getIncludedFieldsBytes(int index) { } public static final int EXCLUDED_FIELDS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList excludedFields_; /** * @@ -2582,14 +2601,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; instanceType_ = ""; - keyField_ = ""; - includedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); excludedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -2619,21 +2637,37 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig build() public com.google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig buildPartial() { com.google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig result = new com.google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig(this); - int from_bitField0_ = bitField0_; - result.instanceType_ = instanceType_; - result.keyField_ = keyField_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig result) { + if (((bitField0_ & 0x00000004) != 0)) { includedFields_ = includedFields_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.includedFields_ = includedFields_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { excludedFields_ = excludedFields_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); } result.excludedFields_ = excludedFields_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceType_ = instanceType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.keyField_ = keyField_; + } } @java.lang.Override @@ -2689,16 +2723,18 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getInstanceType().isEmpty()) { instanceType_ = other.instanceType_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getKeyField().isEmpty()) { keyField_ = other.keyField_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.includedFields_.isEmpty()) { if (includedFields_.isEmpty()) { includedFields_ = other.includedFields_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureIncludedFieldsIsMutable(); includedFields_.addAll(other.includedFields_); @@ -2708,7 +2744,7 @@ public Builder mergeFrom( if (!other.excludedFields_.isEmpty()) { if (excludedFields_.isEmpty()) { excludedFields_ = other.excludedFields_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureExcludedFieldsIsMutable(); excludedFields_.addAll(other.excludedFields_); @@ -2744,13 +2780,13 @@ public Builder mergeFrom( case 10: { instanceType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { keyField_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -2955,8 +2991,8 @@ public Builder setInstanceType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - instanceType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3008,8 +3044,8 @@ public Builder setInstanceType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInstanceType() { - instanceType_ = getDefaultInstance().getInstanceType(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3066,8 +3102,8 @@ public Builder setInstanceTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - instanceType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3172,8 +3208,8 @@ public Builder setKeyField(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - keyField_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3202,8 +3238,8 @@ public Builder setKeyField(java.lang.String value) { * @return This builder for chaining. */ public Builder clearKeyField() { - keyField_ = getDefaultInstance().getKeyField(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3237,8 +3273,8 @@ public Builder setKeyFieldBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - keyField_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3247,9 +3283,9 @@ public Builder setKeyFieldBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureIncludedFieldsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { includedFields_ = new com.google.protobuf.LazyStringArrayList(includedFields_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } /** @@ -3464,7 +3500,7 @@ public Builder addAllIncludedFields(java.lang.Iterable values) */ public Builder clearIncludedFields() { includedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -3505,9 +3541,9 @@ public Builder addIncludedFieldsBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExcludedFieldsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { excludedFields_ = new com.google.protobuf.LazyStringArrayList(excludedFields_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; } } /** @@ -3714,7 +3750,7 @@ public Builder addAllExcludedFields(java.lang.Iterable values) */ public Builder clearExcludedFields() { excludedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -4368,7 +4404,9 @@ public com.google.cloud.aiplatform.v1.BigQueryDestination getBigqueryDestination } public static final int PREDICTIONS_FORMAT_FIELD_NUMBER = 1; - private volatile java.lang.Object predictionsFormat_; + + @SuppressWarnings("serial") + private volatile java.lang.Object predictionsFormat_ = ""; /** * * @@ -4663,6 +4701,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (gcsDestinationBuilder_ != null) { gcsDestinationBuilder_.clear(); } @@ -4670,7 +4709,6 @@ public Builder clear() { bigqueryDestinationBuilder_.clear(); } predictionsFormat_ = ""; - destinationCase_ = 0; destination_ = null; return this; @@ -4701,26 +4739,34 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig build() { public com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig buildPartial() { com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig result = new com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig(this); - if (destinationCase_ == 2) { - if (gcsDestinationBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = gcsDestinationBuilder_.build(); - } - } - if (destinationCase_ == 3) { - if (bigqueryDestinationBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = bigqueryDestinationBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - result.predictionsFormat_ = predictionsFormat_; - result.destinationCase_ = destinationCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.predictionsFormat_ = predictionsFormat_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + if (destinationCase_ == 2 && gcsDestinationBuilder_ != null) { + result.destination_ = gcsDestinationBuilder_.build(); + } + if (destinationCase_ == 3 && bigqueryDestinationBuilder_ != null) { + result.destination_ = bigqueryDestinationBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -4773,6 +4819,7 @@ public Builder mergeFrom( return this; if (!other.getPredictionsFormat().isEmpty()) { predictionsFormat_ = other.predictionsFormat_; + bitField0_ |= 0x00000004; onChanged(); } switch (other.getDestinationCase()) { @@ -4820,7 +4867,7 @@ public Builder mergeFrom( case 10: { predictionsFormat_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 10 case 18: @@ -4868,6 +4915,8 @@ public Builder clearDestination() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GcsDestination, com.google.cloud.aiplatform.v1.GcsDestination.Builder, @@ -5264,7 +5313,6 @@ public com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder getGcsDestinationO } destinationCase_ = 2; onChanged(); - ; return gcsDestinationBuilder_; } @@ -5650,7 +5698,6 @@ public Builder clearBigqueryDestination() { } destinationCase_ = 3; onChanged(); - ; return bigqueryDestinationBuilder_; } @@ -5721,8 +5768,8 @@ public Builder setPredictionsFormat(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - predictionsFormat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -5740,8 +5787,8 @@ public Builder setPredictionsFormat(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPredictionsFormat() { - predictionsFormat_ = getDefaultInstance().getPredictionsFormat(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -5764,8 +5811,8 @@ public Builder setPredictionsFormatBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - predictionsFormat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -6207,7 +6254,9 @@ public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { } public static final int BIGQUERY_OUTPUT_TABLE_FIELD_NUMBER = 4; - private volatile java.lang.Object bigqueryOutputTable_; + + @SuppressWarnings("serial") + private volatile java.lang.Object bigqueryOutputTable_ = ""; /** * * @@ -6498,8 +6547,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; bigqueryOutputTable_ = ""; - outputLocationCase_ = 0; outputLocation_ = null; return this; @@ -6530,18 +6579,28 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo build() { public com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo buildPartial() { com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo result = new com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo(this); - if (outputLocationCase_ == 1) { - result.outputLocation_ = outputLocation_; + if (bitField0_ != 0) { + buildPartial0(result); } - if (outputLocationCase_ == 2) { - result.outputLocation_ = outputLocation_; - } - result.bigqueryOutputTable_ = bigqueryOutputTable_; - result.outputLocationCase_ = outputLocationCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.bigqueryOutputTable_ = bigqueryOutputTable_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo result) { + result.outputLocationCase_ = outputLocationCase_; + result.outputLocation_ = this.outputLocation_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -6593,6 +6652,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchPredictionJob.Outpu return this; if (!other.getBigqueryOutputTable().isEmpty()) { bigqueryOutputTable_ = other.bigqueryOutputTable_; + bitField0_ |= 0x00000004; onChanged(); } switch (other.getOutputLocationCase()) { @@ -6658,7 +6718,7 @@ public Builder mergeFrom( case 34: { bigqueryOutputTable_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 34 default: @@ -6692,6 +6752,8 @@ public Builder clearOutputLocation() { return this; } + private int bitField0_; + /** * * @@ -7054,8 +7116,8 @@ public Builder setBigqueryOutputTable(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bigqueryOutputTable_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -7074,8 +7136,8 @@ public Builder setBigqueryOutputTable(java.lang.String value) { * @return This builder for chaining. */ public Builder clearBigqueryOutputTable() { - bigqueryOutputTable_ = getDefaultInstance().getBigqueryOutputTable(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -7099,8 +7161,8 @@ public Builder setBigqueryOutputTableBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - bigqueryOutputTable_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -7173,7 +7235,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -7222,7 +7286,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -7271,7 +7337,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int MODEL_FIELD_NUMBER = 3; - private volatile java.lang.Object model_; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; /** * * @@ -7332,7 +7400,9 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int MODEL_VERSION_ID_FIELD_NUMBER = 30; - private volatile java.lang.Object modelVersionId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelVersionId_ = ""; /** * * @@ -7437,7 +7507,9 @@ public com.google.cloud.aiplatform.v1.UnmanagedContainerModel getUnmanagedContai @java.lang.Override public com.google.cloud.aiplatform.v1.UnmanagedContainerModelOrBuilder getUnmanagedContainerModelOrBuilder() { - return getUnmanagedContainerModel(); + return unmanagedContainerModel_ == null + ? com.google.cloud.aiplatform.v1.UnmanagedContainerModel.getDefaultInstance() + : unmanagedContainerModel_; } public static final int INPUT_CONFIG_FIELD_NUMBER = 4; @@ -7504,7 +7576,9 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig getInputCon @java.lang.Override public com.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfigOrBuilder getInputConfigOrBuilder() { - return getInputConfig(); + return inputConfig_ == null + ? com.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.getDefaultInstance() + : inputConfig_; } public static final int INSTANCE_CONFIG_FIELD_NUMBER = 27; @@ -7559,7 +7633,9 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig getInsta @java.lang.Override public com.google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfigOrBuilder getInstanceConfigOrBuilder() { - return getInstanceConfig(); + return instanceConfig_ == null + ? com.google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.getDefaultInstance() + : instanceConfig_; } public static final int MODEL_PARAMETERS_FIELD_NUMBER = 5; @@ -7619,7 +7695,9 @@ public com.google.protobuf.Value getModelParameters() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getModelParametersOrBuilder() { - return getModelParameters(); + return modelParameters_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : modelParameters_; } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; @@ -7695,7 +7773,9 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig getOutputC @java.lang.Override public com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfigOrBuilder getOutputConfigOrBuilder() { - return getOutputConfig(); + return outputConfig_ == null + ? com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.getDefaultInstance() + : outputConfig_; } public static final int DEDICATED_RESOURCES_FIELD_NUMBER = 7; @@ -7759,11 +7839,15 @@ public com.google.cloud.aiplatform.v1.BatchDedicatedResources getDedicatedResour @java.lang.Override public com.google.cloud.aiplatform.v1.BatchDedicatedResourcesOrBuilder getDedicatedResourcesOrBuilder() { - return getDedicatedResources(); + return dedicatedResources_ == null + ? com.google.cloud.aiplatform.v1.BatchDedicatedResources.getDefaultInstance() + : dedicatedResources_; } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 29; - private volatile java.lang.Object serviceAccount_; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; /** * * @@ -7883,11 +7967,13 @@ public boolean hasManualBatchTuningParameters() { @java.lang.Override public com.google.cloud.aiplatform.v1.ManualBatchTuningParametersOrBuilder getManualBatchTuningParametersOrBuilder() { - return getManualBatchTuningParameters(); + return manualBatchTuningParameters_ == null + ? com.google.cloud.aiplatform.v1.ManualBatchTuningParameters.getDefaultInstance() + : manualBatchTuningParameters_; } public static final int GENERATE_EXPLANATION_FIELD_NUMBER = 23; - private boolean generateExplanation_; + private boolean generateExplanation_ = false; /** * * @@ -8002,7 +8088,9 @@ public com.google.cloud.aiplatform.v1.ExplanationSpec getExplanationSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ExplanationSpecOrBuilder getExplanationSpecOrBuilder() { - return getExplanationSpec(); + return explanationSpec_ == null + ? com.google.cloud.aiplatform.v1.ExplanationSpec.getDefaultInstance() + : explanationSpec_; } public static final int OUTPUT_INFO_FIELD_NUMBER = 9; @@ -8057,11 +8145,13 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo getOutputInf @java.lang.Override public com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfoOrBuilder getOutputInfoOrBuilder() { - return getOutputInfo(); + return outputInfo_ == null + ? com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo.getDefaultInstance() + : outputInfo_; } public static final int STATE_FIELD_NUMBER = 10; - private int state_; + private int state_ = 0; /** * * @@ -8094,9 +8184,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.JobState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.JobState result = - com.google.cloud.aiplatform.v1.JobState.valueOf(state_); + com.google.cloud.aiplatform.v1.JobState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.JobState.UNRECOGNIZED : result; } @@ -8146,10 +8235,12 @@ public com.google.rpc.Status getError() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return getError(); + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } public static final int PARTIAL_FAILURES_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") private java.util.List partialFailures_; /** * @@ -8306,7 +8397,9 @@ public com.google.cloud.aiplatform.v1.ResourcesConsumed getResourcesConsumed() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ResourcesConsumedOrBuilder getResourcesConsumedOrBuilder() { - return getResourcesConsumed(); + return resourcesConsumed_ == null + ? com.google.cloud.aiplatform.v1.ResourcesConsumed.getDefaultInstance() + : resourcesConsumed_; } public static final int COMPLETION_STATS_FIELD_NUMBER = 14; @@ -8360,7 +8453,9 @@ public com.google.cloud.aiplatform.v1.CompletionStats getCompletionStats() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.CompletionStatsOrBuilder getCompletionStatsOrBuilder() { - return getCompletionStats(); + return completionStats_ == null + ? com.google.cloud.aiplatform.v1.CompletionStats.getDefaultInstance() + : completionStats_; } public static final int CREATE_TIME_FIELD_NUMBER = 15; @@ -8409,7 +8504,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int START_TIME_FIELD_NUMBER = 16; @@ -8461,7 +8556,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 17; @@ -8513,7 +8608,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 18; @@ -8562,7 +8657,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int LABELS_FIELD_NUMBER = 19; @@ -8578,6 +8673,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -8647,7 +8743,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 19; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -8730,7 +8829,9 @@ public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } private byte memoizedIsInitialized = -1; @@ -9280,78 +9381,62 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - model_ = ""; - modelVersionId_ = ""; - - if (unmanagedContainerModelBuilder_ == null) { - unmanagedContainerModel_ = null; - } else { - unmanagedContainerModel_ = null; + unmanagedContainerModel_ = null; + if (unmanagedContainerModelBuilder_ != null) { + unmanagedContainerModelBuilder_.dispose(); unmanagedContainerModelBuilder_ = null; } - if (inputConfigBuilder_ == null) { - inputConfig_ = null; - } else { - inputConfig_ = null; + inputConfig_ = null; + if (inputConfigBuilder_ != null) { + inputConfigBuilder_.dispose(); inputConfigBuilder_ = null; } - if (instanceConfigBuilder_ == null) { - instanceConfig_ = null; - } else { - instanceConfig_ = null; + instanceConfig_ = null; + if (instanceConfigBuilder_ != null) { + instanceConfigBuilder_.dispose(); instanceConfigBuilder_ = null; } - if (modelParametersBuilder_ == null) { - modelParameters_ = null; - } else { - modelParameters_ = null; + modelParameters_ = null; + if (modelParametersBuilder_ != null) { + modelParametersBuilder_.dispose(); modelParametersBuilder_ = null; } - if (outputConfigBuilder_ == null) { - outputConfig_ = null; - } else { - outputConfig_ = null; + outputConfig_ = null; + if (outputConfigBuilder_ != null) { + outputConfigBuilder_.dispose(); outputConfigBuilder_ = null; } - if (dedicatedResourcesBuilder_ == null) { - dedicatedResources_ = null; - } else { - dedicatedResources_ = null; + dedicatedResources_ = null; + if (dedicatedResourcesBuilder_ != null) { + dedicatedResourcesBuilder_.dispose(); dedicatedResourcesBuilder_ = null; } serviceAccount_ = ""; - - if (manualBatchTuningParametersBuilder_ == null) { - manualBatchTuningParameters_ = null; - } else { - manualBatchTuningParameters_ = null; + manualBatchTuningParameters_ = null; + if (manualBatchTuningParametersBuilder_ != null) { + manualBatchTuningParametersBuilder_.dispose(); manualBatchTuningParametersBuilder_ = null; } generateExplanation_ = false; - - if (explanationSpecBuilder_ == null) { - explanationSpec_ = null; - } else { - explanationSpec_ = null; + explanationSpec_ = null; + if (explanationSpecBuilder_ != null) { + explanationSpecBuilder_.dispose(); explanationSpecBuilder_ = null; } - if (outputInfoBuilder_ == null) { - outputInfo_ = null; - } else { - outputInfo_ = null; + outputInfo_ = null; + if (outputInfoBuilder_ != null) { + outputInfoBuilder_.dispose(); outputInfoBuilder_ = null; } state_ = 0; - - if (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } if (partialFailuresBuilder_ == null) { @@ -9360,48 +9445,41 @@ public Builder clear() { partialFailures_ = null; partialFailuresBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (resourcesConsumedBuilder_ == null) { - resourcesConsumed_ = null; - } else { - resourcesConsumed_ = null; + bitField0_ = (bitField0_ & ~0x00020000); + resourcesConsumed_ = null; + if (resourcesConsumedBuilder_ != null) { + resourcesConsumedBuilder_.dispose(); resourcesConsumedBuilder_ = null; } - if (completionStatsBuilder_ == null) { - completionStats_ = null; - } else { - completionStats_ = null; + completionStats_ = null; + if (completionStatsBuilder_ != null) { + completionStatsBuilder_.dispose(); completionStatsBuilder_ = null; } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } return this; @@ -9431,112 +9509,124 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJob build() { public com.google.cloud.aiplatform.v1.BatchPredictionJob buildPartial() { com.google.cloud.aiplatform.v1.BatchPredictionJob result = new com.google.cloud.aiplatform.v1.BatchPredictionJob(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.model_ = model_; - result.modelVersionId_ = modelVersionId_; - if (unmanagedContainerModelBuilder_ == null) { - result.unmanagedContainerModel_ = unmanagedContainerModel_; - } else { - result.unmanagedContainerModel_ = unmanagedContainerModelBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - if (inputConfigBuilder_ == null) { - result.inputConfig_ = inputConfig_; + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.BatchPredictionJob result) { + if (partialFailuresBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0)) { + partialFailures_ = java.util.Collections.unmodifiableList(partialFailures_); + bitField0_ = (bitField0_ & ~0x00020000); + } + result.partialFailures_ = partialFailures_; } else { - result.inputConfig_ = inputConfigBuilder_.build(); + result.partialFailures_ = partialFailuresBuilder_.build(); } - if (instanceConfigBuilder_ == null) { - result.instanceConfig_ = instanceConfig_; - } else { - result.instanceConfig_ = instanceConfigBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.BatchPredictionJob result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (modelParametersBuilder_ == null) { - result.modelParameters_ = modelParameters_; - } else { - result.modelParameters_ = modelParametersBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (outputConfigBuilder_ == null) { - result.outputConfig_ = outputConfig_; - } else { - result.outputConfig_ = outputConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.model_ = model_; } - if (dedicatedResourcesBuilder_ == null) { - result.dedicatedResources_ = dedicatedResources_; - } else { - result.dedicatedResources_ = dedicatedResourcesBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.modelVersionId_ = modelVersionId_; } - result.serviceAccount_ = serviceAccount_; - if (manualBatchTuningParametersBuilder_ == null) { - result.manualBatchTuningParameters_ = manualBatchTuningParameters_; - } else { - result.manualBatchTuningParameters_ = manualBatchTuningParametersBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.unmanagedContainerModel_ = + unmanagedContainerModelBuilder_ == null + ? unmanagedContainerModel_ + : unmanagedContainerModelBuilder_.build(); } - result.generateExplanation_ = generateExplanation_; - if (explanationSpecBuilder_ == null) { - result.explanationSpec_ = explanationSpec_; - } else { - result.explanationSpec_ = explanationSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.inputConfig_ = + inputConfigBuilder_ == null ? inputConfig_ : inputConfigBuilder_.build(); } - if (outputInfoBuilder_ == null) { - result.outputInfo_ = outputInfo_; - } else { - result.outputInfo_ = outputInfoBuilder_.build(); + if (((from_bitField0_ & 0x00000040) != 0)) { + result.instanceConfig_ = + instanceConfigBuilder_ == null ? instanceConfig_ : instanceConfigBuilder_.build(); } - result.state_ = state_; - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.build(); + if (((from_bitField0_ & 0x00000080) != 0)) { + result.modelParameters_ = + modelParametersBuilder_ == null ? modelParameters_ : modelParametersBuilder_.build(); } - if (partialFailuresBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - partialFailures_ = java.util.Collections.unmodifiableList(partialFailures_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.partialFailures_ = partialFailures_; - } else { - result.partialFailures_ = partialFailuresBuilder_.build(); + if (((from_bitField0_ & 0x00000100) != 0)) { + result.outputConfig_ = + outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); } - if (resourcesConsumedBuilder_ == null) { - result.resourcesConsumed_ = resourcesConsumed_; - } else { - result.resourcesConsumed_ = resourcesConsumedBuilder_.build(); + if (((from_bitField0_ & 0x00000200) != 0)) { + result.dedicatedResources_ = + dedicatedResourcesBuilder_ == null + ? dedicatedResources_ + : dedicatedResourcesBuilder_.build(); } - if (completionStatsBuilder_ == null) { - result.completionStats_ = completionStats_; - } else { - result.completionStats_ = completionStatsBuilder_.build(); + if (((from_bitField0_ & 0x00000400) != 0)) { + result.serviceAccount_ = serviceAccount_; } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000800) != 0)) { + result.manualBatchTuningParameters_ = + manualBatchTuningParametersBuilder_ == null + ? manualBatchTuningParameters_ + : manualBatchTuningParametersBuilder_.build(); } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + if (((from_bitField0_ & 0x00001000) != 0)) { + result.generateExplanation_ = generateExplanation_; } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (((from_bitField0_ & 0x00002000) != 0)) { + result.explanationSpec_ = + explanationSpecBuilder_ == null ? explanationSpec_ : explanationSpecBuilder_.build(); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00004000) != 0)) { + result.outputInfo_ = outputInfoBuilder_ == null ? outputInfo_ : outputInfoBuilder_.build(); } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00008000) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.resourcesConsumed_ = + resourcesConsumedBuilder_ == null + ? resourcesConsumed_ + : resourcesConsumedBuilder_.build(); + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.completionStats_ = + completionStatsBuilder_ == null ? completionStats_ : completionStatsBuilder_.build(); + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -9587,18 +9677,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchPredictionJob other return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getModel().isEmpty()) { model_ = other.model_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getModelVersionId().isEmpty()) { modelVersionId_ = other.modelVersionId_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasUnmanagedContainerModel()) { @@ -9621,6 +9715,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchPredictionJob other } if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00000400; onChanged(); } if (other.hasManualBatchTuningParameters()) { @@ -9645,7 +9740,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchPredictionJob other if (!other.partialFailures_.isEmpty()) { if (partialFailures_.isEmpty()) { partialFailures_ = other.partialFailures_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00020000); } else { ensurePartialFailuresIsMutable(); partialFailures_.addAll(other.partialFailures_); @@ -9658,7 +9753,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchPredictionJob other partialFailuresBuilder_.dispose(); partialFailuresBuilder_ = null; partialFailures_ = other.partialFailures_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00020000); partialFailuresBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPartialFailuresFieldBuilder() @@ -9687,6 +9782,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchPredictionJob other mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x01000000; if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } @@ -9719,69 +9815,69 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { model_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getInputConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 34 case 42: { input.readMessage(getModelParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 42 case 50: { input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 50 case 58: { input.readMessage( getDedicatedResourcesFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 58 case 66: { input.readMessage( getManualBatchTuningParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000800; break; } // case 66 case 74: { input.readMessage(getOutputInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00004000; break; } // case 74 case 80: { state_ = input.readEnum(); - + bitField0_ |= 0x00008000; break; } // case 80 case 90: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00010000; break; } // case 90 case 98: @@ -9800,37 +9896,37 @@ public Builder mergeFrom( { input.readMessage( getResourcesConsumedFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00040000; break; } // case 106 case 114: { input.readMessage(getCompletionStatsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00080000; break; } // case 114 case 122: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00100000; break; } // case 122 case 130: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00200000; break; } // case 130 case 138: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00400000; break; } // case 138 case 146: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00800000; break; } // case 146 case 154: @@ -9842,49 +9938,50 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x01000000; break; } // case 154 case 184: { generateExplanation_ = input.readBool(); - + bitField0_ |= 0x00001000; break; } // case 184 case 194: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x02000000; break; } // case 194 case 202: { input.readMessage(getExplanationSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00002000; break; } // case 202 case 218: { input.readMessage(getInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 218 case 226: { input.readMessage( getUnmanagedContainerModelFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 226 case 234: { serviceAccount_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000400; break; } // case 234 case 242: { modelVersionId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 242 default: @@ -9967,8 +10064,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -9984,8 +10081,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -10006,8 +10103,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -10073,8 +10170,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -10090,8 +10187,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -10112,8 +10209,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -10197,8 +10294,8 @@ public Builder setModel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - model_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -10220,8 +10317,8 @@ public Builder setModel(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModel() { - model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -10248,8 +10345,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - model_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -10318,8 +10415,8 @@ public Builder setModelVersionId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelVersionId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -10336,8 +10433,8 @@ public Builder setModelVersionId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelVersionId() { - modelVersionId_ = getDefaultInstance().getModelVersionId(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -10359,8 +10456,8 @@ public Builder setModelVersionIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelVersionId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -10386,7 +10483,7 @@ public Builder setModelVersionIdBytes(com.google.protobuf.ByteString value) { * @return Whether the unmanagedContainerModel field is set. */ public boolean hasUnmanagedContainerModel() { - return unmanagedContainerModelBuilder_ != null || unmanagedContainerModel_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -10430,11 +10527,11 @@ public Builder setUnmanagedContainerModel( throw new NullPointerException(); } unmanagedContainerModel_ = value; - onChanged(); } else { unmanagedContainerModelBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -10453,11 +10550,11 @@ public Builder setUnmanagedContainerModel( com.google.cloud.aiplatform.v1.UnmanagedContainerModel.Builder builderForValue) { if (unmanagedContainerModelBuilder_ == null) { unmanagedContainerModel_ = builderForValue.build(); - onChanged(); } else { unmanagedContainerModelBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -10475,20 +10572,19 @@ public Builder setUnmanagedContainerModel( public Builder mergeUnmanagedContainerModel( com.google.cloud.aiplatform.v1.UnmanagedContainerModel value) { if (unmanagedContainerModelBuilder_ == null) { - if (unmanagedContainerModel_ != null) { - unmanagedContainerModel_ = - com.google.cloud.aiplatform.v1.UnmanagedContainerModel.newBuilder( - unmanagedContainerModel_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && unmanagedContainerModel_ != null + && unmanagedContainerModel_ + != com.google.cloud.aiplatform.v1.UnmanagedContainerModel.getDefaultInstance()) { + getUnmanagedContainerModelBuilder().mergeFrom(value); } else { unmanagedContainerModel_ = value; } - onChanged(); } else { unmanagedContainerModelBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -10504,14 +10600,13 @@ public Builder mergeUnmanagedContainerModel( * */ public Builder clearUnmanagedContainerModel() { - if (unmanagedContainerModelBuilder_ == null) { - unmanagedContainerModel_ = null; - onChanged(); - } else { - unmanagedContainerModel_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + unmanagedContainerModel_ = null; + if (unmanagedContainerModelBuilder_ != null) { + unmanagedContainerModelBuilder_.dispose(); unmanagedContainerModelBuilder_ = null; } - + onChanged(); return this; } /** @@ -10528,7 +10623,7 @@ public Builder clearUnmanagedContainerModel() { */ public com.google.cloud.aiplatform.v1.UnmanagedContainerModel.Builder getUnmanagedContainerModelBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getUnmanagedContainerModelFieldBuilder().getBuilder(); } @@ -10607,7 +10702,7 @@ public Builder clearUnmanagedContainerModel() { * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { - return inputConfigBuilder_ != null || inputConfig_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -10657,11 +10752,11 @@ public Builder setInputConfig( throw new NullPointerException(); } inputConfig_ = value; - onChanged(); } else { inputConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -10683,11 +10778,11 @@ public Builder setInputConfig( com.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.Builder builderForValue) { if (inputConfigBuilder_ == null) { inputConfig_ = builderForValue.build(); - onChanged(); } else { inputConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -10708,19 +10803,20 @@ public Builder setInputConfig( public Builder mergeInputConfig( com.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig value) { if (inputConfigBuilder_ == null) { - if (inputConfig_ != null) { - inputConfig_ = - com.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && inputConfig_ != null + && inputConfig_ + != com.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig + .getDefaultInstance()) { + getInputConfigBuilder().mergeFrom(value); } else { inputConfig_ = value; } - onChanged(); } else { inputConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -10739,14 +10835,13 @@ public Builder mergeInputConfig( * */ public Builder clearInputConfig() { - if (inputConfigBuilder_ == null) { - inputConfig_ = null; - onChanged(); - } else { - inputConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + inputConfig_ = null; + if (inputConfigBuilder_ != null) { + inputConfigBuilder_.dispose(); inputConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -10766,7 +10861,7 @@ public Builder clearInputConfig() { */ public com.google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.Builder getInputConfigBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getInputConfigFieldBuilder().getBuilder(); } @@ -10847,7 +10942,7 @@ public Builder clearInputConfig() { * @return Whether the instanceConfig field is set. */ public boolean hasInstanceConfig() { - return instanceConfigBuilder_ != null || instanceConfig_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -10889,11 +10984,11 @@ public Builder setInstanceConfig( throw new NullPointerException(); } instanceConfig_ = value; - onChanged(); } else { instanceConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -10911,11 +11006,11 @@ public Builder setInstanceConfig( com.google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.Builder builderForValue) { if (instanceConfigBuilder_ == null) { instanceConfig_ = builderForValue.build(); - onChanged(); } else { instanceConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -10932,20 +11027,20 @@ public Builder setInstanceConfig( public Builder mergeInstanceConfig( com.google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig value) { if (instanceConfigBuilder_ == null) { - if (instanceConfig_ != null) { - instanceConfig_ = - com.google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.newBuilder( - instanceConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && instanceConfig_ != null + && instanceConfig_ + != com.google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig + .getDefaultInstance()) { + getInstanceConfigBuilder().mergeFrom(value); } else { instanceConfig_ = value; } - onChanged(); } else { instanceConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -10960,14 +11055,13 @@ public Builder mergeInstanceConfig( * */ public Builder clearInstanceConfig() { - if (instanceConfigBuilder_ == null) { - instanceConfig_ = null; - onChanged(); - } else { - instanceConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + instanceConfig_ = null; + if (instanceConfigBuilder_ != null) { + instanceConfigBuilder_.dispose(); instanceConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -10983,7 +11077,7 @@ public Builder clearInstanceConfig() { */ public com.google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.Builder getInstanceConfigBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getInstanceConfigFieldBuilder().getBuilder(); } @@ -11058,7 +11152,7 @@ public Builder clearInstanceConfig() { * @return Whether the modelParameters field is set. */ public boolean hasModelParameters() { - return modelParametersBuilder_ != null || modelParameters_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -11103,11 +11197,11 @@ public Builder setModelParameters(com.google.protobuf.Value value) { throw new NullPointerException(); } modelParameters_ = value; - onChanged(); } else { modelParametersBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -11126,11 +11220,11 @@ public Builder setModelParameters(com.google.protobuf.Value value) { public Builder setModelParameters(com.google.protobuf.Value.Builder builderForValue) { if (modelParametersBuilder_ == null) { modelParameters_ = builderForValue.build(); - onChanged(); } else { modelParametersBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -11148,19 +11242,18 @@ public Builder setModelParameters(com.google.protobuf.Value.Builder builderForVa */ public Builder mergeModelParameters(com.google.protobuf.Value value) { if (modelParametersBuilder_ == null) { - if (modelParameters_ != null) { - modelParameters_ = - com.google.protobuf.Value.newBuilder(modelParameters_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && modelParameters_ != null + && modelParameters_ != com.google.protobuf.Value.getDefaultInstance()) { + getModelParametersBuilder().mergeFrom(value); } else { modelParameters_ = value; } - onChanged(); } else { modelParametersBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -11177,14 +11270,13 @@ public Builder mergeModelParameters(com.google.protobuf.Value value) { * .google.protobuf.Value model_parameters = 5; */ public Builder clearModelParameters() { - if (modelParametersBuilder_ == null) { - modelParameters_ = null; - onChanged(); - } else { - modelParameters_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + modelParameters_ = null; + if (modelParametersBuilder_ != null) { + modelParametersBuilder_.dispose(); modelParametersBuilder_ = null; } - + onChanged(); return this; } /** @@ -11201,7 +11293,7 @@ public Builder clearModelParameters() { * .google.protobuf.Value model_parameters = 5; */ public com.google.protobuf.Value.Builder getModelParametersBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getModelParametersFieldBuilder().getBuilder(); } @@ -11284,7 +11376,7 @@ public com.google.protobuf.ValueOrBuilder getModelParametersOrBuilder() { * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { - return outputConfigBuilder_ != null || outputConfig_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -11340,11 +11432,11 @@ public Builder setOutputConfig( throw new NullPointerException(); } outputConfig_ = value; - onChanged(); } else { outputConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -11369,11 +11461,11 @@ public Builder setOutputConfig( com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.Builder builderForValue) { if (outputConfigBuilder_ == null) { outputConfig_ = builderForValue.build(); - onChanged(); } else { outputConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -11397,20 +11489,20 @@ public Builder setOutputConfig( public Builder mergeOutputConfig( com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig value) { if (outputConfigBuilder_ == null) { - if (outputConfig_ != null) { - outputConfig_ = - com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.newBuilder( - outputConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig + .getDefaultInstance()) { + getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; } - onChanged(); } else { outputConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -11432,14 +11524,13 @@ public Builder mergeOutputConfig( * */ public Builder clearOutputConfig() { - if (outputConfigBuilder_ == null) { - outputConfig_ = null; - onChanged(); - } else { - outputConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + outputConfig_ = null; + if (outputConfigBuilder_ != null) { + outputConfigBuilder_.dispose(); outputConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -11462,7 +11553,7 @@ public Builder clearOutputConfig() { */ public com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.Builder getOutputConfigBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } @@ -11552,7 +11643,7 @@ public Builder clearOutputConfig() { * @return Whether the dedicatedResources field is set. */ public boolean hasDedicatedResources() { - return dedicatedResourcesBuilder_ != null || dedicatedResources_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -11600,11 +11691,11 @@ public Builder setDedicatedResources( throw new NullPointerException(); } dedicatedResources_ = value; - onChanged(); } else { dedicatedResourcesBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -11625,11 +11716,11 @@ public Builder setDedicatedResources( com.google.cloud.aiplatform.v1.BatchDedicatedResources.Builder builderForValue) { if (dedicatedResourcesBuilder_ == null) { dedicatedResources_ = builderForValue.build(); - onChanged(); } else { dedicatedResourcesBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -11649,19 +11740,19 @@ public Builder setDedicatedResources( public Builder mergeDedicatedResources( com.google.cloud.aiplatform.v1.BatchDedicatedResources value) { if (dedicatedResourcesBuilder_ == null) { - if (dedicatedResources_ != null) { - dedicatedResources_ = - com.google.cloud.aiplatform.v1.BatchDedicatedResources.newBuilder(dedicatedResources_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && dedicatedResources_ != null + && dedicatedResources_ + != com.google.cloud.aiplatform.v1.BatchDedicatedResources.getDefaultInstance()) { + getDedicatedResourcesBuilder().mergeFrom(value); } else { dedicatedResources_ = value; } - onChanged(); } else { dedicatedResourcesBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -11679,14 +11770,13 @@ public Builder mergeDedicatedResources( * .google.cloud.aiplatform.v1.BatchDedicatedResources dedicated_resources = 7; */ public Builder clearDedicatedResources() { - if (dedicatedResourcesBuilder_ == null) { - dedicatedResources_ = null; - onChanged(); - } else { - dedicatedResources_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + dedicatedResources_ = null; + if (dedicatedResourcesBuilder_ != null) { + dedicatedResourcesBuilder_.dispose(); dedicatedResourcesBuilder_ = null; } - + onChanged(); return this; } /** @@ -11705,7 +11795,7 @@ public Builder clearDedicatedResources() { */ public com.google.cloud.aiplatform.v1.BatchDedicatedResources.Builder getDedicatedResourcesBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getDedicatedResourcesFieldBuilder().getBuilder(); } @@ -11840,8 +11930,8 @@ public Builder setServiceAccount(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - serviceAccount_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -11862,8 +11952,8 @@ public Builder setServiceAccount(java.lang.String value) { * @return This builder for chaining. */ public Builder clearServiceAccount() { - serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -11889,8 +11979,8 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - serviceAccount_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -11918,7 +12008,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { * @return Whether the manualBatchTuningParameters field is set. */ public boolean hasManualBatchTuningParameters() { - return manualBatchTuningParametersBuilder_ != null || manualBatchTuningParameters_ != null; + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -11967,11 +12057,11 @@ public Builder setManualBatchTuningParameters( throw new NullPointerException(); } manualBatchTuningParameters_ = value; - onChanged(); } else { manualBatchTuningParametersBuilder_.setMessage(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -11992,11 +12082,11 @@ public Builder setManualBatchTuningParameters( com.google.cloud.aiplatform.v1.ManualBatchTuningParameters.Builder builderForValue) { if (manualBatchTuningParametersBuilder_ == null) { manualBatchTuningParameters_ = builderForValue.build(); - onChanged(); } else { manualBatchTuningParametersBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -12016,20 +12106,20 @@ public Builder setManualBatchTuningParameters( public Builder mergeManualBatchTuningParameters( com.google.cloud.aiplatform.v1.ManualBatchTuningParameters value) { if (manualBatchTuningParametersBuilder_ == null) { - if (manualBatchTuningParameters_ != null) { - manualBatchTuningParameters_ = - com.google.cloud.aiplatform.v1.ManualBatchTuningParameters.newBuilder( - manualBatchTuningParameters_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000800) != 0) + && manualBatchTuningParameters_ != null + && manualBatchTuningParameters_ + != com.google.cloud.aiplatform.v1.ManualBatchTuningParameters + .getDefaultInstance()) { + getManualBatchTuningParametersBuilder().mergeFrom(value); } else { manualBatchTuningParameters_ = value; } - onChanged(); } else { manualBatchTuningParametersBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -12047,14 +12137,13 @@ public Builder mergeManualBatchTuningParameters( * */ public Builder clearManualBatchTuningParameters() { - if (manualBatchTuningParametersBuilder_ == null) { - manualBatchTuningParameters_ = null; - onChanged(); - } else { - manualBatchTuningParameters_ = null; + bitField0_ = (bitField0_ & ~0x00000800); + manualBatchTuningParameters_ = null; + if (manualBatchTuningParametersBuilder_ != null) { + manualBatchTuningParametersBuilder_.dispose(); manualBatchTuningParametersBuilder_ = null; } - + onChanged(); return this; } /** @@ -12073,7 +12162,7 @@ public Builder clearManualBatchTuningParameters() { */ public com.google.cloud.aiplatform.v1.ManualBatchTuningParameters.Builder getManualBatchTuningParametersBuilder() { - + bitField0_ |= 0x00000800; onChanged(); return getManualBatchTuningParametersFieldBuilder().getBuilder(); } @@ -12197,6 +12286,7 @@ public boolean getGenerateExplanation() { public Builder setGenerateExplanation(boolean value) { generateExplanation_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -12229,7 +12319,7 @@ public Builder setGenerateExplanation(boolean value) { * @return This builder for chaining. */ public Builder clearGenerateExplanation() { - + bitField0_ = (bitField0_ & ~0x00001000); generateExplanation_ = false; onChanged(); return this; @@ -12265,7 +12355,7 @@ public Builder clearGenerateExplanation() { * @return Whether the explanationSpec field is set. */ public boolean hasExplanationSpec() { - return explanationSpecBuilder_ != null || explanationSpec_ != null; + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -12326,11 +12416,11 @@ public Builder setExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSpec throw new NullPointerException(); } explanationSpec_ = value; - onChanged(); } else { explanationSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -12358,11 +12448,11 @@ public Builder setExplanationSpec( com.google.cloud.aiplatform.v1.ExplanationSpec.Builder builderForValue) { if (explanationSpecBuilder_ == null) { explanationSpec_ = builderForValue.build(); - onChanged(); } else { explanationSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -12388,19 +12478,19 @@ public Builder setExplanationSpec( */ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSpec value) { if (explanationSpecBuilder_ == null) { - if (explanationSpec_ != null) { - explanationSpec_ = - com.google.cloud.aiplatform.v1.ExplanationSpec.newBuilder(explanationSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00002000) != 0) + && explanationSpec_ != null + && explanationSpec_ + != com.google.cloud.aiplatform.v1.ExplanationSpec.getDefaultInstance()) { + getExplanationSpecBuilder().mergeFrom(value); } else { explanationSpec_ = value; } - onChanged(); } else { explanationSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -12425,14 +12515,13 @@ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSp * .google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 25; */ public Builder clearExplanationSpec() { - if (explanationSpecBuilder_ == null) { - explanationSpec_ = null; - onChanged(); - } else { - explanationSpec_ = null; + bitField0_ = (bitField0_ & ~0x00002000); + explanationSpec_ = null; + if (explanationSpecBuilder_ != null) { + explanationSpecBuilder_.dispose(); explanationSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -12457,7 +12546,7 @@ public Builder clearExplanationSpec() { * .google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 25; */ public com.google.cloud.aiplatform.v1.ExplanationSpec.Builder getExplanationSpecBuilder() { - + bitField0_ |= 0x00002000; onChanged(); return getExplanationSpecFieldBuilder().getBuilder(); } @@ -12549,7 +12638,7 @@ public com.google.cloud.aiplatform.v1.ExplanationSpecOrBuilder getExplanationSpe * @return Whether the outputInfo field is set. */ public boolean hasOutputInfo() { - return outputInfoBuilder_ != null || outputInfo_ != null; + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -12591,11 +12680,11 @@ public Builder setOutputInfo( throw new NullPointerException(); } outputInfo_ = value; - onChanged(); } else { outputInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -12613,11 +12702,11 @@ public Builder setOutputInfo( com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo.Builder builderForValue) { if (outputInfoBuilder_ == null) { outputInfo_ = builderForValue.build(); - onChanged(); } else { outputInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -12634,19 +12723,20 @@ public Builder setOutputInfo( public Builder mergeOutputInfo( com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo value) { if (outputInfoBuilder_ == null) { - if (outputInfo_ != null) { - outputInfo_ = - com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo.newBuilder(outputInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00004000) != 0) + && outputInfo_ != null + && outputInfo_ + != com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo + .getDefaultInstance()) { + getOutputInfoBuilder().mergeFrom(value); } else { outputInfo_ = value; } - onChanged(); } else { outputInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -12661,14 +12751,13 @@ public Builder mergeOutputInfo( * */ public Builder clearOutputInfo() { - if (outputInfoBuilder_ == null) { - outputInfo_ = null; - onChanged(); - } else { - outputInfo_ = null; + bitField0_ = (bitField0_ & ~0x00004000); + outputInfo_ = null; + if (outputInfoBuilder_ != null) { + outputInfoBuilder_.dispose(); outputInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -12684,7 +12773,7 @@ public Builder clearOutputInfo() { */ public com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo.Builder getOutputInfoBuilder() { - + bitField0_ |= 0x00004000; onChanged(); return getOutputInfoFieldBuilder().getBuilder(); } @@ -12770,8 +12859,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -12790,9 +12879,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.JobState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.JobState result = - com.google.cloud.aiplatform.v1.JobState.valueOf(state_); + com.google.cloud.aiplatform.v1.JobState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.JobState.UNRECOGNIZED : result; } /** @@ -12813,7 +12901,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.JobState value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00008000; state_ = value.getNumber(); onChanged(); return this; @@ -12832,7 +12920,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.JobState value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00008000); state_ = 0; onChanged(); return this; @@ -12855,7 +12943,7 @@ public Builder clearState() { * @return Whether the error field is set. */ public boolean hasError() { - return errorBuilder_ != null || error_ != null; + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -12892,11 +12980,11 @@ public Builder setError(com.google.rpc.Status value) { throw new NullPointerException(); } error_ = value; - onChanged(); } else { errorBuilder_.setMessage(value); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -12912,11 +13000,11 @@ public Builder setError(com.google.rpc.Status value) { public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); - onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -12931,16 +13019,18 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (error_ != null) { - error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00010000) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); } else { error_ = value; } - onChanged(); } else { errorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -12954,14 +13044,13 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; + bitField0_ = (bitField0_ & ~0x00010000); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } - + onChanged(); return this; } /** @@ -12975,7 +13064,7 @@ public Builder clearError() { * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + bitField0_ |= 0x00010000; onChanged(); return getErrorFieldBuilder().getBuilder(); } @@ -13024,9 +13113,9 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { java.util.Collections.emptyList(); private void ensurePartialFailuresIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00020000) != 0)) { partialFailures_ = new java.util.ArrayList(partialFailures_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00020000; } } @@ -13292,7 +13381,7 @@ public Builder addAllPartialFailures( public Builder clearPartialFailures() { if (partialFailuresBuilder_ == null) { partialFailures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); } else { partialFailuresBuilder_.clear(); @@ -13447,7 +13536,7 @@ public java.util.List getPartialFailuresBuilderLi com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( partialFailures_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00020000) != 0), getParentForChildren(), isClean()); partialFailures_ = null; @@ -13479,7 +13568,7 @@ public java.util.List getPartialFailuresBuilderLi * @return Whether the resourcesConsumed field is set. */ public boolean hasResourcesConsumed() { - return resourcesConsumedBuilder_ != null || resourcesConsumed_ != null; + return ((bitField0_ & 0x00040000) != 0); } /** * @@ -13528,11 +13617,11 @@ public Builder setResourcesConsumed(com.google.cloud.aiplatform.v1.ResourcesCons throw new NullPointerException(); } resourcesConsumed_ = value; - onChanged(); } else { resourcesConsumedBuilder_.setMessage(value); } - + bitField0_ |= 0x00040000; + onChanged(); return this; } /** @@ -13554,11 +13643,11 @@ public Builder setResourcesConsumed( com.google.cloud.aiplatform.v1.ResourcesConsumed.Builder builderForValue) { if (resourcesConsumedBuilder_ == null) { resourcesConsumed_ = builderForValue.build(); - onChanged(); } else { resourcesConsumedBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00040000; + onChanged(); return this; } /** @@ -13578,19 +13667,19 @@ public Builder setResourcesConsumed( */ public Builder mergeResourcesConsumed(com.google.cloud.aiplatform.v1.ResourcesConsumed value) { if (resourcesConsumedBuilder_ == null) { - if (resourcesConsumed_ != null) { - resourcesConsumed_ = - com.google.cloud.aiplatform.v1.ResourcesConsumed.newBuilder(resourcesConsumed_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00040000) != 0) + && resourcesConsumed_ != null + && resourcesConsumed_ + != com.google.cloud.aiplatform.v1.ResourcesConsumed.getDefaultInstance()) { + getResourcesConsumedBuilder().mergeFrom(value); } else { resourcesConsumed_ = value; } - onChanged(); } else { resourcesConsumedBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00040000; + onChanged(); return this; } /** @@ -13609,14 +13698,13 @@ public Builder mergeResourcesConsumed(com.google.cloud.aiplatform.v1.ResourcesCo * */ public Builder clearResourcesConsumed() { - if (resourcesConsumedBuilder_ == null) { - resourcesConsumed_ = null; - onChanged(); - } else { - resourcesConsumed_ = null; + bitField0_ = (bitField0_ & ~0x00040000); + resourcesConsumed_ = null; + if (resourcesConsumedBuilder_ != null) { + resourcesConsumedBuilder_.dispose(); resourcesConsumedBuilder_ = null; } - + onChanged(); return this; } /** @@ -13635,7 +13723,7 @@ public Builder clearResourcesConsumed() { * */ public com.google.cloud.aiplatform.v1.ResourcesConsumed.Builder getResourcesConsumedBuilder() { - + bitField0_ |= 0x00040000; onChanged(); return getResourcesConsumedFieldBuilder().getBuilder(); } @@ -13716,7 +13804,7 @@ public com.google.cloud.aiplatform.v1.ResourcesConsumed.Builder getResourcesCons * @return Whether the completionStats field is set. */ public boolean hasCompletionStats() { - return completionStatsBuilder_ != null || completionStats_ != null; + return ((bitField0_ & 0x00080000) != 0); } /** * @@ -13757,11 +13845,11 @@ public Builder setCompletionStats(com.google.cloud.aiplatform.v1.CompletionStats throw new NullPointerException(); } completionStats_ = value; - onChanged(); } else { completionStatsBuilder_.setMessage(value); } - + bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -13779,11 +13867,11 @@ public Builder setCompletionStats( com.google.cloud.aiplatform.v1.CompletionStats.Builder builderForValue) { if (completionStatsBuilder_ == null) { completionStats_ = builderForValue.build(); - onChanged(); } else { completionStatsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -13799,19 +13887,19 @@ public Builder setCompletionStats( */ public Builder mergeCompletionStats(com.google.cloud.aiplatform.v1.CompletionStats value) { if (completionStatsBuilder_ == null) { - if (completionStats_ != null) { - completionStats_ = - com.google.cloud.aiplatform.v1.CompletionStats.newBuilder(completionStats_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00080000) != 0) + && completionStats_ != null + && completionStats_ + != com.google.cloud.aiplatform.v1.CompletionStats.getDefaultInstance()) { + getCompletionStatsBuilder().mergeFrom(value); } else { completionStats_ = value; } - onChanged(); } else { completionStatsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -13826,14 +13914,13 @@ public Builder mergeCompletionStats(com.google.cloud.aiplatform.v1.CompletionSta * */ public Builder clearCompletionStats() { - if (completionStatsBuilder_ == null) { - completionStats_ = null; - onChanged(); - } else { - completionStats_ = null; + bitField0_ = (bitField0_ & ~0x00080000); + completionStats_ = null; + if (completionStatsBuilder_ != null) { + completionStatsBuilder_.dispose(); completionStatsBuilder_ = null; } - + onChanged(); return this; } /** @@ -13848,7 +13935,7 @@ public Builder clearCompletionStats() { * */ public com.google.cloud.aiplatform.v1.CompletionStats.Builder getCompletionStatsBuilder() { - + bitField0_ |= 0x00080000; onChanged(); return getCompletionStatsFieldBuilder().getBuilder(); } @@ -13920,7 +14007,7 @@ public com.google.cloud.aiplatform.v1.CompletionStatsOrBuilder getCompletionStat * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00100000) != 0); } /** * @@ -13961,11 +14048,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00100000; + onChanged(); return this; } /** @@ -13982,11 +14069,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00100000; + onChanged(); return this; } /** @@ -14002,17 +14089,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00100000) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00100000; + onChanged(); return this; } /** @@ -14027,14 +14115,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00100000); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -14049,7 +14136,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00100000; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -14122,7 +14209,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00200000) != 0); } /** * @@ -14163,11 +14250,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00200000; + onChanged(); return this; } /** @@ -14185,11 +14272,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00200000; + onChanged(); return this; } /** @@ -14206,17 +14293,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00200000) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00200000; + onChanged(); return this; } /** @@ -14232,14 +14320,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00200000); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -14255,7 +14342,7 @@ public Builder clearStartTime() { * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00200000; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -14327,7 +14414,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00400000) != 0); } /** * @@ -14366,11 +14453,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00400000; + onChanged(); return this; } /** @@ -14387,11 +14474,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00400000; + onChanged(); return this; } /** @@ -14407,17 +14494,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00400000) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00400000; + onChanged(); return this; } /** @@ -14432,14 +14520,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00400000); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -14454,7 +14541,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00400000; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -14524,7 +14611,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00800000) != 0); } /** * @@ -14565,11 +14652,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00800000; + onChanged(); return this; } /** @@ -14586,11 +14673,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00800000; + onChanged(); return this; } /** @@ -14606,17 +14693,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00800000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00800000; + onChanged(); return this; } /** @@ -14631,14 +14719,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00800000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -14653,7 +14740,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00800000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -14716,14 +14803,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x01000000; + onChanged(); return labels_; } @@ -14787,8 +14874,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 19; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -14821,6 +14910,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x01000000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -14847,6 +14937,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x01000000; return internalGetMutableLabels().getMutableMap(); } /** @@ -14869,8 +14960,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x01000000; return this; } /** @@ -14888,6 +14979,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x01000000; return this; } @@ -14911,7 +15003,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x02000000) != 0); } /** * @@ -14952,11 +15044,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec v throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x02000000; + onChanged(); return this; } /** @@ -14974,11 +15066,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x02000000; + onChanged(); return this; } /** @@ -14994,19 +15086,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x02000000) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x02000000; + onChanged(); return this; } /** @@ -15021,14 +15113,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 24; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x02000000); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -15043,7 +15134,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 24; */ public com.google.cloud.aiplatform.v1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x02000000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobOrBuilder.java index f2bd70674758..e2de739797cc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobOrBuilder.java @@ -1118,7 +1118,6 @@ public interface BatchPredictionJobOrBuilder * * map<string, string> labels = 19; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadFeatureValuesOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadFeatureValuesOperationMetadata.java index aceb83c2ae4e..a0ada75d71b5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadFeatureValuesOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadFeatureValuesOperationMetadata.java @@ -113,7 +113,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -321,10 +323,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -357,15 +359,22 @@ public com.google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata bu public com.google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata result = new com.google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -447,7 +456,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -467,6 +476,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -485,7 +496,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -523,11 +534,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -543,11 +554,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -562,19 +573,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -587,14 +598,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -608,7 +618,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadFeatureValuesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadFeatureValuesRequest.java index b14eb870b3ee..10dde35b836e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadFeatureValuesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadFeatureValuesRequest.java @@ -155,7 +155,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int FIELD_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object fieldName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldName_ = ""; /** * * @@ -418,8 +420,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; fieldName_ = ""; - return this; } @@ -451,11 +453,21 @@ public com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughF buildPartial() { com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField result = new com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField(this); - result.fieldName_ = fieldName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fieldName_ = fieldName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -512,6 +524,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getFieldName().isEmpty()) { fieldName_ = other.fieldName_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -543,7 +556,7 @@ public Builder mergeFrom( case 10: { fieldName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -563,6 +576,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object fieldName_ = ""; /** * @@ -630,8 +645,8 @@ public Builder setFieldName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - fieldName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -649,8 +664,8 @@ public Builder setFieldName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFieldName() { - fieldName_ = getDefaultInstance().getFieldName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -673,8 +688,8 @@ public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - fieldName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -934,7 +949,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENTITY_TYPE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object entityTypeId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityTypeId_ = ""; /** * * @@ -1042,10 +1059,14 @@ public com.google.cloud.aiplatform.v1.FeatureSelector getFeatureSelector() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.FeatureSelectorOrBuilder getFeatureSelectorOrBuilder() { - return getFeatureSelector(); + return featureSelector_ == null + ? com.google.cloud.aiplatform.v1.FeatureSelector.getDefaultInstance() + : featureSelector_; } public static final int SETTINGS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List settings_; /** * @@ -1352,12 +1373,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; entityTypeId_ = ""; - - if (featureSelectorBuilder_ == null) { - featureSelector_ = null; - } else { - featureSelector_ = null; + featureSelector_ = null; + if (featureSelectorBuilder_ != null) { + featureSelectorBuilder_.dispose(); featureSelectorBuilder_ = null; } if (settingsBuilder_ == null) { @@ -1366,7 +1386,7 @@ public Builder clear() { settings_ = null; settingsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -1398,24 +1418,37 @@ public com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSp buildPartial() { com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec result = new com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec(this); - int from_bitField0_ = bitField0_; - result.entityTypeId_ = entityTypeId_; - if (featureSelectorBuilder_ == null) { - result.featureSelector_ = featureSelector_; - } else { - result.featureSelector_ = featureSelectorBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec result) { if (settingsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { settings_ = java.util.Collections.unmodifiableList(settings_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.settings_ = settings_; } else { result.settings_ = settingsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityTypeId_ = entityTypeId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.featureSelector_ = + featureSelectorBuilder_ == null ? featureSelector_ : featureSelectorBuilder_.build(); + } } @java.lang.Override @@ -1473,6 +1506,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getEntityTypeId().isEmpty()) { entityTypeId_ = other.entityTypeId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasFeatureSelector()) { @@ -1482,7 +1516,7 @@ public Builder mergeFrom( if (!other.settings_.isEmpty()) { if (settings_.isEmpty()) { settings_ = other.settings_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureSettingsIsMutable(); settings_.addAll(other.settings_); @@ -1495,7 +1529,7 @@ public Builder mergeFrom( settingsBuilder_.dispose(); settingsBuilder_ = null; settings_ = other.settings_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); settingsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSettingsFieldBuilder() @@ -1534,14 +1568,14 @@ public Builder mergeFrom( case 10: { entityTypeId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getFeatureSelectorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -1647,8 +1681,8 @@ public Builder setEntityTypeId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityTypeId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1667,8 +1701,8 @@ public Builder setEntityTypeId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityTypeId() { - entityTypeId_ = getDefaultInstance().getEntityTypeId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1692,8 +1726,8 @@ public Builder setEntityTypeIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityTypeId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1719,7 +1753,7 @@ public Builder setEntityTypeIdBytes(com.google.protobuf.ByteString value) { * @return Whether the featureSelector field is set. */ public boolean hasFeatureSelector() { - return featureSelectorBuilder_ != null || featureSelector_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1762,11 +1796,11 @@ public Builder setFeatureSelector(com.google.cloud.aiplatform.v1.FeatureSelector throw new NullPointerException(); } featureSelector_ = value; - onChanged(); } else { featureSelectorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1785,11 +1819,11 @@ public Builder setFeatureSelector( com.google.cloud.aiplatform.v1.FeatureSelector.Builder builderForValue) { if (featureSelectorBuilder_ == null) { featureSelector_ = builderForValue.build(); - onChanged(); } else { featureSelectorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1806,19 +1840,19 @@ public Builder setFeatureSelector( */ public Builder mergeFeatureSelector(com.google.cloud.aiplatform.v1.FeatureSelector value) { if (featureSelectorBuilder_ == null) { - if (featureSelector_ != null) { - featureSelector_ = - com.google.cloud.aiplatform.v1.FeatureSelector.newBuilder(featureSelector_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && featureSelector_ != null + && featureSelector_ + != com.google.cloud.aiplatform.v1.FeatureSelector.getDefaultInstance()) { + getFeatureSelectorBuilder().mergeFrom(value); } else { featureSelector_ = value; } - onChanged(); } else { featureSelectorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1834,14 +1868,13 @@ public Builder mergeFeatureSelector(com.google.cloud.aiplatform.v1.FeatureSelect * */ public Builder clearFeatureSelector() { - if (featureSelectorBuilder_ == null) { - featureSelector_ = null; - onChanged(); - } else { - featureSelector_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + featureSelector_ = null; + if (featureSelectorBuilder_ != null) { + featureSelectorBuilder_.dispose(); featureSelectorBuilder_ = null; } - + onChanged(); return this; } /** @@ -1857,7 +1890,7 @@ public Builder clearFeatureSelector() { * */ public com.google.cloud.aiplatform.v1.FeatureSelector.Builder getFeatureSelectorBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getFeatureSelectorFieldBuilder().getBuilder(); } @@ -1915,11 +1948,11 @@ public com.google.cloud.aiplatform.v1.FeatureSelectorOrBuilder getFeatureSelecto java.util.Collections.emptyList(); private void ensureSettingsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { settings_ = new java.util.ArrayList( settings_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -2141,7 +2174,7 @@ public Builder addAllSettings( public Builder clearSettings() { if (settingsBuilder_ == null) { settings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { settingsBuilder_.clear(); @@ -2270,7 +2303,7 @@ public com.google.cloud.aiplatform.v1.DestinationFeatureSetting.Builder addSetti com.google.cloud.aiplatform.v1.DestinationFeatureSetting, com.google.cloud.aiplatform.v1.DestinationFeatureSetting.Builder, com.google.cloud.aiplatform.v1.DestinationFeatureSettingOrBuilder>( - settings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + settings_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); settings_ = null; } return settingsBuilder_; @@ -2543,7 +2576,9 @@ public com.google.cloud.aiplatform.v1.BigQuerySource getBigqueryReadInstances() } public static final int FEATURESTORE_FIELD_NUMBER = 1; - private volatile java.lang.Object featurestore_; + + @SuppressWarnings("serial") + private volatile java.lang.Object featurestore_ = ""; /** * * @@ -2650,10 +2685,14 @@ public com.google.cloud.aiplatform.v1.FeatureValueDestination getDestination() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.FeatureValueDestinationOrBuilder getDestinationOrBuilder() { - return getDestination(); + return destination_ == null + ? com.google.cloud.aiplatform.v1.FeatureValueDestination.getDefaultInstance() + : destination_; } public static final int PASS_THROUGH_FIELDS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField> passThroughFields_; @@ -2767,6 +2806,8 @@ public int getPassThroughFieldsCount() { } public static final int ENTITY_TYPE_SPECS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec> entityTypeSpecs_; @@ -2924,7 +2965,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } private byte memoizedIsInitialized = -1; @@ -3216,6 +3257,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (csvReadInstancesBuilder_ != null) { csvReadInstancesBuilder_.clear(); } @@ -3223,11 +3265,9 @@ public Builder clear() { bigqueryReadInstancesBuilder_.clear(); } featurestore_ = ""; - - if (destinationBuilder_ == null) { - destination_ = null; - } else { - destination_ = null; + destination_ = null; + if (destinationBuilder_ != null) { + destinationBuilder_.dispose(); destinationBuilder_ = null; } if (passThroughFieldsBuilder_ == null) { @@ -3236,18 +3276,17 @@ public Builder clear() { passThroughFields_ = null; passThroughFieldsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); if (entityTypeSpecsBuilder_ == null) { entityTypeSpecs_ = java.util.Collections.emptyList(); } else { entityTypeSpecs_ = null; entityTypeSpecsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } readOptionCase_ = 0; @@ -3280,53 +3319,62 @@ public com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest build() { public com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest buildPartial() { com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest result = new com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest(this); - int from_bitField0_ = bitField0_; - if (readOptionCase_ == 3) { - if (csvReadInstancesBuilder_ == null) { - result.readOption_ = readOption_; - } else { - result.readOption_ = csvReadInstancesBuilder_.build(); - } - } - if (readOptionCase_ == 5) { - if (bigqueryReadInstancesBuilder_ == null) { - result.readOption_ = readOption_; - } else { - result.readOption_ = bigqueryReadInstancesBuilder_.build(); - } - } - result.featurestore_ = featurestore_; - if (destinationBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = destinationBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest result) { if (passThroughFieldsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { passThroughFields_ = java.util.Collections.unmodifiableList(passThroughFields_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } result.passThroughFields_ = passThroughFields_; } else { result.passThroughFields_ = passThroughFieldsBuilder_.build(); } if (entityTypeSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { entityTypeSpecs_ = java.util.Collections.unmodifiableList(entityTypeSpecs_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } result.entityTypeSpecs_ = entityTypeSpecs_; } else { result.entityTypeSpecs_ = entityTypeSpecsBuilder_.build(); } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.featurestore_ = featurestore_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.destination_ = + destinationBuilder_ == null ? destination_ : destinationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest result) { result.readOptionCase_ = readOptionCase_; - onBuilt(); - return result; + result.readOption_ = this.readOption_; + if (readOptionCase_ == 3 && csvReadInstancesBuilder_ != null) { + result.readOption_ = csvReadInstancesBuilder_.build(); + } + if (readOptionCase_ == 5 && bigqueryReadInstancesBuilder_ != null) { + result.readOption_ = bigqueryReadInstancesBuilder_.build(); + } } @java.lang.Override @@ -3378,6 +3426,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRe return this; if (!other.getFeaturestore().isEmpty()) { featurestore_ = other.featurestore_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasDestination()) { @@ -3387,7 +3436,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRe if (!other.passThroughFields_.isEmpty()) { if (passThroughFields_.isEmpty()) { passThroughFields_ = other.passThroughFields_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensurePassThroughFieldsIsMutable(); passThroughFields_.addAll(other.passThroughFields_); @@ -3400,7 +3449,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRe passThroughFieldsBuilder_.dispose(); passThroughFieldsBuilder_ = null; passThroughFields_ = other.passThroughFields_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); passThroughFieldsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPassThroughFieldsFieldBuilder() @@ -3414,7 +3463,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRe if (!other.entityTypeSpecs_.isEmpty()) { if (entityTypeSpecs_.isEmpty()) { entityTypeSpecs_ = other.entityTypeSpecs_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureEntityTypeSpecsIsMutable(); entityTypeSpecs_.addAll(other.entityTypeSpecs_); @@ -3427,7 +3476,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRe entityTypeSpecsBuilder_.dispose(); entityTypeSpecsBuilder_ = null; entityTypeSpecs_ = other.entityTypeSpecs_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); entityTypeSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntityTypeSpecsFieldBuilder() @@ -3485,7 +3534,7 @@ public Builder mergeFrom( case 10: { featurestore_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 10 case 26: @@ -3498,7 +3547,7 @@ public Builder mergeFrom( case 34: { input.readMessage(getDestinationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: @@ -3541,7 +3590,7 @@ public Builder mergeFrom( case 90: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 90 default: @@ -3927,7 +3976,6 @@ public com.google.cloud.aiplatform.v1.CsvSourceOrBuilder getCsvReadInstancesOrBu } readOptionCase_ = 3; onChanged(); - ; return csvReadInstancesBuilder_; } @@ -4138,7 +4186,6 @@ public com.google.cloud.aiplatform.v1.BigQuerySource.Builder getBigqueryReadInst } readOptionCase_ = 5; onChanged(); - ; return bigqueryReadInstancesBuilder_; } @@ -4215,8 +4262,8 @@ public Builder setFeaturestore(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - featurestore_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4236,8 +4283,8 @@ public Builder setFeaturestore(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFeaturestore() { - featurestore_ = getDefaultInstance().getFeaturestore(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -4262,8 +4309,8 @@ public Builder setFeaturestoreBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - featurestore_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4288,7 +4335,7 @@ public Builder setFeaturestoreBytes(com.google.protobuf.ByteString value) { * @return Whether the destination field is set. */ public boolean hasDestination() { - return destinationBuilder_ != null || destination_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -4329,11 +4376,11 @@ public Builder setDestination(com.google.cloud.aiplatform.v1.FeatureValueDestina throw new NullPointerException(); } destination_ = value; - onChanged(); } else { destinationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4351,11 +4398,11 @@ public Builder setDestination( com.google.cloud.aiplatform.v1.FeatureValueDestination.Builder builderForValue) { if (destinationBuilder_ == null) { destination_ = builderForValue.build(); - onChanged(); } else { destinationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4371,19 +4418,19 @@ public Builder setDestination( */ public Builder mergeDestination(com.google.cloud.aiplatform.v1.FeatureValueDestination value) { if (destinationBuilder_ == null) { - if (destination_ != null) { - destination_ = - com.google.cloud.aiplatform.v1.FeatureValueDestination.newBuilder(destination_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && destination_ != null + && destination_ + != com.google.cloud.aiplatform.v1.FeatureValueDestination.getDefaultInstance()) { + getDestinationBuilder().mergeFrom(value); } else { destination_ = value; } - onChanged(); } else { destinationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4398,14 +4445,13 @@ public Builder mergeDestination(com.google.cloud.aiplatform.v1.FeatureValueDesti * */ public Builder clearDestination() { - if (destinationBuilder_ == null) { - destination_ = null; - onChanged(); - } else { - destination_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + destination_ = null; + if (destinationBuilder_ != null) { + destinationBuilder_.dispose(); destinationBuilder_ = null; } - + onChanged(); return this; } /** @@ -4420,7 +4466,7 @@ public Builder clearDestination() { * */ public com.google.cloud.aiplatform.v1.FeatureValueDestination.Builder getDestinationBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getDestinationFieldBuilder().getBuilder(); } @@ -4478,12 +4524,12 @@ public com.google.cloud.aiplatform.v1.FeatureValueDestination.Builder getDestina passThroughFields_ = java.util.Collections.emptyList(); private void ensurePassThroughFieldsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { passThroughFields_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField>( passThroughFields_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000010; } } @@ -4792,7 +4838,7 @@ public Builder addAllPassThroughFields( public Builder clearPassThroughFields() { if (passThroughFieldsBuilder_ == null) { passThroughFields_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { passThroughFieldsBuilder_.clear(); @@ -4979,7 +5025,7 @@ public Builder removePassThroughFields(int index) { com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest .PassThroughFieldOrBuilder>( passThroughFields_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); passThroughFields_ = null; @@ -4992,12 +5038,12 @@ public Builder removePassThroughFields(int index) { entityTypeSpecs_ = java.util.Collections.emptyList(); private void ensureEntityTypeSpecsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { entityTypeSpecs_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec>( entityTypeSpecs_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000020; } } @@ -5295,7 +5341,7 @@ public Builder addAllEntityTypeSpecs( public Builder clearEntityTypeSpecs() { if (entityTypeSpecsBuilder_ == null) { entityTypeSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { entityTypeSpecsBuilder_.clear(); @@ -5474,7 +5520,7 @@ public Builder removeEntityTypeSpecs(int index) { com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest .EntityTypeSpecOrBuilder>( entityTypeSpecs_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); entityTypeSpecs_ = null; @@ -5503,7 +5549,7 @@ public Builder removeEntityTypeSpecs(int index) { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -5544,11 +5590,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -5566,11 +5612,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -5587,17 +5633,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -5613,14 +5660,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -5636,7 +5682,7 @@ public Builder clearStartTime() { * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadTensorboardTimeSeriesDataRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadTensorboardTimeSeriesDataRequest.java index f6703052bc38..8b40ca842ef9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadTensorboardTimeSeriesDataRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadTensorboardTimeSeriesDataRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_FIELD_NUMBER = 1; - private volatile java.lang.Object tensorboard_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboard_ = ""; /** * * @@ -135,6 +137,8 @@ public com.google.protobuf.ByteString getTensorboardBytes() { } public static final int TIME_SERIES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList timeSeries_; /** * @@ -430,10 +434,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; tensorboard_ = ""; - timeSeries_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -464,17 +468,31 @@ public com.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest public com.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest buildPartial() { com.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest result = new com.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest(this); - int from_bitField0_ = bitField0_; - result.tensorboard_ = tensorboard_; - if (((bitField0_ & 0x00000001) != 0)) { - timeSeries_ = timeSeries_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.timeSeries_ = timeSeries_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest result) { + if (((bitField0_ & 0x00000002) != 0)) { + timeSeries_ = timeSeries_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.timeSeries_ = timeSeries_; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tensorboard_ = tensorboard_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -527,12 +545,13 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getTensorboard().isEmpty()) { tensorboard_ = other.tensorboard_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.timeSeries_.isEmpty()) { if (timeSeries_.isEmpty()) { timeSeries_ = other.timeSeries_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTimeSeriesIsMutable(); timeSeries_.addAll(other.timeSeries_); @@ -568,7 +587,7 @@ public Builder mergeFrom( case 10: { tensorboard_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -679,8 +698,8 @@ public Builder setTensorboard(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboard_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -703,8 +722,8 @@ public Builder setTensorboard(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboard() { - tensorboard_ = getDefaultInstance().getTensorboard(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -732,8 +751,8 @@ public Builder setTensorboardBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboard_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -742,9 +761,9 @@ public Builder setTensorboardBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTimeSeriesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { timeSeries_ = new com.google.protobuf.LazyStringArrayList(timeSeries_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -911,7 +930,7 @@ public Builder addAllTimeSeries(java.lang.Iterable values) { */ public Builder clearTimeSeries() { timeSeries_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadTensorboardTimeSeriesDataResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadTensorboardTimeSeriesDataResponse.java index ef94f367c0a9..3b4601f13f7b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadTensorboardTimeSeriesDataResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchReadTensorboardTimeSeriesDataResponse.java @@ -72,6 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TIME_SERIES_DATA_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List timeSeriesData_; /** * @@ -346,6 +348,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (timeSeriesDataBuilder_ == null) { timeSeriesData_ = java.util.Collections.emptyList(); } else { @@ -384,7 +387,16 @@ public com.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse buildPartial() { com.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse result = new com.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse result) { if (timeSeriesDataBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { timeSeriesData_ = java.util.Collections.unmodifiableList(timeSeriesData_); @@ -394,8 +406,11 @@ public com.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse } else { result.timeSeriesData_ = timeSeriesDataBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQueryDestination.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQueryDestination.java index 6176fc2352bb..9fc8320ea234 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQueryDestination.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQueryDestination.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int OUTPUT_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object outputUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputUri_ = ""; /** * * @@ -327,8 +329,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; outputUri_ = ""; - return this; } @@ -356,11 +358,20 @@ public com.google.cloud.aiplatform.v1.BigQueryDestination build() { public com.google.cloud.aiplatform.v1.BigQueryDestination buildPartial() { com.google.cloud.aiplatform.v1.BigQueryDestination result = new com.google.cloud.aiplatform.v1.BigQueryDestination(this); - result.outputUri_ = outputUri_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.BigQueryDestination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.outputUri_ = outputUri_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -409,6 +420,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BigQueryDestination othe return this; if (!other.getOutputUri().isEmpty()) { outputUri_ = other.outputUri_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -440,7 +452,7 @@ public Builder mergeFrom( case 10: { outputUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -460,6 +472,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object outputUri_ = ""; /** * @@ -542,8 +556,8 @@ public Builder setOutputUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - outputUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -566,8 +580,8 @@ public Builder setOutputUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOutputUri() { - outputUri_ = getDefaultInstance().getOutputUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -595,8 +609,8 @@ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - outputUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQuerySource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQuerySource.java index c3633e2c2a1f..65b7bcb79d01 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQuerySource.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQuerySource.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INPUT_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object inputUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object inputUri_ = ""; /** * * @@ -317,8 +319,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; inputUri_ = ""; - return this; } @@ -346,11 +348,20 @@ public com.google.cloud.aiplatform.v1.BigQuerySource build() { public com.google.cloud.aiplatform.v1.BigQuerySource buildPartial() { com.google.cloud.aiplatform.v1.BigQuerySource result = new com.google.cloud.aiplatform.v1.BigQuerySource(this); - result.inputUri_ = inputUri_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.BigQuerySource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputUri_ = inputUri_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -398,6 +409,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BigQuerySource other) { if (other == com.google.cloud.aiplatform.v1.BigQuerySource.getDefaultInstance()) return this; if (!other.getInputUri().isEmpty()) { inputUri_ = other.inputUri_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -429,7 +441,7 @@ public Builder mergeFrom( case 10: { inputUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -449,6 +461,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object inputUri_ = ""; /** * @@ -516,8 +530,8 @@ public Builder setInputUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - inputUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -535,8 +549,8 @@ public Builder setInputUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInputUri() { - inputUri_ = getDefaultInstance().getInputUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -559,8 +573,8 @@ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - inputUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BlurBaselineConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BlurBaselineConfig.java index d7dfe2e1af3a..a0bed0923bff 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BlurBaselineConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BlurBaselineConfig.java @@ -70,7 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MAX_BLUR_SIGMA_FIELD_NUMBER = 1; - private float maxBlurSigma_; + private float maxBlurSigma_ = 0F; /** * * @@ -292,8 +292,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; maxBlurSigma_ = 0F; - return this; } @@ -321,11 +321,20 @@ public com.google.cloud.aiplatform.v1.BlurBaselineConfig build() { public com.google.cloud.aiplatform.v1.BlurBaselineConfig buildPartial() { com.google.cloud.aiplatform.v1.BlurBaselineConfig result = new com.google.cloud.aiplatform.v1.BlurBaselineConfig(this); - result.maxBlurSigma_ = maxBlurSigma_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.BlurBaselineConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxBlurSigma_ = maxBlurSigma_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,7 +413,7 @@ public Builder mergeFrom( case 13: { maxBlurSigma_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 default: @@ -424,6 +433,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float maxBlurSigma_; /** * @@ -461,6 +472,7 @@ public float getMaxBlurSigma() { public Builder setMaxBlurSigma(float value) { maxBlurSigma_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -479,7 +491,7 @@ public Builder setMaxBlurSigma(float value) { * @return This builder for chaining. */ public Builder clearMaxBlurSigma() { - + bitField0_ = (bitField0_ & ~0x00000001); maxBlurSigma_ = 0F; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BoolArray.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BoolArray.java index 21f51ff92375..94e9c4981169 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BoolArray.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BoolArray.java @@ -68,6 +68,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.BooleanList values_; /** * @@ -326,8 +328,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; values_ = emptyBooleanList(); - bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -355,14 +357,24 @@ public com.google.cloud.aiplatform.v1.BoolArray build() { public com.google.cloud.aiplatform.v1.BoolArray buildPartial() { com.google.cloud.aiplatform.v1.BoolArray result = new com.google.cloud.aiplatform.v1.BoolArray(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.BoolArray result) { if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.BoolArray result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -550,6 +562,7 @@ public boolean getValues(int index) { * @return This builder for chaining. */ public Builder setValues(int index, boolean value) { + ensureValuesIsMutable(); values_.setBoolean(index, value); onChanged(); @@ -568,6 +581,7 @@ public Builder setValues(int index, boolean value) { * @return This builder for chaining. */ public Builder addValues(boolean value) { + ensureValuesIsMutable(); values_.addBoolean(value); onChanged(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelBatchPredictionJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelBatchPredictionJobRequest.java index 9ffd1a3bcfca..a869c0dc95e2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelBatchPredictionJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelBatchPredictionJobRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -325,8 +327,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -355,11 +357,21 @@ public com.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest build() { public com.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest buildPartial() { com.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest result = new com.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -409,6 +421,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CancelBatchPredictionJob return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -440,7 +453,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -460,6 +473,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -533,8 +548,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -554,8 +569,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -580,8 +595,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelCustomJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelCustomJobRequest.java index eecbad71f187..fadfe71d88f6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelCustomJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelCustomJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1.CancelCustomJobRequest build() { public com.google.cloud.aiplatform.v1.CancelCustomJobRequest buildPartial() { com.google.cloud.aiplatform.v1.CancelCustomJobRequest result = new com.google.cloud.aiplatform.v1.CancelCustomJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CancelCustomJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CancelCustomJobRequest o return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelDataLabelingJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelDataLabelingJobRequest.java index 853f17121588..1197cc2a5e44 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelDataLabelingJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelDataLabelingJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest build() { public com.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest buildPartial() { com.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest result = new com.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CancelDataLabelingJobReq return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelHyperparameterTuningJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelHyperparameterTuningJobRequest.java index 47b22e9cf170..cf2be819c63e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelHyperparameterTuningJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelHyperparameterTuningJobRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -328,8 +330,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -359,11 +361,21 @@ public com.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest build public com.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest buildPartial() { com.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest result = new com.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -415,6 +427,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -446,7 +459,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -466,6 +479,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -539,8 +554,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -560,8 +575,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -586,8 +601,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelPipelineJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelPipelineJobRequest.java index 53920fcfd259..f5762e9dfeb1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelPipelineJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelPipelineJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1.CancelPipelineJobRequest build() { public com.google.cloud.aiplatform.v1.CancelPipelineJobRequest buildPartial() { com.google.cloud.aiplatform.v1.CancelPipelineJobRequest result = new com.google.cloud.aiplatform.v1.CancelPipelineJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CancelPipelineJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CancelPipelineJobRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelTrainingPipelineRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelTrainingPipelineRequest.java index b0e13e0acff6..2ede48697958 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelTrainingPipelineRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelTrainingPipelineRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -354,11 +356,21 @@ public com.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest build() { public com.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest buildPartial() { com.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest result = new com.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -408,6 +420,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CancelTrainingPipelineRe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -439,7 +452,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +472,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -532,8 +547,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -553,8 +568,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -579,8 +594,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateMetatdata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateMetatdata.java index 3d8cd0f9cd36..47e534070434 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateMetatdata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateMetatdata.java @@ -118,11 +118,15 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } public static final int STUDY_FIELD_NUMBER = 2; - private volatile java.lang.Object study_; + + @SuppressWarnings("serial") + private volatile java.lang.Object study_ = ""; /** * * @@ -171,7 +175,9 @@ public com.google.protobuf.ByteString getStudyBytes() { } public static final int TRIAL_FIELD_NUMBER = 3; - private volatile java.lang.Object trial_; + + @SuppressWarnings("serial") + private volatile java.lang.Object trial_ = ""; /** * * @@ -444,16 +450,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } study_ = ""; - trial_ = ""; - return this; } @@ -483,17 +487,28 @@ public com.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata buil public com.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata buildPartial() { com.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata result = new com.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.study_ = study_; - result.trial_ = trial_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.study_ = study_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.trial_ = trial_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -548,10 +563,12 @@ public Builder mergeFrom( } if (!other.getStudy().isEmpty()) { study_ = other.study_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getTrial().isEmpty()) { trial_ = other.trial_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -583,19 +600,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { study_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { trial_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -615,6 +632,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -633,7 +652,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -671,11 +690,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -691,11 +710,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -710,19 +729,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -735,14 +754,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -756,7 +774,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } @@ -866,8 +884,8 @@ public Builder setStudy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - study_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -883,8 +901,8 @@ public Builder setStudy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearStudy() { - study_ = getDefaultInstance().getStudy(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -905,8 +923,8 @@ public Builder setStudyBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - study_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -972,8 +990,8 @@ public Builder setTrial(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - trial_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -989,8 +1007,8 @@ public Builder setTrial(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTrial() { - trial_ = getDefaultInstance().getTrial(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1011,8 +1029,8 @@ public Builder setTrialBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - trial_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateRequest.java index 4665ef54ef83..66c51e83befc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRIAL_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object trialName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object trialName_ = ""; /** * * @@ -328,8 +330,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; trialName_ = ""; - return this; } @@ -359,11 +361,21 @@ public com.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest build( public com.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest buildPartial() { com.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest result = new com.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest(this); - result.trialName_ = trialName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trialName_ = trialName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -415,6 +427,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getTrialName().isEmpty()) { trialName_ = other.trialName_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -446,7 +459,7 @@ public Builder mergeFrom( case 10: { trialName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -466,6 +479,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object trialName_ = ""; /** * @@ -539,8 +554,8 @@ public Builder setTrialName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - trialName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -560,8 +575,8 @@ public Builder setTrialName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTrialName() { - trialName_ = getDefaultInstance().getTrialName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -586,8 +601,8 @@ public Builder setTrialNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - trialName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateResponse.java index 17b5bd53737d..b2608e30b007 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CheckTrialEarlyStoppingStateResponse.java @@ -69,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SHOULD_STOP_FIELD_NUMBER = 1; - private boolean shouldStop_; + private boolean shouldStop_ = false; /** * * @@ -287,8 +287,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; shouldStop_ = false; - return this; } @@ -318,11 +318,21 @@ public com.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse build public com.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse buildPartial() { com.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse result = new com.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse(this); - result.shouldStop_ = shouldStop_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.shouldStop_ = shouldStop_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,7 +414,7 @@ public Builder mergeFrom( case 8: { shouldStop_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -424,6 +434,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean shouldStop_; /** * @@ -455,6 +467,7 @@ public boolean getShouldStop() { public Builder setShouldStop(boolean value) { shouldStop_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -470,7 +483,7 @@ public Builder setShouldStop(boolean value) { * @return This builder for chaining. */ public Builder clearShouldStop() { - + bitField0_ = (bitField0_ & ~0x00000001); shouldStop_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompleteTrialRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompleteTrialRequest.java index 22734ab82fc8..63b8c34b8cd7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompleteTrialRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompleteTrialRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -183,11 +185,13 @@ public com.google.cloud.aiplatform.v1.Measurement getFinalMeasurement() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.MeasurementOrBuilder getFinalMeasurementOrBuilder() { - return getFinalMeasurement(); + return finalMeasurement_ == null + ? com.google.cloud.aiplatform.v1.Measurement.getDefaultInstance() + : finalMeasurement_; } public static final int TRIAL_INFEASIBLE_FIELD_NUMBER = 3; - private boolean trialInfeasible_; + private boolean trialInfeasible_ = false; /** * * @@ -206,7 +210,9 @@ public boolean getTrialInfeasible() { } public static final int INFEASIBLE_REASON_FIELD_NUMBER = 4; - private volatile java.lang.Object infeasibleReason_; + + @SuppressWarnings("serial") + private volatile java.lang.Object infeasibleReason_ = ""; /** * * @@ -486,18 +492,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - - if (finalMeasurementBuilder_ == null) { - finalMeasurement_ = null; - } else { - finalMeasurement_ = null; + finalMeasurement_ = null; + if (finalMeasurementBuilder_ != null) { + finalMeasurementBuilder_.dispose(); finalMeasurementBuilder_ = null; } trialInfeasible_ = false; - infeasibleReason_ = ""; - return this; } @@ -525,18 +528,30 @@ public com.google.cloud.aiplatform.v1.CompleteTrialRequest build() { public com.google.cloud.aiplatform.v1.CompleteTrialRequest buildPartial() { com.google.cloud.aiplatform.v1.CompleteTrialRequest result = new com.google.cloud.aiplatform.v1.CompleteTrialRequest(this); - result.name_ = name_; - if (finalMeasurementBuilder_ == null) { - result.finalMeasurement_ = finalMeasurement_; - } else { - result.finalMeasurement_ = finalMeasurementBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.trialInfeasible_ = trialInfeasible_; - result.infeasibleReason_ = infeasibleReason_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CompleteTrialRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.finalMeasurement_ = + finalMeasurementBuilder_ == null ? finalMeasurement_ : finalMeasurementBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.trialInfeasible_ = trialInfeasible_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.infeasibleReason_ = infeasibleReason_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -585,6 +600,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CompleteTrialRequest oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasFinalMeasurement()) { @@ -595,6 +611,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CompleteTrialRequest oth } if (!other.getInfeasibleReason().isEmpty()) { infeasibleReason_ = other.infeasibleReason_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -626,26 +643,26 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getFinalMeasurementFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { trialInfeasible_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { infeasibleReason_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -665,6 +682,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -738,8 +757,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -759,8 +778,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -785,8 +804,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -813,7 +832,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the finalMeasurement field is set. */ public boolean hasFinalMeasurement() { - return finalMeasurementBuilder_ != null || finalMeasurement_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -858,11 +877,11 @@ public Builder setFinalMeasurement(com.google.cloud.aiplatform.v1.Measurement va throw new NullPointerException(); } finalMeasurement_ = value; - onChanged(); } else { finalMeasurementBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -882,11 +901,11 @@ public Builder setFinalMeasurement( com.google.cloud.aiplatform.v1.Measurement.Builder builderForValue) { if (finalMeasurementBuilder_ == null) { finalMeasurement_ = builderForValue.build(); - onChanged(); } else { finalMeasurementBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -904,19 +923,19 @@ public Builder setFinalMeasurement( */ public Builder mergeFinalMeasurement(com.google.cloud.aiplatform.v1.Measurement value) { if (finalMeasurementBuilder_ == null) { - if (finalMeasurement_ != null) { - finalMeasurement_ = - com.google.cloud.aiplatform.v1.Measurement.newBuilder(finalMeasurement_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && finalMeasurement_ != null + && finalMeasurement_ + != com.google.cloud.aiplatform.v1.Measurement.getDefaultInstance()) { + getFinalMeasurementBuilder().mergeFrom(value); } else { finalMeasurement_ = value; } - onChanged(); } else { finalMeasurementBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -933,14 +952,13 @@ public Builder mergeFinalMeasurement(com.google.cloud.aiplatform.v1.Measurement * */ public Builder clearFinalMeasurement() { - if (finalMeasurementBuilder_ == null) { - finalMeasurement_ = null; - onChanged(); - } else { - finalMeasurement_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + finalMeasurement_ = null; + if (finalMeasurementBuilder_ != null) { + finalMeasurementBuilder_.dispose(); finalMeasurementBuilder_ = null; } - + onChanged(); return this; } /** @@ -957,7 +975,7 @@ public Builder clearFinalMeasurement() { * */ public com.google.cloud.aiplatform.v1.Measurement.Builder getFinalMeasurementBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getFinalMeasurementFieldBuilder().getBuilder(); } @@ -1046,6 +1064,7 @@ public boolean getTrialInfeasible() { public Builder setTrialInfeasible(boolean value) { trialInfeasible_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1062,7 +1081,7 @@ public Builder setTrialInfeasible(boolean value) { * @return This builder for chaining. */ public Builder clearTrialInfeasible() { - + bitField0_ = (bitField0_ & ~0x00000004); trialInfeasible_ = false; onChanged(); return this; @@ -1132,8 +1151,8 @@ public Builder setInfeasibleReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - infeasibleReason_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1150,8 +1169,8 @@ public Builder setInfeasibleReason(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInfeasibleReason() { - infeasibleReason_ = getDefaultInstance().getInfeasibleReason(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1173,8 +1192,8 @@ public Builder setInfeasibleReasonBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - infeasibleReason_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStats.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStats.java index fabfdc6dfe98..061d663c3812 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStats.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStats.java @@ -67,7 +67,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SUCCESSFUL_COUNT_FIELD_NUMBER = 1; - private long successfulCount_; + private long successfulCount_ = 0L; /** * * @@ -85,7 +85,7 @@ public long getSuccessfulCount() { } public static final int FAILED_COUNT_FIELD_NUMBER = 2; - private long failedCount_; + private long failedCount_ = 0L; /** * * @@ -103,7 +103,7 @@ public long getFailedCount() { } public static final int INCOMPLETE_COUNT_FIELD_NUMBER = 3; - private long incompleteCount_; + private long incompleteCount_ = 0L; /** * * @@ -125,7 +125,7 @@ public long getIncompleteCount() { } public static final int SUCCESSFUL_FORECAST_POINT_COUNT_FIELD_NUMBER = 5; - private long successfulForecastPointCount_; + private long successfulForecastPointCount_ = 0L; /** * * @@ -371,14 +371,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; successfulCount_ = 0L; - failedCount_ = 0L; - incompleteCount_ = 0L; - successfulForecastPointCount_ = 0L; - return this; } @@ -406,14 +403,29 @@ public com.google.cloud.aiplatform.v1.CompletionStats build() { public com.google.cloud.aiplatform.v1.CompletionStats buildPartial() { com.google.cloud.aiplatform.v1.CompletionStats result = new com.google.cloud.aiplatform.v1.CompletionStats(this); - result.successfulCount_ = successfulCount_; - result.failedCount_ = failedCount_; - result.incompleteCount_ = incompleteCount_; - result.successfulForecastPointCount_ = successfulForecastPointCount_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CompletionStats result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.successfulCount_ = successfulCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.failedCount_ = failedCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.incompleteCount_ = incompleteCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.successfulForecastPointCount_ = successfulForecastPointCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -500,25 +512,25 @@ public Builder mergeFrom( case 8: { successfulCount_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { failedCount_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { incompleteCount_ = input.readInt64(); - + bitField0_ |= 0x00000004; break; } // case 24 case 40: { successfulForecastPointCount_ = input.readInt64(); - + bitField0_ |= 0x00000008; break; } // case 40 default: @@ -538,6 +550,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long successfulCount_; /** * @@ -569,6 +583,7 @@ public long getSuccessfulCount() { public Builder setSuccessfulCount(long value) { successfulCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -584,7 +599,7 @@ public Builder setSuccessfulCount(long value) { * @return This builder for chaining. */ public Builder clearSuccessfulCount() { - + bitField0_ = (bitField0_ & ~0x00000001); successfulCount_ = 0L; onChanged(); return this; @@ -621,6 +636,7 @@ public long getFailedCount() { public Builder setFailedCount(long value) { failedCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -636,7 +652,7 @@ public Builder setFailedCount(long value) { * @return This builder for chaining. */ public Builder clearFailedCount() { - + bitField0_ = (bitField0_ & ~0x00000002); failedCount_ = 0L; onChanged(); return this; @@ -681,6 +697,7 @@ public long getIncompleteCount() { public Builder setIncompleteCount(long value) { incompleteCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -700,7 +717,7 @@ public Builder setIncompleteCount(long value) { * @return This builder for chaining. */ public Builder clearIncompleteCount() { - + bitField0_ = (bitField0_ & ~0x00000004); incompleteCount_ = 0L; onChanged(); return this; @@ -743,6 +760,7 @@ public long getSuccessfulForecastPointCount() { public Builder setSuccessfulForecastPointCount(long value) { successfulForecastPointCount_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -761,7 +779,7 @@ public Builder setSuccessfulForecastPointCount(long value) { * @return This builder for chaining. */ public Builder clearSuccessfulForecastPointCount() { - + bitField0_ = (bitField0_ & ~0x00000008); successfulForecastPointCount_ = 0L; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContainerRegistryDestination.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContainerRegistryDestination.java index f1438ca653b7..ede7d1f95786 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContainerRegistryDestination.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContainerRegistryDestination.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int OUTPUT_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object outputUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputUri_ = ""; /** * * @@ -328,8 +330,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; outputUri_ = ""; - return this; } @@ -357,11 +359,20 @@ public com.google.cloud.aiplatform.v1.ContainerRegistryDestination build() { public com.google.cloud.aiplatform.v1.ContainerRegistryDestination buildPartial() { com.google.cloud.aiplatform.v1.ContainerRegistryDestination result = new com.google.cloud.aiplatform.v1.ContainerRegistryDestination(this); - result.outputUri_ = outputUri_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ContainerRegistryDestination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.outputUri_ = outputUri_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -410,6 +421,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ContainerRegistryDestina return this; if (!other.getOutputUri().isEmpty()) { outputUri_ = other.outputUri_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -441,7 +453,7 @@ public Builder mergeFrom( case 10: { outputUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -461,6 +473,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object outputUri_ = ""; /** * @@ -543,8 +557,8 @@ public Builder setOutputUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - outputUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -567,8 +581,8 @@ public Builder setOutputUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOutputUri() { - outputUri_ = getDefaultInstance().getOutputUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -596,8 +610,8 @@ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - outputUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContainerSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContainerSpec.java index 732b7cb18633..5b5f0899d950 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContainerSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContainerSpec.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int IMAGE_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object imageUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object imageUri_ = ""; /** * * @@ -122,6 +124,8 @@ public com.google.protobuf.ByteString getImageUriBytes() { } public static final int COMMAND_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList command_; /** * @@ -187,6 +191,8 @@ public com.google.protobuf.ByteString getCommandBytes(int index) { } public static final int ARGS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList args_; /** * @@ -248,6 +254,8 @@ public com.google.protobuf.ByteString getArgsBytes(int index) { } public static final int ENV_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List env_; /** * @@ -561,19 +569,19 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; imageUri_ = ""; - command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); if (envBuilder_ == null) { env_ = java.util.Collections.emptyList(); } else { env_ = null; envBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -601,29 +609,41 @@ public com.google.cloud.aiplatform.v1.ContainerSpec build() { public com.google.cloud.aiplatform.v1.ContainerSpec buildPartial() { com.google.cloud.aiplatform.v1.ContainerSpec result = new com.google.cloud.aiplatform.v1.ContainerSpec(this); - int from_bitField0_ = bitField0_; - result.imageUri_ = imageUri_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.ContainerSpec result) { + if (((bitField0_ & 0x00000002) != 0)) { command_ = command_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.command_ = command_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { args_ = args_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.args_ = args_; if (envBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { env_ = java.util.Collections.unmodifiableList(env_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } result.env_ = env_; } else { result.env_ = envBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ContainerSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.imageUri_ = imageUri_; + } } @java.lang.Override @@ -673,12 +693,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ContainerSpec other) { if (other == com.google.cloud.aiplatform.v1.ContainerSpec.getDefaultInstance()) return this; if (!other.getImageUri().isEmpty()) { imageUri_ = other.imageUri_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.command_.isEmpty()) { if (command_.isEmpty()) { command_ = other.command_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCommandIsMutable(); command_.addAll(other.command_); @@ -688,7 +709,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ContainerSpec other) { if (!other.args_.isEmpty()) { if (args_.isEmpty()) { args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureArgsIsMutable(); args_.addAll(other.args_); @@ -699,7 +720,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ContainerSpec other) { if (!other.env_.isEmpty()) { if (env_.isEmpty()) { env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureEnvIsMutable(); env_.addAll(other.env_); @@ -712,7 +733,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ContainerSpec other) { envBuilder_.dispose(); envBuilder_ = null; env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); envBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEnvFieldBuilder() @@ -751,7 +772,7 @@ public Builder mergeFrom( case 10: { imageUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -864,8 +885,8 @@ public Builder setImageUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - imageUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -882,8 +903,8 @@ public Builder setImageUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearImageUri() { - imageUri_ = getDefaultInstance().getImageUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -905,8 +926,8 @@ public Builder setImageUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - imageUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -915,9 +936,9 @@ public Builder setImageUriBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCommandIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { command_ = new com.google.protobuf.LazyStringArrayList(command_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -1060,7 +1081,7 @@ public Builder addAllCommand(java.lang.Iterable values) { */ public Builder clearCommand() { command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1092,9 +1113,9 @@ public Builder addCommandBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } /** @@ -1229,7 +1250,7 @@ public Builder addAllArgs(java.lang.Iterable values) { */ public Builder clearArgs() { args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1260,9 +1281,9 @@ public Builder addArgsBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureEnvIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { env_ = new java.util.ArrayList(env_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } @@ -1488,7 +1509,7 @@ public Builder addAllEnv( public Builder clearEnv() { if (envBuilder_ == null) { env_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { envBuilder_.clear(); @@ -1616,7 +1637,7 @@ public java.util.List getEnvBuild com.google.cloud.aiplatform.v1.EnvVar, com.google.cloud.aiplatform.v1.EnvVar.Builder, com.google.cloud.aiplatform.v1.EnvVarOrBuilder>( - env_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + env_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); env_ = null; } return envBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Context.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Context.java index 53bdb3c691de..b6b4cdbb8661 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Context.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Context.java @@ -85,7 +85,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -134,7 +136,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -185,7 +189,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int ETAG_FIELD_NUMBER = 8; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -248,6 +254,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -320,7 +327,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -399,7 +409,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 11; @@ -448,10 +458,12 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int PARENT_CONTEXTS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList parentContexts_; /** * @@ -525,7 +537,9 @@ public com.google.protobuf.ByteString getParentContextsBytes(int index) { } public static final int SCHEMA_TITLE_FIELD_NUMBER = 13; - private volatile java.lang.Object schemaTitle_; + + @SuppressWarnings("serial") + private volatile java.lang.Object schemaTitle_ = ""; /** * * @@ -580,7 +594,9 @@ public com.google.protobuf.ByteString getSchemaTitleBytes() { } public static final int SCHEMA_VERSION_FIELD_NUMBER = 14; - private volatile java.lang.Object schemaVersion_; + + @SuppressWarnings("serial") + private volatile java.lang.Object schemaVersion_ = ""; /** * * @@ -683,11 +699,13 @@ public com.google.protobuf.Struct getMetadata() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } public static final int DESCRIPTION_FIELD_NUMBER = 16; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -1071,39 +1089,31 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - etag_ = ""; - internalGetMutableLabels().clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } parentContexts_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000040); schemaTitle_ = ""; - schemaVersion_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } description_ = ""; - return this; } @@ -1131,37 +1141,55 @@ public com.google.cloud.aiplatform.v1.Context build() { public com.google.cloud.aiplatform.v1.Context buildPartial() { com.google.cloud.aiplatform.v1.Context result = new com.google.cloud.aiplatform.v1.Context(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.etag_ = etag_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.Context result) { + if (((bitField0_ & 0x00000040) != 0)) { parentContexts_ = parentContexts_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000040); } result.parentContexts_ = parentContexts_; - result.schemaTitle_ = schemaTitle_; - result.schemaVersion_ = schemaVersion_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Context result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.schemaTitle_ = schemaTitle_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.schemaVersion_ = schemaVersion_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.description_ = description_; } - result.description_ = description_; - onBuilt(); - return result; } @java.lang.Override @@ -1211,17 +1239,21 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Context other) { if (other == com.google.cloud.aiplatform.v1.Context.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000004; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1231,7 +1263,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Context other) { if (!other.parentContexts_.isEmpty()) { if (parentContexts_.isEmpty()) { parentContexts_ = other.parentContexts_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000040); } else { ensureParentContextsIsMutable(); parentContexts_.addAll(other.parentContexts_); @@ -1240,10 +1272,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Context other) { } if (!other.getSchemaTitle().isEmpty()) { schemaTitle_ = other.schemaTitle_; + bitField0_ |= 0x00000080; onChanged(); } if (!other.getSchemaVersion().isEmpty()) { schemaVersion_ = other.schemaVersion_; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasMetadata()) { @@ -1251,6 +1285,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Context other) { } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000400; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1282,19 +1317,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 66: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 66 case 74: @@ -1306,18 +1341,19 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; break; } // case 74 case 82: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 82 case 90: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 90 case 98: @@ -1330,25 +1366,25 @@ public Builder mergeFrom( case 106: { schemaTitle_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 106 case 114: { schemaVersion_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 114 case 122: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 122 case 130: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000400; break; } // case 130 default: @@ -1431,8 +1467,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1448,8 +1484,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1470,8 +1506,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1540,8 +1576,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1558,8 +1594,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1581,8 +1617,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1651,8 +1687,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1669,8 +1705,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1692,8 +1728,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1709,14 +1745,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000008; + onChanged(); return labels_; } @@ -1783,8 +1819,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1818,6 +1856,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -1845,6 +1884,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** @@ -1868,8 +1908,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; return this; } /** @@ -1888,6 +1928,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; return this; } @@ -1911,7 +1952,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1952,11 +1993,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1973,11 +2014,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1993,17 +2034,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2018,14 +2060,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2040,7 +2081,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2112,7 +2153,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2153,11 +2194,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2174,11 +2215,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2194,17 +2235,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2219,14 +2261,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2241,7 +2282,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2297,9 +2338,9 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureParentContextsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000040) != 0)) { parentContexts_ = new com.google.protobuf.LazyStringArrayList(parentContexts_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000040; } } /** @@ -2458,7 +2499,7 @@ public Builder addAllParentContexts(java.lang.Iterable values) */ public Builder clearParentContexts() { parentContexts_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2558,8 +2599,8 @@ public Builder setSchemaTitle(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - schemaTitle_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2578,8 +2619,8 @@ public Builder setSchemaTitle(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSchemaTitle() { - schemaTitle_ = getDefaultInstance().getSchemaTitle(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -2603,8 +2644,8 @@ public Builder setSchemaTitleBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - schemaTitle_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2679,8 +2720,8 @@ public Builder setSchemaVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - schemaVersion_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2699,8 +2740,8 @@ public Builder setSchemaVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSchemaVersion() { - schemaVersion_ = getDefaultInstance().getSchemaVersion(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2724,8 +2765,8 @@ public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - schemaVersion_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2750,7 +2791,7 @@ public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -2789,11 +2830,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) { throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -2810,11 +2851,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) { public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -2830,17 +2871,18 @@ public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Struct value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -2855,14 +2897,13 @@ public Builder mergeMetadata(com.google.protobuf.Struct value) { * .google.protobuf.Struct metadata = 15; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -2877,7 +2918,7 @@ public Builder clearMetadata() { * .google.protobuf.Struct metadata = 15; */ public com.google.protobuf.Struct.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -2988,8 +3029,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3005,8 +3046,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -3027,8 +3068,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextOrBuilder.java index 41d8a6d17034..40dfc45185bd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextOrBuilder.java @@ -164,7 +164,6 @@ public interface ContextOrBuilder * * map<string, string> labels = 9; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateArtifactRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateArtifactRequest.java index 899b79b38255..19637c497bb0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateArtifactRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateArtifactRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -179,11 +181,15 @@ public com.google.cloud.aiplatform.v1.Artifact getArtifact() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ArtifactOrBuilder getArtifactOrBuilder() { - return getArtifact(); + return artifact_ == null + ? com.google.cloud.aiplatform.v1.Artifact.getDefaultInstance() + : artifact_; } public static final int ARTIFACT_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object artifactId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object artifactId_ = ""; /** * * @@ -464,16 +470,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (artifactBuilder_ == null) { - artifact_ = null; - } else { - artifact_ = null; + artifact_ = null; + if (artifactBuilder_ != null) { + artifactBuilder_.dispose(); artifactBuilder_ = null; } artifactId_ = ""; - return this; } @@ -501,17 +505,26 @@ public com.google.cloud.aiplatform.v1.CreateArtifactRequest build() { public com.google.cloud.aiplatform.v1.CreateArtifactRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateArtifactRequest result = new com.google.cloud.aiplatform.v1.CreateArtifactRequest(this); - result.parent_ = parent_; - if (artifactBuilder_ == null) { - result.artifact_ = artifact_; - } else { - result.artifact_ = artifactBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.artifactId_ = artifactId_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateArtifactRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.artifact_ = artifactBuilder_ == null ? artifact_ : artifactBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.artifactId_ = artifactId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -560,6 +573,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateArtifactRequest ot return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasArtifact()) { @@ -567,6 +581,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateArtifactRequest ot } if (!other.getArtifactId().isEmpty()) { artifactId_ = other.artifactId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -598,19 +613,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getArtifactFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { artifactId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -630,6 +645,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -706,8 +723,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -728,8 +745,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -755,8 +772,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -781,7 +798,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the artifact field is set. */ public boolean hasArtifact() { - return artifactBuilder_ != null || artifact_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -822,11 +839,11 @@ public Builder setArtifact(com.google.cloud.aiplatform.v1.Artifact value) { throw new NullPointerException(); } artifact_ = value; - onChanged(); } else { artifactBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -843,11 +860,11 @@ public Builder setArtifact(com.google.cloud.aiplatform.v1.Artifact value) { public Builder setArtifact(com.google.cloud.aiplatform.v1.Artifact.Builder builderForValue) { if (artifactBuilder_ == null) { artifact_ = builderForValue.build(); - onChanged(); } else { artifactBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -863,19 +880,18 @@ public Builder setArtifact(com.google.cloud.aiplatform.v1.Artifact.Builder build */ public Builder mergeArtifact(com.google.cloud.aiplatform.v1.Artifact value) { if (artifactBuilder_ == null) { - if (artifact_ != null) { - artifact_ = - com.google.cloud.aiplatform.v1.Artifact.newBuilder(artifact_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && artifact_ != null + && artifact_ != com.google.cloud.aiplatform.v1.Artifact.getDefaultInstance()) { + getArtifactBuilder().mergeFrom(value); } else { artifact_ = value; } - onChanged(); } else { artifactBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -890,14 +906,13 @@ public Builder mergeArtifact(com.google.cloud.aiplatform.v1.Artifact value) { * */ public Builder clearArtifact() { - if (artifactBuilder_ == null) { - artifact_ = null; - onChanged(); - } else { - artifact_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + artifact_ = null; + if (artifactBuilder_ != null) { + artifactBuilder_.dispose(); artifactBuilder_ = null; } - + onChanged(); return this; } /** @@ -912,7 +927,7 @@ public Builder clearArtifact() { * */ public com.google.cloud.aiplatform.v1.Artifact.Builder getArtifactBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getArtifactFieldBuilder().getBuilder(); } @@ -1043,8 +1058,8 @@ public Builder setArtifactId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - artifactId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1066,8 +1081,8 @@ public Builder setArtifactId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearArtifactId() { - artifactId_ = getDefaultInstance().getArtifactId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1094,8 +1109,8 @@ public Builder setArtifactIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - artifactId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateBatchPredictionJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateBatchPredictionJobRequest.java index 6d9a63951526..626acb80045a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateBatchPredictionJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateBatchPredictionJobRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -176,7 +178,9 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJob getBatchPredictionJob() @java.lang.Override public com.google.cloud.aiplatform.v1.BatchPredictionJobOrBuilder getBatchPredictionJobOrBuilder() { - return getBatchPredictionJob(); + return batchPredictionJob_ == null + ? com.google.cloud.aiplatform.v1.BatchPredictionJob.getDefaultInstance() + : batchPredictionJob_; } private byte memoizedIsInitialized = -1; @@ -392,12 +396,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (batchPredictionJobBuilder_ == null) { - batchPredictionJob_ = null; - } else { - batchPredictionJob_ = null; + batchPredictionJob_ = null; + if (batchPredictionJobBuilder_ != null) { + batchPredictionJobBuilder_.dispose(); batchPredictionJobBuilder_ = null; } return this; @@ -428,16 +431,27 @@ public com.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest build() { public com.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest result = new com.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest(this); - result.parent_ = parent_; - if (batchPredictionJobBuilder_ == null) { - result.batchPredictionJob_ = batchPredictionJob_; - } else { - result.batchPredictionJob_ = batchPredictionJobBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.batchPredictionJob_ = + batchPredictionJobBuilder_ == null + ? batchPredictionJob_ + : batchPredictionJobBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -487,6 +501,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateBatchPredictionJob return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasBatchPredictionJob()) { @@ -521,14 +536,14 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getBatchPredictionJobFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -548,6 +563,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -618,8 +635,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -638,8 +655,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -663,8 +680,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -689,7 +706,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the batchPredictionJob field is set. */ public boolean hasBatchPredictionJob() { - return batchPredictionJobBuilder_ != null || batchPredictionJob_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -730,11 +747,11 @@ public Builder setBatchPredictionJob(com.google.cloud.aiplatform.v1.BatchPredict throw new NullPointerException(); } batchPredictionJob_ = value; - onChanged(); } else { batchPredictionJobBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -752,11 +769,11 @@ public Builder setBatchPredictionJob( com.google.cloud.aiplatform.v1.BatchPredictionJob.Builder builderForValue) { if (batchPredictionJobBuilder_ == null) { batchPredictionJob_ = builderForValue.build(); - onChanged(); } else { batchPredictionJobBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -773,19 +790,19 @@ public Builder setBatchPredictionJob( public Builder mergeBatchPredictionJob( com.google.cloud.aiplatform.v1.BatchPredictionJob value) { if (batchPredictionJobBuilder_ == null) { - if (batchPredictionJob_ != null) { - batchPredictionJob_ = - com.google.cloud.aiplatform.v1.BatchPredictionJob.newBuilder(batchPredictionJob_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && batchPredictionJob_ != null + && batchPredictionJob_ + != com.google.cloud.aiplatform.v1.BatchPredictionJob.getDefaultInstance()) { + getBatchPredictionJobBuilder().mergeFrom(value); } else { batchPredictionJob_ = value; } - onChanged(); } else { batchPredictionJobBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -800,14 +817,13 @@ public Builder mergeBatchPredictionJob( * */ public Builder clearBatchPredictionJob() { - if (batchPredictionJobBuilder_ == null) { - batchPredictionJob_ = null; - onChanged(); - } else { - batchPredictionJob_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + batchPredictionJob_ = null; + if (batchPredictionJobBuilder_ != null) { + batchPredictionJobBuilder_.dispose(); batchPredictionJobBuilder_ = null; } - + onChanged(); return this; } /** @@ -823,7 +839,7 @@ public Builder clearBatchPredictionJob() { */ public com.google.cloud.aiplatform.v1.BatchPredictionJob.Builder getBatchPredictionJobBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getBatchPredictionJobFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateContextRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateContextRequest.java index d8cb13dddbb2..f7de5551ab2d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateContextRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateContextRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -177,11 +179,15 @@ public com.google.cloud.aiplatform.v1.Context getContext() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ContextOrBuilder getContextOrBuilder() { - return getContext(); + return context_ == null + ? com.google.cloud.aiplatform.v1.Context.getDefaultInstance() + : context_; } public static final int CONTEXT_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object contextId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object contextId_ = ""; /** * * @@ -462,16 +468,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (contextBuilder_ == null) { - context_ = null; - } else { - context_ = null; + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); contextBuilder_ = null; } contextId_ = ""; - return this; } @@ -499,17 +503,26 @@ public com.google.cloud.aiplatform.v1.CreateContextRequest build() { public com.google.cloud.aiplatform.v1.CreateContextRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateContextRequest result = new com.google.cloud.aiplatform.v1.CreateContextRequest(this); - result.parent_ = parent_; - if (contextBuilder_ == null) { - result.context_ = context_; - } else { - result.context_ = contextBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.contextId_ = contextId_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateContextRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.context_ = contextBuilder_ == null ? context_ : contextBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.contextId_ = contextId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -558,6 +571,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateContextRequest oth return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasContext()) { @@ -565,6 +579,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateContextRequest oth } if (!other.getContextId().isEmpty()) { contextId_ = other.contextId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -596,19 +611,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getContextFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { contextId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -628,6 +643,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -701,8 +718,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -722,8 +739,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -748,8 +765,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -774,7 +791,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the context field is set. */ public boolean hasContext() { - return contextBuilder_ != null || context_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -815,11 +832,11 @@ public Builder setContext(com.google.cloud.aiplatform.v1.Context value) { throw new NullPointerException(); } context_ = value; - onChanged(); } else { contextBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -836,11 +853,11 @@ public Builder setContext(com.google.cloud.aiplatform.v1.Context value) { public Builder setContext(com.google.cloud.aiplatform.v1.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); - onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -856,19 +873,18 @@ public Builder setContext(com.google.cloud.aiplatform.v1.Context.Builder builder */ public Builder mergeContext(com.google.cloud.aiplatform.v1.Context value) { if (contextBuilder_ == null) { - if (context_ != null) { - context_ = - com.google.cloud.aiplatform.v1.Context.newBuilder(context_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && context_ != null + && context_ != com.google.cloud.aiplatform.v1.Context.getDefaultInstance()) { + getContextBuilder().mergeFrom(value); } else { context_ = value; } - onChanged(); } else { contextBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -883,14 +899,13 @@ public Builder mergeContext(com.google.cloud.aiplatform.v1.Context value) { * */ public Builder clearContext() { - if (contextBuilder_ == null) { - context_ = null; - onChanged(); - } else { - context_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); contextBuilder_ = null; } - + onChanged(); return this; } /** @@ -905,7 +920,7 @@ public Builder clearContext() { * */ public com.google.cloud.aiplatform.v1.Context.Builder getContextBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getContextFieldBuilder().getBuilder(); } @@ -1036,8 +1051,8 @@ public Builder setContextId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - contextId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1059,8 +1074,8 @@ public Builder setContextId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContextId() { - contextId_ = getDefaultInstance().getContextId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1087,8 +1102,8 @@ public Builder setContextIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - contextId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateCustomJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateCustomJobRequest.java index 213859fa1713..2737577e3ecd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateCustomJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateCustomJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -174,7 +176,9 @@ public com.google.cloud.aiplatform.v1.CustomJob getCustomJob() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.CustomJobOrBuilder getCustomJobOrBuilder() { - return getCustomJob(); + return customJob_ == null + ? com.google.cloud.aiplatform.v1.CustomJob.getDefaultInstance() + : customJob_; } private byte memoizedIsInitialized = -1; @@ -390,12 +394,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (customJobBuilder_ == null) { - customJob_ = null; - } else { - customJob_ = null; + customJob_ = null; + if (customJobBuilder_ != null) { + customJobBuilder_.dispose(); customJobBuilder_ = null; } return this; @@ -425,16 +428,23 @@ public com.google.cloud.aiplatform.v1.CreateCustomJobRequest build() { public com.google.cloud.aiplatform.v1.CreateCustomJobRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateCustomJobRequest result = new com.google.cloud.aiplatform.v1.CreateCustomJobRequest(this); - result.parent_ = parent_; - if (customJobBuilder_ == null) { - result.customJob_ = customJob_; - } else { - result.customJob_ = customJobBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateCustomJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customJob_ = customJobBuilder_ == null ? customJob_ : customJobBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -483,6 +493,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateCustomJobRequest o return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasCustomJob()) { @@ -517,13 +528,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getCustomJobFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -543,6 +554,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -613,8 +626,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -633,8 +646,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -658,8 +671,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -684,7 +697,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the customJob field is set. */ public boolean hasCustomJob() { - return customJobBuilder_ != null || customJob_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -725,11 +738,11 @@ public Builder setCustomJob(com.google.cloud.aiplatform.v1.CustomJob value) { throw new NullPointerException(); } customJob_ = value; - onChanged(); } else { customJobBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -746,11 +759,11 @@ public Builder setCustomJob(com.google.cloud.aiplatform.v1.CustomJob value) { public Builder setCustomJob(com.google.cloud.aiplatform.v1.CustomJob.Builder builderForValue) { if (customJobBuilder_ == null) { customJob_ = builderForValue.build(); - onChanged(); } else { customJobBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -766,19 +779,18 @@ public Builder setCustomJob(com.google.cloud.aiplatform.v1.CustomJob.Builder bui */ public Builder mergeCustomJob(com.google.cloud.aiplatform.v1.CustomJob value) { if (customJobBuilder_ == null) { - if (customJob_ != null) { - customJob_ = - com.google.cloud.aiplatform.v1.CustomJob.newBuilder(customJob_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && customJob_ != null + && customJob_ != com.google.cloud.aiplatform.v1.CustomJob.getDefaultInstance()) { + getCustomJobBuilder().mergeFrom(value); } else { customJob_ = value; } - onChanged(); } else { customJobBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -793,14 +805,13 @@ public Builder mergeCustomJob(com.google.cloud.aiplatform.v1.CustomJob value) { * */ public Builder clearCustomJob() { - if (customJobBuilder_ == null) { - customJob_ = null; - onChanged(); - } else { - customJob_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + customJob_ = null; + if (customJobBuilder_ != null) { + customJobBuilder_.dispose(); customJobBuilder_ = null; } - + onChanged(); return this; } /** @@ -815,7 +826,7 @@ public Builder clearCustomJob() { * */ public com.google.cloud.aiplatform.v1.CustomJob.Builder getCustomJobBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getCustomJobFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDataLabelingJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDataLabelingJobRequest.java index c3d69716f9ff..38dde7a5b3d6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDataLabelingJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDataLabelingJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -174,7 +176,9 @@ public com.google.cloud.aiplatform.v1.DataLabelingJob getDataLabelingJob() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.DataLabelingJobOrBuilder getDataLabelingJobOrBuilder() { - return getDataLabelingJob(); + return dataLabelingJob_ == null + ? com.google.cloud.aiplatform.v1.DataLabelingJob.getDefaultInstance() + : dataLabelingJob_; } private byte memoizedIsInitialized = -1; @@ -390,12 +394,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (dataLabelingJobBuilder_ == null) { - dataLabelingJob_ = null; - } else { - dataLabelingJob_ = null; + dataLabelingJob_ = null; + if (dataLabelingJobBuilder_ != null) { + dataLabelingJobBuilder_.dispose(); dataLabelingJobBuilder_ = null; } return this; @@ -425,16 +428,24 @@ public com.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest build() { public com.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest result = new com.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest(this); - result.parent_ = parent_; - if (dataLabelingJobBuilder_ == null) { - result.dataLabelingJob_ = dataLabelingJob_; - } else { - result.dataLabelingJob_ = dataLabelingJobBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataLabelingJob_ = + dataLabelingJobBuilder_ == null ? dataLabelingJob_ : dataLabelingJobBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -483,6 +494,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateDataLabelingJobReq return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasDataLabelingJob()) { @@ -517,13 +529,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getDataLabelingJobFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -543,6 +555,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -613,8 +627,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -633,8 +647,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -658,8 +672,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -684,7 +698,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the dataLabelingJob field is set. */ public boolean hasDataLabelingJob() { - return dataLabelingJobBuilder_ != null || dataLabelingJob_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -725,11 +739,11 @@ public Builder setDataLabelingJob(com.google.cloud.aiplatform.v1.DataLabelingJob throw new NullPointerException(); } dataLabelingJob_ = value; - onChanged(); } else { dataLabelingJobBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -747,11 +761,11 @@ public Builder setDataLabelingJob( com.google.cloud.aiplatform.v1.DataLabelingJob.Builder builderForValue) { if (dataLabelingJobBuilder_ == null) { dataLabelingJob_ = builderForValue.build(); - onChanged(); } else { dataLabelingJobBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -767,19 +781,19 @@ public Builder setDataLabelingJob( */ public Builder mergeDataLabelingJob(com.google.cloud.aiplatform.v1.DataLabelingJob value) { if (dataLabelingJobBuilder_ == null) { - if (dataLabelingJob_ != null) { - dataLabelingJob_ = - com.google.cloud.aiplatform.v1.DataLabelingJob.newBuilder(dataLabelingJob_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && dataLabelingJob_ != null + && dataLabelingJob_ + != com.google.cloud.aiplatform.v1.DataLabelingJob.getDefaultInstance()) { + getDataLabelingJobBuilder().mergeFrom(value); } else { dataLabelingJob_ = value; } - onChanged(); } else { dataLabelingJobBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -794,14 +808,13 @@ public Builder mergeDataLabelingJob(com.google.cloud.aiplatform.v1.DataLabelingJ * */ public Builder clearDataLabelingJob() { - if (dataLabelingJobBuilder_ == null) { - dataLabelingJob_ = null; - onChanged(); - } else { - dataLabelingJob_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + dataLabelingJob_ = null; + if (dataLabelingJobBuilder_ != null) { + dataLabelingJobBuilder_.dispose(); dataLabelingJobBuilder_ = null; } - + onChanged(); return this; } /** @@ -816,7 +829,7 @@ public Builder clearDataLabelingJob() { * */ public com.google.cloud.aiplatform.v1.DataLabelingJob.Builder getDataLabelingJobBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getDataLabelingJobFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetOperationMetadata.java index 225dc54c3797..4a8bf50a9035 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetOperationMetadata.java @@ -113,7 +113,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -320,10 +322,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -354,15 +356,22 @@ public com.google.cloud.aiplatform.v1.CreateDatasetOperationMetadata build() { public com.google.cloud.aiplatform.v1.CreateDatasetOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.CreateDatasetOperationMetadata result = new com.google.cloud.aiplatform.v1.CreateDatasetOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.CreateDatasetOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -442,7 +451,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -462,6 +471,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -480,7 +491,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -518,11 +529,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -538,11 +549,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -557,19 +568,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -582,14 +593,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -603,7 +613,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetRequest.java index d7ae63a0281c..d601edcee85a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -174,7 +176,9 @@ public com.google.cloud.aiplatform.v1.Dataset getDataset() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.DatasetOrBuilder getDatasetOrBuilder() { - return getDataset(); + return dataset_ == null + ? com.google.cloud.aiplatform.v1.Dataset.getDefaultInstance() + : dataset_; } private byte memoizedIsInitialized = -1; @@ -389,12 +393,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (datasetBuilder_ == null) { - dataset_ = null; - } else { - dataset_ = null; + dataset_ = null; + if (datasetBuilder_ != null) { + datasetBuilder_.dispose(); datasetBuilder_ = null; } return this; @@ -424,16 +427,23 @@ public com.google.cloud.aiplatform.v1.CreateDatasetRequest build() { public com.google.cloud.aiplatform.v1.CreateDatasetRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateDatasetRequest result = new com.google.cloud.aiplatform.v1.CreateDatasetRequest(this); - result.parent_ = parent_; - if (datasetBuilder_ == null) { - result.dataset_ = dataset_; - } else { - result.dataset_ = datasetBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateDatasetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataset_ = datasetBuilder_ == null ? dataset_ : datasetBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -482,6 +492,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateDatasetRequest oth return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasDataset()) { @@ -516,13 +527,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getDatasetFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -542,6 +553,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -612,8 +625,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -632,8 +645,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -657,8 +670,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -683,7 +696,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the dataset field is set. */ public boolean hasDataset() { - return datasetBuilder_ != null || dataset_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -724,11 +737,11 @@ public Builder setDataset(com.google.cloud.aiplatform.v1.Dataset value) { throw new NullPointerException(); } dataset_ = value; - onChanged(); } else { datasetBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -745,11 +758,11 @@ public Builder setDataset(com.google.cloud.aiplatform.v1.Dataset value) { public Builder setDataset(com.google.cloud.aiplatform.v1.Dataset.Builder builderForValue) { if (datasetBuilder_ == null) { dataset_ = builderForValue.build(); - onChanged(); } else { datasetBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -765,19 +778,18 @@ public Builder setDataset(com.google.cloud.aiplatform.v1.Dataset.Builder builder */ public Builder mergeDataset(com.google.cloud.aiplatform.v1.Dataset value) { if (datasetBuilder_ == null) { - if (dataset_ != null) { - dataset_ = - com.google.cloud.aiplatform.v1.Dataset.newBuilder(dataset_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && dataset_ != null + && dataset_ != com.google.cloud.aiplatform.v1.Dataset.getDefaultInstance()) { + getDatasetBuilder().mergeFrom(value); } else { dataset_ = value; } - onChanged(); } else { datasetBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -792,14 +804,13 @@ public Builder mergeDataset(com.google.cloud.aiplatform.v1.Dataset value) { * */ public Builder clearDataset() { - if (datasetBuilder_ == null) { - dataset_ = null; - onChanged(); - } else { - dataset_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + dataset_ = null; + if (datasetBuilder_ != null) { + datasetBuilder_.dispose(); datasetBuilder_ = null; } - + onChanged(); return this; } /** @@ -814,7 +825,7 @@ public Builder clearDataset() { * */ public com.google.cloud.aiplatform.v1.Dataset.Builder getDatasetBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getDatasetFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEndpointOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEndpointOperationMetadata.java index 5816d26fa7fa..a29abbe94342 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEndpointOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEndpointOperationMetadata.java @@ -113,7 +113,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -320,10 +322,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -354,15 +356,22 @@ public com.google.cloud.aiplatform.v1.CreateEndpointOperationMetadata build() { public com.google.cloud.aiplatform.v1.CreateEndpointOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.CreateEndpointOperationMetadata result = new com.google.cloud.aiplatform.v1.CreateEndpointOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.CreateEndpointOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -442,7 +451,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -462,6 +471,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -480,7 +491,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -518,11 +529,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -538,11 +549,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -557,19 +568,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -582,14 +593,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -603,7 +613,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEndpointRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEndpointRequest.java index a5eb17f76fc1..07c161b0b56c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEndpointRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEndpointRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -175,11 +177,15 @@ public com.google.cloud.aiplatform.v1.Endpoint getEndpoint() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.EndpointOrBuilder getEndpointOrBuilder() { - return getEndpoint(); + return endpoint_ == null + ? com.google.cloud.aiplatform.v1.Endpoint.getDefaultInstance() + : endpoint_; } public static final int ENDPOINT_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object endpointId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpointId_ = ""; /** * * @@ -460,16 +466,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (endpointBuilder_ == null) { - endpoint_ = null; - } else { - endpoint_ = null; + endpoint_ = null; + if (endpointBuilder_ != null) { + endpointBuilder_.dispose(); endpointBuilder_ = null; } endpointId_ = ""; - return this; } @@ -497,17 +501,26 @@ public com.google.cloud.aiplatform.v1.CreateEndpointRequest build() { public com.google.cloud.aiplatform.v1.CreateEndpointRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateEndpointRequest result = new com.google.cloud.aiplatform.v1.CreateEndpointRequest(this); - result.parent_ = parent_; - if (endpointBuilder_ == null) { - result.endpoint_ = endpoint_; - } else { - result.endpoint_ = endpointBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.endpointId_ = endpointId_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateEndpointRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endpoint_ = endpointBuilder_ == null ? endpoint_ : endpointBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endpointId_ = endpointId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -556,6 +569,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateEndpointRequest ot return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasEndpoint()) { @@ -563,6 +577,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateEndpointRequest ot } if (!other.getEndpointId().isEmpty()) { endpointId_ = other.endpointId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -594,19 +609,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getEndpointFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 34: { endpointId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 34 default: @@ -626,6 +641,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -696,8 +713,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -716,8 +733,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -741,8 +758,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -767,7 +784,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the endpoint field is set. */ public boolean hasEndpoint() { - return endpointBuilder_ != null || endpoint_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -808,11 +825,11 @@ public Builder setEndpoint(com.google.cloud.aiplatform.v1.Endpoint value) { throw new NullPointerException(); } endpoint_ = value; - onChanged(); } else { endpointBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -829,11 +846,11 @@ public Builder setEndpoint(com.google.cloud.aiplatform.v1.Endpoint value) { public Builder setEndpoint(com.google.cloud.aiplatform.v1.Endpoint.Builder builderForValue) { if (endpointBuilder_ == null) { endpoint_ = builderForValue.build(); - onChanged(); } else { endpointBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -849,19 +866,18 @@ public Builder setEndpoint(com.google.cloud.aiplatform.v1.Endpoint.Builder build */ public Builder mergeEndpoint(com.google.cloud.aiplatform.v1.Endpoint value) { if (endpointBuilder_ == null) { - if (endpoint_ != null) { - endpoint_ = - com.google.cloud.aiplatform.v1.Endpoint.newBuilder(endpoint_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && endpoint_ != null + && endpoint_ != com.google.cloud.aiplatform.v1.Endpoint.getDefaultInstance()) { + getEndpointBuilder().mergeFrom(value); } else { endpoint_ = value; } - onChanged(); } else { endpointBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -876,14 +892,13 @@ public Builder mergeEndpoint(com.google.cloud.aiplatform.v1.Endpoint value) { * */ public Builder clearEndpoint() { - if (endpointBuilder_ == null) { - endpoint_ = null; - onChanged(); - } else { - endpoint_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + endpoint_ = null; + if (endpointBuilder_ != null) { + endpointBuilder_.dispose(); endpointBuilder_ = null; } - + onChanged(); return this; } /** @@ -898,7 +913,7 @@ public Builder clearEndpoint() { * */ public com.google.cloud.aiplatform.v1.Endpoint.Builder getEndpointBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getEndpointFieldBuilder().getBuilder(); } @@ -1029,8 +1044,8 @@ public Builder setEndpointId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - endpointId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1052,8 +1067,8 @@ public Builder setEndpointId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEndpointId() { - endpointId_ = getDefaultInstance().getEndpointId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1080,8 +1095,8 @@ public Builder setEndpointIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - endpointId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEntityTypeOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEntityTypeOperationMetadata.java index e2d283ef0b55..bad2e4626870 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEntityTypeOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEntityTypeOperationMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -318,10 +320,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -352,15 +354,22 @@ public com.google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata build() public com.google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata result = new com.google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -441,7 +450,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -461,6 +470,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -479,7 +490,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -517,11 +528,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -537,11 +548,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -556,19 +567,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -581,14 +592,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -602,7 +612,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEntityTypeRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEntityTypeRequest.java index decc02efe817..abd80e54b36b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEntityTypeRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateEntityTypeRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -171,11 +173,15 @@ public com.google.cloud.aiplatform.v1.EntityType getEntityType() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.EntityTypeOrBuilder getEntityTypeOrBuilder() { - return getEntityType(); + return entityType_ == null + ? com.google.cloud.aiplatform.v1.EntityType.getDefaultInstance() + : entityType_; } public static final int ENTITY_TYPE_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object entityTypeId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityTypeId_ = ""; /** * * @@ -453,16 +459,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (entityTypeBuilder_ == null) { - entityType_ = null; - } else { - entityType_ = null; + entityType_ = null; + if (entityTypeBuilder_ != null) { + entityTypeBuilder_.dispose(); entityTypeBuilder_ = null; } entityTypeId_ = ""; - return this; } @@ -490,17 +494,26 @@ public com.google.cloud.aiplatform.v1.CreateEntityTypeRequest build() { public com.google.cloud.aiplatform.v1.CreateEntityTypeRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateEntityTypeRequest result = new com.google.cloud.aiplatform.v1.CreateEntityTypeRequest(this); - result.parent_ = parent_; - if (entityTypeBuilder_ == null) { - result.entityType_ = entityType_; - } else { - result.entityType_ = entityTypeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.entityTypeId_ = entityTypeId_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.entityType_ = entityTypeBuilder_ == null ? entityType_ : entityTypeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.entityTypeId_ = entityTypeId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -549,6 +562,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateEntityTypeRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasEntityType()) { @@ -556,6 +570,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateEntityTypeRequest } if (!other.getEntityTypeId().isEmpty()) { entityTypeId_ = other.entityTypeId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -587,19 +602,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getEntityTypeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { entityTypeId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -619,6 +634,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -692,8 +709,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -713,8 +730,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -739,8 +756,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -763,7 +780,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the entityType field is set. */ public boolean hasEntityType() { - return entityTypeBuilder_ != null || entityType_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -800,11 +817,11 @@ public Builder setEntityType(com.google.cloud.aiplatform.v1.EntityType value) { throw new NullPointerException(); } entityType_ = value; - onChanged(); } else { entityTypeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -820,11 +837,11 @@ public Builder setEntityType( com.google.cloud.aiplatform.v1.EntityType.Builder builderForValue) { if (entityTypeBuilder_ == null) { entityType_ = builderForValue.build(); - onChanged(); } else { entityTypeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -838,19 +855,18 @@ public Builder setEntityType( */ public Builder mergeEntityType(com.google.cloud.aiplatform.v1.EntityType value) { if (entityTypeBuilder_ == null) { - if (entityType_ != null) { - entityType_ = - com.google.cloud.aiplatform.v1.EntityType.newBuilder(entityType_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && entityType_ != null + && entityType_ != com.google.cloud.aiplatform.v1.EntityType.getDefaultInstance()) { + getEntityTypeBuilder().mergeFrom(value); } else { entityType_ = value; } - onChanged(); } else { entityTypeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -863,14 +879,13 @@ public Builder mergeEntityType(com.google.cloud.aiplatform.v1.EntityType value) * .google.cloud.aiplatform.v1.EntityType entity_type = 2; */ public Builder clearEntityType() { - if (entityTypeBuilder_ == null) { - entityType_ = null; - onChanged(); - } else { - entityType_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + entityType_ = null; + if (entityTypeBuilder_ != null) { + entityTypeBuilder_.dispose(); entityTypeBuilder_ = null; } - + onChanged(); return this; } /** @@ -883,7 +898,7 @@ public Builder clearEntityType() { * .google.cloud.aiplatform.v1.EntityType entity_type = 2; */ public com.google.cloud.aiplatform.v1.EntityType.Builder getEntityTypeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getEntityTypeFieldBuilder().getBuilder(); } @@ -1004,8 +1019,8 @@ public Builder setEntityTypeId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityTypeId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1025,8 +1040,8 @@ public Builder setEntityTypeId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityTypeId() { - entityTypeId_ = getDefaultInstance().getEntityTypeId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1051,8 +1066,8 @@ public Builder setEntityTypeIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityTypeId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateExecutionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateExecutionRequest.java index 6d777f299a0b..ca0962141def 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateExecutionRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateExecutionRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -179,11 +181,15 @@ public com.google.cloud.aiplatform.v1.Execution getExecution() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ExecutionOrBuilder getExecutionOrBuilder() { - return getExecution(); + return execution_ == null + ? com.google.cloud.aiplatform.v1.Execution.getDefaultInstance() + : execution_; } public static final int EXECUTION_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object executionId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object executionId_ = ""; /** * * @@ -467,16 +473,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (executionBuilder_ == null) { - execution_ = null; - } else { - execution_ = null; + execution_ = null; + if (executionBuilder_ != null) { + executionBuilder_.dispose(); executionBuilder_ = null; } executionId_ = ""; - return this; } @@ -504,17 +508,26 @@ public com.google.cloud.aiplatform.v1.CreateExecutionRequest build() { public com.google.cloud.aiplatform.v1.CreateExecutionRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateExecutionRequest result = new com.google.cloud.aiplatform.v1.CreateExecutionRequest(this); - result.parent_ = parent_; - if (executionBuilder_ == null) { - result.execution_ = execution_; - } else { - result.execution_ = executionBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.executionId_ = executionId_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateExecutionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.execution_ = executionBuilder_ == null ? execution_ : executionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.executionId_ = executionId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -563,6 +576,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateExecutionRequest o return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasExecution()) { @@ -570,6 +584,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateExecutionRequest o } if (!other.getExecutionId().isEmpty()) { executionId_ = other.executionId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -601,19 +616,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getExecutionFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { executionId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -633,6 +648,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -709,8 +726,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -731,8 +748,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -758,8 +775,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -784,7 +801,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the execution field is set. */ public boolean hasExecution() { - return executionBuilder_ != null || execution_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -825,11 +842,11 @@ public Builder setExecution(com.google.cloud.aiplatform.v1.Execution value) { throw new NullPointerException(); } execution_ = value; - onChanged(); } else { executionBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -846,11 +863,11 @@ public Builder setExecution(com.google.cloud.aiplatform.v1.Execution value) { public Builder setExecution(com.google.cloud.aiplatform.v1.Execution.Builder builderForValue) { if (executionBuilder_ == null) { execution_ = builderForValue.build(); - onChanged(); } else { executionBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -866,19 +883,18 @@ public Builder setExecution(com.google.cloud.aiplatform.v1.Execution.Builder bui */ public Builder mergeExecution(com.google.cloud.aiplatform.v1.Execution value) { if (executionBuilder_ == null) { - if (execution_ != null) { - execution_ = - com.google.cloud.aiplatform.v1.Execution.newBuilder(execution_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && execution_ != null + && execution_ != com.google.cloud.aiplatform.v1.Execution.getDefaultInstance()) { + getExecutionBuilder().mergeFrom(value); } else { execution_ = value; } - onChanged(); } else { executionBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -893,14 +909,13 @@ public Builder mergeExecution(com.google.cloud.aiplatform.v1.Execution value) { * */ public Builder clearExecution() { - if (executionBuilder_ == null) { - execution_ = null; - onChanged(); - } else { - execution_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + execution_ = null; + if (executionBuilder_ != null) { + executionBuilder_.dispose(); executionBuilder_ = null; } - + onChanged(); return this; } /** @@ -915,7 +930,7 @@ public Builder clearExecution() { * */ public com.google.cloud.aiplatform.v1.Execution.Builder getExecutionBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getExecutionFieldBuilder().getBuilder(); } @@ -1049,8 +1064,8 @@ public Builder setExecutionId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - executionId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1073,8 +1088,8 @@ public Builder setExecutionId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearExecutionId() { - executionId_ = getDefaultInstance().getExecutionId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1102,8 +1117,8 @@ public Builder setExecutionIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - executionId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureOperationMetadata.java index c83558a5050d..9e31da2e14ad 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureOperationMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -318,10 +320,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -352,15 +354,22 @@ public com.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata build() { public com.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata result = new com.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -440,7 +449,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -460,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -478,7 +489,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -516,11 +527,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -536,11 +547,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -555,19 +566,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -580,14 +591,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -601,7 +611,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureRequest.java index 0c9c75afd15d..f2c2405f9533 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -177,11 +179,15 @@ public com.google.cloud.aiplatform.v1.Feature getFeature() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.FeatureOrBuilder getFeatureOrBuilder() { - return getFeature(); + return feature_ == null + ? com.google.cloud.aiplatform.v1.Feature.getDefaultInstance() + : feature_; } public static final int FEATURE_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object featureId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object featureId_ = ""; /** * * @@ -458,16 +464,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (featureBuilder_ == null) { - feature_ = null; - } else { - feature_ = null; + feature_ = null; + if (featureBuilder_ != null) { + featureBuilder_.dispose(); featureBuilder_ = null; } featureId_ = ""; - return this; } @@ -495,17 +499,26 @@ public com.google.cloud.aiplatform.v1.CreateFeatureRequest build() { public com.google.cloud.aiplatform.v1.CreateFeatureRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateFeatureRequest result = new com.google.cloud.aiplatform.v1.CreateFeatureRequest(this); - result.parent_ = parent_; - if (featureBuilder_ == null) { - result.feature_ = feature_; - } else { - result.feature_ = featureBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.featureId_ = featureId_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateFeatureRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.feature_ = featureBuilder_ == null ? feature_ : featureBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.featureId_ = featureId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -554,6 +567,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateFeatureRequest oth return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasFeature()) { @@ -561,6 +575,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateFeatureRequest oth } if (!other.getFeatureId().isEmpty()) { featureId_ = other.featureId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -592,19 +607,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getFeatureFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { featureId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -624,6 +639,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -697,8 +714,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -718,8 +735,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -744,8 +761,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -770,7 +787,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the feature field is set. */ public boolean hasFeature() { - return featureBuilder_ != null || feature_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -811,11 +828,11 @@ public Builder setFeature(com.google.cloud.aiplatform.v1.Feature value) { throw new NullPointerException(); } feature_ = value; - onChanged(); } else { featureBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -832,11 +849,11 @@ public Builder setFeature(com.google.cloud.aiplatform.v1.Feature value) { public Builder setFeature(com.google.cloud.aiplatform.v1.Feature.Builder builderForValue) { if (featureBuilder_ == null) { feature_ = builderForValue.build(); - onChanged(); } else { featureBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -852,19 +869,18 @@ public Builder setFeature(com.google.cloud.aiplatform.v1.Feature.Builder builder */ public Builder mergeFeature(com.google.cloud.aiplatform.v1.Feature value) { if (featureBuilder_ == null) { - if (feature_ != null) { - feature_ = - com.google.cloud.aiplatform.v1.Feature.newBuilder(feature_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && feature_ != null + && feature_ != com.google.cloud.aiplatform.v1.Feature.getDefaultInstance()) { + getFeatureBuilder().mergeFrom(value); } else { feature_ = value; } - onChanged(); } else { featureBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -879,14 +895,13 @@ public Builder mergeFeature(com.google.cloud.aiplatform.v1.Feature value) { * */ public Builder clearFeature() { - if (featureBuilder_ == null) { - feature_ = null; - onChanged(); - } else { - feature_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + feature_ = null; + if (featureBuilder_ != null) { + featureBuilder_.dispose(); featureBuilder_ = null; } - + onChanged(); return this; } /** @@ -901,7 +916,7 @@ public Builder clearFeature() { * */ public com.google.cloud.aiplatform.v1.Feature.Builder getFeatureBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getFeatureFieldBuilder().getBuilder(); } @@ -1026,8 +1041,8 @@ public Builder setFeatureId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - featureId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1047,8 +1062,8 @@ public Builder setFeatureId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFeatureId() { - featureId_ = getDefaultInstance().getFeatureId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1073,8 +1088,8 @@ public Builder setFeatureIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - featureId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeaturestoreOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeaturestoreOperationMetadata.java index 0252e5f761bb..260b61900f49 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeaturestoreOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeaturestoreOperationMetadata.java @@ -113,7 +113,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -321,10 +323,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -356,15 +358,22 @@ public com.google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata build( public com.google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata result = new com.google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -446,7 +455,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -466,6 +475,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -484,7 +495,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -522,11 +533,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -542,11 +553,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -561,19 +572,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -586,14 +597,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -607,7 +617,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeaturestoreRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeaturestoreRequest.java index 28b06c96e8cb..515d9b81a27f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeaturestoreRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeaturestoreRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -177,11 +179,15 @@ public com.google.cloud.aiplatform.v1.Featurestore getFeaturestore() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.FeaturestoreOrBuilder getFeaturestoreOrBuilder() { - return getFeaturestore(); + return featurestore_ == null + ? com.google.cloud.aiplatform.v1.Featurestore.getDefaultInstance() + : featurestore_; } public static final int FEATURESTORE_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object featurestoreId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object featurestoreId_ = ""; /** * * @@ -459,16 +465,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (featurestoreBuilder_ == null) { - featurestore_ = null; - } else { - featurestore_ = null; + featurestore_ = null; + if (featurestoreBuilder_ != null) { + featurestoreBuilder_.dispose(); featurestoreBuilder_ = null; } featurestoreId_ = ""; - return this; } @@ -496,17 +500,27 @@ public com.google.cloud.aiplatform.v1.CreateFeaturestoreRequest build() { public com.google.cloud.aiplatform.v1.CreateFeaturestoreRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateFeaturestoreRequest result = new com.google.cloud.aiplatform.v1.CreateFeaturestoreRequest(this); - result.parent_ = parent_; - if (featurestoreBuilder_ == null) { - result.featurestore_ = featurestore_; - } else { - result.featurestore_ = featurestoreBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.featurestoreId_ = featurestoreId_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateFeaturestoreRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.featurestore_ = + featurestoreBuilder_ == null ? featurestore_ : featurestoreBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.featurestoreId_ = featurestoreId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -555,6 +569,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateFeaturestoreReques return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasFeaturestore()) { @@ -562,6 +577,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateFeaturestoreReques } if (!other.getFeaturestoreId().isEmpty()) { featurestoreId_ = other.featurestoreId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -593,19 +609,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getFeaturestoreFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { featurestoreId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -625,6 +641,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -698,8 +716,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -719,8 +737,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -745,8 +763,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -771,7 +789,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the featurestore field is set. */ public boolean hasFeaturestore() { - return featurestoreBuilder_ != null || featurestore_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -812,11 +830,11 @@ public Builder setFeaturestore(com.google.cloud.aiplatform.v1.Featurestore value throw new NullPointerException(); } featurestore_ = value; - onChanged(); } else { featurestoreBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -834,11 +852,11 @@ public Builder setFeaturestore( com.google.cloud.aiplatform.v1.Featurestore.Builder builderForValue) { if (featurestoreBuilder_ == null) { featurestore_ = builderForValue.build(); - onChanged(); } else { featurestoreBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -854,19 +872,18 @@ public Builder setFeaturestore( */ public Builder mergeFeaturestore(com.google.cloud.aiplatform.v1.Featurestore value) { if (featurestoreBuilder_ == null) { - if (featurestore_ != null) { - featurestore_ = - com.google.cloud.aiplatform.v1.Featurestore.newBuilder(featurestore_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && featurestore_ != null + && featurestore_ != com.google.cloud.aiplatform.v1.Featurestore.getDefaultInstance()) { + getFeaturestoreBuilder().mergeFrom(value); } else { featurestore_ = value; } - onChanged(); } else { featurestoreBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -881,14 +898,13 @@ public Builder mergeFeaturestore(com.google.cloud.aiplatform.v1.Featurestore val * */ public Builder clearFeaturestore() { - if (featurestoreBuilder_ == null) { - featurestore_ = null; - onChanged(); - } else { - featurestore_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + featurestore_ = null; + if (featurestoreBuilder_ != null) { + featurestoreBuilder_.dispose(); featurestoreBuilder_ = null; } - + onChanged(); return this; } /** @@ -903,7 +919,7 @@ public Builder clearFeaturestore() { * */ public com.google.cloud.aiplatform.v1.Featurestore.Builder getFeaturestoreBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getFeaturestoreFieldBuilder().getBuilder(); } @@ -1028,8 +1044,8 @@ public Builder setFeaturestoreId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - featurestoreId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1049,8 +1065,8 @@ public Builder setFeaturestoreId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFeaturestoreId() { - featurestoreId_ = getDefaultInstance().getFeaturestoreId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1075,8 +1091,8 @@ public Builder setFeaturestoreIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - featurestoreId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateHyperparameterTuningJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateHyperparameterTuningJobRequest.java index 4292296fd949..f6c3429edc32 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateHyperparameterTuningJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateHyperparameterTuningJobRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -179,7 +181,9 @@ public com.google.cloud.aiplatform.v1.HyperparameterTuningJob getHyperparameterT @java.lang.Override public com.google.cloud.aiplatform.v1.HyperparameterTuningJobOrBuilder getHyperparameterTuningJobOrBuilder() { - return getHyperparameterTuningJob(); + return hyperparameterTuningJob_ == null + ? com.google.cloud.aiplatform.v1.HyperparameterTuningJob.getDefaultInstance() + : hyperparameterTuningJob_; } private byte memoizedIsInitialized = -1; @@ -398,12 +402,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (hyperparameterTuningJobBuilder_ == null) { - hyperparameterTuningJob_ = null; - } else { - hyperparameterTuningJob_ = null; + hyperparameterTuningJob_ = null; + if (hyperparameterTuningJobBuilder_ != null) { + hyperparameterTuningJobBuilder_.dispose(); hyperparameterTuningJobBuilder_ = null; } return this; @@ -435,16 +438,27 @@ public com.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest build public com.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest result = new com.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest(this); - result.parent_ = parent_; - if (hyperparameterTuningJobBuilder_ == null) { - result.hyperparameterTuningJob_ = hyperparameterTuningJob_; - } else { - result.hyperparameterTuningJob_ = hyperparameterTuningJobBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.hyperparameterTuningJob_ = + hyperparameterTuningJobBuilder_ == null + ? hyperparameterTuningJob_ + : hyperparameterTuningJobBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -496,6 +510,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasHyperparameterTuningJob()) { @@ -530,14 +545,14 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getHyperparameterTuningJobFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -557,6 +572,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -630,8 +647,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -651,8 +668,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -677,8 +694,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -703,7 +720,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the hyperparameterTuningJob field is set. */ public boolean hasHyperparameterTuningJob() { - return hyperparameterTuningJobBuilder_ != null || hyperparameterTuningJob_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -745,11 +762,11 @@ public Builder setHyperparameterTuningJob( throw new NullPointerException(); } hyperparameterTuningJob_ = value; - onChanged(); } else { hyperparameterTuningJobBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -767,11 +784,11 @@ public Builder setHyperparameterTuningJob( com.google.cloud.aiplatform.v1.HyperparameterTuningJob.Builder builderForValue) { if (hyperparameterTuningJobBuilder_ == null) { hyperparameterTuningJob_ = builderForValue.build(); - onChanged(); } else { hyperparameterTuningJobBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -788,20 +805,19 @@ public Builder setHyperparameterTuningJob( public Builder mergeHyperparameterTuningJob( com.google.cloud.aiplatform.v1.HyperparameterTuningJob value) { if (hyperparameterTuningJobBuilder_ == null) { - if (hyperparameterTuningJob_ != null) { - hyperparameterTuningJob_ = - com.google.cloud.aiplatform.v1.HyperparameterTuningJob.newBuilder( - hyperparameterTuningJob_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && hyperparameterTuningJob_ != null + && hyperparameterTuningJob_ + != com.google.cloud.aiplatform.v1.HyperparameterTuningJob.getDefaultInstance()) { + getHyperparameterTuningJobBuilder().mergeFrom(value); } else { hyperparameterTuningJob_ = value; } - onChanged(); } else { hyperparameterTuningJobBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -816,14 +832,13 @@ public Builder mergeHyperparameterTuningJob( * */ public Builder clearHyperparameterTuningJob() { - if (hyperparameterTuningJobBuilder_ == null) { - hyperparameterTuningJob_ = null; - onChanged(); - } else { - hyperparameterTuningJob_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + hyperparameterTuningJob_ = null; + if (hyperparameterTuningJobBuilder_ != null) { + hyperparameterTuningJobBuilder_.dispose(); hyperparameterTuningJobBuilder_ = null; } - + onChanged(); return this; } /** @@ -839,7 +854,7 @@ public Builder clearHyperparameterTuningJob() { */ public com.google.cloud.aiplatform.v1.HyperparameterTuningJob.Builder getHyperparameterTuningJobBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getHyperparameterTuningJobFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexEndpointOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexEndpointOperationMetadata.java index b3e6f2cd1ca6..9637f582fa12 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexEndpointOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexEndpointOperationMetadata.java @@ -114,7 +114,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -323,10 +325,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -358,15 +360,22 @@ public com.google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata build public com.google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata result = new com.google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -448,7 +457,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -468,6 +477,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -486,7 +497,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -524,11 +535,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -544,11 +555,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -563,19 +574,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -588,14 +599,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -609,7 +619,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexEndpointRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexEndpointRequest.java index b609218ad2f8..1100bf95c701 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexEndpointRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexEndpointRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -174,7 +176,9 @@ public com.google.cloud.aiplatform.v1.IndexEndpoint getIndexEndpoint() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.IndexEndpointOrBuilder getIndexEndpointOrBuilder() { - return getIndexEndpoint(); + return indexEndpoint_ == null + ? com.google.cloud.aiplatform.v1.IndexEndpoint.getDefaultInstance() + : indexEndpoint_; } private byte memoizedIsInitialized = -1; @@ -390,12 +394,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (indexEndpointBuilder_ == null) { - indexEndpoint_ = null; - } else { - indexEndpoint_ = null; + indexEndpoint_ = null; + if (indexEndpointBuilder_ != null) { + indexEndpointBuilder_.dispose(); indexEndpointBuilder_ = null; } return this; @@ -425,16 +428,24 @@ public com.google.cloud.aiplatform.v1.CreateIndexEndpointRequest build() { public com.google.cloud.aiplatform.v1.CreateIndexEndpointRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateIndexEndpointRequest result = new com.google.cloud.aiplatform.v1.CreateIndexEndpointRequest(this); - result.parent_ = parent_; - if (indexEndpointBuilder_ == null) { - result.indexEndpoint_ = indexEndpoint_; - } else { - result.indexEndpoint_ = indexEndpointBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateIndexEndpointRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.indexEndpoint_ = + indexEndpointBuilder_ == null ? indexEndpoint_ : indexEndpointBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -483,6 +494,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateIndexEndpointReque return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasIndexEndpoint()) { @@ -517,13 +529,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getIndexEndpointFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -543,6 +555,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -613,8 +627,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -633,8 +647,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -658,8 +672,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -684,7 +698,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the indexEndpoint field is set. */ public boolean hasIndexEndpoint() { - return indexEndpointBuilder_ != null || indexEndpoint_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -725,11 +739,11 @@ public Builder setIndexEndpoint(com.google.cloud.aiplatform.v1.IndexEndpoint val throw new NullPointerException(); } indexEndpoint_ = value; - onChanged(); } else { indexEndpointBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -747,11 +761,11 @@ public Builder setIndexEndpoint( com.google.cloud.aiplatform.v1.IndexEndpoint.Builder builderForValue) { if (indexEndpointBuilder_ == null) { indexEndpoint_ = builderForValue.build(); - onChanged(); } else { indexEndpointBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -767,19 +781,19 @@ public Builder setIndexEndpoint( */ public Builder mergeIndexEndpoint(com.google.cloud.aiplatform.v1.IndexEndpoint value) { if (indexEndpointBuilder_ == null) { - if (indexEndpoint_ != null) { - indexEndpoint_ = - com.google.cloud.aiplatform.v1.IndexEndpoint.newBuilder(indexEndpoint_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && indexEndpoint_ != null + && indexEndpoint_ + != com.google.cloud.aiplatform.v1.IndexEndpoint.getDefaultInstance()) { + getIndexEndpointBuilder().mergeFrom(value); } else { indexEndpoint_ = value; } - onChanged(); } else { indexEndpointBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -794,14 +808,13 @@ public Builder mergeIndexEndpoint(com.google.cloud.aiplatform.v1.IndexEndpoint v * */ public Builder clearIndexEndpoint() { - if (indexEndpointBuilder_ == null) { - indexEndpoint_ = null; - onChanged(); - } else { - indexEndpoint_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + indexEndpoint_ = null; + if (indexEndpointBuilder_ != null) { + indexEndpointBuilder_.dispose(); indexEndpointBuilder_ = null; } - + onChanged(); return this; } /** @@ -816,7 +829,7 @@ public Builder clearIndexEndpoint() { * */ public com.google.cloud.aiplatform.v1.IndexEndpoint.Builder getIndexEndpointBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getIndexEndpointFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexOperationMetadata.java index b965289a9740..2d0e7633a30d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexOperationMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } public static final int NEAREST_NEIGHBOR_SEARCH_OPERATION_METADATA_FIELD_NUMBER = 2; @@ -169,7 +171,9 @@ public boolean hasNearestNeighborSearchOperationMetadata() { @java.lang.Override public com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadataOrBuilder getNearestNeighborSearchOperationMetadataOrBuilder() { - return getNearestNeighborSearchOperationMetadata(); + return nearestNeighborSearchOperationMetadata_ == null + ? com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.getDefaultInstance() + : nearestNeighborSearchOperationMetadata_; } private byte memoizedIsInitialized = -1; @@ -394,16 +398,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - if (nearestNeighborSearchOperationMetadataBuilder_ == null) { - nearestNeighborSearchOperationMetadata_ = null; - } else { - nearestNeighborSearchOperationMetadata_ = null; + nearestNeighborSearchOperationMetadata_ = null; + if (nearestNeighborSearchOperationMetadataBuilder_ != null) { + nearestNeighborSearchOperationMetadataBuilder_.dispose(); nearestNeighborSearchOperationMetadataBuilder_ = null; } return this; @@ -433,21 +436,27 @@ public com.google.cloud.aiplatform.v1.CreateIndexOperationMetadata build() { public com.google.cloud.aiplatform.v1.CreateIndexOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.CreateIndexOperationMetadata result = new com.google.cloud.aiplatform.v1.CreateIndexOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); - } - if (nearestNeighborSearchOperationMetadataBuilder_ == null) { - result.nearestNeighborSearchOperationMetadata_ = nearestNeighborSearchOperationMetadata_; - } else { - result.nearestNeighborSearchOperationMetadata_ = - nearestNeighborSearchOperationMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateIndexOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nearestNeighborSearchOperationMetadata_ = + nearestNeighborSearchOperationMetadataBuilder_ == null + ? nearestNeighborSearchOperationMetadata_ + : nearestNeighborSearchOperationMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -530,7 +539,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -538,7 +547,7 @@ public Builder mergeFrom( input.readMessage( getNearestNeighborSearchOperationMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -558,6 +567,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -576,7 +587,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -614,11 +625,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -634,11 +645,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -653,19 +664,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -678,14 +689,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -699,7 +709,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } @@ -769,8 +779,7 @@ public Builder clearGenericMetadata() { * @return Whether the nearestNeighborSearchOperationMetadata field is set. */ public boolean hasNearestNeighborSearchOperationMetadata() { - return nearestNeighborSearchOperationMetadataBuilder_ != null - || nearestNeighborSearchOperationMetadata_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -814,11 +823,11 @@ public Builder setNearestNeighborSearchOperationMetadata( throw new NullPointerException(); } nearestNeighborSearchOperationMetadata_ = value; - onChanged(); } else { nearestNeighborSearchOperationMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -837,11 +846,11 @@ public Builder setNearestNeighborSearchOperationMetadata( builderForValue) { if (nearestNeighborSearchOperationMetadataBuilder_ == null) { nearestNeighborSearchOperationMetadata_ = builderForValue.build(); - onChanged(); } else { nearestNeighborSearchOperationMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -858,20 +867,20 @@ public Builder setNearestNeighborSearchOperationMetadata( public Builder mergeNearestNeighborSearchOperationMetadata( com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata value) { if (nearestNeighborSearchOperationMetadataBuilder_ == null) { - if (nearestNeighborSearchOperationMetadata_ != null) { - nearestNeighborSearchOperationMetadata_ = - com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.newBuilder( - nearestNeighborSearchOperationMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && nearestNeighborSearchOperationMetadata_ != null + && nearestNeighborSearchOperationMetadata_ + != com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata + .getDefaultInstance()) { + getNearestNeighborSearchOperationMetadataBuilder().mergeFrom(value); } else { nearestNeighborSearchOperationMetadata_ = value; } - onChanged(); } else { nearestNeighborSearchOperationMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -886,14 +895,13 @@ public Builder mergeNearestNeighborSearchOperationMetadata( * */ public Builder clearNearestNeighborSearchOperationMetadata() { - if (nearestNeighborSearchOperationMetadataBuilder_ == null) { - nearestNeighborSearchOperationMetadata_ = null; - onChanged(); - } else { - nearestNeighborSearchOperationMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + nearestNeighborSearchOperationMetadata_ = null; + if (nearestNeighborSearchOperationMetadataBuilder_ != null) { + nearestNeighborSearchOperationMetadataBuilder_.dispose(); nearestNeighborSearchOperationMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -909,7 +917,7 @@ public Builder clearNearestNeighborSearchOperationMetadata() { */ public com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.Builder getNearestNeighborSearchOperationMetadataBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getNearestNeighborSearchOperationMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexRequest.java index f4a7af9d365d..757e08f78f53 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateIndexRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -169,7 +171,7 @@ public com.google.cloud.aiplatform.v1.Index getIndex() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.IndexOrBuilder getIndexOrBuilder() { - return getIndex(); + return index_ == null ? com.google.cloud.aiplatform.v1.Index.getDefaultInstance() : index_; } private byte memoizedIsInitialized = -1; @@ -384,12 +386,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (indexBuilder_ == null) { - index_ = null; - } else { - index_ = null; + index_ = null; + if (indexBuilder_ != null) { + indexBuilder_.dispose(); indexBuilder_ = null; } return this; @@ -419,16 +420,23 @@ public com.google.cloud.aiplatform.v1.CreateIndexRequest build() { public com.google.cloud.aiplatform.v1.CreateIndexRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateIndexRequest result = new com.google.cloud.aiplatform.v1.CreateIndexRequest(this); - result.parent_ = parent_; - if (indexBuilder_ == null) { - result.index_ = index_; - } else { - result.index_ = indexBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateIndexRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.index_ = indexBuilder_ == null ? index_ : indexBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -477,6 +485,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateIndexRequest other return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasIndex()) { @@ -511,13 +520,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getIndexFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -537,6 +546,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -607,8 +618,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -627,8 +638,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -652,8 +663,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -677,7 +688,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the index field is set. */ public boolean hasIndex() { - return indexBuilder_ != null || index_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -714,11 +725,11 @@ public Builder setIndex(com.google.cloud.aiplatform.v1.Index value) { throw new NullPointerException(); } index_ = value; - onChanged(); } else { indexBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -734,11 +745,11 @@ public Builder setIndex(com.google.cloud.aiplatform.v1.Index value) { public Builder setIndex(com.google.cloud.aiplatform.v1.Index.Builder builderForValue) { if (indexBuilder_ == null) { index_ = builderForValue.build(); - onChanged(); } else { indexBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -753,19 +764,18 @@ public Builder setIndex(com.google.cloud.aiplatform.v1.Index.Builder builderForV */ public Builder mergeIndex(com.google.cloud.aiplatform.v1.Index value) { if (indexBuilder_ == null) { - if (index_ != null) { - index_ = - com.google.cloud.aiplatform.v1.Index.newBuilder(index_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && index_ != null + && index_ != com.google.cloud.aiplatform.v1.Index.getDefaultInstance()) { + getIndexBuilder().mergeFrom(value); } else { index_ = value; } - onChanged(); } else { indexBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -779,14 +789,13 @@ public Builder mergeIndex(com.google.cloud.aiplatform.v1.Index value) { * */ public Builder clearIndex() { - if (indexBuilder_ == null) { - index_ = null; - onChanged(); - } else { - index_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + index_ = null; + if (indexBuilder_ != null) { + indexBuilder_.dispose(); indexBuilder_ = null; } - + onChanged(); return this; } /** @@ -800,7 +809,7 @@ public Builder clearIndex() { * */ public com.google.cloud.aiplatform.v1.Index.Builder getIndexBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getIndexFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataSchemaRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataSchemaRequest.java index 3f19aff03a6b..4bef6d73ca10 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataSchemaRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataSchemaRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -177,11 +179,15 @@ public com.google.cloud.aiplatform.v1.MetadataSchema getMetadataSchema() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.MetadataSchemaOrBuilder getMetadataSchemaOrBuilder() { - return getMetadataSchema(); + return metadataSchema_ == null + ? com.google.cloud.aiplatform.v1.MetadataSchema.getDefaultInstance() + : metadataSchema_; } public static final int METADATA_SCHEMA_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object metadataSchemaId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metadataSchemaId_ = ""; /** * * @@ -465,16 +471,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (metadataSchemaBuilder_ == null) { - metadataSchema_ = null; - } else { - metadataSchema_ = null; + metadataSchema_ = null; + if (metadataSchemaBuilder_ != null) { + metadataSchemaBuilder_.dispose(); metadataSchemaBuilder_ = null; } metadataSchemaId_ = ""; - return this; } @@ -502,17 +506,27 @@ public com.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest build() { public com.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest result = new com.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest(this); - result.parent_ = parent_; - if (metadataSchemaBuilder_ == null) { - result.metadataSchema_ = metadataSchema_; - } else { - result.metadataSchema_ = metadataSchemaBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.metadataSchemaId_ = metadataSchemaId_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metadataSchema_ = + metadataSchemaBuilder_ == null ? metadataSchema_ : metadataSchemaBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadataSchemaId_ = metadataSchemaId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -561,6 +575,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateMetadataSchemaRequ return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasMetadataSchema()) { @@ -568,6 +583,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateMetadataSchemaRequ } if (!other.getMetadataSchemaId().isEmpty()) { metadataSchemaId_ = other.metadataSchemaId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -599,19 +615,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMetadataSchemaFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { metadataSchemaId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -631,6 +647,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -704,8 +722,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -725,8 +743,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -751,8 +769,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -777,7 +795,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the metadataSchema field is set. */ public boolean hasMetadataSchema() { - return metadataSchemaBuilder_ != null || metadataSchema_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -818,11 +836,11 @@ public Builder setMetadataSchema(com.google.cloud.aiplatform.v1.MetadataSchema v throw new NullPointerException(); } metadataSchema_ = value; - onChanged(); } else { metadataSchemaBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -840,11 +858,11 @@ public Builder setMetadataSchema( com.google.cloud.aiplatform.v1.MetadataSchema.Builder builderForValue) { if (metadataSchemaBuilder_ == null) { metadataSchema_ = builderForValue.build(); - onChanged(); } else { metadataSchemaBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -860,19 +878,19 @@ public Builder setMetadataSchema( */ public Builder mergeMetadataSchema(com.google.cloud.aiplatform.v1.MetadataSchema value) { if (metadataSchemaBuilder_ == null) { - if (metadataSchema_ != null) { - metadataSchema_ = - com.google.cloud.aiplatform.v1.MetadataSchema.newBuilder(metadataSchema_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && metadataSchema_ != null + && metadataSchema_ + != com.google.cloud.aiplatform.v1.MetadataSchema.getDefaultInstance()) { + getMetadataSchemaBuilder().mergeFrom(value); } else { metadataSchema_ = value; } - onChanged(); } else { metadataSchemaBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -887,14 +905,13 @@ public Builder mergeMetadataSchema(com.google.cloud.aiplatform.v1.MetadataSchema * */ public Builder clearMetadataSchema() { - if (metadataSchemaBuilder_ == null) { - metadataSchema_ = null; - onChanged(); - } else { - metadataSchema_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + metadataSchema_ = null; + if (metadataSchemaBuilder_ != null) { + metadataSchemaBuilder_.dispose(); metadataSchemaBuilder_ = null; } - + onChanged(); return this; } /** @@ -909,7 +926,7 @@ public Builder clearMetadataSchema() { * */ public com.google.cloud.aiplatform.v1.MetadataSchema.Builder getMetadataSchemaBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMetadataSchemaFieldBuilder().getBuilder(); } @@ -1043,8 +1060,8 @@ public Builder setMetadataSchemaId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metadataSchemaId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1067,8 +1084,8 @@ public Builder setMetadataSchemaId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetadataSchemaId() { - metadataSchemaId_ = getDefaultInstance().getMetadataSchemaId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1096,8 +1113,8 @@ public Builder setMetadataSchemaIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metadataSchemaId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataStoreOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataStoreOperationMetadata.java index c50c7c784e37..0167511a9414 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataStoreOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataStoreOperationMetadata.java @@ -114,7 +114,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -323,10 +325,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -358,15 +360,22 @@ public com.google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata build public com.google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata result = new com.google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -448,7 +457,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -468,6 +477,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -486,7 +497,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -524,11 +535,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -544,11 +555,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -563,19 +574,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -588,14 +599,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -609,7 +619,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataStoreRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataStoreRequest.java index e221f72d4b55..27f7d6565616 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataStoreRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateMetadataStoreRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -177,11 +179,15 @@ public com.google.cloud.aiplatform.v1.MetadataStore getMetadataStore() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.MetadataStoreOrBuilder getMetadataStoreOrBuilder() { - return getMetadataStore(); + return metadataStore_ == null + ? com.google.cloud.aiplatform.v1.MetadataStore.getDefaultInstance() + : metadataStore_; } public static final int METADATA_STORE_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object metadataStoreId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metadataStoreId_ = ""; /** * * @@ -465,16 +471,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (metadataStoreBuilder_ == null) { - metadataStore_ = null; - } else { - metadataStore_ = null; + metadataStore_ = null; + if (metadataStoreBuilder_ != null) { + metadataStoreBuilder_.dispose(); metadataStoreBuilder_ = null; } metadataStoreId_ = ""; - return this; } @@ -502,17 +506,27 @@ public com.google.cloud.aiplatform.v1.CreateMetadataStoreRequest build() { public com.google.cloud.aiplatform.v1.CreateMetadataStoreRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateMetadataStoreRequest result = new com.google.cloud.aiplatform.v1.CreateMetadataStoreRequest(this); - result.parent_ = parent_; - if (metadataStoreBuilder_ == null) { - result.metadataStore_ = metadataStore_; - } else { - result.metadataStore_ = metadataStoreBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.metadataStoreId_ = metadataStoreId_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateMetadataStoreRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metadataStore_ = + metadataStoreBuilder_ == null ? metadataStore_ : metadataStoreBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadataStoreId_ = metadataStoreId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -561,6 +575,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateMetadataStoreReque return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasMetadataStore()) { @@ -568,6 +583,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateMetadataStoreReque } if (!other.getMetadataStoreId().isEmpty()) { metadataStoreId_ = other.metadataStoreId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -599,19 +615,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMetadataStoreFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { metadataStoreId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -631,6 +647,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -704,8 +722,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -725,8 +743,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -751,8 +769,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -777,7 +795,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the metadataStore field is set. */ public boolean hasMetadataStore() { - return metadataStoreBuilder_ != null || metadataStore_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -818,11 +836,11 @@ public Builder setMetadataStore(com.google.cloud.aiplatform.v1.MetadataStore val throw new NullPointerException(); } metadataStore_ = value; - onChanged(); } else { metadataStoreBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -840,11 +858,11 @@ public Builder setMetadataStore( com.google.cloud.aiplatform.v1.MetadataStore.Builder builderForValue) { if (metadataStoreBuilder_ == null) { metadataStore_ = builderForValue.build(); - onChanged(); } else { metadataStoreBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -860,19 +878,19 @@ public Builder setMetadataStore( */ public Builder mergeMetadataStore(com.google.cloud.aiplatform.v1.MetadataStore value) { if (metadataStoreBuilder_ == null) { - if (metadataStore_ != null) { - metadataStore_ = - com.google.cloud.aiplatform.v1.MetadataStore.newBuilder(metadataStore_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && metadataStore_ != null + && metadataStore_ + != com.google.cloud.aiplatform.v1.MetadataStore.getDefaultInstance()) { + getMetadataStoreBuilder().mergeFrom(value); } else { metadataStore_ = value; } - onChanged(); } else { metadataStoreBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -887,14 +905,13 @@ public Builder mergeMetadataStore(com.google.cloud.aiplatform.v1.MetadataStore v * */ public Builder clearMetadataStore() { - if (metadataStoreBuilder_ == null) { - metadataStore_ = null; - onChanged(); - } else { - metadataStore_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + metadataStore_ = null; + if (metadataStoreBuilder_ != null) { + metadataStoreBuilder_.dispose(); metadataStoreBuilder_ = null; } - + onChanged(); return this; } /** @@ -909,7 +926,7 @@ public Builder clearMetadataStore() { * */ public com.google.cloud.aiplatform.v1.MetadataStore.Builder getMetadataStoreBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMetadataStoreFieldBuilder().getBuilder(); } @@ -1043,8 +1060,8 @@ public Builder setMetadataStoreId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metadataStoreId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1067,8 +1084,8 @@ public Builder setMetadataStoreId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetadataStoreId() { - metadataStoreId_ = getDefaultInstance().getMetadataStoreId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1096,8 +1113,8 @@ public Builder setMetadataStoreIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metadataStoreId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateModelDeploymentMonitoringJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateModelDeploymentMonitoringJobRequest.java index 9b99c03ec850..2a1af36688af 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateModelDeploymentMonitoringJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateModelDeploymentMonitoringJobRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -178,7 +180,9 @@ public boolean hasModelDeploymentMonitoringJob() { @java.lang.Override public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJobOrBuilder getModelDeploymentMonitoringJobOrBuilder() { - return getModelDeploymentMonitoringJob(); + return modelDeploymentMonitoringJob_ == null + ? com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.getDefaultInstance() + : modelDeploymentMonitoringJob_; } private byte memoizedIsInitialized = -1; @@ -401,12 +405,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (modelDeploymentMonitoringJobBuilder_ == null) { - modelDeploymentMonitoringJob_ = null; - } else { - modelDeploymentMonitoringJob_ = null; + modelDeploymentMonitoringJob_ = null; + if (modelDeploymentMonitoringJobBuilder_ != null) { + modelDeploymentMonitoringJobBuilder_.dispose(); modelDeploymentMonitoringJobBuilder_ = null; } return this; @@ -439,16 +442,27 @@ public com.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest public com.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest result = new com.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest(this); - result.parent_ = parent_; - if (modelDeploymentMonitoringJobBuilder_ == null) { - result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_; - } else { - result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJobBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelDeploymentMonitoringJob_ = + modelDeploymentMonitoringJobBuilder_ == null + ? modelDeploymentMonitoringJob_ + : modelDeploymentMonitoringJobBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -501,6 +515,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasModelDeploymentMonitoringJob()) { @@ -535,14 +550,14 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getModelDeploymentMonitoringJobFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -562,6 +577,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -632,8 +649,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -652,8 +669,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -677,8 +694,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -704,7 +721,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the modelDeploymentMonitoringJob field is set. */ public boolean hasModelDeploymentMonitoringJob() { - return modelDeploymentMonitoringJobBuilder_ != null || modelDeploymentMonitoringJob_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -747,11 +764,11 @@ public Builder setModelDeploymentMonitoringJob( throw new NullPointerException(); } modelDeploymentMonitoringJob_ = value; - onChanged(); } else { modelDeploymentMonitoringJobBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -769,11 +786,11 @@ public Builder setModelDeploymentMonitoringJob( com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.Builder builderForValue) { if (modelDeploymentMonitoringJobBuilder_ == null) { modelDeploymentMonitoringJob_ = builderForValue.build(); - onChanged(); } else { modelDeploymentMonitoringJobBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -790,20 +807,20 @@ public Builder setModelDeploymentMonitoringJob( public Builder mergeModelDeploymentMonitoringJob( com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob value) { if (modelDeploymentMonitoringJobBuilder_ == null) { - if (modelDeploymentMonitoringJob_ != null) { - modelDeploymentMonitoringJob_ = - com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.newBuilder( - modelDeploymentMonitoringJob_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && modelDeploymentMonitoringJob_ != null + && modelDeploymentMonitoringJob_ + != com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .getDefaultInstance()) { + getModelDeploymentMonitoringJobBuilder().mergeFrom(value); } else { modelDeploymentMonitoringJob_ = value; } - onChanged(); } else { modelDeploymentMonitoringJobBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -818,14 +835,13 @@ public Builder mergeModelDeploymentMonitoringJob( * */ public Builder clearModelDeploymentMonitoringJob() { - if (modelDeploymentMonitoringJobBuilder_ == null) { - modelDeploymentMonitoringJob_ = null; - onChanged(); - } else { - modelDeploymentMonitoringJob_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + modelDeploymentMonitoringJob_ = null; + if (modelDeploymentMonitoringJobBuilder_ != null) { + modelDeploymentMonitoringJobBuilder_.dispose(); modelDeploymentMonitoringJobBuilder_ = null; } - + onChanged(); return this; } /** @@ -841,7 +857,7 @@ public Builder clearModelDeploymentMonitoringJob() { */ public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.Builder getModelDeploymentMonitoringJobBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getModelDeploymentMonitoringJobFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequest.java index b6a12386029c..3137636b344d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -175,11 +177,15 @@ public com.google.cloud.aiplatform.v1.PipelineJob getPipelineJob() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.PipelineJobOrBuilder getPipelineJobOrBuilder() { - return getPipelineJob(); + return pipelineJob_ == null + ? com.google.cloud.aiplatform.v1.PipelineJob.getDefaultInstance() + : pipelineJob_; } public static final int PIPELINE_JOB_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object pipelineJobId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pipelineJobId_ = ""; /** * * @@ -457,16 +463,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (pipelineJobBuilder_ == null) { - pipelineJob_ = null; - } else { - pipelineJob_ = null; + pipelineJob_ = null; + if (pipelineJobBuilder_ != null) { + pipelineJobBuilder_.dispose(); pipelineJobBuilder_ = null; } pipelineJobId_ = ""; - return this; } @@ -494,17 +498,27 @@ public com.google.cloud.aiplatform.v1.CreatePipelineJobRequest build() { public com.google.cloud.aiplatform.v1.CreatePipelineJobRequest buildPartial() { com.google.cloud.aiplatform.v1.CreatePipelineJobRequest result = new com.google.cloud.aiplatform.v1.CreatePipelineJobRequest(this); - result.parent_ = parent_; - if (pipelineJobBuilder_ == null) { - result.pipelineJob_ = pipelineJob_; - } else { - result.pipelineJob_ = pipelineJobBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.pipelineJobId_ = pipelineJobId_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CreatePipelineJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pipelineJob_ = + pipelineJobBuilder_ == null ? pipelineJob_ : pipelineJobBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pipelineJobId_ = pipelineJobId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -553,6 +567,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreatePipelineJobRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasPipelineJob()) { @@ -560,6 +575,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreatePipelineJobRequest } if (!other.getPipelineJobId().isEmpty()) { pipelineJobId_ = other.pipelineJobId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -591,19 +607,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getPipelineJobFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { pipelineJobId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -623,6 +639,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -693,8 +711,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -713,8 +731,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -738,8 +756,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -764,7 +782,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the pipelineJob field is set. */ public boolean hasPipelineJob() { - return pipelineJobBuilder_ != null || pipelineJob_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -805,11 +823,11 @@ public Builder setPipelineJob(com.google.cloud.aiplatform.v1.PipelineJob value) throw new NullPointerException(); } pipelineJob_ = value; - onChanged(); } else { pipelineJobBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -827,11 +845,11 @@ public Builder setPipelineJob( com.google.cloud.aiplatform.v1.PipelineJob.Builder builderForValue) { if (pipelineJobBuilder_ == null) { pipelineJob_ = builderForValue.build(); - onChanged(); } else { pipelineJobBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -847,19 +865,18 @@ public Builder setPipelineJob( */ public Builder mergePipelineJob(com.google.cloud.aiplatform.v1.PipelineJob value) { if (pipelineJobBuilder_ == null) { - if (pipelineJob_ != null) { - pipelineJob_ = - com.google.cloud.aiplatform.v1.PipelineJob.newBuilder(pipelineJob_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && pipelineJob_ != null + && pipelineJob_ != com.google.cloud.aiplatform.v1.PipelineJob.getDefaultInstance()) { + getPipelineJobBuilder().mergeFrom(value); } else { pipelineJob_ = value; } - onChanged(); } else { pipelineJobBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -874,14 +891,13 @@ public Builder mergePipelineJob(com.google.cloud.aiplatform.v1.PipelineJob value * */ public Builder clearPipelineJob() { - if (pipelineJobBuilder_ == null) { - pipelineJob_ = null; - onChanged(); - } else { - pipelineJob_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + pipelineJob_ = null; + if (pipelineJobBuilder_ != null) { + pipelineJobBuilder_.dispose(); pipelineJobBuilder_ = null; } - + onChanged(); return this; } /** @@ -896,7 +912,7 @@ public Builder clearPipelineJob() { * */ public com.google.cloud.aiplatform.v1.PipelineJob.Builder getPipelineJobBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getPipelineJobFieldBuilder().getBuilder(); } @@ -1021,8 +1037,8 @@ public Builder setPipelineJobId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pipelineJobId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1042,8 +1058,8 @@ public Builder setPipelineJobId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPipelineJobId() { - pipelineJobId_ = getDefaultInstance().getPipelineJobId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1068,8 +1084,8 @@ public Builder setPipelineJobIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pipelineJobId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateSpecialistPoolOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateSpecialistPoolOperationMetadata.java index 95b635bbcc37..9b76ed5481ec 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateSpecialistPoolOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateSpecialistPoolOperationMetadata.java @@ -114,7 +114,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -323,10 +325,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -358,15 +360,22 @@ public com.google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata buil public com.google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata result = new com.google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -448,7 +457,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -468,6 +477,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -486,7 +497,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -524,11 +535,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -544,11 +555,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -563,19 +574,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -588,14 +599,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -609,7 +619,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateSpecialistPoolRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateSpecialistPoolRequest.java index c9956a44d2b6..63eba3653e11 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateSpecialistPoolRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateSpecialistPoolRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -174,7 +176,9 @@ public com.google.cloud.aiplatform.v1.SpecialistPool getSpecialistPool() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.SpecialistPoolOrBuilder getSpecialistPoolOrBuilder() { - return getSpecialistPool(); + return specialistPool_ == null + ? com.google.cloud.aiplatform.v1.SpecialistPool.getDefaultInstance() + : specialistPool_; } private byte memoizedIsInitialized = -1; @@ -390,12 +394,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (specialistPoolBuilder_ == null) { - specialistPool_ = null; - } else { - specialistPool_ = null; + specialistPool_ = null; + if (specialistPoolBuilder_ != null) { + specialistPoolBuilder_.dispose(); specialistPoolBuilder_ = null; } return this; @@ -425,16 +428,24 @@ public com.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest build() { public com.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest result = new com.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest(this); - result.parent_ = parent_; - if (specialistPoolBuilder_ == null) { - result.specialistPool_ = specialistPool_; - } else { - result.specialistPool_ = specialistPoolBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.specialistPool_ = + specialistPoolBuilder_ == null ? specialistPool_ : specialistPoolBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -483,6 +494,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateSpecialistPoolRequ return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasSpecialistPool()) { @@ -517,13 +529,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getSpecialistPoolFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -543,6 +555,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -613,8 +627,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -633,8 +647,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -658,8 +672,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -684,7 +698,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the specialistPool field is set. */ public boolean hasSpecialistPool() { - return specialistPoolBuilder_ != null || specialistPool_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -725,11 +739,11 @@ public Builder setSpecialistPool(com.google.cloud.aiplatform.v1.SpecialistPool v throw new NullPointerException(); } specialistPool_ = value; - onChanged(); } else { specialistPoolBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -747,11 +761,11 @@ public Builder setSpecialistPool( com.google.cloud.aiplatform.v1.SpecialistPool.Builder builderForValue) { if (specialistPoolBuilder_ == null) { specialistPool_ = builderForValue.build(); - onChanged(); } else { specialistPoolBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -767,19 +781,19 @@ public Builder setSpecialistPool( */ public Builder mergeSpecialistPool(com.google.cloud.aiplatform.v1.SpecialistPool value) { if (specialistPoolBuilder_ == null) { - if (specialistPool_ != null) { - specialistPool_ = - com.google.cloud.aiplatform.v1.SpecialistPool.newBuilder(specialistPool_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && specialistPool_ != null + && specialistPool_ + != com.google.cloud.aiplatform.v1.SpecialistPool.getDefaultInstance()) { + getSpecialistPoolBuilder().mergeFrom(value); } else { specialistPool_ = value; } - onChanged(); } else { specialistPoolBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -794,14 +808,13 @@ public Builder mergeSpecialistPool(com.google.cloud.aiplatform.v1.SpecialistPool * */ public Builder clearSpecialistPool() { - if (specialistPoolBuilder_ == null) { - specialistPool_ = null; - onChanged(); - } else { - specialistPool_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + specialistPool_ = null; + if (specialistPoolBuilder_ != null) { + specialistPoolBuilder_.dispose(); specialistPoolBuilder_ = null; } - + onChanged(); return this; } /** @@ -816,7 +829,7 @@ public Builder clearSpecialistPool() { * */ public com.google.cloud.aiplatform.v1.SpecialistPool.Builder getSpecialistPoolBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getSpecialistPoolFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateStudyRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateStudyRequest.java index a43ed33d5ebd..6cbcc6dc8341 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateStudyRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateStudyRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -169,7 +171,7 @@ public com.google.cloud.aiplatform.v1.Study getStudy() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.StudyOrBuilder getStudyOrBuilder() { - return getStudy(); + return study_ == null ? com.google.cloud.aiplatform.v1.Study.getDefaultInstance() : study_; } private byte memoizedIsInitialized = -1; @@ -384,12 +386,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (studyBuilder_ == null) { - study_ = null; - } else { - study_ = null; + study_ = null; + if (studyBuilder_ != null) { + studyBuilder_.dispose(); studyBuilder_ = null; } return this; @@ -419,16 +420,23 @@ public com.google.cloud.aiplatform.v1.CreateStudyRequest build() { public com.google.cloud.aiplatform.v1.CreateStudyRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateStudyRequest result = new com.google.cloud.aiplatform.v1.CreateStudyRequest(this); - result.parent_ = parent_; - if (studyBuilder_ == null) { - result.study_ = study_; - } else { - result.study_ = studyBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateStudyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.study_ = studyBuilder_ == null ? study_ : studyBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -477,6 +485,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateStudyRequest other return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasStudy()) { @@ -511,13 +520,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getStudyFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -537,6 +546,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -607,8 +618,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -627,8 +638,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -652,8 +663,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -677,7 +688,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the study field is set. */ public boolean hasStudy() { - return studyBuilder_ != null || study_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -714,11 +725,11 @@ public Builder setStudy(com.google.cloud.aiplatform.v1.Study value) { throw new NullPointerException(); } study_ = value; - onChanged(); } else { studyBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -734,11 +745,11 @@ public Builder setStudy(com.google.cloud.aiplatform.v1.Study value) { public Builder setStudy(com.google.cloud.aiplatform.v1.Study.Builder builderForValue) { if (studyBuilder_ == null) { study_ = builderForValue.build(); - onChanged(); } else { studyBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -753,19 +764,18 @@ public Builder setStudy(com.google.cloud.aiplatform.v1.Study.Builder builderForV */ public Builder mergeStudy(com.google.cloud.aiplatform.v1.Study value) { if (studyBuilder_ == null) { - if (study_ != null) { - study_ = - com.google.cloud.aiplatform.v1.Study.newBuilder(study_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && study_ != null + && study_ != com.google.cloud.aiplatform.v1.Study.getDefaultInstance()) { + getStudyBuilder().mergeFrom(value); } else { study_ = value; } - onChanged(); } else { studyBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -779,14 +789,13 @@ public Builder mergeStudy(com.google.cloud.aiplatform.v1.Study value) { * */ public Builder clearStudy() { - if (studyBuilder_ == null) { - study_ = null; - onChanged(); - } else { - study_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + study_ = null; + if (studyBuilder_ != null) { + studyBuilder_.dispose(); studyBuilder_ = null; } - + onChanged(); return this; } /** @@ -800,7 +809,7 @@ public Builder clearStudy() { * */ public com.google.cloud.aiplatform.v1.Study.Builder getStudyBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getStudyFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardExperimentRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardExperimentRequest.java index 55b90d509fee..a91d8bc7d1e2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardExperimentRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardExperimentRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -173,11 +175,15 @@ public com.google.cloud.aiplatform.v1.TensorboardExperiment getTensorboardExperi @java.lang.Override public com.google.cloud.aiplatform.v1.TensorboardExperimentOrBuilder getTensorboardExperimentOrBuilder() { - return getTensorboardExperiment(); + return tensorboardExperiment_ == null + ? com.google.cloud.aiplatform.v1.TensorboardExperiment.getDefaultInstance() + : tensorboardExperiment_; } public static final int TENSORBOARD_EXPERIMENT_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object tensorboardExperimentId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboardExperimentId_ = ""; /** * * @@ -456,16 +462,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (tensorboardExperimentBuilder_ == null) { - tensorboardExperiment_ = null; - } else { - tensorboardExperiment_ = null; + tensorboardExperiment_ = null; + if (tensorboardExperimentBuilder_ != null) { + tensorboardExperimentBuilder_.dispose(); tensorboardExperimentBuilder_ = null; } tensorboardExperimentId_ = ""; - return this; } @@ -494,17 +498,30 @@ public com.google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest build() public com.google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest result = new com.google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest(this); - result.parent_ = parent_; - if (tensorboardExperimentBuilder_ == null) { - result.tensorboardExperiment_ = tensorboardExperiment_; - } else { - result.tensorboardExperiment_ = tensorboardExperimentBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.tensorboardExperimentId_ = tensorboardExperimentId_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tensorboardExperiment_ = + tensorboardExperimentBuilder_ == null + ? tensorboardExperiment_ + : tensorboardExperimentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tensorboardExperimentId_ = tensorboardExperimentId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -555,6 +572,7 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTensorboardExperiment()) { @@ -562,6 +580,7 @@ public Builder mergeFrom( } if (!other.getTensorboardExperimentId().isEmpty()) { tensorboardExperimentId_ = other.tensorboardExperimentId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -593,20 +612,20 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTensorboardExperimentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { tensorboardExperimentId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -626,6 +645,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -699,8 +720,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -720,8 +741,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -746,8 +767,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -770,7 +791,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the tensorboardExperiment field is set. */ public boolean hasTensorboardExperiment() { - return tensorboardExperimentBuilder_ != null || tensorboardExperiment_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -808,11 +829,11 @@ public Builder setTensorboardExperiment( throw new NullPointerException(); } tensorboardExperiment_ = value; - onChanged(); } else { tensorboardExperimentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -828,11 +849,11 @@ public Builder setTensorboardExperiment( com.google.cloud.aiplatform.v1.TensorboardExperiment.Builder builderForValue) { if (tensorboardExperimentBuilder_ == null) { tensorboardExperiment_ = builderForValue.build(); - onChanged(); } else { tensorboardExperimentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -847,20 +868,19 @@ public Builder setTensorboardExperiment( public Builder mergeTensorboardExperiment( com.google.cloud.aiplatform.v1.TensorboardExperiment value) { if (tensorboardExperimentBuilder_ == null) { - if (tensorboardExperiment_ != null) { - tensorboardExperiment_ = - com.google.cloud.aiplatform.v1.TensorboardExperiment.newBuilder( - tensorboardExperiment_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && tensorboardExperiment_ != null + && tensorboardExperiment_ + != com.google.cloud.aiplatform.v1.TensorboardExperiment.getDefaultInstance()) { + getTensorboardExperimentBuilder().mergeFrom(value); } else { tensorboardExperiment_ = value; } - onChanged(); } else { tensorboardExperimentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -873,14 +893,13 @@ public Builder mergeTensorboardExperiment( * .google.cloud.aiplatform.v1.TensorboardExperiment tensorboard_experiment = 2; */ public Builder clearTensorboardExperiment() { - if (tensorboardExperimentBuilder_ == null) { - tensorboardExperiment_ = null; - onChanged(); - } else { - tensorboardExperiment_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + tensorboardExperiment_ = null; + if (tensorboardExperimentBuilder_ != null) { + tensorboardExperimentBuilder_.dispose(); tensorboardExperimentBuilder_ = null; } - + onChanged(); return this; } /** @@ -894,7 +913,7 @@ public Builder clearTensorboardExperiment() { */ public com.google.cloud.aiplatform.v1.TensorboardExperiment.Builder getTensorboardExperimentBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTensorboardExperimentFieldBuilder().getBuilder(); } @@ -1013,8 +1032,8 @@ public Builder setTensorboardExperimentId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboardExperimentId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1033,8 +1052,8 @@ public Builder setTensorboardExperimentId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboardExperimentId() { - tensorboardExperimentId_ = getDefaultInstance().getTensorboardExperimentId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1058,8 +1077,8 @@ public Builder setTensorboardExperimentIdBytes(com.google.protobuf.ByteString va throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboardExperimentId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardOperationMetadata.java index ed5928a7fb6c..51d6552015fb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardOperationMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -320,10 +322,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -354,15 +356,22 @@ public com.google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata build() public com.google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata result = new com.google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -443,7 +452,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -463,6 +472,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -481,7 +492,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -519,11 +530,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -539,11 +550,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -558,19 +569,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -583,14 +594,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -604,7 +614,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRequest.java index 7cc0ece285f6..4692dd057d61 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -174,7 +176,9 @@ public com.google.cloud.aiplatform.v1.Tensorboard getTensorboard() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.TensorboardOrBuilder getTensorboardOrBuilder() { - return getTensorboard(); + return tensorboard_ == null + ? com.google.cloud.aiplatform.v1.Tensorboard.getDefaultInstance() + : tensorboard_; } private byte memoizedIsInitialized = -1; @@ -390,12 +394,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (tensorboardBuilder_ == null) { - tensorboard_ = null; - } else { - tensorboard_ = null; + tensorboard_ = null; + if (tensorboardBuilder_ != null) { + tensorboardBuilder_.dispose(); tensorboardBuilder_ = null; } return this; @@ -425,16 +428,24 @@ public com.google.cloud.aiplatform.v1.CreateTensorboardRequest build() { public com.google.cloud.aiplatform.v1.CreateTensorboardRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateTensorboardRequest result = new com.google.cloud.aiplatform.v1.CreateTensorboardRequest(this); - result.parent_ = parent_; - if (tensorboardBuilder_ == null) { - result.tensorboard_ = tensorboard_; - } else { - result.tensorboard_ = tensorboardBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateTensorboardRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tensorboard_ = + tensorboardBuilder_ == null ? tensorboard_ : tensorboardBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -483,6 +494,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateTensorboardRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTensorboard()) { @@ -517,13 +529,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getTensorboardFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -543,6 +555,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -613,8 +627,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -633,8 +647,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -658,8 +672,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -684,7 +698,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the tensorboard field is set. */ public boolean hasTensorboard() { - return tensorboardBuilder_ != null || tensorboard_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -725,11 +739,11 @@ public Builder setTensorboard(com.google.cloud.aiplatform.v1.Tensorboard value) throw new NullPointerException(); } tensorboard_ = value; - onChanged(); } else { tensorboardBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -747,11 +761,11 @@ public Builder setTensorboard( com.google.cloud.aiplatform.v1.Tensorboard.Builder builderForValue) { if (tensorboardBuilder_ == null) { tensorboard_ = builderForValue.build(); - onChanged(); } else { tensorboardBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -767,19 +781,18 @@ public Builder setTensorboard( */ public Builder mergeTensorboard(com.google.cloud.aiplatform.v1.Tensorboard value) { if (tensorboardBuilder_ == null) { - if (tensorboard_ != null) { - tensorboard_ = - com.google.cloud.aiplatform.v1.Tensorboard.newBuilder(tensorboard_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && tensorboard_ != null + && tensorboard_ != com.google.cloud.aiplatform.v1.Tensorboard.getDefaultInstance()) { + getTensorboardBuilder().mergeFrom(value); } else { tensorboard_ = value; } - onChanged(); } else { tensorboardBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -794,14 +807,13 @@ public Builder mergeTensorboard(com.google.cloud.aiplatform.v1.Tensorboard value * */ public Builder clearTensorboard() { - if (tensorboardBuilder_ == null) { - tensorboard_ = null; - onChanged(); - } else { - tensorboard_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + tensorboard_ = null; + if (tensorboardBuilder_ != null) { + tensorboardBuilder_.dispose(); tensorboardBuilder_ = null; } - + onChanged(); return this; } /** @@ -816,7 +828,7 @@ public Builder clearTensorboard() { * */ public com.google.cloud.aiplatform.v1.Tensorboard.Builder getTensorboardBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTensorboardFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRunRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRunRequest.java index 8a97304fbb8d..d147c6d68f11 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRunRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRunRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -177,11 +179,15 @@ public com.google.cloud.aiplatform.v1.TensorboardRun getTensorboardRun() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.TensorboardRunOrBuilder getTensorboardRunOrBuilder() { - return getTensorboardRun(); + return tensorboardRun_ == null + ? com.google.cloud.aiplatform.v1.TensorboardRun.getDefaultInstance() + : tensorboardRun_; } public static final int TENSORBOARD_RUN_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object tensorboardRunId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboardRunId_ = ""; /** * * @@ -457,16 +463,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (tensorboardRunBuilder_ == null) { - tensorboardRun_ = null; - } else { - tensorboardRun_ = null; + tensorboardRun_ = null; + if (tensorboardRunBuilder_ != null) { + tensorboardRunBuilder_.dispose(); tensorboardRunBuilder_ = null; } tensorboardRunId_ = ""; - return this; } @@ -494,17 +498,27 @@ public com.google.cloud.aiplatform.v1.CreateTensorboardRunRequest build() { public com.google.cloud.aiplatform.v1.CreateTensorboardRunRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateTensorboardRunRequest result = new com.google.cloud.aiplatform.v1.CreateTensorboardRunRequest(this); - result.parent_ = parent_; - if (tensorboardRunBuilder_ == null) { - result.tensorboardRun_ = tensorboardRun_; - } else { - result.tensorboardRun_ = tensorboardRunBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.tensorboardRunId_ = tensorboardRunId_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateTensorboardRunRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tensorboardRun_ = + tensorboardRunBuilder_ == null ? tensorboardRun_ : tensorboardRunBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tensorboardRunId_ = tensorboardRunId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -553,6 +567,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateTensorboardRunRequ return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTensorboardRun()) { @@ -560,6 +575,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateTensorboardRunRequ } if (!other.getTensorboardRunId().isEmpty()) { tensorboardRunId_ = other.tensorboardRunId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -591,19 +607,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getTensorboardRunFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { tensorboardRunId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -623,6 +639,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -696,8 +714,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -717,8 +735,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -743,8 +761,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -769,7 +787,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the tensorboardRun field is set. */ public boolean hasTensorboardRun() { - return tensorboardRunBuilder_ != null || tensorboardRun_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -810,11 +828,11 @@ public Builder setTensorboardRun(com.google.cloud.aiplatform.v1.TensorboardRun v throw new NullPointerException(); } tensorboardRun_ = value; - onChanged(); } else { tensorboardRunBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -832,11 +850,11 @@ public Builder setTensorboardRun( com.google.cloud.aiplatform.v1.TensorboardRun.Builder builderForValue) { if (tensorboardRunBuilder_ == null) { tensorboardRun_ = builderForValue.build(); - onChanged(); } else { tensorboardRunBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -852,19 +870,19 @@ public Builder setTensorboardRun( */ public Builder mergeTensorboardRun(com.google.cloud.aiplatform.v1.TensorboardRun value) { if (tensorboardRunBuilder_ == null) { - if (tensorboardRun_ != null) { - tensorboardRun_ = - com.google.cloud.aiplatform.v1.TensorboardRun.newBuilder(tensorboardRun_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && tensorboardRun_ != null + && tensorboardRun_ + != com.google.cloud.aiplatform.v1.TensorboardRun.getDefaultInstance()) { + getTensorboardRunBuilder().mergeFrom(value); } else { tensorboardRun_ = value; } - onChanged(); } else { tensorboardRunBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -879,14 +897,13 @@ public Builder mergeTensorboardRun(com.google.cloud.aiplatform.v1.TensorboardRun * */ public Builder clearTensorboardRun() { - if (tensorboardRunBuilder_ == null) { - tensorboardRun_ = null; - onChanged(); - } else { - tensorboardRun_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + tensorboardRun_ = null; + if (tensorboardRunBuilder_ != null) { + tensorboardRunBuilder_.dispose(); tensorboardRunBuilder_ = null; } - + onChanged(); return this; } /** @@ -901,7 +918,7 @@ public Builder clearTensorboardRun() { * */ public com.google.cloud.aiplatform.v1.TensorboardRun.Builder getTensorboardRunBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTensorboardRunFieldBuilder().getBuilder(); } @@ -1023,8 +1040,8 @@ public Builder setTensorboardRunId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboardRunId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1043,8 +1060,8 @@ public Builder setTensorboardRunId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboardRunId() { - tensorboardRunId_ = getDefaultInstance().getTensorboardRunId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1068,8 +1085,8 @@ public Builder setTensorboardRunIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboardRunId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardTimeSeriesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardTimeSeriesRequest.java index 3fddf032fa37..1026a08d1fc9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardTimeSeriesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardTimeSeriesRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -130,7 +132,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int TENSORBOARD_TIME_SERIES_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object tensorboardTimeSeriesId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboardTimeSeriesId_ = ""; /** * * @@ -236,7 +240,9 @@ public com.google.cloud.aiplatform.v1.TensorboardTimeSeries getTensorboardTimeSe @java.lang.Override public com.google.cloud.aiplatform.v1.TensorboardTimeSeriesOrBuilder getTensorboardTimeSeriesOrBuilder() { - return getTensorboardTimeSeries(); + return tensorboardTimeSeries_ == null + ? com.google.cloud.aiplatform.v1.TensorboardTimeSeries.getDefaultInstance() + : tensorboardTimeSeries_; } private byte memoizedIsInitialized = -1; @@ -464,14 +470,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - tensorboardTimeSeriesId_ = ""; - - if (tensorboardTimeSeriesBuilder_ == null) { - tensorboardTimeSeries_ = null; - } else { - tensorboardTimeSeries_ = null; + tensorboardTimeSeries_ = null; + if (tensorboardTimeSeriesBuilder_ != null) { + tensorboardTimeSeriesBuilder_.dispose(); tensorboardTimeSeriesBuilder_ = null; } return this; @@ -502,17 +506,30 @@ public com.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest build() public com.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest result = new com.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest(this); - result.parent_ = parent_; - result.tensorboardTimeSeriesId_ = tensorboardTimeSeriesId_; - if (tensorboardTimeSeriesBuilder_ == null) { - result.tensorboardTimeSeries_ = tensorboardTimeSeries_; - } else { - result.tensorboardTimeSeries_ = tensorboardTimeSeriesBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tensorboardTimeSeriesId_ = tensorboardTimeSeriesId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tensorboardTimeSeries_ = + tensorboardTimeSeriesBuilder_ == null + ? tensorboardTimeSeries_ + : tensorboardTimeSeriesBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -563,10 +580,12 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getTensorboardTimeSeriesId().isEmpty()) { tensorboardTimeSeriesId_ = other.tensorboardTimeSeriesId_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasTensorboardTimeSeries()) { @@ -601,20 +620,20 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTensorboardTimeSeriesFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 18 case 26: { tensorboardTimeSeriesId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 26 default: @@ -634,6 +653,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -710,8 +731,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -732,8 +753,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -759,8 +780,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -835,8 +856,8 @@ public Builder setTensorboardTimeSeriesId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboardTimeSeriesId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -855,8 +876,8 @@ public Builder setTensorboardTimeSeriesId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboardTimeSeriesId() { - tensorboardTimeSeriesId_ = getDefaultInstance().getTensorboardTimeSeriesId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -880,8 +901,8 @@ public Builder setTensorboardTimeSeriesIdBytes(com.google.protobuf.ByteString va throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboardTimeSeriesId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -906,7 +927,7 @@ public Builder setTensorboardTimeSeriesIdBytes(com.google.protobuf.ByteString va * @return Whether the tensorboardTimeSeries field is set. */ public boolean hasTensorboardTimeSeries() { - return tensorboardTimeSeriesBuilder_ != null || tensorboardTimeSeries_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -948,11 +969,11 @@ public Builder setTensorboardTimeSeries( throw new NullPointerException(); } tensorboardTimeSeries_ = value; - onChanged(); } else { tensorboardTimeSeriesBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -970,11 +991,11 @@ public Builder setTensorboardTimeSeries( com.google.cloud.aiplatform.v1.TensorboardTimeSeries.Builder builderForValue) { if (tensorboardTimeSeriesBuilder_ == null) { tensorboardTimeSeries_ = builderForValue.build(); - onChanged(); } else { tensorboardTimeSeriesBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -991,20 +1012,19 @@ public Builder setTensorboardTimeSeries( public Builder mergeTensorboardTimeSeries( com.google.cloud.aiplatform.v1.TensorboardTimeSeries value) { if (tensorboardTimeSeriesBuilder_ == null) { - if (tensorboardTimeSeries_ != null) { - tensorboardTimeSeries_ = - com.google.cloud.aiplatform.v1.TensorboardTimeSeries.newBuilder( - tensorboardTimeSeries_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && tensorboardTimeSeries_ != null + && tensorboardTimeSeries_ + != com.google.cloud.aiplatform.v1.TensorboardTimeSeries.getDefaultInstance()) { + getTensorboardTimeSeriesBuilder().mergeFrom(value); } else { tensorboardTimeSeries_ = value; } - onChanged(); } else { tensorboardTimeSeriesBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1019,14 +1039,13 @@ public Builder mergeTensorboardTimeSeries( * */ public Builder clearTensorboardTimeSeries() { - if (tensorboardTimeSeriesBuilder_ == null) { - tensorboardTimeSeries_ = null; - onChanged(); - } else { - tensorboardTimeSeries_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + tensorboardTimeSeries_ = null; + if (tensorboardTimeSeriesBuilder_ != null) { + tensorboardTimeSeriesBuilder_.dispose(); tensorboardTimeSeriesBuilder_ = null; } - + onChanged(); return this; } /** @@ -1042,7 +1061,7 @@ public Builder clearTensorboardTimeSeries() { */ public com.google.cloud.aiplatform.v1.TensorboardTimeSeries.Builder getTensorboardTimeSeriesBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getTensorboardTimeSeriesFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTrainingPipelineRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTrainingPipelineRequest.java index 244ffbe766a2..d6ad21fd8421 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTrainingPipelineRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTrainingPipelineRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -174,7 +176,9 @@ public com.google.cloud.aiplatform.v1.TrainingPipeline getTrainingPipeline() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.TrainingPipelineOrBuilder getTrainingPipelineOrBuilder() { - return getTrainingPipeline(); + return trainingPipeline_ == null + ? com.google.cloud.aiplatform.v1.TrainingPipeline.getDefaultInstance() + : trainingPipeline_; } private byte memoizedIsInitialized = -1; @@ -390,12 +394,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (trainingPipelineBuilder_ == null) { - trainingPipeline_ = null; - } else { - trainingPipeline_ = null; + trainingPipeline_ = null; + if (trainingPipelineBuilder_ != null) { + trainingPipelineBuilder_.dispose(); trainingPipelineBuilder_ = null; } return this; @@ -426,16 +429,25 @@ public com.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest build() { public com.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest result = new com.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest(this); - result.parent_ = parent_; - if (trainingPipelineBuilder_ == null) { - result.trainingPipeline_ = trainingPipeline_; - } else { - result.trainingPipeline_ = trainingPipelineBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.trainingPipeline_ = + trainingPipelineBuilder_ == null ? trainingPipeline_ : trainingPipelineBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -485,6 +497,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateTrainingPipelineRe return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTrainingPipeline()) { @@ -519,14 +532,14 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTrainingPipelineFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -546,6 +559,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -616,8 +631,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -636,8 +651,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -661,8 +676,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -687,7 +702,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the trainingPipeline field is set. */ public boolean hasTrainingPipeline() { - return trainingPipelineBuilder_ != null || trainingPipeline_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -728,11 +743,11 @@ public Builder setTrainingPipeline(com.google.cloud.aiplatform.v1.TrainingPipeli throw new NullPointerException(); } trainingPipeline_ = value; - onChanged(); } else { trainingPipelineBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -750,11 +765,11 @@ public Builder setTrainingPipeline( com.google.cloud.aiplatform.v1.TrainingPipeline.Builder builderForValue) { if (trainingPipelineBuilder_ == null) { trainingPipeline_ = builderForValue.build(); - onChanged(); } else { trainingPipelineBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -770,19 +785,19 @@ public Builder setTrainingPipeline( */ public Builder mergeTrainingPipeline(com.google.cloud.aiplatform.v1.TrainingPipeline value) { if (trainingPipelineBuilder_ == null) { - if (trainingPipeline_ != null) { - trainingPipeline_ = - com.google.cloud.aiplatform.v1.TrainingPipeline.newBuilder(trainingPipeline_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && trainingPipeline_ != null + && trainingPipeline_ + != com.google.cloud.aiplatform.v1.TrainingPipeline.getDefaultInstance()) { + getTrainingPipelineBuilder().mergeFrom(value); } else { trainingPipeline_ = value; } - onChanged(); } else { trainingPipelineBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -797,14 +812,13 @@ public Builder mergeTrainingPipeline(com.google.cloud.aiplatform.v1.TrainingPipe * */ public Builder clearTrainingPipeline() { - if (trainingPipelineBuilder_ == null) { - trainingPipeline_ = null; - onChanged(); - } else { - trainingPipeline_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + trainingPipeline_ = null; + if (trainingPipelineBuilder_ != null) { + trainingPipelineBuilder_.dispose(); trainingPipelineBuilder_ = null; } - + onChanged(); return this; } /** @@ -819,7 +833,7 @@ public Builder clearTrainingPipeline() { * */ public com.google.cloud.aiplatform.v1.TrainingPipeline.Builder getTrainingPipelineBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTrainingPipelineFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTrialRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTrialRequest.java index eb5d4a489154..39fe18a2c448 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTrialRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTrialRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -169,7 +171,7 @@ public com.google.cloud.aiplatform.v1.Trial getTrial() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.TrialOrBuilder getTrialOrBuilder() { - return getTrial(); + return trial_ == null ? com.google.cloud.aiplatform.v1.Trial.getDefaultInstance() : trial_; } private byte memoizedIsInitialized = -1; @@ -384,12 +386,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (trialBuilder_ == null) { - trial_ = null; - } else { - trial_ = null; + trial_ = null; + if (trialBuilder_ != null) { + trialBuilder_.dispose(); trialBuilder_ = null; } return this; @@ -419,16 +420,23 @@ public com.google.cloud.aiplatform.v1.CreateTrialRequest build() { public com.google.cloud.aiplatform.v1.CreateTrialRequest buildPartial() { com.google.cloud.aiplatform.v1.CreateTrialRequest result = new com.google.cloud.aiplatform.v1.CreateTrialRequest(this); - result.parent_ = parent_; - if (trialBuilder_ == null) { - result.trial_ = trial_; - } else { - result.trial_ = trialBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateTrialRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.trial_ = trialBuilder_ == null ? trial_ : trialBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -477,6 +485,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateTrialRequest other return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTrial()) { @@ -511,13 +520,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getTrialFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -537,6 +546,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -607,8 +618,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -627,8 +638,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -652,8 +663,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -677,7 +688,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the trial field is set. */ public boolean hasTrial() { - return trialBuilder_ != null || trial_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -714,11 +725,11 @@ public Builder setTrial(com.google.cloud.aiplatform.v1.Trial value) { throw new NullPointerException(); } trial_ = value; - onChanged(); } else { trialBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -734,11 +745,11 @@ public Builder setTrial(com.google.cloud.aiplatform.v1.Trial value) { public Builder setTrial(com.google.cloud.aiplatform.v1.Trial.Builder builderForValue) { if (trialBuilder_ == null) { trial_ = builderForValue.build(); - onChanged(); } else { trialBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -753,19 +764,18 @@ public Builder setTrial(com.google.cloud.aiplatform.v1.Trial.Builder builderForV */ public Builder mergeTrial(com.google.cloud.aiplatform.v1.Trial value) { if (trialBuilder_ == null) { - if (trial_ != null) { - trial_ = - com.google.cloud.aiplatform.v1.Trial.newBuilder(trial_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && trial_ != null + && trial_ != com.google.cloud.aiplatform.v1.Trial.getDefaultInstance()) { + getTrialBuilder().mergeFrom(value); } else { trial_ = value; } - onChanged(); } else { trialBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -779,14 +789,13 @@ public Builder mergeTrial(com.google.cloud.aiplatform.v1.Trial value) { * */ public Builder clearTrial() { - if (trialBuilder_ == null) { - trial_ = null; - onChanged(); - } else { - trial_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + trial_ = null; + if (trialBuilder_ != null) { + trialBuilder_.dispose(); trialBuilder_ = null; } - + onChanged(); return this; } /** @@ -800,7 +809,7 @@ public Builder clearTrial() { * */ public com.google.cloud.aiplatform.v1.Trial.Builder getTrialBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTrialFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CsvDestination.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CsvDestination.java index ae14886ad15c..6b62b3e7763a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CsvDestination.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CsvDestination.java @@ -116,7 +116,9 @@ public com.google.cloud.aiplatform.v1.GcsDestination getGcsDestination() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { - return getGcsDestination(); + return gcsDestination_ == null + ? com.google.cloud.aiplatform.v1.GcsDestination.getDefaultInstance() + : gcsDestination_; } private byte memoizedIsInitialized = -1; @@ -321,10 +323,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (gcsDestinationBuilder_ == null) { - gcsDestination_ = null; - } else { - gcsDestination_ = null; + bitField0_ = 0; + gcsDestination_ = null; + if (gcsDestinationBuilder_ != null) { + gcsDestinationBuilder_.dispose(); gcsDestinationBuilder_ = null; } return this; @@ -354,15 +356,21 @@ public com.google.cloud.aiplatform.v1.CsvDestination build() { public com.google.cloud.aiplatform.v1.CsvDestination buildPartial() { com.google.cloud.aiplatform.v1.CsvDestination result = new com.google.cloud.aiplatform.v1.CsvDestination(this); - if (gcsDestinationBuilder_ == null) { - result.gcsDestination_ = gcsDestination_; - } else { - result.gcsDestination_ = gcsDestinationBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CsvDestination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gcsDestination_ = + gcsDestinationBuilder_ == null ? gcsDestination_ : gcsDestinationBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -440,7 +448,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -460,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GcsDestination gcsDestination_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GcsDestination, @@ -480,7 +490,7 @@ public Builder mergeFrom( * @return Whether the gcsDestination field is set. */ public boolean hasGcsDestination() { - return gcsDestinationBuilder_ != null || gcsDestination_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -521,11 +531,11 @@ public Builder setGcsDestination(com.google.cloud.aiplatform.v1.GcsDestination v throw new NullPointerException(); } gcsDestination_ = value; - onChanged(); } else { gcsDestinationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -543,11 +553,11 @@ public Builder setGcsDestination( com.google.cloud.aiplatform.v1.GcsDestination.Builder builderForValue) { if (gcsDestinationBuilder_ == null) { gcsDestination_ = builderForValue.build(); - onChanged(); } else { gcsDestinationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -563,19 +573,19 @@ public Builder setGcsDestination( */ public Builder mergeGcsDestination(com.google.cloud.aiplatform.v1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (gcsDestination_ != null) { - gcsDestination_ = - com.google.cloud.aiplatform.v1.GcsDestination.newBuilder(gcsDestination_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && gcsDestination_ != null + && gcsDestination_ + != com.google.cloud.aiplatform.v1.GcsDestination.getDefaultInstance()) { + getGcsDestinationBuilder().mergeFrom(value); } else { gcsDestination_ = value; } - onChanged(); } else { gcsDestinationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -590,14 +600,13 @@ public Builder mergeGcsDestination(com.google.cloud.aiplatform.v1.GcsDestination * */ public Builder clearGcsDestination() { - if (gcsDestinationBuilder_ == null) { - gcsDestination_ = null; - onChanged(); - } else { - gcsDestination_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + gcsDestination_ = null; + if (gcsDestinationBuilder_ != null) { + gcsDestinationBuilder_.dispose(); gcsDestinationBuilder_ = null; } - + onChanged(); return this; } /** @@ -612,7 +621,7 @@ public Builder clearGcsDestination() { * */ public com.google.cloud.aiplatform.v1.GcsDestination.Builder getGcsDestinationBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGcsDestinationFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CsvSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CsvSource.java index 7f889fbadbaf..7e22bea5e8a8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CsvSource.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CsvSource.java @@ -116,7 +116,9 @@ public com.google.cloud.aiplatform.v1.GcsSource getGcsSource() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { - return getGcsSource(); + return gcsSource_ == null + ? com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance() + : gcsSource_; } private byte memoizedIsInitialized = -1; @@ -320,10 +322,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (gcsSourceBuilder_ == null) { - gcsSource_ = null; - } else { - gcsSource_ = null; + bitField0_ = 0; + gcsSource_ = null; + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.dispose(); gcsSourceBuilder_ = null; } return this; @@ -353,15 +355,20 @@ public com.google.cloud.aiplatform.v1.CsvSource build() { public com.google.cloud.aiplatform.v1.CsvSource buildPartial() { com.google.cloud.aiplatform.v1.CsvSource result = new com.google.cloud.aiplatform.v1.CsvSource(this); - if (gcsSourceBuilder_ == null) { - result.gcsSource_ = gcsSource_; - } else { - result.gcsSource_ = gcsSourceBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.CsvSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gcsSource_ = gcsSourceBuilder_ == null ? gcsSource_ : gcsSourceBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -439,7 +446,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +466,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GcsSource gcsSource_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GcsSource, @@ -479,7 +488,7 @@ public Builder mergeFrom( * @return Whether the gcsSource field is set. */ public boolean hasGcsSource() { - return gcsSourceBuilder_ != null || gcsSource_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -520,11 +529,11 @@ public Builder setGcsSource(com.google.cloud.aiplatform.v1.GcsSource value) { throw new NullPointerException(); } gcsSource_ = value; - onChanged(); } else { gcsSourceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -541,11 +550,11 @@ public Builder setGcsSource(com.google.cloud.aiplatform.v1.GcsSource value) { public Builder setGcsSource(com.google.cloud.aiplatform.v1.GcsSource.Builder builderForValue) { if (gcsSourceBuilder_ == null) { gcsSource_ = builderForValue.build(); - onChanged(); } else { gcsSourceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -561,19 +570,18 @@ public Builder setGcsSource(com.google.cloud.aiplatform.v1.GcsSource.Builder bui */ public Builder mergeGcsSource(com.google.cloud.aiplatform.v1.GcsSource value) { if (gcsSourceBuilder_ == null) { - if (gcsSource_ != null) { - gcsSource_ = - com.google.cloud.aiplatform.v1.GcsSource.newBuilder(gcsSource_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && gcsSource_ != null + && gcsSource_ != com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance()) { + getGcsSourceBuilder().mergeFrom(value); } else { gcsSource_ = value; } - onChanged(); } else { gcsSourceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -588,14 +596,13 @@ public Builder mergeGcsSource(com.google.cloud.aiplatform.v1.GcsSource value) { * */ public Builder clearGcsSource() { - if (gcsSourceBuilder_ == null) { - gcsSource_ = null; - onChanged(); - } else { - gcsSource_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + gcsSource_ = null; + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.dispose(); gcsSourceBuilder_ = null; } - + onChanged(); return this; } /** @@ -610,7 +617,7 @@ public Builder clearGcsSource() { * */ public com.google.cloud.aiplatform.v1.GcsSource.Builder getGcsSourceBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGcsSourceFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJob.java index 267e15918d33..0ed88bf5be5c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJob.java @@ -86,7 +86,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -135,7 +137,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -238,11 +242,13 @@ public com.google.cloud.aiplatform.v1.CustomJobSpec getJobSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.CustomJobSpecOrBuilder getJobSpecOrBuilder() { - return getJobSpec(); + return jobSpec_ == null + ? com.google.cloud.aiplatform.v1.CustomJobSpec.getDefaultInstance() + : jobSpec_; } public static final int STATE_FIELD_NUMBER = 5; - private int state_; + private int state_ = 0; /** * * @@ -275,9 +281,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.JobState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.JobState result = - com.google.cloud.aiplatform.v1.JobState.valueOf(state_); + com.google.cloud.aiplatform.v1.JobState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.JobState.UNRECOGNIZED : result; } @@ -327,7 +332,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int START_TIME_FIELD_NUMBER = 7; @@ -379,7 +384,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 8; @@ -431,7 +436,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 9; @@ -480,7 +485,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ERROR_FIELD_NUMBER = 10; @@ -529,7 +534,7 @@ public com.google.rpc.Status getError() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return getError(); + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } public static final int LABELS_FIELD_NUMBER = 11; @@ -545,6 +550,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -614,7 +620,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -697,7 +706,9 @@ public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } public static final int WEB_ACCESS_URIS_FIELD_NUMBER = 16; @@ -713,6 +724,7 @@ private static final class WebAccessUrisDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField webAccessUris_; private com.google.protobuf.MapField @@ -805,8 +817,10 @@ public java.util.Map getWebAccessUrisMap() { * */ @java.lang.Override - public java.lang.String getWebAccessUrisOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getWebAccessUrisOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1218,53 +1232,44 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - - if (jobSpecBuilder_ == null) { - jobSpec_ = null; - } else { - jobSpec_ = null; + jobSpec_ = null; + if (jobSpecBuilder_ != null) { + jobSpecBuilder_.dispose(); jobSpecBuilder_ = null; } state_ = 0; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - if (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } internalGetMutableLabels().clear(); - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } internalGetMutableWebAccessUris().clear(); @@ -1295,51 +1300,54 @@ public com.google.cloud.aiplatform.v1.CustomJob build() { public com.google.cloud.aiplatform.v1.CustomJob buildPartial() { com.google.cloud.aiplatform.v1.CustomJob result = new com.google.cloud.aiplatform.v1.CustomJob(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.CustomJob result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - if (jobSpecBuilder_ == null) { - result.jobSpec_ = jobSpec_; - } else { - result.jobSpec_ = jobSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - result.state_ = state_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.jobSpec_ = jobSpecBuilder_ == null ? jobSpec_ : jobSpecBuilder_.build(); } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000040) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.webAccessUris_ = internalGetWebAccessUris(); + result.webAccessUris_.makeImmutable(); } - result.webAccessUris_ = internalGetWebAccessUris(); - result.webAccessUris_.makeImmutable(); - onBuilt(); - return result; } @java.lang.Override @@ -1389,10 +1397,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CustomJob other) { if (other == com.google.cloud.aiplatform.v1.CustomJob.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasJobSpec()) { @@ -1417,10 +1427,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CustomJob other) { mergeError(other.getError()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000200; if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } internalGetMutableWebAccessUris().mergeFrom(other.internalGetWebAccessUris()); + bitField0_ |= 0x00000800; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1450,55 +1462,55 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 34: { input.readMessage(getJobSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 34 case 40: { state_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 40 case 50: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 50 case 58: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 58 case 66: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 66 case 74: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 74 case 82: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 82 case 90: @@ -1510,12 +1522,13 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000200; break; } // case 90 case 98: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 98 case 130: @@ -1527,6 +1540,7 @@ public Builder mergeFrom( internalGetMutableWebAccessUris() .getMutableMap() .put(webAccessUris__.getKey(), webAccessUris__.getValue()); + bitField0_ |= 0x00000800; break; } // case 130 default: @@ -1609,8 +1623,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1626,8 +1640,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1648,8 +1662,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1721,8 +1735,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1740,8 +1754,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1764,8 +1778,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1790,7 +1804,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the jobSpec field is set. */ public boolean hasJobSpec() { - return jobSpecBuilder_ != null || jobSpec_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1831,11 +1845,11 @@ public Builder setJobSpec(com.google.cloud.aiplatform.v1.CustomJobSpec value) { throw new NullPointerException(); } jobSpec_ = value; - onChanged(); } else { jobSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1853,11 +1867,11 @@ public Builder setJobSpec( com.google.cloud.aiplatform.v1.CustomJobSpec.Builder builderForValue) { if (jobSpecBuilder_ == null) { jobSpec_ = builderForValue.build(); - onChanged(); } else { jobSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1873,19 +1887,18 @@ public Builder setJobSpec( */ public Builder mergeJobSpec(com.google.cloud.aiplatform.v1.CustomJobSpec value) { if (jobSpecBuilder_ == null) { - if (jobSpec_ != null) { - jobSpec_ = - com.google.cloud.aiplatform.v1.CustomJobSpec.newBuilder(jobSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && jobSpec_ != null + && jobSpec_ != com.google.cloud.aiplatform.v1.CustomJobSpec.getDefaultInstance()) { + getJobSpecBuilder().mergeFrom(value); } else { jobSpec_ = value; } - onChanged(); } else { jobSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1900,14 +1913,13 @@ public Builder mergeJobSpec(com.google.cloud.aiplatform.v1.CustomJobSpec value) * */ public Builder clearJobSpec() { - if (jobSpecBuilder_ == null) { - jobSpec_ = null; - onChanged(); - } else { - jobSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + jobSpec_ = null; + if (jobSpecBuilder_ != null) { + jobSpecBuilder_.dispose(); jobSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -1922,7 +1934,7 @@ public Builder clearJobSpec() { * */ public com.google.cloud.aiplatform.v1.CustomJobSpec.Builder getJobSpecBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getJobSpecFieldBuilder().getBuilder(); } @@ -2007,8 +2019,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2027,9 +2039,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.JobState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.JobState result = - com.google.cloud.aiplatform.v1.JobState.valueOf(state_); + com.google.cloud.aiplatform.v1.JobState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.JobState.UNRECOGNIZED : result; } /** @@ -2050,7 +2061,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.JobState value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; state_ = value.getNumber(); onChanged(); return this; @@ -2069,7 +2080,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.JobState value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000008); state_ = 0; onChanged(); return this; @@ -2095,7 +2106,7 @@ public Builder clearState() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2136,11 +2147,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2157,11 +2168,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2177,17 +2188,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2202,14 +2214,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2224,7 +2235,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2296,7 +2307,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2335,11 +2346,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2356,11 +2367,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2376,17 +2387,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2401,14 +2413,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2423,7 +2434,7 @@ public Builder clearStartTime() { * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -2493,7 +2504,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2532,11 +2543,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2553,11 +2564,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2573,17 +2584,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2598,14 +2610,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2620,7 +2631,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -2690,7 +2701,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2731,11 +2742,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2752,11 +2763,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2772,17 +2783,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2797,14 +2809,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2819,7 +2830,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2888,7 +2899,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the error field is set. */ public boolean hasError() { - return errorBuilder_ != null || error_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -2925,11 +2936,11 @@ public Builder setError(com.google.rpc.Status value) { throw new NullPointerException(); } error_ = value; - onChanged(); } else { errorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -2945,11 +2956,11 @@ public Builder setError(com.google.rpc.Status value) { public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); - onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -2964,16 +2975,18 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (error_ != null) { - error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); } else { error_ = value; } - onChanged(); } else { errorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -2987,14 +3000,13 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } - + onChanged(); return this; } /** @@ -3008,7 +3020,7 @@ public Builder clearError() { * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getErrorFieldBuilder().getBuilder(); } @@ -3064,14 +3076,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000200; + onChanged(); return labels_; } @@ -3135,8 +3147,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3169,6 +3183,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -3195,6 +3210,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000200; return internalGetMutableLabels().getMutableMap(); } /** @@ -3217,8 +3233,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000200; return this; } /** @@ -3236,6 +3252,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000200; return this; } @@ -3259,7 +3276,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -3300,11 +3317,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec v throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3322,11 +3339,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3342,19 +3359,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3369,14 +3386,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 12; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -3391,7 +3407,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 12; */ public com.google.cloud.aiplatform.v1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -3456,8 +3472,6 @@ public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecO private com.google.protobuf.MapField internalGetMutableWebAccessUris() { - onChanged(); - ; if (webAccessUris_ == null) { webAccessUris_ = com.google.protobuf.MapField.newMapField(WebAccessUrisDefaultEntryHolder.defaultEntry); @@ -3465,6 +3479,8 @@ public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecO if (!webAccessUris_.isMutable()) { webAccessUris_ = webAccessUris_.copy(); } + bitField0_ |= 0x00000800; + onChanged(); return webAccessUris_; } @@ -3549,8 +3565,10 @@ public java.util.Map getWebAccessUrisMap() { * */ @java.lang.Override - public java.lang.String getWebAccessUrisOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getWebAccessUrisOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3590,6 +3608,7 @@ public java.lang.String getWebAccessUrisOrThrow(java.lang.String key) { } public Builder clearWebAccessUris() { + bitField0_ = (bitField0_ & ~0x00000800); internalGetMutableWebAccessUris().getMutableMap().clear(); return this; } @@ -3623,6 +3642,7 @@ public Builder removeWebAccessUris(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableWebAccessUris() { + bitField0_ |= 0x00000800; return internalGetMutableWebAccessUris().getMutableMap(); } /** @@ -3652,8 +3672,8 @@ public Builder putWebAccessUris(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableWebAccessUris().getMutableMap().put(key, value); + bitField0_ |= 0x00000800; return this; } /** @@ -3678,6 +3698,7 @@ public Builder putWebAccessUris(java.lang.String key, java.lang.String value) { */ public Builder putAllWebAccessUris(java.util.Map values) { internalGetMutableWebAccessUris().getMutableMap().putAll(values); + bitField0_ |= 0x00000800; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobOrBuilder.java index f95c7f74cbcd..36a7b5d539e9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobOrBuilder.java @@ -401,7 +401,6 @@ public interface CustomJobOrBuilder * * map<string, string> labels = 11; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, @@ -549,7 +548,6 @@ java.lang.String getLabelsOrDefault( * map<string, string> web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - /* nullable */ java.lang.String getWebAccessUrisOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java index 078d06528319..a86fe063c3d7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java @@ -100,7 +100,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ebAccessUrisEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + "\002 \001(\t:\0028\001:i\352Af\n#aiplatform.googleapis.co" + "m/CustomJob\022?projects/{project}/location" - + "s/{location}/customJobs/{custom_job}\"\271\003\n" + + "s/{location}/customJobs/{custom_job}\"\337\003\n" + "\rCustomJobSpec\022J\n\021worker_pool_specs\030\001 \003(" + "\0132*.google.cloud.aiplatform.v1.WorkerPoo" + "lSpecB\003\340A\002\022:\n\nscheduling\030\003 \001(\0132&.google." @@ -112,32 +112,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rm.v1.GcsDestination\022B\n\013tensorboard\030\007 \001(" + "\tB-\340A\001\372A\'\n%aiplatform.googleapis.com/Ten" + "sorboard\022\036\n\021enable_web_access\030\n \001(\010B\003\340A\001" - + "\"\206\003\n\016WorkerPoolSpec\022C\n\016container_spec\030\006 " - + "\001(\0132).google.cloud.aiplatform.v1.Contain" - + "erSpecH\000\022L\n\023python_package_spec\030\007 \001(\0132-." - + "google.cloud.aiplatform.v1.PythonPackage" - + "SpecH\000\022E\n\014machine_spec\030\001 \001(\0132\'.google.cl" - + "oud.aiplatform.v1.MachineSpecB\006\340A\001\340A\005\022\032\n" - + "\rreplica_count\030\002 \001(\003B\003\340A\001\022=\n\nnfs_mounts\030" - + "\004 \003(\0132$.google.cloud.aiplatform.v1.NfsMo" - + "untB\003\340A\001\0227\n\tdisk_spec\030\005 \001(\0132$.google.clo" - + "ud.aiplatform.v1.DiskSpecB\006\n\004task\"w\n\rCon" - + "tainerSpec\022\026\n\timage_uri\030\001 \001(\tB\003\340A\002\022\017\n\007co" - + "mmand\030\002 \003(\t\022\014\n\004args\030\003 \003(\t\022/\n\003env\030\004 \003(\0132\"" - + ".google.cloud.aiplatform.v1.EnvVar\"\252\001\n\021P" - + "ythonPackageSpec\022\037\n\022executor_image_uri\030\001" - + " \001(\tB\003\340A\002\022\031\n\014package_uris\030\002 \003(\tB\003\340A\002\022\032\n\r" - + "python_module\030\003 \001(\tB\003\340A\002\022\014\n\004args\030\004 \003(\t\022/" - + "\n\003env\030\005 \003(\0132\".google.cloud.aiplatform.v1" - + ".EnvVar\"_\n\nScheduling\022*\n\007timeout\030\001 \001(\0132\031" - + ".google.protobuf.Duration\022%\n\035restart_job" - + "_on_worker_restart\030\003 \001(\010B\322\001\n\036com.google." - + "cloud.aiplatform.v1B\016CustomJobProtoP\001ZDg" - + "oogle.golang.org/genproto/googleapis/clo" - + "ud/aiplatform/v1;aiplatform\252\002\032Google.Clo" - + "ud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatfo" - + "rm\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006p" - + "roto3" + + "\022$\n\027enable_dashboard_access\030\020 \001(\010B\003\340A\001\"\206" + + "\003\n\016WorkerPoolSpec\022C\n\016container_spec\030\006 \001(" + + "\0132).google.cloud.aiplatform.v1.Container" + + "SpecH\000\022L\n\023python_package_spec\030\007 \001(\0132-.go" + + "ogle.cloud.aiplatform.v1.PythonPackageSp" + + "ecH\000\022E\n\014machine_spec\030\001 \001(\0132\'.google.clou" + + "d.aiplatform.v1.MachineSpecB\006\340A\001\340A\005\022\032\n\rr" + + "eplica_count\030\002 \001(\003B\003\340A\001\022=\n\nnfs_mounts\030\004 " + + "\003(\0132$.google.cloud.aiplatform.v1.NfsMoun" + + "tB\003\340A\001\0227\n\tdisk_spec\030\005 \001(\0132$.google.cloud" + + ".aiplatform.v1.DiskSpecB\006\n\004task\"w\n\rConta" + + "inerSpec\022\026\n\timage_uri\030\001 \001(\tB\003\340A\002\022\017\n\007comm" + + "and\030\002 \003(\t\022\014\n\004args\030\003 \003(\t\022/\n\003env\030\004 \003(\0132\".g" + + "oogle.cloud.aiplatform.v1.EnvVar\"\252\001\n\021Pyt" + + "honPackageSpec\022\037\n\022executor_image_uri\030\001 \001" + + "(\tB\003\340A\002\022\031\n\014package_uris\030\002 \003(\tB\003\340A\002\022\032\n\rpy" + + "thon_module\030\003 \001(\tB\003\340A\002\022\014\n\004args\030\004 \003(\t\022/\n\003" + + "env\030\005 \003(\0132\".google.cloud.aiplatform.v1.E" + + "nvVar\"_\n\nScheduling\022*\n\007timeout\030\001 \001(\0132\031.g" + + "oogle.protobuf.Duration\022%\n\035restart_job_o" + + "n_worker_restart\030\003 \001(\010B\322\001\n\036com.google.cl" + + "oud.aiplatform.v1B\016CustomJobProtoP\001ZDgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/aiplatform/v1;aiplatform\252\002\032Google.Cloud" + + ".AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform" + + "\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -203,6 +204,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BaseOutputDirectory", "Tensorboard", "EnableWebAccess", + "EnableDashboardAccess", }); internal_static_google_cloud_aiplatform_v1_WorkerPoolSpec_descriptor = getDescriptor().getMessageTypes().get(2); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpec.java index f9668f5ae36f..7ec4623704e2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpec.java @@ -72,6 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int WORKER_POOL_SPECS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List workerPoolSpecs_; /** * @@ -206,11 +208,15 @@ public com.google.cloud.aiplatform.v1.Scheduling getScheduling() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.SchedulingOrBuilder getSchedulingOrBuilder() { - return getScheduling(); + return scheduling_ == null + ? com.google.cloud.aiplatform.v1.Scheduling.getDefaultInstance() + : scheduling_; } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 4; - private volatile java.lang.Object serviceAccount_; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; /** * * @@ -267,7 +273,9 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } public static final int NETWORK_FIELD_NUMBER = 5; - private volatile java.lang.Object network_; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; /** * * @@ -340,6 +348,8 @@ public com.google.protobuf.ByteString getNetworkBytes() { } public static final int RESERVED_IP_RANGES_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList reservedIpRanges_; /** * @@ -510,11 +520,15 @@ public com.google.cloud.aiplatform.v1.GcsDestination getBaseOutputDirectory() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder getBaseOutputDirectoryOrBuilder() { - return getBaseOutputDirectory(); + return baseOutputDirectory_ == null + ? com.google.cloud.aiplatform.v1.GcsDestination.getDefaultInstance() + : baseOutputDirectory_; } public static final int TENSORBOARD_FIELD_NUMBER = 7; - private volatile java.lang.Object tensorboard_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboard_ = ""; /** * * @@ -573,7 +587,7 @@ public com.google.protobuf.ByteString getTensorboardBytes() { } public static final int ENABLE_WEB_ACCESS_FIELD_NUMBER = 10; - private boolean enableWebAccess_; + private boolean enableWebAccess_ = false; /** * * @@ -599,6 +613,32 @@ public boolean getEnableWebAccess() { return enableWebAccess_; } + public static final int ENABLE_DASHBOARD_ACCESS_FIELD_NUMBER = 16; + private boolean enableDashboardAccess_ = false; + /** + * + * + *
+   * Optional. Whether you want Vertex AI to enable access to the customized
+   * dashboard in training chief container.
+   * If set to `true`, you can access the dashboard at the URIs given
+   * by
+   * [CustomJob.web_access_uris][google.cloud.aiplatform.v1.CustomJob.web_access_uris]
+   * or
+   * [Trial.web_access_uris][google.cloud.aiplatform.v1.Trial.web_access_uris]
+   * (within
+   * [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials]).
+   * 
+ * + * bool enable_dashboard_access = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableDashboardAccess. + */ + @java.lang.Override + public boolean getEnableDashboardAccess() { + return enableDashboardAccess_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -637,6 +677,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < reservedIpRanges_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, reservedIpRanges_.getRaw(i)); } + if (enableDashboardAccess_ != false) { + output.writeBool(16, enableDashboardAccess_); + } getUnknownFields().writeTo(output); } @@ -675,6 +718,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getReservedIpRangesList().size(); } + if (enableDashboardAccess_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, enableDashboardAccess_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -705,6 +751,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getTensorboard().equals(other.getTensorboard())) return false; if (getEnableWebAccess() != other.getEnableWebAccess()) return false; + if (getEnableDashboardAccess() != other.getEnableDashboardAccess()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -740,6 +787,8 @@ public int hashCode() { hash = (53 * hash) + getTensorboard().hashCode(); hash = (37 * hash) + ENABLE_WEB_ACCESS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableWebAccess()); + hash = (37 * hash) + ENABLE_DASHBOARD_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableDashboardAccess()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -878,6 +927,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (workerPoolSpecsBuilder_ == null) { workerPoolSpecs_ = java.util.Collections.emptyList(); } else { @@ -885,28 +935,23 @@ public Builder clear() { workerPoolSpecsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); - if (schedulingBuilder_ == null) { - scheduling_ = null; - } else { - scheduling_ = null; + scheduling_ = null; + if (schedulingBuilder_ != null) { + schedulingBuilder_.dispose(); schedulingBuilder_ = null; } serviceAccount_ = ""; - network_ = ""; - reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - if (baseOutputDirectoryBuilder_ == null) { - baseOutputDirectory_ = null; - } else { - baseOutputDirectory_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + baseOutputDirectory_ = null; + if (baseOutputDirectoryBuilder_ != null) { + baseOutputDirectoryBuilder_.dispose(); baseOutputDirectoryBuilder_ = null; } tensorboard_ = ""; - enableWebAccess_ = false; - + enableDashboardAccess_ = false; return this; } @@ -934,7 +979,15 @@ public com.google.cloud.aiplatform.v1.CustomJobSpec build() { public com.google.cloud.aiplatform.v1.CustomJobSpec buildPartial() { com.google.cloud.aiplatform.v1.CustomJobSpec result = new com.google.cloud.aiplatform.v1.CustomJobSpec(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.CustomJobSpec result) { if (workerPoolSpecsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workerPoolSpecs_ = java.util.Collections.unmodifiableList(workerPoolSpecs_); @@ -944,27 +997,39 @@ public com.google.cloud.aiplatform.v1.CustomJobSpec buildPartial() { } else { result.workerPoolSpecs_ = workerPoolSpecsBuilder_.build(); } - if (schedulingBuilder_ == null) { - result.scheduling_ = scheduling_; - } else { - result.scheduling_ = schedulingBuilder_.build(); - } - result.serviceAccount_ = serviceAccount_; - result.network_ = network_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { reservedIpRanges_ = reservedIpRanges_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); } result.reservedIpRanges_ = reservedIpRanges_; - if (baseOutputDirectoryBuilder_ == null) { - result.baseOutputDirectory_ = baseOutputDirectory_; - } else { - result.baseOutputDirectory_ = baseOutputDirectoryBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.CustomJobSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.scheduling_ = schedulingBuilder_ == null ? scheduling_ : schedulingBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.baseOutputDirectory_ = + baseOutputDirectoryBuilder_ == null + ? baseOutputDirectory_ + : baseOutputDirectoryBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.tensorboard_ = tensorboard_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.enableWebAccess_ = enableWebAccess_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.enableDashboardAccess_ = enableDashboardAccess_; } - result.tensorboard_ = tensorboard_; - result.enableWebAccess_ = enableWebAccess_; - onBuilt(); - return result; } @java.lang.Override @@ -1044,16 +1109,18 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CustomJobSpec other) { } if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getNetwork().isEmpty()) { network_ = other.network_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.reservedIpRanges_.isEmpty()) { if (reservedIpRanges_.isEmpty()) { reservedIpRanges_ = other.reservedIpRanges_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureReservedIpRangesIsMutable(); reservedIpRanges_.addAll(other.reservedIpRanges_); @@ -1065,11 +1132,15 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CustomJobSpec other) { } if (!other.getTensorboard().isEmpty()) { tensorboard_ = other.tensorboard_; + bitField0_ |= 0x00000040; onChanged(); } if (other.getEnableWebAccess() != false) { setEnableWebAccess(other.getEnableWebAccess()); } + if (other.getEnableDashboardAccess() != false) { + setEnableDashboardAccess(other.getEnableDashboardAccess()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1112,38 +1183,38 @@ public Builder mergeFrom( case 26: { input.readMessage(getSchedulingFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 26 case 34: { serviceAccount_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 34 case 42: { network_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 42 case 50: { input.readMessage( getBaseOutputDirectoryFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 case 58: { tensorboard_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 58 case 80: { enableWebAccess_ = input.readBool(); - + bitField0_ |= 0x00000080; break; } // case 80 case 106: @@ -1153,6 +1224,12 @@ public Builder mergeFrom( reservedIpRanges_.add(s); break; } // case 106 + case 128: + { + enableDashboardAccess_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 128 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1622,7 +1699,7 @@ public com.google.cloud.aiplatform.v1.WorkerPoolSpec.Builder addWorkerPoolSpecsB * @return Whether the scheduling field is set. */ public boolean hasScheduling() { - return schedulingBuilder_ != null || scheduling_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1659,11 +1736,11 @@ public Builder setScheduling(com.google.cloud.aiplatform.v1.Scheduling value) { throw new NullPointerException(); } scheduling_ = value; - onChanged(); } else { schedulingBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1679,11 +1756,11 @@ public Builder setScheduling( com.google.cloud.aiplatform.v1.Scheduling.Builder builderForValue) { if (schedulingBuilder_ == null) { scheduling_ = builderForValue.build(); - onChanged(); } else { schedulingBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1697,19 +1774,18 @@ public Builder setScheduling( */ public Builder mergeScheduling(com.google.cloud.aiplatform.v1.Scheduling value) { if (schedulingBuilder_ == null) { - if (scheduling_ != null) { - scheduling_ = - com.google.cloud.aiplatform.v1.Scheduling.newBuilder(scheduling_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && scheduling_ != null + && scheduling_ != com.google.cloud.aiplatform.v1.Scheduling.getDefaultInstance()) { + getSchedulingBuilder().mergeFrom(value); } else { scheduling_ = value; } - onChanged(); } else { schedulingBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1722,14 +1798,13 @@ public Builder mergeScheduling(com.google.cloud.aiplatform.v1.Scheduling value) * .google.cloud.aiplatform.v1.Scheduling scheduling = 3; */ public Builder clearScheduling() { - if (schedulingBuilder_ == null) { - scheduling_ = null; - onChanged(); - } else { - scheduling_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + scheduling_ = null; + if (schedulingBuilder_ != null) { + schedulingBuilder_.dispose(); schedulingBuilder_ = null; } - + onChanged(); return this; } /** @@ -1742,7 +1817,7 @@ public Builder clearScheduling() { * .google.cloud.aiplatform.v1.Scheduling scheduling = 3; */ public com.google.cloud.aiplatform.v1.Scheduling.Builder getSchedulingBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getSchedulingFieldBuilder().getBuilder(); } @@ -1863,8 +1938,8 @@ public Builder setServiceAccount(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - serviceAccount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1884,8 +1959,8 @@ public Builder setServiceAccount(java.lang.String value) { * @return This builder for chaining. */ public Builder clearServiceAccount() { - serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1910,8 +1985,8 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - serviceAccount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2013,8 +2088,8 @@ public Builder setNetwork(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - network_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2042,8 +2117,8 @@ public Builder setNetwork(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNetwork() { - network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2076,8 +2151,8 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - network_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2086,9 +2161,9 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureReservedIpRangesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { reservedIpRanges_ = new com.google.protobuf.LazyStringArrayList(reservedIpRanges_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; } } /** @@ -2271,7 +2346,7 @@ public Builder addAllReservedIpRanges(java.lang.Iterable value */ public Builder clearReservedIpRanges() { reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2337,7 +2412,7 @@ public Builder addReservedIpRangesBytes(com.google.protobuf.ByteString value) { * @return Whether the baseOutputDirectory field is set. */ public boolean hasBaseOutputDirectory() { - return baseOutputDirectoryBuilder_ != null || baseOutputDirectory_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2404,11 +2479,11 @@ public Builder setBaseOutputDirectory(com.google.cloud.aiplatform.v1.GcsDestinat throw new NullPointerException(); } baseOutputDirectory_ = value; - onChanged(); } else { baseOutputDirectoryBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2439,11 +2514,11 @@ public Builder setBaseOutputDirectory( com.google.cloud.aiplatform.v1.GcsDestination.Builder builderForValue) { if (baseOutputDirectoryBuilder_ == null) { baseOutputDirectory_ = builderForValue.build(); - onChanged(); } else { baseOutputDirectoryBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2472,19 +2547,19 @@ public Builder setBaseOutputDirectory( */ public Builder mergeBaseOutputDirectory(com.google.cloud.aiplatform.v1.GcsDestination value) { if (baseOutputDirectoryBuilder_ == null) { - if (baseOutputDirectory_ != null) { - baseOutputDirectory_ = - com.google.cloud.aiplatform.v1.GcsDestination.newBuilder(baseOutputDirectory_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && baseOutputDirectory_ != null + && baseOutputDirectory_ + != com.google.cloud.aiplatform.v1.GcsDestination.getDefaultInstance()) { + getBaseOutputDirectoryBuilder().mergeFrom(value); } else { baseOutputDirectory_ = value; } - onChanged(); } else { baseOutputDirectoryBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2512,14 +2587,13 @@ public Builder mergeBaseOutputDirectory(com.google.cloud.aiplatform.v1.GcsDestin * .google.cloud.aiplatform.v1.GcsDestination base_output_directory = 6; */ public Builder clearBaseOutputDirectory() { - if (baseOutputDirectoryBuilder_ == null) { - baseOutputDirectory_ = null; - onChanged(); - } else { - baseOutputDirectory_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + baseOutputDirectory_ = null; + if (baseOutputDirectoryBuilder_ != null) { + baseOutputDirectoryBuilder_.dispose(); baseOutputDirectoryBuilder_ = null; } - + onChanged(); return this; } /** @@ -2547,7 +2621,7 @@ public Builder clearBaseOutputDirectory() { * .google.cloud.aiplatform.v1.GcsDestination base_output_directory = 6; */ public com.google.cloud.aiplatform.v1.GcsDestination.Builder getBaseOutputDirectoryBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getBaseOutputDirectoryFieldBuilder().getBuilder(); } @@ -2702,8 +2776,8 @@ public Builder setTensorboard(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboard_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2724,8 +2798,8 @@ public Builder setTensorboard(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboard() { - tensorboard_ = getDefaultInstance().getTensorboard(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2751,8 +2825,8 @@ public Builder setTensorboardBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboard_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2806,6 +2880,7 @@ public boolean getEnableWebAccess() { public Builder setEnableWebAccess(boolean value) { enableWebAccess_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2830,12 +2905,89 @@ public Builder setEnableWebAccess(boolean value) { * @return This builder for chaining. */ public Builder clearEnableWebAccess() { - + bitField0_ = (bitField0_ & ~0x00000080); enableWebAccess_ = false; onChanged(); return this; } + private boolean enableDashboardAccess_; + /** + * + * + *
+     * Optional. Whether you want Vertex AI to enable access to the customized
+     * dashboard in training chief container.
+     * If set to `true`, you can access the dashboard at the URIs given
+     * by
+     * [CustomJob.web_access_uris][google.cloud.aiplatform.v1.CustomJob.web_access_uris]
+     * or
+     * [Trial.web_access_uris][google.cloud.aiplatform.v1.Trial.web_access_uris]
+     * (within
+     * [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials]).
+     * 
+ * + * bool enable_dashboard_access = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableDashboardAccess. + */ + @java.lang.Override + public boolean getEnableDashboardAccess() { + return enableDashboardAccess_; + } + /** + * + * + *
+     * Optional. Whether you want Vertex AI to enable access to the customized
+     * dashboard in training chief container.
+     * If set to `true`, you can access the dashboard at the URIs given
+     * by
+     * [CustomJob.web_access_uris][google.cloud.aiplatform.v1.CustomJob.web_access_uris]
+     * or
+     * [Trial.web_access_uris][google.cloud.aiplatform.v1.Trial.web_access_uris]
+     * (within
+     * [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials]).
+     * 
+ * + * bool enable_dashboard_access = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableDashboardAccess to set. + * @return This builder for chaining. + */ + public Builder setEnableDashboardAccess(boolean value) { + + enableDashboardAccess_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Whether you want Vertex AI to enable access to the customized
+     * dashboard in training chief container.
+     * If set to `true`, you can access the dashboard at the URIs given
+     * by
+     * [CustomJob.web_access_uris][google.cloud.aiplatform.v1.CustomJob.web_access_uris]
+     * or
+     * [Trial.web_access_uris][google.cloud.aiplatform.v1.Trial.web_access_uris]
+     * (within
+     * [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials]).
+     * 
+ * + * bool enable_dashboard_access = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableDashboardAccess() { + bitField0_ = (bitField0_ & ~0x00000100); + enableDashboardAccess_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpecOrBuilder.java index 161ec4dfbdef..2cde8243cfc2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpecOrBuilder.java @@ -419,4 +419,25 @@ public interface CustomJobSpecOrBuilder * @return The enableWebAccess. */ boolean getEnableWebAccess(); + + /** + * + * + *
+   * Optional. Whether you want Vertex AI to enable access to the customized
+   * dashboard in training chief container.
+   * If set to `true`, you can access the dashboard at the URIs given
+   * by
+   * [CustomJob.web_access_uris][google.cloud.aiplatform.v1.CustomJob.web_access_uris]
+   * or
+   * [Trial.web_access_uris][google.cloud.aiplatform.v1.Trial.web_access_uris]
+   * (within
+   * [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials]).
+   * 
+ * + * bool enable_dashboard_access = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableDashboardAccess. + */ + boolean getEnableDashboardAccess(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItem.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItem.java index 2eb4497863ee..535d827352f9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItem.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItem.java @@ -81,7 +81,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -175,7 +177,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 6; @@ -224,7 +226,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int LABELS_FIELD_NUMBER = 3; @@ -240,6 +242,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -321,7 +324,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -409,11 +415,13 @@ public com.google.protobuf.Value getPayload() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getPayloadOrBuilder() { - return getPayload(); + return payload_ == null ? com.google.protobuf.Value.getDefaultInstance() : payload_; } public static final int ETAG_FIELD_NUMBER = 7; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -748,29 +756,25 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); - if (payloadBuilder_ == null) { - payload_ = null; - } else { - payload_ = null; + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); payloadBuilder_ = null; } etag_ = ""; - return this; } @@ -798,28 +802,34 @@ public com.google.cloud.aiplatform.v1.DataItem build() { public com.google.cloud.aiplatform.v1.DataItem buildPartial() { com.google.cloud.aiplatform.v1.DataItem result = new com.google.cloud.aiplatform.v1.DataItem(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.DataItem result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (payloadBuilder_ == null) { - result.payload_ = payload_; - } else { - result.payload_ = payloadBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.payload_ = payloadBuilder_ == null ? payload_ : payloadBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.etag_ = etag_; } - result.etag_ = etag_; - onBuilt(); - return result; } @java.lang.Override @@ -869,6 +879,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DataItem other) { if (other == com.google.cloud.aiplatform.v1.DataItem.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasCreateTime()) { @@ -878,11 +889,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DataItem other) { mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; if (other.hasPayload()) { mergePayload(other.getPayload()); } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -914,13 +927,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -932,24 +945,25 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage(getPayloadFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 34 case 50: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 50 case 58: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 58 default: @@ -1032,8 +1046,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1049,8 +1063,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1071,8 +1085,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1097,7 +1111,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1138,11 +1152,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1159,11 +1173,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1179,17 +1193,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1204,14 +1219,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1226,7 +1240,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1298,7 +1312,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1339,11 +1353,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1360,11 +1374,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1380,17 +1394,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1405,14 +1420,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1427,7 +1441,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -1490,14 +1504,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000008; + onChanged(); return labels_; } @@ -1573,8 +1587,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1611,6 +1627,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -1641,6 +1658,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** @@ -1667,8 +1685,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; return this; } /** @@ -1690,6 +1708,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; return this; } @@ -1714,7 +1733,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the payload field is set. */ public boolean hasPayload() { - return payloadBuilder_ != null || payload_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1755,11 +1774,11 @@ public Builder setPayload(com.google.protobuf.Value value) { throw new NullPointerException(); } payload_ = value; - onChanged(); } else { payloadBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1777,11 +1796,11 @@ public Builder setPayload(com.google.protobuf.Value value) { public Builder setPayload(com.google.protobuf.Value.Builder builderForValue) { if (payloadBuilder_ == null) { payload_ = builderForValue.build(); - onChanged(); } else { payloadBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1798,16 +1817,18 @@ public Builder setPayload(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergePayload(com.google.protobuf.Value value) { if (payloadBuilder_ == null) { - if (payload_ != null) { - payload_ = com.google.protobuf.Value.newBuilder(payload_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && payload_ != null + && payload_ != com.google.protobuf.Value.getDefaultInstance()) { + getPayloadBuilder().mergeFrom(value); } else { payload_ = value; } - onChanged(); } else { payloadBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1823,14 +1844,13 @@ public Builder mergePayload(com.google.protobuf.Value value) { * .google.protobuf.Value payload = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPayload() { - if (payloadBuilder_ == null) { - payload_ = null; - onChanged(); - } else { - payload_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); payloadBuilder_ = null; } - + onChanged(); return this; } /** @@ -1846,7 +1866,7 @@ public Builder clearPayload() { * .google.protobuf.Value payload = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Value.Builder getPayloadBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getPayloadFieldBuilder().getBuilder(); } @@ -1962,8 +1982,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1980,8 +2000,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2003,8 +2023,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemOrBuilder.java index babf8fa88369..959023ae209a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemOrBuilder.java @@ -198,7 +198,6 @@ public interface DataItemOrBuilder * * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemView.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemView.java index ca44f1b6a458..f022badb84bd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemView.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemView.java @@ -112,10 +112,14 @@ public com.google.cloud.aiplatform.v1.DataItem getDataItem() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.DataItemOrBuilder getDataItemOrBuilder() { - return getDataItem(); + return dataItem_ == null + ? com.google.cloud.aiplatform.v1.DataItem.getDefaultInstance() + : dataItem_; } public static final int ANNOTATIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List annotations_; /** * @@ -195,7 +199,7 @@ public com.google.cloud.aiplatform.v1.AnnotationOrBuilder getAnnotationsOrBuilde } public static final int HAS_TRUNCATED_ANNOTATIONS_FIELD_NUMBER = 3; - private boolean hasTruncatedAnnotations_; + private boolean hasTruncatedAnnotations_ = false; /** * * @@ -439,10 +443,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (dataItemBuilder_ == null) { - dataItem_ = null; - } else { - dataItem_ = null; + bitField0_ = 0; + dataItem_ = null; + if (dataItemBuilder_ != null) { + dataItemBuilder_.dispose(); dataItemBuilder_ = null; } if (annotationsBuilder_ == null) { @@ -451,9 +455,8 @@ public Builder clear() { annotations_ = null; annotationsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); hasTruncatedAnnotations_ = false; - return this; } @@ -481,24 +484,34 @@ public com.google.cloud.aiplatform.v1.DataItemView build() { public com.google.cloud.aiplatform.v1.DataItemView buildPartial() { com.google.cloud.aiplatform.v1.DataItemView result = new com.google.cloud.aiplatform.v1.DataItemView(this); - int from_bitField0_ = bitField0_; - if (dataItemBuilder_ == null) { - result.dataItem_ = dataItem_; - } else { - result.dataItem_ = dataItemBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.DataItemView result) { if (annotationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { annotations_ = java.util.Collections.unmodifiableList(annotations_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.annotations_ = annotations_; } else { result.annotations_ = annotationsBuilder_.build(); } - result.hasTruncatedAnnotations_ = hasTruncatedAnnotations_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.DataItemView result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataItem_ = dataItemBuilder_ == null ? dataItem_ : dataItemBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.hasTruncatedAnnotations_ = hasTruncatedAnnotations_; + } } @java.lang.Override @@ -553,7 +566,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DataItemView other) { if (!other.annotations_.isEmpty()) { if (annotations_.isEmpty()) { annotations_ = other.annotations_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAnnotationsIsMutable(); annotations_.addAll(other.annotations_); @@ -566,7 +579,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DataItemView other) { annotationsBuilder_.dispose(); annotationsBuilder_ = null; annotations_ = other.annotations_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); annotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAnnotationsFieldBuilder() @@ -608,7 +621,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getDataItemFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -627,7 +640,7 @@ public Builder mergeFrom( case 24: { hasTruncatedAnnotations_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -667,7 +680,7 @@ public Builder mergeFrom( * @return Whether the dataItem field is set. */ public boolean hasDataItem() { - return dataItemBuilder_ != null || dataItem_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -704,11 +717,11 @@ public Builder setDataItem(com.google.cloud.aiplatform.v1.DataItem value) { throw new NullPointerException(); } dataItem_ = value; - onChanged(); } else { dataItemBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -723,11 +736,11 @@ public Builder setDataItem(com.google.cloud.aiplatform.v1.DataItem value) { public Builder setDataItem(com.google.cloud.aiplatform.v1.DataItem.Builder builderForValue) { if (dataItemBuilder_ == null) { dataItem_ = builderForValue.build(); - onChanged(); } else { dataItemBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -741,19 +754,18 @@ public Builder setDataItem(com.google.cloud.aiplatform.v1.DataItem.Builder build */ public Builder mergeDataItem(com.google.cloud.aiplatform.v1.DataItem value) { if (dataItemBuilder_ == null) { - if (dataItem_ != null) { - dataItem_ = - com.google.cloud.aiplatform.v1.DataItem.newBuilder(dataItem_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && dataItem_ != null + && dataItem_ != com.google.cloud.aiplatform.v1.DataItem.getDefaultInstance()) { + getDataItemBuilder().mergeFrom(value); } else { dataItem_ = value; } - onChanged(); } else { dataItemBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -766,14 +778,13 @@ public Builder mergeDataItem(com.google.cloud.aiplatform.v1.DataItem value) { * .google.cloud.aiplatform.v1.DataItem data_item = 1; */ public Builder clearDataItem() { - if (dataItemBuilder_ == null) { - dataItem_ = null; - onChanged(); - } else { - dataItem_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + dataItem_ = null; + if (dataItemBuilder_ != null) { + dataItemBuilder_.dispose(); dataItemBuilder_ = null; } - + onChanged(); return this; } /** @@ -786,7 +797,7 @@ public Builder clearDataItem() { * .google.cloud.aiplatform.v1.DataItem data_item = 1; */ public com.google.cloud.aiplatform.v1.DataItem.Builder getDataItemBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getDataItemFieldBuilder().getBuilder(); } @@ -838,10 +849,10 @@ public com.google.cloud.aiplatform.v1.DataItemOrBuilder getDataItemOrBuilder() { java.util.Collections.emptyList(); private void ensureAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { annotations_ = new java.util.ArrayList(annotations_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1079,7 +1090,7 @@ public Builder addAllAnnotations( public Builder clearAnnotations() { if (annotationsBuilder_ == null) { annotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { annotationsBuilder_.clear(); @@ -1215,7 +1226,7 @@ public com.google.cloud.aiplatform.v1.Annotation.Builder addAnnotationsBuilder(i com.google.cloud.aiplatform.v1.Annotation, com.google.cloud.aiplatform.v1.Annotation.Builder, com.google.cloud.aiplatform.v1.AnnotationOrBuilder>( - annotations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + annotations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); annotations_ = null; } return annotationsBuilder_; @@ -1262,6 +1273,7 @@ public boolean getHasTruncatedAnnotations() { public Builder setHasTruncatedAnnotations(boolean value) { hasTruncatedAnnotations_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1282,7 +1294,7 @@ public Builder setHasTruncatedAnnotations(boolean value) { * @return This builder for chaining. */ public Builder clearHasTruncatedAnnotations() { - + bitField0_ = (bitField0_ & ~0x00000004); hasTruncatedAnnotations_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJob.java index 82f7a7ceb624..e00a61cf2786 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJob.java @@ -88,7 +88,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -137,7 +139,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -192,6 +196,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DATASETS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList datasets_; /** * @@ -281,6 +287,7 @@ private static final class AnnotationLabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField annotationLabels_; private com.google.protobuf.MapField @@ -358,8 +365,10 @@ public java.util.Map getAnnotationLabelsMap( * map<string, string> annotation_labels = 12; */ @java.lang.Override - public java.lang.String getAnnotationLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getAnnotationLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -394,7 +403,7 @@ public java.lang.String getAnnotationLabelsOrThrow(java.lang.String key) { } public static final int LABELER_COUNT_FIELD_NUMBER = 4; - private int labelerCount_; + private int labelerCount_ = 0; /** * * @@ -412,7 +421,9 @@ public int getLabelerCount() { } public static final int INSTRUCTION_URI_FIELD_NUMBER = 5; - private volatile java.lang.Object instructionUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object instructionUri_ = ""; /** * * @@ -465,7 +476,9 @@ public com.google.protobuf.ByteString getInstructionUriBytes() { } public static final int INPUTS_SCHEMA_URI_FIELD_NUMBER = 6; - private volatile java.lang.Object inputsSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object inputsSchemaUri_ = ""; /** * * @@ -564,11 +577,11 @@ public com.google.protobuf.Value getInputs() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null ? com.google.protobuf.Value.getDefaultInstance() : inputs_; } public static final int STATE_FIELD_NUMBER = 8; - private int state_; + private int state_ = 0; /** * * @@ -601,14 +614,13 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.JobState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.JobState result = - com.google.cloud.aiplatform.v1.JobState.valueOf(state_); + com.google.cloud.aiplatform.v1.JobState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.JobState.UNRECOGNIZED : result; } public static final int LABELING_PROGRESS_FIELD_NUMBER = 13; - private int labelingProgress_; + private int labelingProgress_ = 0; /** * * @@ -675,7 +687,7 @@ public com.google.type.Money getCurrentSpend() { */ @java.lang.Override public com.google.type.MoneyOrBuilder getCurrentSpendOrBuilder() { - return getCurrentSpend(); + return currentSpend_ == null ? com.google.type.Money.getDefaultInstance() : currentSpend_; } public static final int CREATE_TIME_FIELD_NUMBER = 9; @@ -724,7 +736,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 10; @@ -773,7 +785,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ERROR_FIELD_NUMBER = 22; @@ -822,7 +834,7 @@ public com.google.rpc.Status getError() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return getError(); + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } public static final int LABELS_FIELD_NUMBER = 11; @@ -838,6 +850,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -922,7 +935,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -960,6 +976,8 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int SPECIALIST_POOLS_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList specialistPools_; /** * @@ -1074,7 +1092,9 @@ public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } public static final int ACTIVE_LEARNING_CONFIG_FIELD_NUMBER = 21; @@ -1129,7 +1149,9 @@ public com.google.cloud.aiplatform.v1.ActiveLearningConfig getActiveLearningConf @java.lang.Override public com.google.cloud.aiplatform.v1.ActiveLearningConfigOrBuilder getActiveLearningConfigOrBuilder() { - return getActiveLearningConfig(); + return activeLearningConfig_ == null + ? com.google.cloud.aiplatform.v1.ActiveLearningConfig.getDefaultInstance() + : activeLearningConfig_; } private byte memoizedIsInitialized = -1; @@ -1573,66 +1595,53 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - datasets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableAnnotationLabels().clear(); labelerCount_ = 0; - instructionUri_ = ""; - inputsSchemaUri_ = ""; - - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } state_ = 0; - labelingProgress_ = 0; - - if (currentSpendBuilder_ == null) { - currentSpend_ = null; - } else { - currentSpend_ = null; + currentSpend_ = null; + if (currentSpendBuilder_ != null) { + currentSpendBuilder_.dispose(); currentSpendBuilder_ = null; } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - if (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } internalGetMutableLabels().clear(); specialistPools_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00008000); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - if (activeLearningConfigBuilder_ == null) { - activeLearningConfig_ = null; - } else { - activeLearningConfig_ = null; + activeLearningConfig_ = null; + if (activeLearningConfigBuilder_ != null) { + activeLearningConfigBuilder_.dispose(); activeLearningConfigBuilder_ = null; } return this; @@ -1662,65 +1671,84 @@ public com.google.cloud.aiplatform.v1.DataLabelingJob build() { public com.google.cloud.aiplatform.v1.DataLabelingJob buildPartial() { com.google.cloud.aiplatform.v1.DataLabelingJob result = new com.google.cloud.aiplatform.v1.DataLabelingJob(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.DataLabelingJob result) { + if (((bitField0_ & 0x00000004) != 0)) { datasets_ = datasets_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.datasets_ = datasets_; - result.annotationLabels_ = internalGetAnnotationLabels(); - result.annotationLabels_.makeImmutable(); - result.labelerCount_ = labelerCount_; - result.instructionUri_ = instructionUri_; - result.inputsSchemaUri_ = inputsSchemaUri_; - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); + if (((bitField0_ & 0x00008000) != 0)) { + specialistPools_ = specialistPools_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00008000); } - result.state_ = state_; - result.labelingProgress_ = labelingProgress_; - if (currentSpendBuilder_ == null) { - result.currentSpend_ = currentSpend_; - } else { - result.currentSpend_ = currentSpendBuilder_.build(); + result.specialistPools_ = specialistPools_; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.DataLabelingJob result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.annotationLabels_ = internalGetAnnotationLabels(); + result.annotationLabels_.makeImmutable(); } - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labelerCount_ = labelerCount_; } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (((bitField0_ & 0x00000008) != 0)) { - specialistPools_ = specialistPools_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.instructionUri_ = instructionUri_; } - result.specialistPools_ = specialistPools_; - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000040) != 0)) { + result.inputsSchemaUri_ = inputsSchemaUri_; } - if (activeLearningConfigBuilder_ == null) { - result.activeLearningConfig_ = activeLearningConfig_; - } else { - result.activeLearningConfig_ = activeLearningConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000080) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.labelingProgress_ = labelingProgress_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.currentSpend_ = + currentSpendBuilder_ == null ? currentSpend_ : currentSpendBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.activeLearningConfig_ = + activeLearningConfigBuilder_ == null + ? activeLearningConfig_ + : activeLearningConfigBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -1770,16 +1798,18 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DataLabelingJob other) { if (other == com.google.cloud.aiplatform.v1.DataLabelingJob.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.datasets_.isEmpty()) { if (datasets_.isEmpty()) { datasets_ = other.datasets_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDatasetsIsMutable(); datasets_.addAll(other.datasets_); @@ -1787,15 +1817,18 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DataLabelingJob other) { onChanged(); } internalGetMutableAnnotationLabels().mergeFrom(other.internalGetAnnotationLabels()); + bitField0_ |= 0x00000008; if (other.getLabelerCount() != 0) { setLabelerCount(other.getLabelerCount()); } if (!other.getInstructionUri().isEmpty()) { instructionUri_ = other.instructionUri_; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getInputsSchemaUri().isEmpty()) { inputsSchemaUri_ = other.inputsSchemaUri_; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasInputs()) { @@ -1820,10 +1853,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DataLabelingJob other) { mergeError(other.getError()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00004000; if (!other.specialistPools_.isEmpty()) { if (specialistPools_.isEmpty()) { specialistPools_ = other.specialistPools_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00008000); } else { ensureSpecialistPoolsIsMutable(); specialistPools_.addAll(other.specialistPools_); @@ -1865,13 +1899,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -1884,43 +1918,43 @@ public Builder mergeFrom( case 32: { labelerCount_ = input.readInt32(); - + bitField0_ |= 0x00000010; break; } // case 32 case 42: { instructionUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 42 case 50: { inputsSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 50 case 58: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 58 case 64: { state_ = input.readEnum(); - + bitField0_ |= 0x00000100; break; } // case 64 case 74: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000800; break; } // case 74 case 82: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00001000; break; } // case 82 case 90: @@ -1932,6 +1966,7 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00004000; break; } // case 90 case 98: @@ -1944,18 +1979,19 @@ public Builder mergeFrom( internalGetMutableAnnotationLabels() .getMutableMap() .put(annotationLabels__.getKey(), annotationLabels__.getValue()); + bitField0_ |= 0x00000008; break; } // case 98 case 104: { labelingProgress_ = input.readInt32(); - + bitField0_ |= 0x00000200; break; } // case 104 case 114: { input.readMessage(getCurrentSpendFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 114 case 130: @@ -1968,20 +2004,20 @@ public Builder mergeFrom( case 162: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00010000; break; } // case 162 case 170: { input.readMessage( getActiveLearningConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00020000; break; } // case 170 case 178: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00002000; break; } // case 178 default: @@ -2064,8 +2100,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2081,8 +2117,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2103,8 +2139,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2179,8 +2215,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2199,8 +2235,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2224,8 +2260,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2234,9 +2270,9 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDatasetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { datasets_ = new com.google.protobuf.LazyStringArrayList(datasets_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } /** @@ -2403,7 +2439,7 @@ public Builder addAllDatasets(java.lang.Iterable values) { */ public Builder clearDatasets() { datasets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2447,8 +2483,6 @@ public Builder addDatasetsBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.MapField internalGetMutableAnnotationLabels() { - onChanged(); - ; if (annotationLabels_ == null) { annotationLabels_ = com.google.protobuf.MapField.newMapField( @@ -2457,6 +2491,8 @@ public Builder addDatasetsBytes(com.google.protobuf.ByteString value) { if (!annotationLabels_.isMutable()) { annotationLabels_ = annotationLabels_.copy(); } + bitField0_ |= 0x00000008; + onChanged(); return annotationLabels_; } @@ -2526,8 +2562,10 @@ public java.util.Map getAnnotationLabelsMap( * map<string, string> annotation_labels = 12; */ @java.lang.Override - public java.lang.String getAnnotationLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getAnnotationLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2564,6 +2602,7 @@ public java.lang.String getAnnotationLabelsOrThrow(java.lang.String key) { } public Builder clearAnnotationLabels() { + bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableAnnotationLabels().getMutableMap().clear(); return this; } @@ -2592,6 +2631,7 @@ public Builder removeAnnotationLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAnnotationLabels() { + bitField0_ |= 0x00000008; return internalGetMutableAnnotationLabels().getMutableMap(); } /** @@ -2616,8 +2656,8 @@ public Builder putAnnotationLabels(java.lang.String key, java.lang.String value) if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAnnotationLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; return this; } /** @@ -2638,6 +2678,7 @@ public Builder putAnnotationLabels(java.lang.String key, java.lang.String value) public Builder putAllAnnotationLabels( java.util.Map values) { internalGetMutableAnnotationLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; return this; } @@ -2672,6 +2713,7 @@ public int getLabelerCount() { public Builder setLabelerCount(int value) { labelerCount_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2687,7 +2729,7 @@ public Builder setLabelerCount(int value) { * @return This builder for chaining. */ public Builder clearLabelerCount() { - + bitField0_ = (bitField0_ & ~0x00000010); labelerCount_ = 0; onChanged(); return this; @@ -2760,8 +2802,8 @@ public Builder setInstructionUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - instructionUri_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2779,8 +2821,8 @@ public Builder setInstructionUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInstructionUri() { - instructionUri_ = getDefaultInstance().getInstructionUri(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2803,8 +2845,8 @@ public Builder setInstructionUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - instructionUri_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2882,8 +2924,8 @@ public Builder setInputsSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - inputsSchemaUri_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2903,8 +2945,8 @@ public Builder setInputsSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInputsSchemaUri() { - inputsSchemaUri_ = getDefaultInstance().getInputsSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2929,8 +2971,8 @@ public Builder setInputsSchemaUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - inputsSchemaUri_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2953,7 +2995,7 @@ public Builder setInputsSchemaUriBytes(com.google.protobuf.ByteString value) { * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2988,11 +3030,11 @@ public Builder setInputs(com.google.protobuf.Value value) { throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3007,11 +3049,11 @@ public Builder setInputs(com.google.protobuf.Value value) { public Builder setInputs(com.google.protobuf.Value.Builder builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3025,16 +3067,18 @@ public Builder setInputs(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeInputs(com.google.protobuf.Value value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = com.google.protobuf.Value.newBuilder(inputs_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && inputs_ != null + && inputs_ != com.google.protobuf.Value.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3047,14 +3091,13 @@ public Builder mergeInputs(com.google.protobuf.Value value) { * .google.protobuf.Value inputs = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -3067,7 +3110,7 @@ public Builder clearInputs() { * .google.protobuf.Value inputs = 7 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Value.Builder getInputsBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getInputsFieldBuilder().getBuilder(); } @@ -3145,8 +3188,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3165,9 +3208,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.JobState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.JobState result = - com.google.cloud.aiplatform.v1.JobState.valueOf(state_); + com.google.cloud.aiplatform.v1.JobState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.JobState.UNRECOGNIZED : result; } /** @@ -3188,7 +3230,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.JobState value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000100; state_ = value.getNumber(); onChanged(); return this; @@ -3207,7 +3249,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.JobState value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000100); state_ = 0; onChanged(); return this; @@ -3246,6 +3288,7 @@ public int getLabelingProgress() { public Builder setLabelingProgress(int value) { labelingProgress_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3262,7 +3305,7 @@ public Builder setLabelingProgress(int value) { * @return This builder for chaining. */ public Builder clearLabelingProgress() { - + bitField0_ = (bitField0_ & ~0x00000200); labelingProgress_ = 0; onChanged(); return this; @@ -3286,7 +3329,7 @@ public Builder clearLabelingProgress() { * @return Whether the currentSpend field is set. */ public boolean hasCurrentSpend() { - return currentSpendBuilder_ != null || currentSpend_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -3325,11 +3368,11 @@ public Builder setCurrentSpend(com.google.type.Money value) { throw new NullPointerException(); } currentSpend_ = value; - onChanged(); } else { currentSpendBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3346,11 +3389,11 @@ public Builder setCurrentSpend(com.google.type.Money value) { public Builder setCurrentSpend(com.google.type.Money.Builder builderForValue) { if (currentSpendBuilder_ == null) { currentSpend_ = builderForValue.build(); - onChanged(); } else { currentSpendBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3366,17 +3409,18 @@ public Builder setCurrentSpend(com.google.type.Money.Builder builderForValue) { */ public Builder mergeCurrentSpend(com.google.type.Money value) { if (currentSpendBuilder_ == null) { - if (currentSpend_ != null) { - currentSpend_ = - com.google.type.Money.newBuilder(currentSpend_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && currentSpend_ != null + && currentSpend_ != com.google.type.Money.getDefaultInstance()) { + getCurrentSpendBuilder().mergeFrom(value); } else { currentSpend_ = value; } - onChanged(); } else { currentSpendBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3391,14 +3435,13 @@ public Builder mergeCurrentSpend(com.google.type.Money value) { * */ public Builder clearCurrentSpend() { - if (currentSpendBuilder_ == null) { - currentSpend_ = null; - onChanged(); - } else { - currentSpend_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + currentSpend_ = null; + if (currentSpendBuilder_ != null) { + currentSpendBuilder_.dispose(); currentSpendBuilder_ = null; } - + onChanged(); return this; } /** @@ -3413,7 +3456,7 @@ public Builder clearCurrentSpend() { * */ public com.google.type.Money.Builder getCurrentSpendBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getCurrentSpendFieldBuilder().getBuilder(); } @@ -3481,7 +3524,7 @@ public com.google.type.MoneyOrBuilder getCurrentSpendOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -3522,11 +3565,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -3543,11 +3586,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -3563,17 +3606,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000800) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -3588,14 +3632,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000800); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3610,7 +3653,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000800; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -3682,7 +3725,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -3723,11 +3766,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3744,11 +3787,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3764,17 +3807,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00001000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3789,14 +3833,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00001000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3811,7 +3854,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00001000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -3880,7 +3923,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the error field is set. */ public boolean hasError() { - return errorBuilder_ != null || error_ != null; + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -3917,11 +3960,11 @@ public Builder setError(com.google.rpc.Status value) { throw new NullPointerException(); } error_ = value; - onChanged(); } else { errorBuilder_.setMessage(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3937,11 +3980,11 @@ public Builder setError(com.google.rpc.Status value) { public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); - onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3956,16 +3999,18 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (error_ != null) { - error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00002000) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); } else { error_ = value; } - onChanged(); } else { errorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3979,14 +4024,13 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; + bitField0_ = (bitField0_ & ~0x00002000); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } - + onChanged(); return this; } /** @@ -4000,7 +4044,7 @@ public Builder clearError() { * .google.rpc.Status error = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + bitField0_ |= 0x00002000; onChanged(); return getErrorFieldBuilder().getBuilder(); } @@ -4056,14 +4100,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00004000; + onChanged(); return labels_; } @@ -4142,8 +4186,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -4181,6 +4227,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00004000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -4212,6 +4259,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00004000; return internalGetMutableLabels().getMutableMap(); } /** @@ -4239,8 +4287,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00004000; return this; } /** @@ -4263,6 +4311,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00004000; return this; } @@ -4270,9 +4319,9 @@ public Builder putAllLabels(java.util.Map va com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSpecialistPoolsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00008000) != 0)) { specialistPools_ = new com.google.protobuf.LazyStringArrayList(specialistPools_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00008000; } } /** @@ -4407,7 +4456,7 @@ public Builder addAllSpecialistPools(java.lang.Iterable values */ public Builder clearSpecialistPools() { specialistPools_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -4455,7 +4504,7 @@ public Builder addSpecialistPoolsBytes(com.google.protobuf.ByteString value) { * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -4498,11 +4547,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec v throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -4521,11 +4570,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -4542,19 +4591,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00010000) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -4570,14 +4619,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 20; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00010000); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -4593,7 +4641,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 20; */ public com.google.cloud.aiplatform.v1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00010000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -4667,7 +4715,7 @@ public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecO * @return Whether the activeLearningConfig field is set. */ public boolean hasActiveLearningConfig() { - return activeLearningConfigBuilder_ != null || activeLearningConfig_ != null; + return ((bitField0_ & 0x00020000) != 0); } /** * @@ -4709,11 +4757,11 @@ public Builder setActiveLearningConfig( throw new NullPointerException(); } activeLearningConfig_ = value; - onChanged(); } else { activeLearningConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00020000; + onChanged(); return this; } /** @@ -4731,11 +4779,11 @@ public Builder setActiveLearningConfig( com.google.cloud.aiplatform.v1.ActiveLearningConfig.Builder builderForValue) { if (activeLearningConfigBuilder_ == null) { activeLearningConfig_ = builderForValue.build(); - onChanged(); } else { activeLearningConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00020000; + onChanged(); return this; } /** @@ -4752,19 +4800,19 @@ public Builder setActiveLearningConfig( public Builder mergeActiveLearningConfig( com.google.cloud.aiplatform.v1.ActiveLearningConfig value) { if (activeLearningConfigBuilder_ == null) { - if (activeLearningConfig_ != null) { - activeLearningConfig_ = - com.google.cloud.aiplatform.v1.ActiveLearningConfig.newBuilder(activeLearningConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00020000) != 0) + && activeLearningConfig_ != null + && activeLearningConfig_ + != com.google.cloud.aiplatform.v1.ActiveLearningConfig.getDefaultInstance()) { + getActiveLearningConfigBuilder().mergeFrom(value); } else { activeLearningConfig_ = value; } - onChanged(); } else { activeLearningConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00020000; + onChanged(); return this; } /** @@ -4779,14 +4827,13 @@ public Builder mergeActiveLearningConfig( * .google.cloud.aiplatform.v1.ActiveLearningConfig active_learning_config = 21; */ public Builder clearActiveLearningConfig() { - if (activeLearningConfigBuilder_ == null) { - activeLearningConfig_ = null; - onChanged(); - } else { - activeLearningConfig_ = null; + bitField0_ = (bitField0_ & ~0x00020000); + activeLearningConfig_ = null; + if (activeLearningConfigBuilder_ != null) { + activeLearningConfigBuilder_.dispose(); activeLearningConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -4802,7 +4849,7 @@ public Builder clearActiveLearningConfig() { */ public com.google.cloud.aiplatform.v1.ActiveLearningConfig.Builder getActiveLearningConfigBuilder() { - + bitField0_ |= 0x00020000; onChanged(); return getActiveLearningConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobOrBuilder.java index a46f1114d444..bfc1bac012a9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobOrBuilder.java @@ -212,7 +212,6 @@ public interface DataLabelingJobOrBuilder * * map<string, string> annotation_labels = 12; */ - /* nullable */ java.lang.String getAnnotationLabelsOrDefault( java.lang.String key, @@ -621,7 +620,6 @@ java.lang.String getAnnotationLabelsOrDefault( * * map<string, string> labels = 11; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Dataset.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Dataset.java index fb01aadec774..e93354e1d08f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Dataset.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Dataset.java @@ -85,7 +85,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -134,7 +136,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -187,7 +191,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 16; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -236,7 +242,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int METADATA_SCHEMA_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object metadataSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metadataSchemaUri_ = ""; /** * * @@ -333,7 +341,7 @@ public com.google.protobuf.Value getMetadata() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; } public static final int CREATE_TIME_FIELD_NUMBER = 4; @@ -382,7 +390,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 5; @@ -431,11 +439,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ETAG_FIELD_NUMBER = 6; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -498,6 +508,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -591,7 +602,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -632,6 +646,8 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int SAVED_QUERIES_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") private java.util.List savedQueries_; /** * @@ -778,11 +794,15 @@ public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } public static final int METADATA_ARTIFACT_FIELD_NUMBER = 17; - private volatile java.lang.Object metadataArtifact_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metadataArtifact_ = ""; /** * * @@ -1181,34 +1201,27 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - metadataSchemaUri_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } etag_ = ""; - internalGetMutableLabels().clear(); if (savedQueriesBuilder_ == null) { savedQueries_ = java.util.Collections.emptyList(); @@ -1216,15 +1229,13 @@ public Builder clear() { savedQueries_ = null; savedQueriesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } metadataArtifact_ = ""; - return this; } @@ -1252,46 +1263,63 @@ public com.google.cloud.aiplatform.v1.Dataset build() { public com.google.cloud.aiplatform.v1.Dataset buildPartial() { com.google.cloud.aiplatform.v1.Dataset result = new com.google.cloud.aiplatform.v1.Dataset(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; - result.metadataSchemaUri_ = metadataSchemaUri_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.etag_ = etag_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.Dataset result) { if (savedQueriesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { savedQueries_ = java.util.Collections.unmodifiableList(savedQueries_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); } result.savedQueries_ = savedQueries_; } else { result.savedQueries_ = savedQueriesBuilder_.build(); } - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Dataset result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.metadataSchemaUri_ = metadataSchemaUri_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.metadataArtifact_ = metadataArtifact_; } - result.metadataArtifact_ = metadataArtifact_; - onBuilt(); - return result; } @java.lang.Override @@ -1341,18 +1369,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Dataset other) { if (other == com.google.cloud.aiplatform.v1.Dataset.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getMetadataSchemaUri().isEmpty()) { metadataSchemaUri_ = other.metadataSchemaUri_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasMetadata()) { @@ -1366,14 +1398,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Dataset other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000080; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000100; if (savedQueriesBuilder_ == null) { if (!other.savedQueries_.isEmpty()) { if (savedQueries_.isEmpty()) { savedQueries_ = other.savedQueries_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureSavedQueriesIsMutable(); savedQueries_.addAll(other.savedQueries_); @@ -1386,7 +1420,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Dataset other) { savedQueriesBuilder_.dispose(); savedQueriesBuilder_ = null; savedQueries_ = other.savedQueries_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); savedQueriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSavedQueriesFieldBuilder() @@ -1401,6 +1435,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Dataset other) { } if (!other.getMetadataArtifact().isEmpty()) { metadataArtifact_ = other.metadataArtifact_; + bitField0_ |= 0x00000800; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1432,37 +1467,37 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { metadataSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 34 case 42: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 42 case 50: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 50 case 58: @@ -1474,12 +1509,13 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000100; break; } // case 58 case 66: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 66 case 74: @@ -1498,19 +1534,19 @@ public Builder mergeFrom( case 90: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 90 case 130: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 130 case 138: { metadataArtifact_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000800; break; } // case 138 default: @@ -1593,8 +1629,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1610,8 +1646,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1632,8 +1668,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1705,8 +1741,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1724,8 +1760,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1748,8 +1784,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1815,8 +1851,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1832,8 +1868,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1854,8 +1890,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1930,8 +1966,8 @@ public Builder setMetadataSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metadataSchemaUri_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1950,8 +1986,8 @@ public Builder setMetadataSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetadataSchemaUri() { - metadataSchemaUri_ = getDefaultInstance().getMetadataSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1975,8 +2011,8 @@ public Builder setMetadataSchemaUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metadataSchemaUri_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1999,7 +2035,7 @@ public Builder setMetadataSchemaUriBytes(com.google.protobuf.ByteString value) { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2034,11 +2070,11 @@ public Builder setMetadata(com.google.protobuf.Value value) { throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2053,11 +2089,11 @@ public Builder setMetadata(com.google.protobuf.Value value) { public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2071,17 +2107,18 @@ public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Value value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Value.newBuilder(metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Value.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2094,14 +2131,13 @@ public Builder mergeMetadata(com.google.protobuf.Value value) { * .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -2114,7 +2150,7 @@ public Builder clearMetadata() { * .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Value.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -2180,7 +2216,7 @@ public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2221,11 +2257,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2242,11 +2278,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2262,17 +2298,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2287,14 +2324,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2309,7 +2345,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2381,7 +2417,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2422,11 +2458,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2443,11 +2479,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2463,17 +2499,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2488,14 +2525,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2510,7 +2546,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2626,8 +2662,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2644,8 +2680,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -2667,8 +2703,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2684,14 +2720,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000100; + onChanged(); return labels_; } @@ -2779,8 +2815,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2821,6 +2859,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -2855,6 +2894,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000100; return internalGetMutableLabels().getMutableMap(); } /** @@ -2885,8 +2925,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000100; return this; } /** @@ -2912,6 +2952,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; return this; } @@ -2919,10 +2960,10 @@ public Builder putAllLabels(java.util.Map va java.util.Collections.emptyList(); private void ensureSavedQueriesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000200) != 0)) { savedQueries_ = new java.util.ArrayList(savedQueries_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000200; } } @@ -3204,7 +3245,7 @@ public Builder addAllSavedQueries( public Builder clearSavedQueries() { if (savedQueriesBuilder_ == null) { savedQueries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { savedQueriesBuilder_.clear(); @@ -3368,7 +3409,7 @@ public com.google.cloud.aiplatform.v1.SavedQuery.Builder addSavedQueriesBuilder( com.google.cloud.aiplatform.v1.SavedQuery, com.google.cloud.aiplatform.v1.SavedQuery.Builder, com.google.cloud.aiplatform.v1.SavedQueryOrBuilder>( - savedQueries_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + savedQueries_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); savedQueries_ = null; } return savedQueriesBuilder_; @@ -3393,7 +3434,7 @@ public com.google.cloud.aiplatform.v1.SavedQuery.Builder addSavedQueriesBuilder( * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -3432,11 +3473,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec v throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3453,11 +3494,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3472,19 +3513,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3498,14 +3539,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 11; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -3519,7 +3559,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 11; */ public com.google.cloud.aiplatform.v1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -3639,8 +3679,8 @@ public Builder setMetadataArtifact(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metadataArtifact_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3659,8 +3699,8 @@ public Builder setMetadataArtifact(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetadataArtifact() { - metadataArtifact_ = getDefaultInstance().getMetadataArtifact(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -3684,8 +3724,8 @@ public Builder setMetadataArtifactBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metadataArtifact_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java index 4ce8d223e2f6..14c8e4f720a0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java @@ -361,7 +361,6 @@ public interface DatasetOrBuilder * * map<string, string> labels = 7; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResources.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResources.java index 795e7e9ba5a3..ce9835e35586 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResources.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResources.java @@ -122,11 +122,13 @@ public com.google.cloud.aiplatform.v1.MachineSpec getMachineSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.MachineSpecOrBuilder getMachineSpecOrBuilder() { - return getMachineSpec(); + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1.MachineSpec.getDefaultInstance() + : machineSpec_; } public static final int MIN_REPLICA_COUNT_FIELD_NUMBER = 2; - private int minReplicaCount_; + private int minReplicaCount_ = 0; /** * * @@ -151,7 +153,7 @@ public int getMinReplicaCount() { } public static final int MAX_REPLICA_COUNT_FIELD_NUMBER = 3; - private int maxReplicaCount_; + private int maxReplicaCount_ = 0; /** * * @@ -181,6 +183,8 @@ public int getMaxReplicaCount() { } public static final int AUTOSCALING_METRIC_SPECS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List autoscalingMetricSpecs_; /** @@ -592,23 +596,21 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (machineSpecBuilder_ == null) { - machineSpec_ = null; - } else { - machineSpec_ = null; + bitField0_ = 0; + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); machineSpecBuilder_ = null; } minReplicaCount_ = 0; - maxReplicaCount_ = 0; - if (autoscalingMetricSpecsBuilder_ == null) { autoscalingMetricSpecs_ = java.util.Collections.emptyList(); } else { autoscalingMetricSpecs_ = null; autoscalingMetricSpecsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -636,25 +638,39 @@ public com.google.cloud.aiplatform.v1.DedicatedResources build() { public com.google.cloud.aiplatform.v1.DedicatedResources buildPartial() { com.google.cloud.aiplatform.v1.DedicatedResources result = new com.google.cloud.aiplatform.v1.DedicatedResources(this); - int from_bitField0_ = bitField0_; - if (machineSpecBuilder_ == null) { - result.machineSpec_ = machineSpec_; - } else { - result.machineSpec_ = machineSpecBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.minReplicaCount_ = minReplicaCount_; - result.maxReplicaCount_ = maxReplicaCount_; + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.DedicatedResources result) { if (autoscalingMetricSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { autoscalingMetricSpecs_ = java.util.Collections.unmodifiableList(autoscalingMetricSpecs_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.autoscalingMetricSpecs_ = autoscalingMetricSpecs_; } else { result.autoscalingMetricSpecs_ = autoscalingMetricSpecsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.DedicatedResources result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.machineSpec_ = + machineSpecBuilder_ == null ? machineSpec_ : machineSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.minReplicaCount_ = minReplicaCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxReplicaCount_ = maxReplicaCount_; + } } @java.lang.Override @@ -716,7 +732,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DedicatedResources other if (!other.autoscalingMetricSpecs_.isEmpty()) { if (autoscalingMetricSpecs_.isEmpty()) { autoscalingMetricSpecs_ = other.autoscalingMetricSpecs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureAutoscalingMetricSpecsIsMutable(); autoscalingMetricSpecs_.addAll(other.autoscalingMetricSpecs_); @@ -729,7 +745,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DedicatedResources other autoscalingMetricSpecsBuilder_.dispose(); autoscalingMetricSpecsBuilder_ = null; autoscalingMetricSpecs_ = other.autoscalingMetricSpecs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); autoscalingMetricSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAutoscalingMetricSpecsFieldBuilder() @@ -768,19 +784,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getMachineSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { minReplicaCount_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { maxReplicaCount_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: @@ -837,7 +853,7 @@ public Builder mergeFrom( * @return Whether the machineSpec field is set. */ public boolean hasMachineSpec() { - return machineSpecBuilder_ != null || machineSpec_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -880,11 +896,11 @@ public Builder setMachineSpec(com.google.cloud.aiplatform.v1.MachineSpec value) throw new NullPointerException(); } machineSpec_ = value; - onChanged(); } else { machineSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -903,11 +919,11 @@ public Builder setMachineSpec( com.google.cloud.aiplatform.v1.MachineSpec.Builder builderForValue) { if (machineSpecBuilder_ == null) { machineSpec_ = builderForValue.build(); - onChanged(); } else { machineSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -924,19 +940,18 @@ public Builder setMachineSpec( */ public Builder mergeMachineSpec(com.google.cloud.aiplatform.v1.MachineSpec value) { if (machineSpecBuilder_ == null) { - if (machineSpec_ != null) { - machineSpec_ = - com.google.cloud.aiplatform.v1.MachineSpec.newBuilder(machineSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && machineSpec_ != null + && machineSpec_ != com.google.cloud.aiplatform.v1.MachineSpec.getDefaultInstance()) { + getMachineSpecBuilder().mergeFrom(value); } else { machineSpec_ = value; } - onChanged(); } else { machineSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -952,14 +967,13 @@ public Builder mergeMachineSpec(com.google.cloud.aiplatform.v1.MachineSpec value * */ public Builder clearMachineSpec() { - if (machineSpecBuilder_ == null) { - machineSpec_ = null; - onChanged(); - } else { - machineSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); machineSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -975,7 +989,7 @@ public Builder clearMachineSpec() { * */ public com.google.cloud.aiplatform.v1.MachineSpec.Builder getMachineSpecBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getMachineSpecFieldBuilder().getBuilder(); } @@ -1074,6 +1088,7 @@ public int getMinReplicaCount() { public Builder setMinReplicaCount(int value) { minReplicaCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1096,7 +1111,7 @@ public Builder setMinReplicaCount(int value) { * @return This builder for chaining. */ public Builder clearMinReplicaCount() { - + bitField0_ = (bitField0_ & ~0x00000002); minReplicaCount_ = 0; onChanged(); return this; @@ -1157,6 +1172,7 @@ public int getMaxReplicaCount() { public Builder setMaxReplicaCount(int value) { maxReplicaCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1184,7 +1200,7 @@ public Builder setMaxReplicaCount(int value) { * @return This builder for chaining. */ public Builder clearMaxReplicaCount() { - + bitField0_ = (bitField0_ & ~0x00000004); maxReplicaCount_ = 0; onChanged(); return this; @@ -1194,11 +1210,11 @@ public Builder clearMaxReplicaCount() { autoscalingMetricSpecs_ = java.util.Collections.emptyList(); private void ensureAutoscalingMetricSpecsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { autoscalingMetricSpecs_ = new java.util.ArrayList( autoscalingMetricSpecs_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -1650,7 +1666,7 @@ public Builder addAllAutoscalingMetricSpecs( public Builder clearAutoscalingMetricSpecs() { if (autoscalingMetricSpecsBuilder_ == null) { autoscalingMetricSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { autoscalingMetricSpecsBuilder_.clear(); @@ -1925,7 +1941,7 @@ public Builder removeAutoscalingMetricSpecs(int index) { com.google.cloud.aiplatform.v1.AutoscalingMetricSpec.Builder, com.google.cloud.aiplatform.v1.AutoscalingMetricSpecOrBuilder>( autoscalingMetricSpecs_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); autoscalingMetricSpecs_ = null; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteArtifactRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteArtifactRequest.java index 81c15cbe261a..b97f6d3fae4b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteArtifactRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteArtifactRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int ETAG_FIELD_NUMBER = 2; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -386,10 +390,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - etag_ = ""; - return this; } @@ -417,12 +420,23 @@ public com.google.cloud.aiplatform.v1.DeleteArtifactRequest build() { public com.google.cloud.aiplatform.v1.DeleteArtifactRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteArtifactRequest result = new com.google.cloud.aiplatform.v1.DeleteArtifactRequest(this); - result.name_ = name_; - result.etag_ = etag_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteArtifactRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -471,10 +485,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteArtifactRequest ot return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -506,13 +522,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -532,6 +548,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -605,8 +623,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -626,8 +644,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -652,8 +670,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -725,8 +743,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -744,8 +762,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -768,8 +786,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteBatchPredictionJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteBatchPredictionJobRequest.java index e4a8cca978f1..7cd829fd5912 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteBatchPredictionJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteBatchPredictionJobRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -325,8 +327,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -355,11 +357,21 @@ public com.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest build() { public com.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest result = new com.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -409,6 +421,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteBatchPredictionJob return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -440,7 +453,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -460,6 +473,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -533,8 +548,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -554,8 +569,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -580,8 +595,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteContextRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteContextRequest.java index 98fe3998584a..aef76d9f0eec 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteContextRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteContextRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -127,7 +129,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_; + private boolean force_ = false; /** * * @@ -146,7 +148,9 @@ public boolean getForce() { } public static final int ETAG_FIELD_NUMBER = 3; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -414,12 +418,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - force_ = false; - etag_ = ""; - return this; } @@ -447,13 +449,26 @@ public com.google.cloud.aiplatform.v1.DeleteContextRequest build() { public com.google.cloud.aiplatform.v1.DeleteContextRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteContextRequest result = new com.google.cloud.aiplatform.v1.DeleteContextRequest(this); - result.name_ = name_; - result.force_ = force_; - result.etag_ = etag_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteContextRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etag_ = etag_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -502,6 +517,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteContextRequest oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getForce() != false) { @@ -509,6 +525,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteContextRequest oth } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -540,19 +557,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { force_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -572,6 +589,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -645,8 +664,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -666,8 +685,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -692,8 +711,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -731,6 +750,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -747,7 +767,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000002); force_ = false; onChanged(); return this; @@ -820,8 +840,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -839,8 +859,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -863,8 +883,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteCustomJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteCustomJobRequest.java index 0c8597349451..d1f42bdc8de4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteCustomJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteCustomJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1.DeleteCustomJobRequest build() { public com.google.cloud.aiplatform.v1.DeleteCustomJobRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteCustomJobRequest result = new com.google.cloud.aiplatform.v1.DeleteCustomJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteCustomJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteCustomJobRequest o return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDataLabelingJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDataLabelingJobRequest.java index b7bfba1e6481..59cb8573b200 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDataLabelingJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDataLabelingJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest build() { public com.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest result = new com.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteDataLabelingJobReq return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDatasetRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDatasetRequest.java index 2a1eea8b8bde..8241465e4e42 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDatasetRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDatasetRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1.DeleteDatasetRequest build() { public com.google.cloud.aiplatform.v1.DeleteDatasetRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteDatasetRequest result = new com.google.cloud.aiplatform.v1.DeleteDatasetRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteDatasetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -405,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteDatasetRequest oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -436,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -456,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -529,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -550,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -576,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteEndpointRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteEndpointRequest.java index e365a34ffc8d..36ceacf27168 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteEndpointRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteEndpointRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1.DeleteEndpointRequest build() { public com.google.cloud.aiplatform.v1.DeleteEndpointRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteEndpointRequest result = new com.google.cloud.aiplatform.v1.DeleteEndpointRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteEndpointRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -405,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteEndpointRequest ot return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -436,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -456,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -529,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -550,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -576,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteEntityTypeRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteEntityTypeRequest.java index ed003f84873b..c7dffdca6911 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteEntityTypeRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteEntityTypeRequest.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -125,7 +127,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_; + private boolean force_ = false; /** * * @@ -350,10 +352,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - force_ = false; - return this; } @@ -381,12 +382,23 @@ public com.google.cloud.aiplatform.v1.DeleteEntityTypeRequest build() { public com.google.cloud.aiplatform.v1.DeleteEntityTypeRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteEntityTypeRequest result = new com.google.cloud.aiplatform.v1.DeleteEntityTypeRequest(this); - result.name_ = name_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -435,6 +447,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteEntityTypeRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getForce() != false) { @@ -469,13 +482,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { force_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -495,6 +508,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -568,8 +583,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -589,8 +604,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -615,8 +630,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -654,6 +669,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -670,7 +686,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000002); force_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteExecutionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteExecutionRequest.java index 3f851646bc6f..785b29ad78cc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteExecutionRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteExecutionRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int ETAG_FIELD_NUMBER = 2; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -387,10 +391,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - etag_ = ""; - return this; } @@ -418,12 +421,23 @@ public com.google.cloud.aiplatform.v1.DeleteExecutionRequest build() { public com.google.cloud.aiplatform.v1.DeleteExecutionRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteExecutionRequest result = new com.google.cloud.aiplatform.v1.DeleteExecutionRequest(this); - result.name_ = name_; - result.etag_ = etag_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteExecutionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -472,10 +486,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteExecutionRequest o return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -507,13 +523,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -533,6 +549,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -606,8 +624,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -627,8 +645,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -653,8 +671,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -726,8 +744,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -745,8 +763,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -769,8 +787,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteFeatureRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteFeatureRequest.java index 9cb9ed21b55e..3375fb025f9b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteFeatureRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteFeatureRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1.DeleteFeatureRequest build() { public com.google.cloud.aiplatform.v1.DeleteFeatureRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteFeatureRequest result = new com.google.cloud.aiplatform.v1.DeleteFeatureRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteFeatureRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -405,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteFeatureRequest oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -436,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -456,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -529,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -550,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -576,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteFeaturestoreRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteFeaturestoreRequest.java index 09f983e5bbf6..928099e61452 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteFeaturestoreRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteFeaturestoreRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -126,7 +128,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_; + private boolean force_ = false; /** * * @@ -353,10 +355,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - force_ = false; - return this; } @@ -384,12 +385,23 @@ public com.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest build() { public com.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest result = new com.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest(this); - result.name_ = name_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -438,6 +450,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteFeaturestoreReques return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getForce() != false) { @@ -472,13 +485,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { force_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -498,6 +511,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -571,8 +586,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -592,8 +607,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -618,8 +633,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -659,6 +674,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -676,7 +692,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000002); force_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteHyperparameterTuningJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteHyperparameterTuningJobRequest.java index 457305575e77..8af65a7f7717 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteHyperparameterTuningJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteHyperparameterTuningJobRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -328,8 +330,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -359,11 +361,21 @@ public com.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest build public com.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest result = new com.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -415,6 +427,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -446,7 +459,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -466,6 +479,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -539,8 +554,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -560,8 +575,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -586,8 +601,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteIndexEndpointRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteIndexEndpointRequest.java index 6bb75037c92c..49d6a44c7a82 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteIndexEndpointRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteIndexEndpointRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest build() { public com.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest result = new com.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteIndexEndpointReque return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteIndexRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteIndexRequest.java index 90de3f458080..e93cb286c69e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteIndexRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteIndexRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1.DeleteIndexRequest build() { public com.google.cloud.aiplatform.v1.DeleteIndexRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteIndexRequest result = new com.google.cloud.aiplatform.v1.DeleteIndexRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteIndexRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -405,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteIndexRequest other return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -436,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -456,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -529,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -550,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -576,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteMetadataStoreOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteMetadataStoreOperationMetadata.java index 713f9fa83d07..9162a4a8b54a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteMetadataStoreOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteMetadataStoreOperationMetadata.java @@ -114,7 +114,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -323,10 +325,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -358,15 +360,22 @@ public com.google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata build public com.google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata result = new com.google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -448,7 +457,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -468,6 +477,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -486,7 +497,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -524,11 +535,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -544,11 +555,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -563,19 +574,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -588,14 +599,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -609,7 +619,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteMetadataStoreRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteMetadataStoreRequest.java index 60794a00b0c4..2a3d83f0f71f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteMetadataStoreRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteMetadataStoreRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -126,7 +128,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_; + private boolean force_ = false; /** * * @@ -354,10 +356,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - force_ = false; - return this; } @@ -385,12 +386,23 @@ public com.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest build() { public com.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest result = new com.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest(this); - result.name_ = name_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -439,6 +451,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteMetadataStoreReque return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getForce() != false) { @@ -473,13 +486,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { force_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -499,6 +512,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -572,8 +587,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -593,8 +608,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -619,8 +634,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -662,6 +677,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -680,7 +696,7 @@ public Builder setForce(boolean value) { */ @java.lang.Deprecated public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000002); force_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelDeploymentMonitoringJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelDeploymentMonitoringJobRequest.java index e4a587f5e106..cec89a18210a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelDeploymentMonitoringJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelDeploymentMonitoringJobRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -330,8 +332,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -362,11 +364,21 @@ public com.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest public com.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest result = new com.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -419,6 +431,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -450,7 +463,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -470,6 +483,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -543,8 +558,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -564,8 +579,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -590,8 +605,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelRequest.java index 3f49520036bc..af876c893f81 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -321,8 +323,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -350,11 +352,20 @@ public com.google.cloud.aiplatform.v1.DeleteModelRequest build() { public com.google.cloud.aiplatform.v1.DeleteModelRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteModelRequest result = new com.google.cloud.aiplatform.v1.DeleteModelRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteModelRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -403,6 +414,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteModelRequest other return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -434,7 +446,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -454,6 +466,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -524,8 +538,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -544,8 +558,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -569,8 +583,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelVersionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelVersionRequest.java index 6d406e4ac0c6..c6b3664f0d1a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelVersionRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelVersionRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1.DeleteModelVersionRequest build() { public com.google.cloud.aiplatform.v1.DeleteModelVersionRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteModelVersionRequest result = new com.google.cloud.aiplatform.v1.DeleteModelVersionRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteModelVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteModelVersionReques return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteOperationMetadata.java index 63fb7ca64041..b707540af57c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteOperationMetadata.java @@ -111,7 +111,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -317,10 +319,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -350,15 +352,21 @@ public com.google.cloud.aiplatform.v1.DeleteOperationMetadata build() { public com.google.cloud.aiplatform.v1.DeleteOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.DeleteOperationMetadata result = new com.google.cloud.aiplatform.v1.DeleteOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -437,7 +445,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +465,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -475,7 +485,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -513,11 +523,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -533,11 +543,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -552,19 +562,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -577,14 +587,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -598,7 +607,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeletePipelineJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeletePipelineJobRequest.java index f9534aaaf904..74cc47c1b704 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeletePipelineJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeletePipelineJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1.DeletePipelineJobRequest build() { public com.google.cloud.aiplatform.v1.DeletePipelineJobRequest buildPartial() { com.google.cloud.aiplatform.v1.DeletePipelineJobRequest result = new com.google.cloud.aiplatform.v1.DeletePipelineJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeletePipelineJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeletePipelineJobRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteSpecialistPoolRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteSpecialistPoolRequest.java index beafd0fff05a..1f0d0f8bd17d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteSpecialistPoolRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteSpecialistPoolRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -124,7 +126,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_; + private boolean force_ = false; /** * * @@ -351,10 +353,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - force_ = false; - return this; } @@ -382,12 +383,23 @@ public com.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest build() { public com.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest result = new com.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest(this); - result.name_ = name_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -436,6 +448,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteSpecialistPoolRequ return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getForce() != false) { @@ -470,13 +483,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { force_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -496,6 +509,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -566,8 +581,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -586,8 +601,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -611,8 +626,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -652,6 +667,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -669,7 +685,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000002); force_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteStudyRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteStudyRequest.java index beaf05ec7c7e..06210485b491 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteStudyRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteStudyRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -321,8 +323,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -350,11 +352,20 @@ public com.google.cloud.aiplatform.v1.DeleteStudyRequest build() { public com.google.cloud.aiplatform.v1.DeleteStudyRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteStudyRequest result = new com.google.cloud.aiplatform.v1.DeleteStudyRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteStudyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -403,6 +414,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteStudyRequest other return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -434,7 +446,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -454,6 +466,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -524,8 +538,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -544,8 +558,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -569,8 +583,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardExperimentRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardExperimentRequest.java index d024cd76d004..629226d8bca6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardExperimentRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardExperimentRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -327,8 +329,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -357,11 +359,21 @@ public com.google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest build() public com.google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest result = new com.google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -412,6 +424,7 @@ public Builder mergeFrom( return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -443,7 +456,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -463,6 +476,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -536,8 +551,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -557,8 +572,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -583,8 +598,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardRequest.java index d8a69d9c6879..21e7097f69e4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1.DeleteTensorboardRequest build() { public com.google.cloud.aiplatform.v1.DeleteTensorboardRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteTensorboardRequest result = new com.google.cloud.aiplatform.v1.DeleteTensorboardRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteTensorboardRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteTensorboardRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardRunRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardRunRequest.java index d8ebfed9e999..0db0b6b8d705 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardRunRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardRunRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1.DeleteTensorboardRunRequest build() { public com.google.cloud.aiplatform.v1.DeleteTensorboardRunRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteTensorboardRunRequest result = new com.google.cloud.aiplatform.v1.DeleteTensorboardRunRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteTensorboardRunRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteTensorboardRunRequ return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardTimeSeriesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardTimeSeriesRequest.java index c1fcfa0ea390..a9b715f67f44 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardTimeSeriesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTensorboardTimeSeriesRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -327,8 +329,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -357,11 +359,21 @@ public com.google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest build() public com.google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest result = new com.google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -412,6 +424,7 @@ public Builder mergeFrom( return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -443,7 +456,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -463,6 +476,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -536,8 +551,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -557,8 +572,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -583,8 +598,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTrainingPipelineRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTrainingPipelineRequest.java index 4a947ede8a43..3d522e9d7792 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTrainingPipelineRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTrainingPipelineRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -354,11 +356,21 @@ public com.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest build() { public com.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest result = new com.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -408,6 +420,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteTrainingPipelineRe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -439,7 +452,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +472,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -532,8 +547,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -553,8 +568,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -579,8 +594,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTrialRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTrialRequest.java index 881fbad7adaa..11570ffb8328 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTrialRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteTrialRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1.DeleteTrialRequest build() { public com.google.cloud.aiplatform.v1.DeleteTrialRequest buildPartial() { com.google.cloud.aiplatform.v1.DeleteTrialRequest result = new com.google.cloud.aiplatform.v1.DeleteTrialRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteTrialRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -405,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteTrialRequest other return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -436,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -456,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -529,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -550,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -576,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexOperationMetadata.java index ef49e35e3a6d..0b269fd78365 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexOperationMetadata.java @@ -114,11 +114,15 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } public static final int DEPLOYED_INDEX_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deployedIndexId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedIndexId_ = ""; /** * * @@ -379,14 +383,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } deployedIndexId_ = ""; - return this; } @@ -414,16 +417,24 @@ public com.google.cloud.aiplatform.v1.DeployIndexOperationMetadata build() { public com.google.cloud.aiplatform.v1.DeployIndexOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.DeployIndexOperationMetadata result = new com.google.cloud.aiplatform.v1.DeployIndexOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.deployedIndexId_ = deployedIndexId_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeployIndexOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedIndexId_ = deployedIndexId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -475,6 +486,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeployIndexOperationMeta } if (!other.getDeployedIndexId().isEmpty()) { deployedIndexId_ = other.deployedIndexId_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -506,13 +518,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { deployedIndexId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -532,6 +544,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -550,7 +564,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -588,11 +602,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -608,11 +622,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -627,19 +641,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -652,14 +666,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -673,7 +686,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } @@ -783,8 +796,8 @@ public Builder setDeployedIndexId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedIndexId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -800,8 +813,8 @@ public Builder setDeployedIndexId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedIndexId() { - deployedIndexId_ = getDefaultInstance().getDeployedIndexId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -822,8 +835,8 @@ public Builder setDeployedIndexIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedIndexId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexRequest.java index 478a79d64b93..ed6320a4ea2c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INDEX_ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object indexEndpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object indexEndpoint_ = ""; /** * * @@ -176,7 +178,9 @@ public com.google.cloud.aiplatform.v1.DeployedIndex getDeployedIndex() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.DeployedIndexOrBuilder getDeployedIndexOrBuilder() { - return getDeployedIndex(); + return deployedIndex_ == null + ? com.google.cloud.aiplatform.v1.DeployedIndex.getDefaultInstance() + : deployedIndex_; } private byte memoizedIsInitialized = -1; @@ -391,12 +395,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; indexEndpoint_ = ""; - - if (deployedIndexBuilder_ == null) { - deployedIndex_ = null; - } else { - deployedIndex_ = null; + deployedIndex_ = null; + if (deployedIndexBuilder_ != null) { + deployedIndexBuilder_.dispose(); deployedIndexBuilder_ = null; } return this; @@ -426,16 +429,24 @@ public com.google.cloud.aiplatform.v1.DeployIndexRequest build() { public com.google.cloud.aiplatform.v1.DeployIndexRequest buildPartial() { com.google.cloud.aiplatform.v1.DeployIndexRequest result = new com.google.cloud.aiplatform.v1.DeployIndexRequest(this); - result.indexEndpoint_ = indexEndpoint_; - if (deployedIndexBuilder_ == null) { - result.deployedIndex_ = deployedIndex_; - } else { - result.deployedIndex_ = deployedIndexBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeployIndexRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.indexEndpoint_ = indexEndpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedIndex_ = + deployedIndexBuilder_ == null ? deployedIndex_ : deployedIndexBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -484,6 +495,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeployIndexRequest other return this; if (!other.getIndexEndpoint().isEmpty()) { indexEndpoint_ = other.indexEndpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasDeployedIndex()) { @@ -518,13 +530,13 @@ public Builder mergeFrom( case 10: { indexEndpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getDeployedIndexFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -544,6 +556,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object indexEndpoint_ = ""; /** * @@ -617,8 +631,8 @@ public Builder setIndexEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - indexEndpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -638,8 +652,8 @@ public Builder setIndexEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearIndexEndpoint() { - indexEndpoint_ = getDefaultInstance().getIndexEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -664,8 +678,8 @@ public Builder setIndexEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - indexEndpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -690,7 +704,7 @@ public Builder setIndexEndpointBytes(com.google.protobuf.ByteString value) { * @return Whether the deployedIndex field is set. */ public boolean hasDeployedIndex() { - return deployedIndexBuilder_ != null || deployedIndex_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -731,11 +745,11 @@ public Builder setDeployedIndex(com.google.cloud.aiplatform.v1.DeployedIndex val throw new NullPointerException(); } deployedIndex_ = value; - onChanged(); } else { deployedIndexBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -753,11 +767,11 @@ public Builder setDeployedIndex( com.google.cloud.aiplatform.v1.DeployedIndex.Builder builderForValue) { if (deployedIndexBuilder_ == null) { deployedIndex_ = builderForValue.build(); - onChanged(); } else { deployedIndexBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -773,19 +787,19 @@ public Builder setDeployedIndex( */ public Builder mergeDeployedIndex(com.google.cloud.aiplatform.v1.DeployedIndex value) { if (deployedIndexBuilder_ == null) { - if (deployedIndex_ != null) { - deployedIndex_ = - com.google.cloud.aiplatform.v1.DeployedIndex.newBuilder(deployedIndex_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && deployedIndex_ != null + && deployedIndex_ + != com.google.cloud.aiplatform.v1.DeployedIndex.getDefaultInstance()) { + getDeployedIndexBuilder().mergeFrom(value); } else { deployedIndex_ = value; } - onChanged(); } else { deployedIndexBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -800,14 +814,13 @@ public Builder mergeDeployedIndex(com.google.cloud.aiplatform.v1.DeployedIndex v * */ public Builder clearDeployedIndex() { - if (deployedIndexBuilder_ == null) { - deployedIndex_ = null; - onChanged(); - } else { - deployedIndex_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + deployedIndex_ = null; + if (deployedIndexBuilder_ != null) { + deployedIndexBuilder_.dispose(); deployedIndexBuilder_ = null; } - + onChanged(); return this; } /** @@ -822,7 +835,7 @@ public Builder clearDeployedIndex() { * */ public com.google.cloud.aiplatform.v1.DeployedIndex.Builder getDeployedIndexBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getDeployedIndexFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexResponse.java index db7d3950c2af..f533f4ffc76b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployIndexResponse.java @@ -111,7 +111,9 @@ public com.google.cloud.aiplatform.v1.DeployedIndex getDeployedIndex() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.DeployedIndexOrBuilder getDeployedIndexOrBuilder() { - return getDeployedIndex(); + return deployedIndex_ == null + ? com.google.cloud.aiplatform.v1.DeployedIndex.getDefaultInstance() + : deployedIndex_; } private byte memoizedIsInitialized = -1; @@ -317,10 +319,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (deployedIndexBuilder_ == null) { - deployedIndex_ = null; - } else { - deployedIndex_ = null; + bitField0_ = 0; + deployedIndex_ = null; + if (deployedIndexBuilder_ != null) { + deployedIndexBuilder_.dispose(); deployedIndexBuilder_ = null; } return this; @@ -350,15 +352,21 @@ public com.google.cloud.aiplatform.v1.DeployIndexResponse build() { public com.google.cloud.aiplatform.v1.DeployIndexResponse buildPartial() { com.google.cloud.aiplatform.v1.DeployIndexResponse result = new com.google.cloud.aiplatform.v1.DeployIndexResponse(this); - if (deployedIndexBuilder_ == null) { - result.deployedIndex_ = deployedIndex_; - } else { - result.deployedIndex_ = deployedIndexBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeployIndexResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deployedIndex_ = + deployedIndexBuilder_ == null ? deployedIndex_ : deployedIndexBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -437,7 +445,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getDeployedIndexFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +465,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.DeployedIndex deployedIndex_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.DeployedIndex, @@ -475,7 +485,7 @@ public Builder mergeFrom( * @return Whether the deployedIndex field is set. */ public boolean hasDeployedIndex() { - return deployedIndexBuilder_ != null || deployedIndex_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -512,11 +522,11 @@ public Builder setDeployedIndex(com.google.cloud.aiplatform.v1.DeployedIndex val throw new NullPointerException(); } deployedIndex_ = value; - onChanged(); } else { deployedIndexBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -532,11 +542,11 @@ public Builder setDeployedIndex( com.google.cloud.aiplatform.v1.DeployedIndex.Builder builderForValue) { if (deployedIndexBuilder_ == null) { deployedIndex_ = builderForValue.build(); - onChanged(); } else { deployedIndexBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -550,19 +560,19 @@ public Builder setDeployedIndex( */ public Builder mergeDeployedIndex(com.google.cloud.aiplatform.v1.DeployedIndex value) { if (deployedIndexBuilder_ == null) { - if (deployedIndex_ != null) { - deployedIndex_ = - com.google.cloud.aiplatform.v1.DeployedIndex.newBuilder(deployedIndex_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && deployedIndex_ != null + && deployedIndex_ + != com.google.cloud.aiplatform.v1.DeployedIndex.getDefaultInstance()) { + getDeployedIndexBuilder().mergeFrom(value); } else { deployedIndex_ = value; } - onChanged(); } else { deployedIndexBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -575,14 +585,13 @@ public Builder mergeDeployedIndex(com.google.cloud.aiplatform.v1.DeployedIndex v * .google.cloud.aiplatform.v1.DeployedIndex deployed_index = 1; */ public Builder clearDeployedIndex() { - if (deployedIndexBuilder_ == null) { - deployedIndex_ = null; - onChanged(); - } else { - deployedIndex_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + deployedIndex_ = null; + if (deployedIndexBuilder_ != null) { + deployedIndexBuilder_.dispose(); deployedIndexBuilder_ = null; } - + onChanged(); return this; } /** @@ -595,7 +604,7 @@ public Builder clearDeployedIndex() { * .google.cloud.aiplatform.v1.DeployedIndex deployed_index = 1; */ public com.google.cloud.aiplatform.v1.DeployedIndex.Builder getDeployedIndexBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getDeployedIndexFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelOperationMetadata.java index 035e998b0759..7c419943cff4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelOperationMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -319,10 +321,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -352,15 +354,21 @@ public com.google.cloud.aiplatform.v1.DeployModelOperationMetadata build() { public com.google.cloud.aiplatform.v1.DeployModelOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.DeployModelOperationMetadata result = new com.google.cloud.aiplatform.v1.DeployModelOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeployModelOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -439,7 +447,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +467,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -477,7 +487,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -515,11 +525,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -535,11 +545,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -554,19 +564,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -579,14 +589,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -600,7 +609,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelRequest.java index a9fd2909e8a3..274541a7e3c5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelRequest.java @@ -80,7 +80,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object endpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; /** * * @@ -199,7 +201,9 @@ public com.google.cloud.aiplatform.v1.DeployedModel getDeployedModel() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.DeployedModelOrBuilder getDeployedModelOrBuilder() { - return getDeployedModel(); + return deployedModel_ == null + ? com.google.cloud.aiplatform.v1.DeployedModel.getDefaultInstance() + : deployedModel_; } public static final int TRAFFIC_SPLIT_FIELD_NUMBER = 3; @@ -215,6 +219,7 @@ private static final class TrafficSplitDefaultEntryHolder { 0); } + @SuppressWarnings("serial") private com.google.protobuf.MapField trafficSplit_; private com.google.protobuf.MapField @@ -591,12 +596,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; endpoint_ = ""; - - if (deployedModelBuilder_ == null) { - deployedModel_ = null; - } else { - deployedModel_ = null; + deployedModel_ = null; + if (deployedModelBuilder_ != null) { + deployedModelBuilder_.dispose(); deployedModelBuilder_ = null; } internalGetMutableTrafficSplit().clear(); @@ -627,19 +631,28 @@ public com.google.cloud.aiplatform.v1.DeployModelRequest build() { public com.google.cloud.aiplatform.v1.DeployModelRequest buildPartial() { com.google.cloud.aiplatform.v1.DeployModelRequest result = new com.google.cloud.aiplatform.v1.DeployModelRequest(this); - int from_bitField0_ = bitField0_; - result.endpoint_ = endpoint_; - if (deployedModelBuilder_ == null) { - result.deployedModel_ = deployedModel_; - } else { - result.deployedModel_ = deployedModelBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.trafficSplit_ = internalGetTrafficSplit(); - result.trafficSplit_.makeImmutable(); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeployModelRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedModel_ = + deployedModelBuilder_ == null ? deployedModel_ : deployedModelBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.trafficSplit_ = internalGetTrafficSplit(); + result.trafficSplit_.makeImmutable(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -688,12 +701,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeployModelRequest other return this; if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasDeployedModel()) { mergeDeployedModel(other.getDeployedModel()); } internalGetMutableTrafficSplit().mergeFrom(other.internalGetTrafficSplit()); + bitField0_ |= 0x00000004; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -723,13 +738,13 @@ public Builder mergeFrom( case 10: { endpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getDeployedModelFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -741,6 +756,7 @@ public Builder mergeFrom( internalGetMutableTrafficSplit() .getMutableMap() .put(trafficSplit__.getKey(), trafficSplit__.getValue()); + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -835,8 +851,8 @@ public Builder setEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -856,8 +872,8 @@ public Builder setEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEndpoint() { - endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -882,8 +898,8 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -912,7 +928,7 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { * @return Whether the deployedModel field is set. */ public boolean hasDeployedModel() { - return deployedModelBuilder_ != null || deployedModel_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -961,11 +977,11 @@ public Builder setDeployedModel(com.google.cloud.aiplatform.v1.DeployedModel val throw new NullPointerException(); } deployedModel_ = value; - onChanged(); } else { deployedModelBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -987,11 +1003,11 @@ public Builder setDeployedModel( com.google.cloud.aiplatform.v1.DeployedModel.Builder builderForValue) { if (deployedModelBuilder_ == null) { deployedModel_ = builderForValue.build(); - onChanged(); } else { deployedModelBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1011,19 +1027,19 @@ public Builder setDeployedModel( */ public Builder mergeDeployedModel(com.google.cloud.aiplatform.v1.DeployedModel value) { if (deployedModelBuilder_ == null) { - if (deployedModel_ != null) { - deployedModel_ = - com.google.cloud.aiplatform.v1.DeployedModel.newBuilder(deployedModel_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && deployedModel_ != null + && deployedModel_ + != com.google.cloud.aiplatform.v1.DeployedModel.getDefaultInstance()) { + getDeployedModelBuilder().mergeFrom(value); } else { deployedModel_ = value; } - onChanged(); } else { deployedModelBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1042,14 +1058,13 @@ public Builder mergeDeployedModel(com.google.cloud.aiplatform.v1.DeployedModel v * */ public Builder clearDeployedModel() { - if (deployedModelBuilder_ == null) { - deployedModel_ = null; - onChanged(); - } else { - deployedModel_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + deployedModel_ = null; + if (deployedModelBuilder_ != null) { + deployedModelBuilder_.dispose(); deployedModelBuilder_ = null; } - + onChanged(); return this; } /** @@ -1068,7 +1083,7 @@ public Builder clearDeployedModel() { * */ public com.google.cloud.aiplatform.v1.DeployedModel.Builder getDeployedModelBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getDeployedModelFieldBuilder().getBuilder(); } @@ -1141,8 +1156,6 @@ public com.google.cloud.aiplatform.v1.DeployedModelOrBuilder getDeployedModelOrB private com.google.protobuf.MapField internalGetMutableTrafficSplit() { - onChanged(); - ; if (trafficSplit_ == null) { trafficSplit_ = com.google.protobuf.MapField.newMapField(TrafficSplitDefaultEntryHolder.defaultEntry); @@ -1150,6 +1163,8 @@ public com.google.cloud.aiplatform.v1.DeployedModelOrBuilder getDeployedModelOrB if (!trafficSplit_.isMutable()) { trafficSplit_ = trafficSplit_.copy(); } + bitField0_ |= 0x00000004; + onChanged(); return trafficSplit_; } @@ -1270,6 +1285,7 @@ public int getTrafficSplitOrThrow(java.lang.String key) { } public Builder clearTrafficSplit() { + bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableTrafficSplit().getMutableMap().clear(); return this; } @@ -1302,6 +1318,7 @@ public Builder removeTrafficSplit(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableTrafficSplit() { + bitField0_ |= 0x00000004; return internalGetMutableTrafficSplit().getMutableMap(); } /** @@ -1329,6 +1346,7 @@ public Builder putTrafficSplit(java.lang.String key, int value) { } internalGetMutableTrafficSplit().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; return this; } /** @@ -1352,6 +1370,7 @@ public Builder putTrafficSplit(java.lang.String key, int value) { */ public Builder putAllTrafficSplit(java.util.Map values) { internalGetMutableTrafficSplit().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelResponse.java index c5c72ab5b4f9..50913158f1f6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployModelResponse.java @@ -111,7 +111,9 @@ public com.google.cloud.aiplatform.v1.DeployedModel getDeployedModel() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.DeployedModelOrBuilder getDeployedModelOrBuilder() { - return getDeployedModel(); + return deployedModel_ == null + ? com.google.cloud.aiplatform.v1.DeployedModel.getDefaultInstance() + : deployedModel_; } private byte memoizedIsInitialized = -1; @@ -317,10 +319,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (deployedModelBuilder_ == null) { - deployedModel_ = null; - } else { - deployedModel_ = null; + bitField0_ = 0; + deployedModel_ = null; + if (deployedModelBuilder_ != null) { + deployedModelBuilder_.dispose(); deployedModelBuilder_ = null; } return this; @@ -350,15 +352,21 @@ public com.google.cloud.aiplatform.v1.DeployModelResponse build() { public com.google.cloud.aiplatform.v1.DeployModelResponse buildPartial() { com.google.cloud.aiplatform.v1.DeployModelResponse result = new com.google.cloud.aiplatform.v1.DeployModelResponse(this); - if (deployedModelBuilder_ == null) { - result.deployedModel_ = deployedModel_; - } else { - result.deployedModel_ = deployedModelBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeployModelResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deployedModel_ = + deployedModelBuilder_ == null ? deployedModel_ : deployedModelBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -437,7 +445,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getDeployedModelFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +465,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.DeployedModel deployedModel_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.DeployedModel, @@ -475,7 +485,7 @@ public Builder mergeFrom( * @return Whether the deployedModel field is set. */ public boolean hasDeployedModel() { - return deployedModelBuilder_ != null || deployedModel_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -512,11 +522,11 @@ public Builder setDeployedModel(com.google.cloud.aiplatform.v1.DeployedModel val throw new NullPointerException(); } deployedModel_ = value; - onChanged(); } else { deployedModelBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -532,11 +542,11 @@ public Builder setDeployedModel( com.google.cloud.aiplatform.v1.DeployedModel.Builder builderForValue) { if (deployedModelBuilder_ == null) { deployedModel_ = builderForValue.build(); - onChanged(); } else { deployedModelBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -550,19 +560,19 @@ public Builder setDeployedModel( */ public Builder mergeDeployedModel(com.google.cloud.aiplatform.v1.DeployedModel value) { if (deployedModelBuilder_ == null) { - if (deployedModel_ != null) { - deployedModel_ = - com.google.cloud.aiplatform.v1.DeployedModel.newBuilder(deployedModel_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && deployedModel_ != null + && deployedModel_ + != com.google.cloud.aiplatform.v1.DeployedModel.getDefaultInstance()) { + getDeployedModelBuilder().mergeFrom(value); } else { deployedModel_ = value; } - onChanged(); } else { deployedModelBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -575,14 +585,13 @@ public Builder mergeDeployedModel(com.google.cloud.aiplatform.v1.DeployedModel v * .google.cloud.aiplatform.v1.DeployedModel deployed_model = 1; */ public Builder clearDeployedModel() { - if (deployedModelBuilder_ == null) { - deployedModel_ = null; - onChanged(); - } else { - deployedModel_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + deployedModel_ = null; + if (deployedModelBuilder_ != null) { + deployedModelBuilder_.dispose(); deployedModelBuilder_ = null; } - + onChanged(); return this; } /** @@ -595,7 +604,7 @@ public Builder clearDeployedModel() { * .google.cloud.aiplatform.v1.DeployedModel deployed_model = 1; */ public com.google.cloud.aiplatform.v1.DeployedModel.Builder getDeployedModelBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getDeployedModelFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndex.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndex.java index fda76ef1dbf3..64568deb36c9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndex.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndex.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int INDEX_FIELD_NUMBER = 2; - private volatile java.lang.Object index_; + + @SuppressWarnings("serial") + private volatile java.lang.Object index_ = ""; /** * * @@ -182,7 +186,9 @@ public com.google.protobuf.ByteString getIndexBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -278,7 +284,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int PRIVATE_ENDPOINTS_FIELD_NUMBER = 5; @@ -342,7 +348,9 @@ public com.google.cloud.aiplatform.v1.IndexPrivateEndpoints getPrivateEndpoints( @java.lang.Override public com.google.cloud.aiplatform.v1.IndexPrivateEndpointsOrBuilder getPrivateEndpointsOrBuilder() { - return getPrivateEndpoints(); + return privateEndpoints_ == null + ? com.google.cloud.aiplatform.v1.IndexPrivateEndpoints.getDefaultInstance() + : privateEndpoints_; } public static final int INDEX_SYNC_TIME_FIELD_NUMBER = 6; @@ -438,7 +446,9 @@ public com.google.protobuf.Timestamp getIndexSyncTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getIndexSyncTimeOrBuilder() { - return getIndexSyncTime(); + return indexSyncTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : indexSyncTime_; } public static final int AUTOMATIC_RESOURCES_FIELD_NUMBER = 7; @@ -511,7 +521,9 @@ public com.google.cloud.aiplatform.v1.AutomaticResources getAutomaticResources() @java.lang.Override public com.google.cloud.aiplatform.v1.AutomaticResourcesOrBuilder getAutomaticResourcesOrBuilder() { - return getAutomaticResources(); + return automaticResources_ == null + ? com.google.cloud.aiplatform.v1.AutomaticResources.getDefaultInstance() + : automaticResources_; } public static final int DEDICATED_RESOURCES_FIELD_NUMBER = 16; @@ -602,11 +614,13 @@ public com.google.cloud.aiplatform.v1.DedicatedResources getDedicatedResources() @java.lang.Override public com.google.cloud.aiplatform.v1.DedicatedResourcesOrBuilder getDedicatedResourcesOrBuilder() { - return getDedicatedResources(); + return dedicatedResources_ == null + ? com.google.cloud.aiplatform.v1.DedicatedResources.getDefaultInstance() + : dedicatedResources_; } public static final int ENABLE_ACCESS_LOGGING_FIELD_NUMBER = 8; - private boolean enableAccessLogging_; + private boolean enableAccessLogging_ = false; /** * * @@ -681,10 +695,14 @@ public com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig getDeployedIndexAu @java.lang.Override public com.google.cloud.aiplatform.v1.DeployedIndexAuthConfigOrBuilder getDeployedIndexAuthConfigOrBuilder() { - return getDeployedIndexAuthConfig(); + return deployedIndexAuthConfig_ == null + ? com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.getDefaultInstance() + : deployedIndexAuthConfig_; } public static final int RESERVED_IP_RANGES_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList reservedIpRanges_; /** * @@ -774,7 +792,9 @@ public com.google.protobuf.ByteString getReservedIpRangesBytes(int index) { } public static final int DEPLOYMENT_GROUP_FIELD_NUMBER = 11; - private volatile java.lang.Object deploymentGroup_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentGroup_ = ""; /** * * @@ -1174,54 +1194,44 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - index_ = ""; - displayName_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (privateEndpointsBuilder_ == null) { - privateEndpoints_ = null; - } else { - privateEndpoints_ = null; + privateEndpoints_ = null; + if (privateEndpointsBuilder_ != null) { + privateEndpointsBuilder_.dispose(); privateEndpointsBuilder_ = null; } - if (indexSyncTimeBuilder_ == null) { - indexSyncTime_ = null; - } else { - indexSyncTime_ = null; + indexSyncTime_ = null; + if (indexSyncTimeBuilder_ != null) { + indexSyncTimeBuilder_.dispose(); indexSyncTimeBuilder_ = null; } - if (automaticResourcesBuilder_ == null) { - automaticResources_ = null; - } else { - automaticResources_ = null; + automaticResources_ = null; + if (automaticResourcesBuilder_ != null) { + automaticResourcesBuilder_.dispose(); automaticResourcesBuilder_ = null; } - if (dedicatedResourcesBuilder_ == null) { - dedicatedResources_ = null; - } else { - dedicatedResources_ = null; + dedicatedResources_ = null; + if (dedicatedResourcesBuilder_ != null) { + dedicatedResourcesBuilder_.dispose(); dedicatedResourcesBuilder_ = null; } enableAccessLogging_ = false; - - if (deployedIndexAuthConfigBuilder_ == null) { - deployedIndexAuthConfig_ = null; - } else { - deployedIndexAuthConfig_ = null; + deployedIndexAuthConfig_ = null; + if (deployedIndexAuthConfigBuilder_ != null) { + deployedIndexAuthConfigBuilder_.dispose(); deployedIndexAuthConfigBuilder_ = null; } reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); deploymentGroup_ = ""; - return this; } @@ -1249,49 +1259,68 @@ public com.google.cloud.aiplatform.v1.DeployedIndex build() { public com.google.cloud.aiplatform.v1.DeployedIndex buildPartial() { com.google.cloud.aiplatform.v1.DeployedIndex result = new com.google.cloud.aiplatform.v1.DeployedIndex(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.DeployedIndex result) { + if (((bitField0_ & 0x00000400) != 0)) { + reservedIpRanges_ = reservedIpRanges_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.reservedIpRanges_ = reservedIpRanges_; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.DeployedIndex result) { int from_bitField0_ = bitField0_; - result.id_ = id_; - result.index_ = index_; - result.displayName_ = displayName_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; } - if (privateEndpointsBuilder_ == null) { - result.privateEndpoints_ = privateEndpoints_; - } else { - result.privateEndpoints_ = privateEndpointsBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.index_ = index_; } - if (indexSyncTimeBuilder_ == null) { - result.indexSyncTime_ = indexSyncTime_; - } else { - result.indexSyncTime_ = indexSyncTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; } - if (automaticResourcesBuilder_ == null) { - result.automaticResources_ = automaticResources_; - } else { - result.automaticResources_ = automaticResourcesBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } - if (dedicatedResourcesBuilder_ == null) { - result.dedicatedResources_ = dedicatedResources_; - } else { - result.dedicatedResources_ = dedicatedResourcesBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.privateEndpoints_ = + privateEndpointsBuilder_ == null ? privateEndpoints_ : privateEndpointsBuilder_.build(); } - result.enableAccessLogging_ = enableAccessLogging_; - if (deployedIndexAuthConfigBuilder_ == null) { - result.deployedIndexAuthConfig_ = deployedIndexAuthConfig_; - } else { - result.deployedIndexAuthConfig_ = deployedIndexAuthConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.indexSyncTime_ = + indexSyncTimeBuilder_ == null ? indexSyncTime_ : indexSyncTimeBuilder_.build(); } - if (((bitField0_ & 0x00000001) != 0)) { - reservedIpRanges_ = reservedIpRanges_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + if (((from_bitField0_ & 0x00000040) != 0)) { + result.automaticResources_ = + automaticResourcesBuilder_ == null + ? automaticResources_ + : automaticResourcesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.dedicatedResources_ = + dedicatedResourcesBuilder_ == null + ? dedicatedResources_ + : dedicatedResourcesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.enableAccessLogging_ = enableAccessLogging_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.deployedIndexAuthConfig_ = + deployedIndexAuthConfigBuilder_ == null + ? deployedIndexAuthConfig_ + : deployedIndexAuthConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.deploymentGroup_ = deploymentGroup_; } - result.reservedIpRanges_ = reservedIpRanges_; - result.deploymentGroup_ = deploymentGroup_; - onBuilt(); - return result; } @java.lang.Override @@ -1341,14 +1370,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeployedIndex other) { if (other == com.google.cloud.aiplatform.v1.DeployedIndex.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getIndex().isEmpty()) { index_ = other.index_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasCreateTime()) { @@ -1375,7 +1407,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeployedIndex other) { if (!other.reservedIpRanges_.isEmpty()) { if (reservedIpRanges_.isEmpty()) { reservedIpRanges_ = other.reservedIpRanges_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); } else { ensureReservedIpRangesIsMutable(); reservedIpRanges_.addAll(other.reservedIpRanges_); @@ -1384,6 +1416,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeployedIndex other) { } if (!other.getDeploymentGroup().isEmpty()) { deploymentGroup_ = other.deploymentGroup_; + bitField0_ |= 0x00000800; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1415,58 +1448,58 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { index_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getPrivateEndpointsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getIndexSyncTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getAutomaticResourcesFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 58 case 64: { enableAccessLogging_ = input.readBool(); - + bitField0_ |= 0x00000100; break; } // case 64 case 74: { input.readMessage( getDeployedIndexAuthConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 74 case 82: @@ -1479,14 +1512,14 @@ public Builder mergeFrom( case 90: { deploymentGroup_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000800; break; } // case 90 case 130: { input.readMessage( getDedicatedResourcesFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 130 default: @@ -1578,8 +1611,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1598,8 +1631,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1623,8 +1656,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1699,8 +1732,8 @@ public Builder setIndex(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - index_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1719,8 +1752,8 @@ public Builder setIndex(java.lang.String value) { * @return This builder for chaining. */ public Builder clearIndex() { - index_ = getDefaultInstance().getIndex(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1744,8 +1777,8 @@ public Builder setIndexBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - index_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1814,8 +1847,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1832,8 +1865,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1855,8 +1888,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1881,7 +1914,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1922,11 +1955,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1943,11 +1976,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1963,17 +1996,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1988,14 +2022,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2010,7 +2043,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2085,7 +2118,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the privateEndpoints field is set. */ public boolean hasPrivateEndpoints() { - return privateEndpointsBuilder_ != null || privateEndpoints_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2132,11 +2165,11 @@ public Builder setPrivateEndpoints(com.google.cloud.aiplatform.v1.IndexPrivateEn throw new NullPointerException(); } privateEndpoints_ = value; - onChanged(); } else { privateEndpointsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2157,11 +2190,11 @@ public Builder setPrivateEndpoints( com.google.cloud.aiplatform.v1.IndexPrivateEndpoints.Builder builderForValue) { if (privateEndpointsBuilder_ == null) { privateEndpoints_ = builderForValue.build(); - onChanged(); } else { privateEndpointsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2181,19 +2214,19 @@ public Builder setPrivateEndpoints( public Builder mergePrivateEndpoints( com.google.cloud.aiplatform.v1.IndexPrivateEndpoints value) { if (privateEndpointsBuilder_ == null) { - if (privateEndpoints_ != null) { - privateEndpoints_ = - com.google.cloud.aiplatform.v1.IndexPrivateEndpoints.newBuilder(privateEndpoints_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && privateEndpoints_ != null + && privateEndpoints_ + != com.google.cloud.aiplatform.v1.IndexPrivateEndpoints.getDefaultInstance()) { + getPrivateEndpointsBuilder().mergeFrom(value); } else { privateEndpoints_ = value; } - onChanged(); } else { privateEndpointsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2211,14 +2244,13 @@ public Builder mergePrivateEndpoints( * */ public Builder clearPrivateEndpoints() { - if (privateEndpointsBuilder_ == null) { - privateEndpoints_ = null; - onChanged(); - } else { - privateEndpoints_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + privateEndpoints_ = null; + if (privateEndpointsBuilder_ != null) { + privateEndpointsBuilder_.dispose(); privateEndpointsBuilder_ = null; } - + onChanged(); return this; } /** @@ -2237,7 +2269,7 @@ public Builder clearPrivateEndpoints() { */ public com.google.cloud.aiplatform.v1.IndexPrivateEndpoints.Builder getPrivateEndpointsBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getPrivateEndpointsFieldBuilder().getBuilder(); } @@ -2330,7 +2362,7 @@ public Builder clearPrivateEndpoints() { * @return Whether the indexSyncTime field is set. */ public boolean hasIndexSyncTime() { - return indexSyncTimeBuilder_ != null || indexSyncTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2399,11 +2431,11 @@ public Builder setIndexSyncTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } indexSyncTime_ = value; - onChanged(); } else { indexSyncTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2434,11 +2466,11 @@ public Builder setIndexSyncTime(com.google.protobuf.Timestamp value) { public Builder setIndexSyncTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (indexSyncTimeBuilder_ == null) { indexSyncTime_ = builderForValue.build(); - onChanged(); } else { indexSyncTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2468,19 +2500,18 @@ public Builder setIndexSyncTime(com.google.protobuf.Timestamp.Builder builderFor */ public Builder mergeIndexSyncTime(com.google.protobuf.Timestamp value) { if (indexSyncTimeBuilder_ == null) { - if (indexSyncTime_ != null) { - indexSyncTime_ = - com.google.protobuf.Timestamp.newBuilder(indexSyncTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && indexSyncTime_ != null + && indexSyncTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getIndexSyncTimeBuilder().mergeFrom(value); } else { indexSyncTime_ = value; } - onChanged(); } else { indexSyncTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2509,14 +2540,13 @@ public Builder mergeIndexSyncTime(com.google.protobuf.Timestamp value) { * */ public Builder clearIndexSyncTime() { - if (indexSyncTimeBuilder_ == null) { - indexSyncTime_ = null; - onChanged(); - } else { - indexSyncTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + indexSyncTime_ = null; + if (indexSyncTimeBuilder_ != null) { + indexSyncTimeBuilder_.dispose(); indexSyncTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2545,7 +2575,7 @@ public Builder clearIndexSyncTime() { * */ public com.google.protobuf.Timestamp.Builder getIndexSyncTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getIndexSyncTimeFieldBuilder().getBuilder(); } @@ -2651,7 +2681,7 @@ public com.google.protobuf.TimestampOrBuilder getIndexSyncTimeOrBuilder() { * @return Whether the automaticResources field is set. */ public boolean hasAutomaticResources() { - return automaticResourcesBuilder_ != null || automaticResources_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2704,11 +2734,11 @@ public Builder setAutomaticResources(com.google.cloud.aiplatform.v1.AutomaticRes throw new NullPointerException(); } automaticResources_ = value; - onChanged(); } else { automaticResourcesBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2732,11 +2762,11 @@ public Builder setAutomaticResources( com.google.cloud.aiplatform.v1.AutomaticResources.Builder builderForValue) { if (automaticResourcesBuilder_ == null) { automaticResources_ = builderForValue.build(); - onChanged(); } else { automaticResourcesBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2759,19 +2789,19 @@ public Builder setAutomaticResources( public Builder mergeAutomaticResources( com.google.cloud.aiplatform.v1.AutomaticResources value) { if (automaticResourcesBuilder_ == null) { - if (automaticResources_ != null) { - automaticResources_ = - com.google.cloud.aiplatform.v1.AutomaticResources.newBuilder(automaticResources_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && automaticResources_ != null + && automaticResources_ + != com.google.cloud.aiplatform.v1.AutomaticResources.getDefaultInstance()) { + getAutomaticResourcesBuilder().mergeFrom(value); } else { automaticResources_ = value; } - onChanged(); } else { automaticResourcesBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2792,14 +2822,13 @@ public Builder mergeAutomaticResources( * */ public Builder clearAutomaticResources() { - if (automaticResourcesBuilder_ == null) { - automaticResources_ = null; - onChanged(); - } else { - automaticResources_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + automaticResources_ = null; + if (automaticResourcesBuilder_ != null) { + automaticResourcesBuilder_.dispose(); automaticResourcesBuilder_ = null; } - + onChanged(); return this; } /** @@ -2821,7 +2850,7 @@ public Builder clearAutomaticResources() { */ public com.google.cloud.aiplatform.v1.AutomaticResources.Builder getAutomaticResourcesBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getAutomaticResourcesFieldBuilder().getBuilder(); } @@ -2918,7 +2947,7 @@ public Builder clearAutomaticResources() { * @return Whether the dedicatedResources field is set. */ public boolean hasDedicatedResources() { - return dedicatedResourcesBuilder_ != null || dedicatedResources_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2983,11 +3012,11 @@ public Builder setDedicatedResources(com.google.cloud.aiplatform.v1.DedicatedRes throw new NullPointerException(); } dedicatedResources_ = value; - onChanged(); } else { dedicatedResourcesBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3017,11 +3046,11 @@ public Builder setDedicatedResources( com.google.cloud.aiplatform.v1.DedicatedResources.Builder builderForValue) { if (dedicatedResourcesBuilder_ == null) { dedicatedResources_ = builderForValue.build(); - onChanged(); } else { dedicatedResourcesBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3050,19 +3079,19 @@ public Builder setDedicatedResources( public Builder mergeDedicatedResources( com.google.cloud.aiplatform.v1.DedicatedResources value) { if (dedicatedResourcesBuilder_ == null) { - if (dedicatedResources_ != null) { - dedicatedResources_ = - com.google.cloud.aiplatform.v1.DedicatedResources.newBuilder(dedicatedResources_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && dedicatedResources_ != null + && dedicatedResources_ + != com.google.cloud.aiplatform.v1.DedicatedResources.getDefaultInstance()) { + getDedicatedResourcesBuilder().mergeFrom(value); } else { dedicatedResources_ = value; } - onChanged(); } else { dedicatedResourcesBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3089,14 +3118,13 @@ public Builder mergeDedicatedResources( * */ public Builder clearDedicatedResources() { - if (dedicatedResourcesBuilder_ == null) { - dedicatedResources_ = null; - onChanged(); - } else { - dedicatedResources_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + dedicatedResources_ = null; + if (dedicatedResourcesBuilder_ != null) { + dedicatedResourcesBuilder_.dispose(); dedicatedResourcesBuilder_ = null; } - + onChanged(); return this; } /** @@ -3124,7 +3152,7 @@ public Builder clearDedicatedResources() { */ public com.google.cloud.aiplatform.v1.DedicatedResources.Builder getDedicatedResourcesBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getDedicatedResourcesFieldBuilder().getBuilder(); } @@ -3244,6 +3272,7 @@ public boolean getEnableAccessLogging() { public Builder setEnableAccessLogging(boolean value) { enableAccessLogging_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3265,7 +3294,7 @@ public Builder setEnableAccessLogging(boolean value) { * @return This builder for chaining. */ public Builder clearEnableAccessLogging() { - + bitField0_ = (bitField0_ & ~0x00000100); enableAccessLogging_ = false; onChanged(); return this; @@ -3291,7 +3320,7 @@ public Builder clearEnableAccessLogging() { * @return Whether the deployedIndexAuthConfig field is set. */ public boolean hasDeployedIndexAuthConfig() { - return deployedIndexAuthConfigBuilder_ != null || deployedIndexAuthConfig_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -3333,11 +3362,11 @@ public Builder setDeployedIndexAuthConfig( throw new NullPointerException(); } deployedIndexAuthConfig_ = value; - onChanged(); } else { deployedIndexAuthConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3355,11 +3384,11 @@ public Builder setDeployedIndexAuthConfig( com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.Builder builderForValue) { if (deployedIndexAuthConfigBuilder_ == null) { deployedIndexAuthConfig_ = builderForValue.build(); - onChanged(); } else { deployedIndexAuthConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3376,20 +3405,19 @@ public Builder setDeployedIndexAuthConfig( public Builder mergeDeployedIndexAuthConfig( com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig value) { if (deployedIndexAuthConfigBuilder_ == null) { - if (deployedIndexAuthConfig_ != null) { - deployedIndexAuthConfig_ = - com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.newBuilder( - deployedIndexAuthConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && deployedIndexAuthConfig_ != null + && deployedIndexAuthConfig_ + != com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.getDefaultInstance()) { + getDeployedIndexAuthConfigBuilder().mergeFrom(value); } else { deployedIndexAuthConfig_ = value; } - onChanged(); } else { deployedIndexAuthConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3404,14 +3432,13 @@ public Builder mergeDeployedIndexAuthConfig( * */ public Builder clearDeployedIndexAuthConfig() { - if (deployedIndexAuthConfigBuilder_ == null) { - deployedIndexAuthConfig_ = null; - onChanged(); - } else { - deployedIndexAuthConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + deployedIndexAuthConfig_ = null; + if (deployedIndexAuthConfigBuilder_ != null) { + deployedIndexAuthConfigBuilder_.dispose(); deployedIndexAuthConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -3427,7 +3454,7 @@ public Builder clearDeployedIndexAuthConfig() { */ public com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.Builder getDeployedIndexAuthConfigBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getDeployedIndexAuthConfigFieldBuilder().getBuilder(); } @@ -3484,9 +3511,9 @@ public Builder clearDeployedIndexAuthConfig() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureReservedIpRangesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000400) != 0)) { reservedIpRanges_ = new com.google.protobuf.LazyStringArrayList(reservedIpRanges_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000400; } } /** @@ -3685,7 +3712,7 @@ public Builder addAllReservedIpRanges(java.lang.Iterable value */ public Builder clearReservedIpRanges() { reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -3808,8 +3835,8 @@ public Builder setDeploymentGroup(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deploymentGroup_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3834,8 +3861,8 @@ public Builder setDeploymentGroup(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeploymentGroup() { - deploymentGroup_ = getDefaultInstance().getDeploymentGroup(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -3865,8 +3892,8 @@ public Builder setDeploymentGroupBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deploymentGroup_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndexAuthConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndexAuthConfig.java index c1a5f8939341..131568477ba2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndexAuthConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndexAuthConfig.java @@ -245,6 +245,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int AUDIENCES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList audiences_; /** * @@ -318,6 +320,8 @@ public com.google.protobuf.ByteString getAudiencesBytes(int index) { } public static final int ALLOWED_ISSUERS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList allowedIssuers_; /** * @@ -613,6 +617,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); allowedIssuers_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -646,7 +651,16 @@ public com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider build public com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider buildPartial() { com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider result = new com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider result) { if (((bitField0_ & 0x00000001) != 0)) { audiences_ = audiences_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -657,8 +671,11 @@ public com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider build bitField0_ = (bitField0_ & ~0x00000002); } result.allowedIssuers_ = allowedIssuers_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -1288,7 +1305,9 @@ public com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider getAu @java.lang.Override public com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProviderOrBuilder getAuthProviderOrBuilder() { - return getAuthProvider(); + return authProvider_ == null + ? com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.getDefaultInstance() + : authProvider_; } private byte memoizedIsInitialized = -1; @@ -1494,10 +1513,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (authProviderBuilder_ == null) { - authProvider_ = null; - } else { - authProvider_ = null; + bitField0_ = 0; + authProvider_ = null; + if (authProviderBuilder_ != null) { + authProviderBuilder_.dispose(); authProviderBuilder_ = null; } return this; @@ -1527,15 +1546,21 @@ public com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig build() { public com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig buildPartial() { com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig result = new com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig(this); - if (authProviderBuilder_ == null) { - result.authProvider_ = authProvider_; - } else { - result.authProvider_ = authProviderBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.authProvider_ = + authProviderBuilder_ == null ? authProvider_ : authProviderBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1614,7 +1639,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getAuthProviderFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -1634,6 +1659,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider authProvider_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider, @@ -1653,7 +1680,7 @@ public Builder mergeFrom( * @return Whether the authProvider field is set. */ public boolean hasAuthProvider() { - return authProviderBuilder_ != null || authProvider_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1694,11 +1721,11 @@ public Builder setAuthProvider( throw new NullPointerException(); } authProvider_ = value; - onChanged(); } else { authProviderBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1716,11 +1743,11 @@ public Builder setAuthProvider( builderForValue) { if (authProviderBuilder_ == null) { authProvider_ = builderForValue.build(); - onChanged(); } else { authProviderBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1736,20 +1763,20 @@ public Builder setAuthProvider( public Builder mergeAuthProvider( com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider value) { if (authProviderBuilder_ == null) { - if (authProvider_ != null) { - authProvider_ = - com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.newBuilder( - authProvider_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && authProvider_ != null + && authProvider_ + != com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider + .getDefaultInstance()) { + getAuthProviderBuilder().mergeFrom(value); } else { authProvider_ = value; } - onChanged(); } else { authProviderBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1763,14 +1790,13 @@ public Builder mergeAuthProvider( * */ public Builder clearAuthProvider() { - if (authProviderBuilder_ == null) { - authProvider_ = null; - onChanged(); - } else { - authProvider_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + authProvider_ = null; + if (authProviderBuilder_ != null) { + authProviderBuilder_.dispose(); authProviderBuilder_ = null; } - + onChanged(); return this; } /** @@ -1785,7 +1811,7 @@ public Builder clearAuthProvider() { */ public com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.Builder getAuthProviderBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getAuthProviderFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndexRef.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndexRef.java index 33ce695025b1..1288d7fe47b5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndexRef.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndexRef.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INDEX_ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object indexEndpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object indexEndpoint_ = ""; /** * * @@ -122,7 +124,9 @@ public com.google.protobuf.ByteString getIndexEndpointBytes() { } public static final int DEPLOYED_INDEX_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deployedIndexId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedIndexId_ = ""; /** * * @@ -376,10 +380,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; indexEndpoint_ = ""; - deployedIndexId_ = ""; - return this; } @@ -407,12 +410,23 @@ public com.google.cloud.aiplatform.v1.DeployedIndexRef build() { public com.google.cloud.aiplatform.v1.DeployedIndexRef buildPartial() { com.google.cloud.aiplatform.v1.DeployedIndexRef result = new com.google.cloud.aiplatform.v1.DeployedIndexRef(this); - result.indexEndpoint_ = indexEndpoint_; - result.deployedIndexId_ = deployedIndexId_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeployedIndexRef result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.indexEndpoint_ = indexEndpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedIndexId_ = deployedIndexId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -461,10 +475,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeployedIndexRef other) return this; if (!other.getIndexEndpoint().isEmpty()) { indexEndpoint_ = other.indexEndpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDeployedIndexId().isEmpty()) { deployedIndexId_ = other.deployedIndexId_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -496,13 +512,13 @@ public Builder mergeFrom( case 10: { indexEndpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { deployedIndexId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -522,6 +538,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object indexEndpoint_ = ""; /** * @@ -589,8 +607,8 @@ public Builder setIndexEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - indexEndpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -608,8 +626,8 @@ public Builder setIndexEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearIndexEndpoint() { - indexEndpoint_ = getDefaultInstance().getIndexEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -632,8 +650,8 @@ public Builder setIndexEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - indexEndpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -699,8 +717,8 @@ public Builder setDeployedIndexId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedIndexId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -716,8 +734,8 @@ public Builder setDeployedIndexId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedIndexId() { - deployedIndexId_ = getDefaultInstance().getDeployedIndexId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -738,8 +756,8 @@ public Builder setDeployedIndexIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedIndexId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModel.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModel.java index 2157c35a1095..3317b2a63c1a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModel.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModel.java @@ -229,7 +229,9 @@ public com.google.cloud.aiplatform.v1.AutomaticResources getAutomaticResources() } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -282,7 +284,9 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int MODEL_FIELD_NUMBER = 2; - private volatile java.lang.Object model_; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; /** * * @@ -343,7 +347,9 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int MODEL_VERSION_ID_FIELD_NUMBER = 18; - private volatile java.lang.Object modelVersionId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelVersionId_ = ""; /** * * @@ -392,7 +398,9 @@ public com.google.protobuf.ByteString getModelVersionIdBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -488,7 +496,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int EXPLANATION_SPEC_FIELD_NUMBER = 9; @@ -581,11 +589,15 @@ public com.google.cloud.aiplatform.v1.ExplanationSpec getExplanationSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ExplanationSpecOrBuilder getExplanationSpecOrBuilder() { - return getExplanationSpec(); + return explanationSpec_ == null + ? com.google.cloud.aiplatform.v1.ExplanationSpec.getDefaultInstance() + : explanationSpec_; } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 11; - private volatile java.lang.Object serviceAccount_; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; /** * * @@ -644,7 +656,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } public static final int DISABLE_CONTAINER_LOGGING_FIELD_NUMBER = 15; - private boolean disableContainerLogging_; + private boolean disableContainerLogging_ = false; /** * * @@ -667,7 +679,7 @@ public boolean getDisableContainerLogging() { } public static final int ENABLE_ACCESS_LOGGING_FIELD_NUMBER = 13; - private boolean enableAccessLogging_; + private boolean enableAccessLogging_ = false; /** * * @@ -748,7 +760,9 @@ public com.google.cloud.aiplatform.v1.PrivateEndpoints getPrivateEndpoints() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.PrivateEndpointsOrBuilder getPrivateEndpointsOrBuilder() { - return getPrivateEndpoints(); + return privateEndpoints_ == null + ? com.google.cloud.aiplatform.v1.PrivateEndpoints.getDefaultInstance() + : privateEndpoints_; } private byte memoizedIsInitialized = -1; @@ -1085,6 +1099,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (dedicatedResourcesBuilder_ != null) { dedicatedResourcesBuilder_.clear(); } @@ -1092,35 +1107,25 @@ public Builder clear() { automaticResourcesBuilder_.clear(); } id_ = ""; - model_ = ""; - modelVersionId_ = ""; - displayName_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (explanationSpecBuilder_ == null) { - explanationSpec_ = null; - } else { - explanationSpec_ = null; + explanationSpec_ = null; + if (explanationSpecBuilder_ != null) { + explanationSpecBuilder_.dispose(); explanationSpecBuilder_ = null; } serviceAccount_ = ""; - disableContainerLogging_ = false; - enableAccessLogging_ = false; - - if (privateEndpointsBuilder_ == null) { - privateEndpoints_ = null; - } else { - privateEndpoints_ = null; + privateEndpoints_ = null; + if (privateEndpointsBuilder_ != null) { + privateEndpointsBuilder_.dispose(); privateEndpointsBuilder_ = null; } predictionResourcesCase_ = 0; @@ -1152,45 +1157,59 @@ public com.google.cloud.aiplatform.v1.DeployedModel build() { public com.google.cloud.aiplatform.v1.DeployedModel buildPartial() { com.google.cloud.aiplatform.v1.DeployedModel result = new com.google.cloud.aiplatform.v1.DeployedModel(this); - if (predictionResourcesCase_ == 7) { - if (dedicatedResourcesBuilder_ == null) { - result.predictionResources_ = predictionResources_; - } else { - result.predictionResources_ = dedicatedResourcesBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (predictionResourcesCase_ == 8) { - if (automaticResourcesBuilder_ == null) { - result.predictionResources_ = predictionResources_; - } else { - result.predictionResources_ = automaticResourcesBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.DeployedModel result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.id_ = id_; } - result.id_ = id_; - result.model_ = model_; - result.modelVersionId_ = modelVersionId_; - result.displayName_ = displayName_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.model_ = model_; } - if (explanationSpecBuilder_ == null) { - result.explanationSpec_ = explanationSpec_; - } else { - result.explanationSpec_ = explanationSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.modelVersionId_ = modelVersionId_; } - result.serviceAccount_ = serviceAccount_; - result.disableContainerLogging_ = disableContainerLogging_; - result.enableAccessLogging_ = enableAccessLogging_; - if (privateEndpointsBuilder_ == null) { - result.privateEndpoints_ = privateEndpoints_; - } else { - result.privateEndpoints_ = privateEndpointsBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.explanationSpec_ = + explanationSpecBuilder_ == null ? explanationSpec_ : explanationSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.serviceAccount_ = serviceAccount_; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.disableContainerLogging_ = disableContainerLogging_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.enableAccessLogging_ = enableAccessLogging_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.privateEndpoints_ = + privateEndpointsBuilder_ == null ? privateEndpoints_ : privateEndpointsBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.DeployedModel result) { result.predictionResourcesCase_ = predictionResourcesCase_; - onBuilt(); - return result; + result.predictionResources_ = this.predictionResources_; + if (predictionResourcesCase_ == 7 && dedicatedResourcesBuilder_ != null) { + result.predictionResources_ = dedicatedResourcesBuilder_.build(); + } + if (predictionResourcesCase_ == 8 && automaticResourcesBuilder_ != null) { + result.predictionResources_ = automaticResourcesBuilder_.build(); + } } @java.lang.Override @@ -1240,18 +1259,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeployedModel other) { if (other == com.google.cloud.aiplatform.v1.DeployedModel.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getModel().isEmpty()) { model_ = other.model_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getModelVersionId().isEmpty()) { modelVersionId_ = other.modelVersionId_; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasCreateTime()) { @@ -1262,6 +1285,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeployedModel other) { } if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00000100; onChanged(); } if (other.getDisableContainerLogging() != false) { @@ -1318,25 +1342,25 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 10 case 18: { model_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 18 case 26: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 26 case 50: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 50 case 58: @@ -1356,38 +1380,38 @@ public Builder mergeFrom( case 74: { input.readMessage(getExplanationSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 74 case 90: { serviceAccount_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 90 case 104: { enableAccessLogging_ = input.readBool(); - + bitField0_ |= 0x00000400; break; } // case 104 case 114: { input.readMessage( getPrivateEndpointsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000800; break; } // case 114 case 120: { disableContainerLogging_ = input.readBool(); - + bitField0_ |= 0x00000200; break; } // case 120 case 146: { modelVersionId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 146 default: @@ -1421,6 +1445,8 @@ public Builder clearPredictionResources() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.DedicatedResources, com.google.cloud.aiplatform.v1.DedicatedResources.Builder, @@ -1641,7 +1667,6 @@ public Builder clearDedicatedResources() { } predictionResourcesCase_ = 7; onChanged(); - ; return dedicatedResourcesBuilder_; } @@ -1865,7 +1890,6 @@ public Builder clearAutomaticResources() { } predictionResourcesCase_ = 8; onChanged(); - ; return automaticResourcesBuilder_; } @@ -1936,8 +1960,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1955,8 +1979,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1979,8 +2003,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2064,8 +2088,8 @@ public Builder setModel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - model_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2087,8 +2111,8 @@ public Builder setModel(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModel() { - model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2115,8 +2139,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - model_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2182,8 +2206,8 @@ public Builder setModelVersionId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelVersionId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2199,8 +2223,8 @@ public Builder setModelVersionId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelVersionId() { - modelVersionId_ = getDefaultInstance().getModelVersionId(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2221,8 +2245,8 @@ public Builder setModelVersionIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelVersionId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2291,8 +2315,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2309,8 +2333,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2332,8 +2356,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2358,7 +2382,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2399,11 +2423,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2420,11 +2444,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2440,17 +2464,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2465,14 +2490,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2487,7 +2511,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2572,7 +2596,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the explanationSpec field is set. */ public boolean hasExplanationSpec() { - return explanationSpecBuilder_ != null || explanationSpec_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2639,11 +2663,11 @@ public Builder setExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSpec throw new NullPointerException(); } explanationSpec_ = value; - onChanged(); } else { explanationSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2674,11 +2698,11 @@ public Builder setExplanationSpec( com.google.cloud.aiplatform.v1.ExplanationSpec.Builder builderForValue) { if (explanationSpecBuilder_ == null) { explanationSpec_ = builderForValue.build(); - onChanged(); } else { explanationSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2707,19 +2731,19 @@ public Builder setExplanationSpec( */ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSpec value) { if (explanationSpecBuilder_ == null) { - if (explanationSpec_ != null) { - explanationSpec_ = - com.google.cloud.aiplatform.v1.ExplanationSpec.newBuilder(explanationSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && explanationSpec_ != null + && explanationSpec_ + != com.google.cloud.aiplatform.v1.ExplanationSpec.getDefaultInstance()) { + getExplanationSpecBuilder().mergeFrom(value); } else { explanationSpec_ = value; } - onChanged(); } else { explanationSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2747,14 +2771,13 @@ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSp * .google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 9; */ public Builder clearExplanationSpec() { - if (explanationSpecBuilder_ == null) { - explanationSpec_ = null; - onChanged(); - } else { - explanationSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + explanationSpec_ = null; + if (explanationSpecBuilder_ != null) { + explanationSpecBuilder_.dispose(); explanationSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -2782,7 +2805,7 @@ public Builder clearExplanationSpec() { * .google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 9; */ public com.google.cloud.aiplatform.v1.ExplanationSpec.Builder getExplanationSpecBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getExplanationSpecFieldBuilder().getBuilder(); } @@ -2936,8 +2959,8 @@ public Builder setServiceAccount(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - serviceAccount_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2958,8 +2981,8 @@ public Builder setServiceAccount(java.lang.String value) { * @return This builder for chaining. */ public Builder clearServiceAccount() { - serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2985,8 +3008,8 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - serviceAccount_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3032,6 +3055,7 @@ public boolean getDisableContainerLogging() { public Builder setDisableContainerLogging(boolean value) { disableContainerLogging_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3052,7 +3076,7 @@ public Builder setDisableContainerLogging(boolean value) { * @return This builder for chaining. */ public Builder clearDisableContainerLogging() { - + bitField0_ = (bitField0_ & ~0x00000200); disableContainerLogging_ = false; onChanged(); return this; @@ -3097,6 +3121,7 @@ public boolean getEnableAccessLogging() { public Builder setEnableAccessLogging(boolean value) { enableAccessLogging_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3116,7 +3141,7 @@ public Builder setEnableAccessLogging(boolean value) { * @return This builder for chaining. */ public Builder clearEnableAccessLogging() { - + bitField0_ = (bitField0_ & ~0x00000400); enableAccessLogging_ = false; onChanged(); return this; @@ -3145,7 +3170,7 @@ public Builder clearEnableAccessLogging() { * @return Whether the privateEndpoints field is set. */ public boolean hasPrivateEndpoints() { - return privateEndpointsBuilder_ != null || privateEndpoints_ != null; + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -3192,11 +3217,11 @@ public Builder setPrivateEndpoints(com.google.cloud.aiplatform.v1.PrivateEndpoin throw new NullPointerException(); } privateEndpoints_ = value; - onChanged(); } else { privateEndpointsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -3217,11 +3242,11 @@ public Builder setPrivateEndpoints( com.google.cloud.aiplatform.v1.PrivateEndpoints.Builder builderForValue) { if (privateEndpointsBuilder_ == null) { privateEndpoints_ = builderForValue.build(); - onChanged(); } else { privateEndpointsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -3240,19 +3265,19 @@ public Builder setPrivateEndpoints( */ public Builder mergePrivateEndpoints(com.google.cloud.aiplatform.v1.PrivateEndpoints value) { if (privateEndpointsBuilder_ == null) { - if (privateEndpoints_ != null) { - privateEndpoints_ = - com.google.cloud.aiplatform.v1.PrivateEndpoints.newBuilder(privateEndpoints_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000800) != 0) + && privateEndpoints_ != null + && privateEndpoints_ + != com.google.cloud.aiplatform.v1.PrivateEndpoints.getDefaultInstance()) { + getPrivateEndpointsBuilder().mergeFrom(value); } else { privateEndpoints_ = value; } - onChanged(); } else { privateEndpointsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -3270,14 +3295,13 @@ public Builder mergePrivateEndpoints(com.google.cloud.aiplatform.v1.PrivateEndpo * */ public Builder clearPrivateEndpoints() { - if (privateEndpointsBuilder_ == null) { - privateEndpoints_ = null; - onChanged(); - } else { - privateEndpoints_ = null; + bitField0_ = (bitField0_ & ~0x00000800); + privateEndpoints_ = null; + if (privateEndpointsBuilder_ != null) { + privateEndpointsBuilder_.dispose(); privateEndpointsBuilder_ = null; } - + onChanged(); return this; } /** @@ -3295,7 +3319,7 @@ public Builder clearPrivateEndpoints() { * */ public com.google.cloud.aiplatform.v1.PrivateEndpoints.Builder getPrivateEndpointsBuilder() { - + bitField0_ |= 0x00000800; onChanged(); return getPrivateEndpointsFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelRef.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelRef.java index cbea9d837cb0..ec9935762b7c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelRef.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelRef.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object endpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; /** * * @@ -122,7 +124,9 @@ public com.google.protobuf.ByteString getEndpointBytes() { } public static final int DEPLOYED_MODEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deployedModelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedModelId_ = ""; /** * * @@ -376,10 +380,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; endpoint_ = ""; - deployedModelId_ = ""; - return this; } @@ -407,12 +410,23 @@ public com.google.cloud.aiplatform.v1.DeployedModelRef build() { public com.google.cloud.aiplatform.v1.DeployedModelRef buildPartial() { com.google.cloud.aiplatform.v1.DeployedModelRef result = new com.google.cloud.aiplatform.v1.DeployedModelRef(this); - result.endpoint_ = endpoint_; - result.deployedModelId_ = deployedModelId_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DeployedModelRef result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedModelId_ = deployedModelId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -461,10 +475,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeployedModelRef other) return this; if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDeployedModelId().isEmpty()) { deployedModelId_ = other.deployedModelId_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -496,13 +512,13 @@ public Builder mergeFrom( case 10: { endpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { deployedModelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -522,6 +538,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object endpoint_ = ""; /** * @@ -589,8 +607,8 @@ public Builder setEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -608,8 +626,8 @@ public Builder setEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEndpoint() { - endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -632,8 +650,8 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -699,8 +717,8 @@ public Builder setDeployedModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -716,8 +734,8 @@ public Builder setDeployedModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedModelId() { - deployedModelId_ = getDefaultInstance().getDeployedModelId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -738,8 +756,8 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DestinationFeatureSetting.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DestinationFeatureSetting.java index ff82483afa5a..9589f44fb59c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DestinationFeatureSetting.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DestinationFeatureSetting.java @@ -61,7 +61,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int FEATURE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object featureId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object featureId_ = ""; /** * * @@ -110,7 +112,9 @@ public com.google.protobuf.ByteString getFeatureIdBytes() { } public static final int DESTINATION_FIELD_FIELD_NUMBER = 2; - private volatile java.lang.Object destinationField_; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationField_ = ""; /** * * @@ -359,10 +363,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; featureId_ = ""; - destinationField_ = ""; - return this; } @@ -390,12 +393,23 @@ public com.google.cloud.aiplatform.v1.DestinationFeatureSetting build() { public com.google.cloud.aiplatform.v1.DestinationFeatureSetting buildPartial() { com.google.cloud.aiplatform.v1.DestinationFeatureSetting result = new com.google.cloud.aiplatform.v1.DestinationFeatureSetting(this); - result.featureId_ = featureId_; - result.destinationField_ = destinationField_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DestinationFeatureSetting result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.featureId_ = featureId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.destinationField_ = destinationField_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -444,10 +458,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DestinationFeatureSettin return this; if (!other.getFeatureId().isEmpty()) { featureId_ = other.featureId_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDestinationField().isEmpty()) { destinationField_ = other.destinationField_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -479,13 +495,13 @@ public Builder mergeFrom( case 10: { featureId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { destinationField_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -505,6 +521,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object featureId_ = ""; /** * @@ -566,8 +584,8 @@ public Builder setFeatureId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - featureId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -583,8 +601,8 @@ public Builder setFeatureId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFeatureId() { - featureId_ = getDefaultInstance().getFeatureId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -605,8 +623,8 @@ public Builder setFeatureIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - featureId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -675,8 +693,8 @@ public Builder setDestinationField(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - destinationField_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -693,8 +711,8 @@ public Builder setDestinationField(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDestinationField() { - destinationField_ = getDefaultInstance().getDestinationField(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -716,8 +734,8 @@ public Builder setDestinationFieldBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - destinationField_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DiskSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DiskSpec.java index 8201461f8e55..5524e3393c94 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DiskSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DiskSpec.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int BOOT_DISK_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object bootDiskType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object bootDiskType_ = ""; /** * * @@ -121,7 +123,7 @@ public com.google.protobuf.ByteString getBootDiskTypeBytes() { } public static final int BOOT_DISK_SIZE_GB_FIELD_NUMBER = 2; - private int bootDiskSizeGb_; + private int bootDiskSizeGb_ = 0; /** * * @@ -343,10 +345,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; bootDiskType_ = ""; - bootDiskSizeGb_ = 0; - return this; } @@ -374,12 +375,23 @@ public com.google.cloud.aiplatform.v1.DiskSpec build() { public com.google.cloud.aiplatform.v1.DiskSpec buildPartial() { com.google.cloud.aiplatform.v1.DiskSpec result = new com.google.cloud.aiplatform.v1.DiskSpec(this); - result.bootDiskType_ = bootDiskType_; - result.bootDiskSizeGb_ = bootDiskSizeGb_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.DiskSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bootDiskType_ = bootDiskType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.bootDiskSizeGb_ = bootDiskSizeGb_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -427,6 +439,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DiskSpec other) { if (other == com.google.cloud.aiplatform.v1.DiskSpec.getDefaultInstance()) return this; if (!other.getBootDiskType().isEmpty()) { bootDiskType_ = other.bootDiskType_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getBootDiskSizeGb() != 0) { @@ -461,13 +474,13 @@ public Builder mergeFrom( case 10: { bootDiskType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { bootDiskSizeGb_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -487,6 +500,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object bootDiskType_ = ""; /** * @@ -554,8 +569,8 @@ public Builder setBootDiskType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bootDiskType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -573,8 +588,8 @@ public Builder setBootDiskType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearBootDiskType() { - bootDiskType_ = getDefaultInstance().getBootDiskType(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -597,8 +612,8 @@ public Builder setBootDiskTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - bootDiskType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -634,6 +649,7 @@ public int getBootDiskSizeGb() { public Builder setBootDiskSizeGb(int value) { bootDiskSizeGb_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -649,7 +665,7 @@ public Builder setBootDiskSizeGb(int value) { * @return This builder for chaining. */ public Builder clearBootDiskSizeGb() { - + bitField0_ = (bitField0_ & ~0x00000002); bootDiskSizeGb_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DoubleArray.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DoubleArray.java index 4c1fa6af5892..564ee44c6503 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DoubleArray.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DoubleArray.java @@ -68,6 +68,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.DoubleList values_; /** * @@ -327,8 +329,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; values_ = emptyDoubleList(); - bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -356,14 +358,24 @@ public com.google.cloud.aiplatform.v1.DoubleArray build() { public com.google.cloud.aiplatform.v1.DoubleArray buildPartial() { com.google.cloud.aiplatform.v1.DoubleArray result = new com.google.cloud.aiplatform.v1.DoubleArray(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.DoubleArray result) { if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.DoubleArray result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -551,6 +563,7 @@ public double getValues(int index) { * @return This builder for chaining. */ public Builder setValues(int index, double value) { + ensureValuesIsMutable(); values_.setDouble(index, value); onChanged(); @@ -569,6 +582,7 @@ public Builder setValues(int index, double value) { * @return This builder for chaining. */ public Builder addValues(double value) { + ensureValuesIsMutable(); values_.addDouble(value); onChanged(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EncryptionSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EncryptionSpec.java index 9172b75b4165..598fc19c05a1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EncryptionSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EncryptionSpec.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object kmsKeyName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKeyName_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; kmsKeyName_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1.EncryptionSpec build() { public com.google.cloud.aiplatform.v1.EncryptionSpec buildPartial() { com.google.cloud.aiplatform.v1.EncryptionSpec result = new com.google.cloud.aiplatform.v1.EncryptionSpec(this); - result.kmsKeyName_ = kmsKeyName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.EncryptionSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.kmsKeyName_ = kmsKeyName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,6 +415,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.EncryptionSpec other) { if (other == com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance()) return this; if (!other.getKmsKeyName().isEmpty()) { kmsKeyName_ = other.kmsKeyName_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -435,7 +447,7 @@ public Builder mergeFrom( case 10: { kmsKeyName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -455,6 +467,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object kmsKeyName_ = ""; /** * @@ -528,8 +542,8 @@ public Builder setKmsKeyName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - kmsKeyName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -549,8 +563,8 @@ public Builder setKmsKeyName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearKmsKeyName() { - kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -575,8 +589,8 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - kmsKeyName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java index d29981072546..d40659f35df2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java @@ -88,7 +88,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -137,7 +139,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -190,7 +194,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -239,6 +245,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int DEPLOYED_MODELS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List deployedModels_; /** * @@ -356,6 +364,7 @@ private static final class TrafficSplitDefaultEntryHolder { 0); } + @SuppressWarnings("serial") private com.google.protobuf.MapField trafficSplit_; private com.google.protobuf.MapField @@ -464,7 +473,9 @@ public int getTrafficSplitOrThrow(java.lang.String key) { } public static final int ETAG_FIELD_NUMBER = 6; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -527,6 +538,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -596,7 +608,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -674,7 +689,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 9; @@ -723,7 +738,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 10; @@ -777,11 +792,15 @@ public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } public static final int NETWORK_FIELD_NUMBER = 13; - private volatile java.lang.Object network_; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; /** * * @@ -854,7 +873,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { } public static final int ENABLE_PRIVATE_SERVICE_CONNECT_FIELD_NUMBER = 17; - private boolean enablePrivateServiceConnect_; + private boolean enablePrivateServiceConnect_ = false; /** * * @@ -879,7 +898,9 @@ public boolean getEnablePrivateServiceConnect() { } public static final int MODEL_DEPLOYMENT_MONITORING_JOB_FIELD_NUMBER = 14; - private volatile java.lang.Object modelDeploymentMonitoringJob_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelDeploymentMonitoringJob_ = ""; /** * * @@ -991,7 +1012,9 @@ public boolean hasPredictRequestResponseLoggingConfig() { @java.lang.Override public com.google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfigOrBuilder getPredictRequestResponseLoggingConfigOrBuilder() { - return getPredictRequestResponseLoggingConfig(); + return predictRequestResponseLoggingConfig_ == null + ? com.google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfig.getDefaultInstance() + : predictRequestResponseLoggingConfig_; } private byte memoizedIsInitialized = -1; @@ -1378,51 +1401,41 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - if (deployedModelsBuilder_ == null) { deployedModels_ = java.util.Collections.emptyList(); } else { deployedModels_ = null; deployedModelsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableTrafficSplit().clear(); etag_ = ""; - internalGetMutableLabels().clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } network_ = ""; - enablePrivateServiceConnect_ = false; - modelDeploymentMonitoringJob_ = ""; - - if (predictRequestResponseLoggingConfigBuilder_ == null) { - predictRequestResponseLoggingConfig_ = null; - } else { - predictRequestResponseLoggingConfig_ = null; + predictRequestResponseLoggingConfig_ = null; + if (predictRequestResponseLoggingConfigBuilder_ != null) { + predictRequestResponseLoggingConfigBuilder_.dispose(); predictRequestResponseLoggingConfigBuilder_ = null; } return this; @@ -1452,50 +1465,73 @@ public com.google.cloud.aiplatform.v1.Endpoint build() { public com.google.cloud.aiplatform.v1.Endpoint buildPartial() { com.google.cloud.aiplatform.v1.Endpoint result = new com.google.cloud.aiplatform.v1.Endpoint(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.Endpoint result) { if (deployedModelsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { deployedModels_ = java.util.Collections.unmodifiableList(deployedModels_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.deployedModels_ = deployedModels_; } else { result.deployedModels_ = deployedModelsBuilder_.build(); } - result.trafficSplit_ = internalGetTrafficSplit(); - result.trafficSplit_.makeImmutable(); - result.etag_ = etag_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Endpoint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; } - result.network_ = network_; - result.enablePrivateServiceConnect_ = enablePrivateServiceConnect_; - result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_; - if (predictRequestResponseLoggingConfigBuilder_ == null) { - result.predictRequestResponseLoggingConfig_ = predictRequestResponseLoggingConfig_; - } else { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.trafficSplit_ = internalGetTrafficSplit(); + result.trafficSplit_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.enablePrivateServiceConnect_ = enablePrivateServiceConnect_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { result.predictRequestResponseLoggingConfig_ = - predictRequestResponseLoggingConfigBuilder_.build(); + predictRequestResponseLoggingConfigBuilder_ == null + ? predictRequestResponseLoggingConfig_ + : predictRequestResponseLoggingConfigBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -1545,21 +1581,24 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Endpoint other) { if (other == com.google.cloud.aiplatform.v1.Endpoint.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (deployedModelsBuilder_ == null) { if (!other.deployedModels_.isEmpty()) { if (deployedModels_.isEmpty()) { deployedModels_ = other.deployedModels_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureDeployedModelsIsMutable(); deployedModels_.addAll(other.deployedModels_); @@ -1572,7 +1611,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Endpoint other) { deployedModelsBuilder_.dispose(); deployedModelsBuilder_ = null; deployedModels_ = other.deployedModels_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); deployedModelsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDeployedModelsFieldBuilder() @@ -1583,11 +1622,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Endpoint other) { } } internalGetMutableTrafficSplit().mergeFrom(other.internalGetTrafficSplit()); + bitField0_ |= 0x00000010; if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000020; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000040; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1599,6 +1641,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Endpoint other) { } if (!other.getNetwork().isEmpty()) { network_ = other.network_; + bitField0_ |= 0x00000400; onChanged(); } if (other.getEnablePrivateServiceConnect() != false) { @@ -1606,6 +1649,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Endpoint other) { } if (!other.getModelDeploymentMonitoringJob().isEmpty()) { modelDeploymentMonitoringJob_ = other.modelDeploymentMonitoringJob_; + bitField0_ |= 0x00001000; onChanged(); } if (other.hasPredictRequestResponseLoggingConfig()) { @@ -1640,19 +1684,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: @@ -1677,12 +1721,13 @@ public Builder mergeFrom( internalGetMutableTrafficSplit() .getMutableMap() .put(trafficSplit__.getKey(), trafficSplit__.getValue()); + bitField0_ |= 0x00000010; break; } // case 42 case 50: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 case 58: @@ -1694,42 +1739,43 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 66 case 74: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 74 case 82: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 82 case 106: { network_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000400; break; } // case 106 case 114: { modelDeploymentMonitoringJob_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00001000; break; } // case 114 case 136: { enablePrivateServiceConnect_ = input.readBool(); - + bitField0_ |= 0x00000800; break; } // case 136 case 146: @@ -1737,7 +1783,7 @@ public Builder mergeFrom( input.readMessage( getPredictRequestResponseLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00002000; break; } // case 146 default: @@ -1820,8 +1866,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1837,8 +1883,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1859,8 +1905,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1932,8 +1978,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1951,8 +1997,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1975,8 +2021,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2042,8 +2088,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2059,8 +2105,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2081,8 +2127,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2091,10 +2137,10 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureDeployedModelsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { deployedModels_ = new java.util.ArrayList(deployedModels_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -2389,7 +2435,7 @@ public Builder addAllDeployedModels( public Builder clearDeployedModels() { if (deployedModelsBuilder_ == null) { deployedModels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { deployedModelsBuilder_.clear(); @@ -2564,7 +2610,7 @@ public com.google.cloud.aiplatform.v1.DeployedModel.Builder addDeployedModelsBui com.google.cloud.aiplatform.v1.DeployedModel.Builder, com.google.cloud.aiplatform.v1.DeployedModelOrBuilder>( deployedModels_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); deployedModels_ = null; @@ -2585,8 +2631,6 @@ public com.google.cloud.aiplatform.v1.DeployedModel.Builder addDeployedModelsBui private com.google.protobuf.MapField internalGetMutableTrafficSplit() { - onChanged(); - ; if (trafficSplit_ == null) { trafficSplit_ = com.google.protobuf.MapField.newMapField(TrafficSplitDefaultEntryHolder.defaultEntry); @@ -2594,6 +2638,8 @@ public com.google.cloud.aiplatform.v1.DeployedModel.Builder addDeployedModelsBui if (!trafficSplit_.isMutable()) { trafficSplit_ = trafficSplit_.copy(); } + bitField0_ |= 0x00000010; + onChanged(); return trafficSplit_; } @@ -2694,6 +2740,7 @@ public int getTrafficSplitOrThrow(java.lang.String key) { } public Builder clearTrafficSplit() { + bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableTrafficSplit().getMutableMap().clear(); return this; } @@ -2721,6 +2768,7 @@ public Builder removeTrafficSplit(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableTrafficSplit() { + bitField0_ |= 0x00000010; return internalGetMutableTrafficSplit().getMutableMap(); } /** @@ -2743,6 +2791,7 @@ public Builder putTrafficSplit(java.lang.String key, int value) { } internalGetMutableTrafficSplit().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; return this; } /** @@ -2761,6 +2810,7 @@ public Builder putTrafficSplit(java.lang.String key, int value) { */ public Builder putAllTrafficSplit(java.util.Map values) { internalGetMutableTrafficSplit().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; return this; } @@ -2828,8 +2878,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2846,8 +2896,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2869,8 +2919,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2886,14 +2936,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000040; + onChanged(); return labels_; } @@ -2957,8 +3007,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2991,6 +3043,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000040); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -3017,6 +3070,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000040; return internalGetMutableLabels().getMutableMap(); } /** @@ -3039,8 +3093,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000040; return this; } /** @@ -3058,6 +3112,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; return this; } @@ -3081,7 +3136,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -3122,11 +3177,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3143,11 +3198,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3163,17 +3218,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3188,14 +3244,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3210,7 +3265,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -3282,7 +3337,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -3323,11 +3378,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3344,11 +3399,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3364,17 +3419,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3389,14 +3445,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3411,7 +3466,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -3483,7 +3538,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -3524,11 +3579,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec v throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3546,11 +3601,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3566,19 +3621,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3593,14 +3648,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 10; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -3615,7 +3669,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 10; */ public com.google.cloud.aiplatform.v1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -3764,8 +3818,8 @@ public Builder setNetwork(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - network_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3793,8 +3847,8 @@ public Builder setNetwork(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNetwork() { - network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -3827,8 +3881,8 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - network_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3878,6 +3932,7 @@ public boolean getEnablePrivateServiceConnect() { public Builder setEnablePrivateServiceConnect(boolean value) { enablePrivateServiceConnect_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3900,7 +3955,7 @@ public Builder setEnablePrivateServiceConnect(boolean value) { */ @java.lang.Deprecated public Builder clearEnablePrivateServiceConnect() { - + bitField0_ = (bitField0_ & ~0x00000800); enablePrivateServiceConnect_ = false; onChanged(); return this; @@ -3982,8 +4037,8 @@ public Builder setModelDeploymentMonitoringJob(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelDeploymentMonitoringJob_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4004,8 +4059,8 @@ public Builder setModelDeploymentMonitoringJob(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelDeploymentMonitoringJob() { - modelDeploymentMonitoringJob_ = getDefaultInstance().getModelDeploymentMonitoringJob(); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -4031,8 +4086,8 @@ public Builder setModelDeploymentMonitoringJobBytes(com.google.protobuf.ByteStri throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelDeploymentMonitoringJob_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4058,8 +4113,7 @@ public Builder setModelDeploymentMonitoringJobBytes(com.google.protobuf.ByteStri * @return Whether the predictRequestResponseLoggingConfig field is set. */ public boolean hasPredictRequestResponseLoggingConfig() { - return predictRequestResponseLoggingConfigBuilder_ != null - || predictRequestResponseLoggingConfig_ != null; + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -4103,11 +4157,11 @@ public Builder setPredictRequestResponseLoggingConfig( throw new NullPointerException(); } predictRequestResponseLoggingConfig_ = value; - onChanged(); } else { predictRequestResponseLoggingConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -4126,11 +4180,11 @@ public Builder setPredictRequestResponseLoggingConfig( builderForValue) { if (predictRequestResponseLoggingConfigBuilder_ == null) { predictRequestResponseLoggingConfig_ = builderForValue.build(); - onChanged(); } else { predictRequestResponseLoggingConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -4147,20 +4201,20 @@ public Builder setPredictRequestResponseLoggingConfig( public Builder mergePredictRequestResponseLoggingConfig( com.google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfig value) { if (predictRequestResponseLoggingConfigBuilder_ == null) { - if (predictRequestResponseLoggingConfig_ != null) { - predictRequestResponseLoggingConfig_ = - com.google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfig.newBuilder( - predictRequestResponseLoggingConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00002000) != 0) + && predictRequestResponseLoggingConfig_ != null + && predictRequestResponseLoggingConfig_ + != com.google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfig + .getDefaultInstance()) { + getPredictRequestResponseLoggingConfigBuilder().mergeFrom(value); } else { predictRequestResponseLoggingConfig_ = value; } - onChanged(); } else { predictRequestResponseLoggingConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -4175,14 +4229,13 @@ public Builder mergePredictRequestResponseLoggingConfig( * */ public Builder clearPredictRequestResponseLoggingConfig() { - if (predictRequestResponseLoggingConfigBuilder_ == null) { - predictRequestResponseLoggingConfig_ = null; - onChanged(); - } else { - predictRequestResponseLoggingConfig_ = null; + bitField0_ = (bitField0_ & ~0x00002000); + predictRequestResponseLoggingConfig_ = null; + if (predictRequestResponseLoggingConfigBuilder_ != null) { + predictRequestResponseLoggingConfigBuilder_.dispose(); predictRequestResponseLoggingConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -4198,7 +4251,7 @@ public Builder clearPredictRequestResponseLoggingConfig() { */ public com.google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfig.Builder getPredictRequestResponseLoggingConfigBuilder() { - + bitField0_ |= 0x00002000; onChanged(); return getPredictRequestResponseLoggingConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java index 816f8c320181..e3182e398d62 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java @@ -353,7 +353,6 @@ public interface EndpointOrBuilder * * map<string, string> labels = 7; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityType.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityType.java index 69f5226027f8..c3333975bba3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityType.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityType.java @@ -83,7 +83,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -144,7 +146,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -238,7 +242,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 4; @@ -287,7 +291,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int LABELS_FIELD_NUMBER = 6; @@ -303,6 +307,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -387,7 +392,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -425,7 +433,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int ETAG_FIELD_NUMBER = 7; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -548,7 +558,9 @@ public com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig getMonitoring @java.lang.Override public com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfigOrBuilder getMonitoringConfigOrBuilder() { - return getMonitoringConfig(); + return monitoringConfig_ == null + ? com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.getDefaultInstance() + : monitoringConfig_; } private byte memoizedIsInitialized = -1; @@ -847,29 +859,24 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - description_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); etag_ = ""; - - if (monitoringConfigBuilder_ == null) { - monitoringConfig_ = null; - } else { - monitoringConfig_ = null; + monitoringConfig_ = null; + if (monitoringConfigBuilder_ != null) { + monitoringConfigBuilder_.dispose(); monitoringConfigBuilder_ = null; } return this; @@ -899,29 +906,38 @@ public com.google.cloud.aiplatform.v1.EntityType build() { public com.google.cloud.aiplatform.v1.EntityType buildPartial() { com.google.cloud.aiplatform.v1.EntityType result = new com.google.cloud.aiplatform.v1.EntityType(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.EntityType result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - result.description_ = description_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.etag_ = etag_; - if (monitoringConfigBuilder_ == null) { - result.monitoringConfig_ = monitoringConfig_; - } else { - result.monitoringConfig_ = monitoringConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.monitoringConfig_ = + monitoringConfigBuilder_ == null ? monitoringConfig_ : monitoringConfigBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -971,10 +987,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.EntityType other) { if (other == com.google.cloud.aiplatform.v1.EntityType.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasCreateTime()) { @@ -984,8 +1002,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.EntityType other) { mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasMonitoringConfig()) { @@ -1020,25 +1040,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 50: @@ -1050,19 +1070,20 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; break; } // case 50 case 58: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 58 case 66: { input.readMessage( getMonitoringConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 66 default: @@ -1163,8 +1184,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1186,8 +1207,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1214,8 +1235,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1281,8 +1302,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1298,8 +1319,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1320,8 +1341,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1346,7 +1367,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1387,11 +1408,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1408,11 +1429,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1428,17 +1449,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1453,14 +1475,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1475,7 +1496,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1547,7 +1568,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1588,11 +1609,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1609,11 +1630,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1629,17 +1650,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1654,14 +1676,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1676,7 +1697,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -1739,14 +1760,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000010; + onChanged(); return labels_; } @@ -1825,8 +1846,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1864,6 +1887,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -1895,6 +1919,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000010; return internalGetMutableLabels().getMutableMap(); } /** @@ -1922,8 +1947,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; return this; } /** @@ -1946,6 +1971,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; return this; } @@ -2013,8 +2039,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2031,8 +2057,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2054,8 +2080,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2087,7 +2113,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { * @return Whether the monitoringConfig field is set. */ public boolean hasMonitoringConfig() { - return monitoringConfigBuilder_ != null || monitoringConfig_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2143,11 +2169,11 @@ public Builder setMonitoringConfig( throw new NullPointerException(); } monitoringConfig_ = value; - onChanged(); } else { monitoringConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2172,11 +2198,11 @@ public Builder setMonitoringConfig( com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.Builder builderForValue) { if (monitoringConfigBuilder_ == null) { monitoringConfig_ = builderForValue.build(); - onChanged(); } else { monitoringConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2200,20 +2226,20 @@ public Builder setMonitoringConfig( public Builder mergeMonitoringConfig( com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig value) { if (monitoringConfigBuilder_ == null) { - if (monitoringConfig_ != null) { - monitoringConfig_ = - com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.newBuilder( - monitoringConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && monitoringConfig_ != null + && monitoringConfig_ + != com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig + .getDefaultInstance()) { + getMonitoringConfigBuilder().mergeFrom(value); } else { monitoringConfig_ = value; } - onChanged(); } else { monitoringConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2235,14 +2261,13 @@ public Builder mergeMonitoringConfig( * */ public Builder clearMonitoringConfig() { - if (monitoringConfigBuilder_ == null) { - monitoringConfig_ = null; - onChanged(); - } else { - monitoringConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + monitoringConfig_ = null; + if (monitoringConfigBuilder_ != null) { + monitoringConfigBuilder_.dispose(); monitoringConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -2265,7 +2290,7 @@ public Builder clearMonitoringConfig() { */ public com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.Builder getMonitoringConfigBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getMonitoringConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityTypeOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityTypeOrBuilder.java index 4b5eed5403e1..c16642c74206 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityTypeOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityTypeOrBuilder.java @@ -239,7 +239,6 @@ public interface EntityTypeOrBuilder * * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EnvVar.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EnvVar.java index 86e5564a46d2..851a017276fc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EnvVar.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EnvVar.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -118,7 +120,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; /** * * @@ -382,10 +386,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - value_ = ""; - return this; } @@ -413,12 +416,23 @@ public com.google.cloud.aiplatform.v1.EnvVar build() { public com.google.cloud.aiplatform.v1.EnvVar buildPartial() { com.google.cloud.aiplatform.v1.EnvVar result = new com.google.cloud.aiplatform.v1.EnvVar(this); - result.name_ = name_; - result.value_ = value_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.EnvVar result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -466,10 +480,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.EnvVar other) { if (other == com.google.cloud.aiplatform.v1.EnvVar.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getValue().isEmpty()) { value_ = other.value_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -501,13 +517,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { value_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -527,6 +543,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -588,8 +606,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -605,8 +623,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -627,8 +645,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -712,8 +730,8 @@ public Builder setValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - value_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -735,8 +753,8 @@ public Builder setValue(java.lang.String value) { * @return This builder for chaining. */ public Builder clearValue() { - value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -763,8 +781,8 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - value_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Event.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Event.java index abfd5f13be19..a97aca9a3ee2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Event.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Event.java @@ -239,7 +239,9 @@ private Type(int value) { } public static final int ARTIFACT_FIELD_NUMBER = 1; - private volatile java.lang.Object artifact_; + + @SuppressWarnings("serial") + private volatile java.lang.Object artifact_ = ""; /** * * @@ -292,7 +294,9 @@ public com.google.protobuf.ByteString getArtifactBytes() { } public static final int EXECUTION_FIELD_NUMBER = 2; - private volatile java.lang.Object execution_; + + @SuppressWarnings("serial") + private volatile java.lang.Object execution_ = ""; /** * * @@ -390,11 +394,11 @@ public com.google.protobuf.Timestamp getEventTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { - return getEventTime(); + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } public static final int TYPE_FIELD_NUMBER = 4; - private int type_; + private int type_ = 0; /** * * @@ -427,9 +431,8 @@ public int getTypeValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.Event.Type getType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Event.Type result = - com.google.cloud.aiplatform.v1.Event.Type.valueOf(type_); + com.google.cloud.aiplatform.v1.Event.Type.forNumber(type_); return result == null ? com.google.cloud.aiplatform.v1.Event.Type.UNRECOGNIZED : result; } @@ -446,6 +449,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -527,7 +531,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -828,18 +835,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; artifact_ = ""; - execution_ = ""; - - if (eventTimeBuilder_ == null) { - eventTime_ = null; - } else { - eventTime_ = null; + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); eventTimeBuilder_ = null; } type_ = 0; - internalGetMutableLabels().clear(); return this; } @@ -867,21 +871,33 @@ public com.google.cloud.aiplatform.v1.Event build() { @java.lang.Override public com.google.cloud.aiplatform.v1.Event buildPartial() { com.google.cloud.aiplatform.v1.Event result = new com.google.cloud.aiplatform.v1.Event(this); - int from_bitField0_ = bitField0_; - result.artifact_ = artifact_; - result.execution_ = execution_; - if (eventTimeBuilder_ == null) { - result.eventTime_ = eventTime_; - } else { - result.eventTime_ = eventTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.type_ = type_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.Event result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.artifact_ = artifact_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.execution_ = execution_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -929,10 +945,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Event other) { if (other == com.google.cloud.aiplatform.v1.Event.getDefaultInstance()) return this; if (!other.getArtifact().isEmpty()) { artifact_ = other.artifact_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getExecution().isEmpty()) { execution_ = other.execution_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasEventTime()) { @@ -942,6 +960,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Event other) { setTypeValue(other.getTypeValue()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -971,25 +990,25 @@ public Builder mergeFrom( case 10: { artifact_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { execution_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getEventTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 32: { type_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 case 42: @@ -1001,6 +1020,7 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -1089,8 +1109,8 @@ public Builder setArtifact(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - artifact_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1108,8 +1128,8 @@ public Builder setArtifact(java.lang.String value) { * @return This builder for chaining. */ public Builder clearArtifact() { - artifact_ = getDefaultInstance().getArtifact(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1132,8 +1152,8 @@ public Builder setArtifactBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - artifact_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1205,8 +1225,8 @@ public Builder setExecution(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - execution_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1224,8 +1244,8 @@ public Builder setExecution(java.lang.String value) { * @return This builder for chaining. */ public Builder clearExecution() { - execution_ = getDefaultInstance().getExecution(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1248,8 +1268,8 @@ public Builder setExecutionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - execution_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1273,7 +1293,7 @@ public Builder setExecutionBytes(com.google.protobuf.ByteString value) { * @return Whether the eventTime field is set. */ public boolean hasEventTime() { - return eventTimeBuilder_ != null || eventTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1310,11 +1330,11 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } eventTime_ = value; - onChanged(); } else { eventTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1330,11 +1350,11 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) { public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (eventTimeBuilder_ == null) { eventTime_ = builderForValue.build(); - onChanged(); } else { eventTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1349,17 +1369,18 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { if (eventTimeBuilder_ == null) { - if (eventTime_ != null) { - eventTime_ = - com.google.protobuf.Timestamp.newBuilder(eventTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && eventTime_ != null + && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEventTimeBuilder().mergeFrom(value); } else { eventTime_ = value; } - onChanged(); } else { eventTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1373,14 +1394,13 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEventTime() { - if (eventTimeBuilder_ == null) { - eventTime_ = null; - onChanged(); - } else { - eventTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); eventTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1394,7 +1414,7 @@ public Builder clearEventTime() { * */ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getEventTimeFieldBuilder().getBuilder(); } @@ -1475,8 +1495,8 @@ public int getTypeValue() { * @return This builder for chaining. */ public Builder setTypeValue(int value) { - type_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1495,9 +1515,8 @@ public Builder setTypeValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.Event.Type getType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Event.Type result = - com.google.cloud.aiplatform.v1.Event.Type.valueOf(type_); + com.google.cloud.aiplatform.v1.Event.Type.forNumber(type_); return result == null ? com.google.cloud.aiplatform.v1.Event.Type.UNRECOGNIZED : result; } /** @@ -1518,7 +1537,7 @@ public Builder setType(com.google.cloud.aiplatform.v1.Event.Type value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; type_ = value.getNumber(); onChanged(); return this; @@ -1537,7 +1556,7 @@ public Builder setType(com.google.cloud.aiplatform.v1.Event.Type value) { * @return This builder for chaining. */ public Builder clearType() { - + bitField0_ = (bitField0_ & ~0x00000008); type_ = 0; onChanged(); return this; @@ -1554,14 +1573,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000010; + onChanged(); return labels_; } @@ -1637,8 +1656,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1675,6 +1696,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -1705,6 +1727,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000010; return internalGetMutableLabels().getMutableMap(); } /** @@ -1731,8 +1754,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; return this; } /** @@ -1754,6 +1777,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EventOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EventOrBuilder.java index 5cecaf13ff34..470b8de90a41 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EventOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EventOrBuilder.java @@ -222,7 +222,6 @@ public interface EventOrBuilder * * map<string, string> labels = 5; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesOverride.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesOverride.java index 89217ca0f278..f77cea31ebec 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesOverride.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesOverride.java @@ -226,7 +226,7 @@ private DataFormat(int value) { } public static final int NEIGHBOR_COUNT_FIELD_NUMBER = 1; - private int neighborCount_; + private int neighborCount_ = 0; /** * * @@ -244,7 +244,7 @@ public int getNeighborCount() { } public static final int CROWDING_COUNT_FIELD_NUMBER = 2; - private int crowdingCount_; + private int crowdingCount_ = 0; /** * * @@ -262,6 +262,8 @@ public int getCrowdingCount() { } public static final int RESTRICTIONS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List restrictions_; /** @@ -340,7 +342,7 @@ public com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace getRestricti } public static final int RETURN_EMBEDDINGS_FIELD_NUMBER = 4; - private boolean returnEmbeddings_; + private boolean returnEmbeddings_ = false; /** * * @@ -358,7 +360,7 @@ public boolean getReturnEmbeddings() { } public static final int DATA_FORMAT_FIELD_NUMBER = 5; - private int dataFormat_; + private int dataFormat_ = 0; /** * * @@ -387,9 +389,8 @@ public int getDataFormatValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat getDataFormat() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat result = - com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat.valueOf(dataFormat_); + com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat.forNumber(dataFormat_); return result == null ? com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat.UNRECOGNIZED : result; @@ -634,21 +635,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; neighborCount_ = 0; - crowdingCount_ = 0; - if (restrictionsBuilder_ == null) { restrictions_ = java.util.Collections.emptyList(); } else { restrictions_ = null; restrictionsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); returnEmbeddings_ = false; - dataFormat_ = 0; - return this; } @@ -676,22 +674,41 @@ public com.google.cloud.aiplatform.v1.ExamplesOverride build() { public com.google.cloud.aiplatform.v1.ExamplesOverride buildPartial() { com.google.cloud.aiplatform.v1.ExamplesOverride result = new com.google.cloud.aiplatform.v1.ExamplesOverride(this); - int from_bitField0_ = bitField0_; - result.neighborCount_ = neighborCount_; - result.crowdingCount_ = crowdingCount_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ExamplesOverride result) { if (restrictionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { restrictions_ = java.util.Collections.unmodifiableList(restrictions_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.restrictions_ = restrictions_; } else { result.restrictions_ = restrictionsBuilder_.build(); } - result.returnEmbeddings_ = returnEmbeddings_; - result.dataFormat_ = dataFormat_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ExamplesOverride result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.neighborCount_ = neighborCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.crowdingCount_ = crowdingCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.returnEmbeddings_ = returnEmbeddings_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dataFormat_ = dataFormat_; + } } @java.lang.Override @@ -750,7 +767,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExamplesOverride other) if (!other.restrictions_.isEmpty()) { if (restrictions_.isEmpty()) { restrictions_ = other.restrictions_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRestrictionsIsMutable(); restrictions_.addAll(other.restrictions_); @@ -763,7 +780,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExamplesOverride other) restrictionsBuilder_.dispose(); restrictionsBuilder_ = null; restrictions_ = other.restrictions_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); restrictionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRestrictionsFieldBuilder() @@ -808,13 +825,13 @@ public Builder mergeFrom( case 8: { neighborCount_ = input.readInt32(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { crowdingCount_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: @@ -834,13 +851,13 @@ public Builder mergeFrom( case 32: { returnEmbeddings_ = input.readBool(); - + bitField0_ |= 0x00000008; break; } // case 32 case 40: { dataFormat_ = input.readEnum(); - + bitField0_ |= 0x00000010; break; } // case 40 default: @@ -893,6 +910,7 @@ public int getNeighborCount() { public Builder setNeighborCount(int value) { neighborCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -908,7 +926,7 @@ public Builder setNeighborCount(int value) { * @return This builder for chaining. */ public Builder clearNeighborCount() { - + bitField0_ = (bitField0_ & ~0x00000001); neighborCount_ = 0; onChanged(); return this; @@ -945,6 +963,7 @@ public int getCrowdingCount() { public Builder setCrowdingCount(int value) { crowdingCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -960,7 +979,7 @@ public Builder setCrowdingCount(int value) { * @return This builder for chaining. */ public Builder clearCrowdingCount() { - + bitField0_ = (bitField0_ & ~0x00000002); crowdingCount_ = 0; onChanged(); return this; @@ -970,11 +989,11 @@ public Builder clearCrowdingCount() { restrictions_ = java.util.Collections.emptyList(); private void ensureRestrictionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { restrictions_ = new java.util.ArrayList( restrictions_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -1208,7 +1227,7 @@ public Builder addAllRestrictions( public Builder clearRestrictions() { if (restrictionsBuilder_ == null) { restrictions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { restrictionsBuilder_.clear(); @@ -1345,7 +1364,7 @@ public Builder removeRestrictions(int index) { com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace, com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.Builder, com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespaceOrBuilder>( - restrictions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + restrictions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); restrictions_ = null; } return restrictionsBuilder_; @@ -1382,6 +1401,7 @@ public boolean getReturnEmbeddings() { public Builder setReturnEmbeddings(boolean value) { returnEmbeddings_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1397,7 +1417,7 @@ public Builder setReturnEmbeddings(boolean value) { * @return This builder for chaining. */ public Builder clearReturnEmbeddings() { - + bitField0_ = (bitField0_ & ~0x00000008); returnEmbeddings_ = false; onChanged(); return this; @@ -1432,8 +1452,8 @@ public int getDataFormatValue() { * @return This builder for chaining. */ public Builder setDataFormatValue(int value) { - dataFormat_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1450,9 +1470,8 @@ public Builder setDataFormatValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat getDataFormat() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat result = - com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat.valueOf(dataFormat_); + com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat.forNumber(dataFormat_); return result == null ? com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat.UNRECOGNIZED : result; @@ -1473,7 +1492,7 @@ public Builder setDataFormat(com.google.cloud.aiplatform.v1.ExamplesOverride.Dat if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000010; dataFormat_ = value.getNumber(); onChanged(); return this; @@ -1490,7 +1509,7 @@ public Builder setDataFormat(com.google.cloud.aiplatform.v1.ExamplesOverride.Dat * @return This builder for chaining. */ public Builder clearDataFormat() { - + bitField0_ = (bitField0_ & ~0x00000010); dataFormat_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesRestrictionsNamespace.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesRestrictionsNamespace.java index bab369816cca..0806625db8c8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesRestrictionsNamespace.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesRestrictionsNamespace.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAMESPACE_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object namespaceName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object namespaceName_ = ""; /** * * @@ -119,6 +121,8 @@ public com.google.protobuf.ByteString getNamespaceNameBytes() { } public static final int ALLOW_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList allow_; /** * @@ -180,6 +184,8 @@ public com.google.protobuf.ByteString getAllowBytes(int index) { } public static final int DENY_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList deny_; /** * @@ -470,12 +476,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; namespaceName_ = ""; - allow_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - deny_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); + deny_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -504,20 +510,34 @@ public com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace build() { public com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace buildPartial() { com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace result = new com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace(this); - int from_bitField0_ = bitField0_; - result.namespaceName_ = namespaceName_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace result) { + if (((bitField0_ & 0x00000002) != 0)) { allow_ = allow_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.allow_ = allow_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { deny_ = deny_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.deny_ = deny_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.namespaceName_ = namespaceName_; + } } @java.lang.Override @@ -569,12 +589,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExamplesRestrictionsName return this; if (!other.getNamespaceName().isEmpty()) { namespaceName_ = other.namespaceName_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.allow_.isEmpty()) { if (allow_.isEmpty()) { allow_ = other.allow_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAllowIsMutable(); allow_.addAll(other.allow_); @@ -584,7 +605,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExamplesRestrictionsName if (!other.deny_.isEmpty()) { if (deny_.isEmpty()) { deny_ = other.deny_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDenyIsMutable(); deny_.addAll(other.deny_); @@ -620,7 +641,7 @@ public Builder mergeFrom( case 10: { namespaceName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -717,8 +738,8 @@ public Builder setNamespaceName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - namespaceName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -734,8 +755,8 @@ public Builder setNamespaceName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNamespaceName() { - namespaceName_ = getDefaultInstance().getNamespaceName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -756,8 +777,8 @@ public Builder setNamespaceNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - namespaceName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -766,9 +787,9 @@ public Builder setNamespaceNameBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { allow_ = new com.google.protobuf.LazyStringArrayList(allow_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -903,7 +924,7 @@ public Builder addAllAllow(java.lang.Iterable values) { */ public Builder clearAllow() { allow_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -934,9 +955,9 @@ public Builder addAllowBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDenyIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { deny_ = new com.google.protobuf.LazyStringArrayList(deny_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } /** @@ -1071,7 +1092,7 @@ public Builder addAllDeny(java.lang.Iterable values) { */ public Builder clearDeny() { deny_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Execution.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Execution.java index de0604a1d33f..589c5346a632 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Execution.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Execution.java @@ -330,7 +330,9 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -379,7 +381,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -430,7 +434,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int STATE_FIELD_NUMBER = 6; - private int state_; + private int state_ = 0; /** * * @@ -465,14 +469,15 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.Execution.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Execution.State result = - com.google.cloud.aiplatform.v1.Execution.State.valueOf(state_); + com.google.cloud.aiplatform.v1.Execution.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.Execution.State.UNRECOGNIZED : result; } public static final int ETAG_FIELD_NUMBER = 9; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -535,6 +540,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -607,7 +613,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 10; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -686,7 +695,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 12; @@ -735,11 +744,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int SCHEMA_TITLE_FIELD_NUMBER = 13; - private volatile java.lang.Object schemaTitle_; + + @SuppressWarnings("serial") + private volatile java.lang.Object schemaTitle_ = ""; /** * * @@ -794,7 +805,9 @@ public com.google.protobuf.ByteString getSchemaTitleBytes() { } public static final int SCHEMA_VERSION_FIELD_NUMBER = 14; - private volatile java.lang.Object schemaVersion_; + + @SuppressWarnings("serial") + private volatile java.lang.Object schemaVersion_ = ""; /** * * @@ -897,11 +910,13 @@ public com.google.protobuf.Struct getMetadata() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } public static final int DESCRIPTION_FIELD_NUMBER = 16; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -1278,39 +1293,30 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - state_ = 0; - etag_ = ""; - internalGetMutableLabels().clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } schemaTitle_ = ""; - schemaVersion_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } description_ = ""; - return this; } @@ -1338,33 +1344,49 @@ public com.google.cloud.aiplatform.v1.Execution build() { public com.google.cloud.aiplatform.v1.Execution buildPartial() { com.google.cloud.aiplatform.v1.Execution result = new com.google.cloud.aiplatform.v1.Execution(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Execution result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.state_ = state_; - result.etag_ = etag_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - result.schemaTitle_ = schemaTitle_; - result.schemaVersion_ = schemaVersion_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.schemaTitle_ = schemaTitle_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.schemaVersion_ = schemaVersion_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.description_ = description_; } - result.description_ = description_; - onBuilt(); - return result; } @java.lang.Override @@ -1414,10 +1436,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Execution other) { if (other == com.google.cloud.aiplatform.v1.Execution.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.state_ != 0) { @@ -1425,9 +1449,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Execution other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000008; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1436,10 +1462,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Execution other) { } if (!other.getSchemaTitle().isEmpty()) { schemaTitle_ = other.schemaTitle_; + bitField0_ |= 0x00000080; onChanged(); } if (!other.getSchemaVersion().isEmpty()) { schemaVersion_ = other.schemaVersion_; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasMetadata()) { @@ -1447,6 +1475,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Execution other) { } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000400; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1478,25 +1507,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 48: { state_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 48 case 74: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 74 case 82: @@ -1508,42 +1537,43 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; break; } // case 82 case 90: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 90 case 98: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 98 case 106: { schemaTitle_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 106 case 114: { schemaVersion_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 114 case 122: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 122 case 130: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000400; break; } // case 130 default: @@ -1626,8 +1656,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1643,8 +1673,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1665,8 +1695,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1735,8 +1765,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1753,8 +1783,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1776,8 +1806,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1817,8 +1847,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1838,9 +1868,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.Execution.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Execution.State result = - com.google.cloud.aiplatform.v1.Execution.State.valueOf(state_); + com.google.cloud.aiplatform.v1.Execution.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.Execution.State.UNRECOGNIZED : result; } /** @@ -1862,7 +1891,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.Execution.State value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; state_ = value.getNumber(); onChanged(); return this; @@ -1882,7 +1911,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.Execution.State value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000004); state_ = 0; onChanged(); return this; @@ -1952,8 +1981,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1970,8 +1999,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1993,8 +2022,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2010,14 +2039,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000010; + onChanged(); return labels_; } @@ -2084,8 +2113,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 10; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2119,6 +2150,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -2146,6 +2178,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000010; return internalGetMutableLabels().getMutableMap(); } /** @@ -2169,8 +2202,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; return this; } /** @@ -2189,6 +2222,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; return this; } @@ -2212,7 +2246,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2253,11 +2287,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2274,11 +2308,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2294,17 +2328,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2319,14 +2354,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2341,7 +2375,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2413,7 +2447,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2454,11 +2488,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2475,11 +2509,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2495,17 +2529,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2520,14 +2555,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2542,7 +2576,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2664,8 +2698,8 @@ public Builder setSchemaTitle(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - schemaTitle_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2684,8 +2718,8 @@ public Builder setSchemaTitle(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSchemaTitle() { - schemaTitle_ = getDefaultInstance().getSchemaTitle(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -2709,8 +2743,8 @@ public Builder setSchemaTitleBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - schemaTitle_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2785,8 +2819,8 @@ public Builder setSchemaVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - schemaVersion_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2805,8 +2839,8 @@ public Builder setSchemaVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSchemaVersion() { - schemaVersion_ = getDefaultInstance().getSchemaVersion(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2830,8 +2864,8 @@ public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - schemaVersion_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2856,7 +2890,7 @@ public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -2895,11 +2929,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) { throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -2916,11 +2950,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) { public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -2936,17 +2970,18 @@ public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Struct value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -2961,14 +2996,13 @@ public Builder mergeMetadata(com.google.protobuf.Struct value) { * .google.protobuf.Struct metadata = 15; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -2983,7 +3017,7 @@ public Builder clearMetadata() { * .google.protobuf.Struct metadata = 15; */ public com.google.protobuf.Struct.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -3094,8 +3128,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3111,8 +3145,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -3133,8 +3167,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionOrBuilder.java index e1a7ba167d2d..2c9c62ba47eb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionOrBuilder.java @@ -195,7 +195,6 @@ public interface ExecutionOrBuilder * * map<string, string> labels = 10; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplainRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplainRequest.java index ef088676cdfc..9e015c54b680 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplainRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplainRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object endpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; /** * * @@ -128,6 +130,8 @@ public com.google.protobuf.ByteString getEndpointBytes() { } public static final int INSTANCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List instances_; /** * @@ -295,7 +299,7 @@ public com.google.protobuf.Value getParameters() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getParametersOrBuilder() { - return getParameters(); + return parameters_ == null ? com.google.protobuf.Value.getDefaultInstance() : parameters_; } public static final int EXPLANATION_SPEC_OVERRIDE_FIELD_NUMBER = 5; @@ -365,11 +369,15 @@ public com.google.cloud.aiplatform.v1.ExplanationSpecOverride getExplanationSpec @java.lang.Override public com.google.cloud.aiplatform.v1.ExplanationSpecOverrideOrBuilder getExplanationSpecOverrideOrBuilder() { - return getExplanationSpecOverride(); + return explanationSpecOverride_ == null + ? com.google.cloud.aiplatform.v1.ExplanationSpecOverride.getDefaultInstance() + : explanationSpecOverride_; } public static final int DEPLOYED_MODEL_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object deployedModelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedModelId_ = ""; /** * * @@ -668,29 +676,26 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; endpoint_ = ""; - if (instancesBuilder_ == null) { instances_ = java.util.Collections.emptyList(); } else { instances_ = null; instancesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (parametersBuilder_ == null) { - parameters_ = null; - } else { - parameters_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } - if (explanationSpecOverrideBuilder_ == null) { - explanationSpecOverride_ = null; - } else { - explanationSpecOverride_ = null; + explanationSpecOverride_ = null; + if (explanationSpecOverrideBuilder_ != null) { + explanationSpecOverrideBuilder_.dispose(); explanationSpecOverrideBuilder_ = null; } deployedModelId_ = ""; - return this; } @@ -718,30 +723,43 @@ public com.google.cloud.aiplatform.v1.ExplainRequest build() { public com.google.cloud.aiplatform.v1.ExplainRequest buildPartial() { com.google.cloud.aiplatform.v1.ExplainRequest result = new com.google.cloud.aiplatform.v1.ExplainRequest(this); - int from_bitField0_ = bitField0_; - result.endpoint_ = endpoint_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.ExplainRequest result) { if (instancesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { instances_ = java.util.Collections.unmodifiableList(instances_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.instances_ = instances_; } else { result.instances_ = instancesBuilder_.build(); } - if (parametersBuilder_ == null) { - result.parameters_ = parameters_; - } else { - result.parameters_ = parametersBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ExplainRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpoint_; } - if (explanationSpecOverrideBuilder_ == null) { - result.explanationSpecOverride_ = explanationSpecOverride_; - } else { - result.explanationSpecOverride_ = explanationSpecOverrideBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.explanationSpecOverride_ = + explanationSpecOverrideBuilder_ == null + ? explanationSpecOverride_ + : explanationSpecOverrideBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.deployedModelId_ = deployedModelId_; } - result.deployedModelId_ = deployedModelId_; - onBuilt(); - return result; } @java.lang.Override @@ -791,13 +809,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExplainRequest other) { if (other == com.google.cloud.aiplatform.v1.ExplainRequest.getDefaultInstance()) return this; if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { instances_ = other.instances_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureInstancesIsMutable(); instances_.addAll(other.instances_); @@ -810,7 +829,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExplainRequest other) { instancesBuilder_.dispose(); instancesBuilder_ = null; instances_ = other.instances_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); instancesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInstancesFieldBuilder() @@ -828,6 +847,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExplainRequest other) { } if (!other.getDeployedModelId().isEmpty()) { deployedModelId_ = other.deployedModelId_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -859,7 +879,7 @@ public Builder mergeFrom( case 10: { endpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -877,20 +897,20 @@ public Builder mergeFrom( case 26: { deployedModelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 26 case 34: { input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 34 case 42: { input.readMessage( getExplanationSpecOverrideFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 42 default: @@ -985,8 +1005,8 @@ public Builder setEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1006,8 +1026,8 @@ public Builder setEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEndpoint() { - endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1032,8 +1052,8 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1042,9 +1062,9 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureInstancesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { instances_ = new java.util.ArrayList(instances_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1366,7 +1386,7 @@ public Builder addAllInstances(java.lang.Iterable getInstancesBuilderList com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( - instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + instances_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); instances_ = null; } return instancesBuilder_; @@ -1584,7 +1604,7 @@ public java.util.List getInstancesBuilderList * @return Whether the parameters field is set. */ public boolean hasParameters() { - return parametersBuilder_ != null || parameters_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1627,11 +1647,11 @@ public Builder setParameters(com.google.protobuf.Value value) { throw new NullPointerException(); } parameters_ = value; - onChanged(); } else { parametersBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1650,11 +1670,11 @@ public Builder setParameters(com.google.protobuf.Value value) { public Builder setParameters(com.google.protobuf.Value.Builder builderForValue) { if (parametersBuilder_ == null) { parameters_ = builderForValue.build(); - onChanged(); } else { parametersBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1672,17 +1692,18 @@ public Builder setParameters(com.google.protobuf.Value.Builder builderForValue) */ public Builder mergeParameters(com.google.protobuf.Value value) { if (parametersBuilder_ == null) { - if (parameters_ != null) { - parameters_ = - com.google.protobuf.Value.newBuilder(parameters_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && parameters_ != null + && parameters_ != com.google.protobuf.Value.getDefaultInstance()) { + getParametersBuilder().mergeFrom(value); } else { parameters_ = value; } - onChanged(); } else { parametersBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1699,14 +1720,13 @@ public Builder mergeParameters(com.google.protobuf.Value value) { * .google.protobuf.Value parameters = 4; */ public Builder clearParameters() { - if (parametersBuilder_ == null) { - parameters_ = null; - onChanged(); - } else { - parameters_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } - + onChanged(); return this; } /** @@ -1723,7 +1743,7 @@ public Builder clearParameters() { * .google.protobuf.Value parameters = 4; */ public com.google.protobuf.Value.Builder getParametersBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getParametersFieldBuilder().getBuilder(); } @@ -1803,7 +1823,7 @@ public com.google.protobuf.ValueOrBuilder getParametersOrBuilder() { * @return Whether the explanationSpecOverride field is set. */ public boolean hasExplanationSpecOverride() { - return explanationSpecOverrideBuilder_ != null || explanationSpecOverride_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1857,11 +1877,11 @@ public Builder setExplanationSpecOverride( throw new NullPointerException(); } explanationSpecOverride_ = value; - onChanged(); } else { explanationSpecOverrideBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1885,11 +1905,11 @@ public Builder setExplanationSpecOverride( com.google.cloud.aiplatform.v1.ExplanationSpecOverride.Builder builderForValue) { if (explanationSpecOverrideBuilder_ == null) { explanationSpecOverride_ = builderForValue.build(); - onChanged(); } else { explanationSpecOverrideBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1912,20 +1932,19 @@ public Builder setExplanationSpecOverride( public Builder mergeExplanationSpecOverride( com.google.cloud.aiplatform.v1.ExplanationSpecOverride value) { if (explanationSpecOverrideBuilder_ == null) { - if (explanationSpecOverride_ != null) { - explanationSpecOverride_ = - com.google.cloud.aiplatform.v1.ExplanationSpecOverride.newBuilder( - explanationSpecOverride_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && explanationSpecOverride_ != null + && explanationSpecOverride_ + != com.google.cloud.aiplatform.v1.ExplanationSpecOverride.getDefaultInstance()) { + getExplanationSpecOverrideBuilder().mergeFrom(value); } else { explanationSpecOverride_ = value; } - onChanged(); } else { explanationSpecOverrideBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1946,14 +1965,13 @@ public Builder mergeExplanationSpecOverride( * */ public Builder clearExplanationSpecOverride() { - if (explanationSpecOverrideBuilder_ == null) { - explanationSpecOverride_ = null; - onChanged(); - } else { - explanationSpecOverride_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + explanationSpecOverride_ = null; + if (explanationSpecOverrideBuilder_ != null) { + explanationSpecOverrideBuilder_.dispose(); explanationSpecOverrideBuilder_ = null; } - + onChanged(); return this; } /** @@ -1975,7 +1993,7 @@ public Builder clearExplanationSpecOverride() { */ public com.google.cloud.aiplatform.v1.ExplanationSpecOverride.Builder getExplanationSpecOverrideBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getExplanationSpecOverrideFieldBuilder().getBuilder(); } @@ -2107,8 +2125,8 @@ public Builder setDeployedModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedModelId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2126,8 +2144,8 @@ public Builder setDeployedModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedModelId() { - deployedModelId_ = getDefaultInstance().getDeployedModelId(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2150,8 +2168,8 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedModelId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplainResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplainResponse.java index ad7e8be4dd9e..b912bdf18fb8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplainResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplainResponse.java @@ -71,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int EXPLANATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List explanations_; /** * @@ -160,7 +162,9 @@ public com.google.cloud.aiplatform.v1.ExplanationOrBuilder getExplanationsOrBuil } public static final int DEPLOYED_MODEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deployedModelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedModelId_ = ""; /** * * @@ -209,6 +213,8 @@ public com.google.protobuf.ByteString getDeployedModelIdBytes() { } public static final int PREDICTIONS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List predictions_; /** * @@ -507,6 +513,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (explanationsBuilder_ == null) { explanations_ = java.util.Collections.emptyList(); } else { @@ -515,14 +522,13 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); deployedModelId_ = ""; - if (predictionsBuilder_ == null) { predictions_ = java.util.Collections.emptyList(); } else { predictions_ = null; predictionsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -550,7 +556,15 @@ public com.google.cloud.aiplatform.v1.ExplainResponse build() { public com.google.cloud.aiplatform.v1.ExplainResponse buildPartial() { com.google.cloud.aiplatform.v1.ExplainResponse result = new com.google.cloud.aiplatform.v1.ExplainResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.ExplainResponse result) { if (explanationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { explanations_ = java.util.Collections.unmodifiableList(explanations_); @@ -560,18 +574,22 @@ public com.google.cloud.aiplatform.v1.ExplainResponse buildPartial() { } else { result.explanations_ = explanationsBuilder_.build(); } - result.deployedModelId_ = deployedModelId_; if (predictionsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { predictions_ = java.util.Collections.unmodifiableList(predictions_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.predictions_ = predictions_; } else { result.predictions_ = predictionsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ExplainResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedModelId_ = deployedModelId_; + } } @java.lang.Override @@ -648,13 +666,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExplainResponse other) { } if (!other.getDeployedModelId().isEmpty()) { deployedModelId_ = other.deployedModelId_; + bitField0_ |= 0x00000002; onChanged(); } if (predictionsBuilder_ == null) { if (!other.predictions_.isEmpty()) { if (predictions_.isEmpty()) { predictions_ = other.predictions_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePredictionsIsMutable(); predictions_.addAll(other.predictions_); @@ -667,7 +686,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExplainResponse other) { predictionsBuilder_.dispose(); predictionsBuilder_ = null; predictions_ = other.predictions_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); predictionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPredictionsFieldBuilder() @@ -719,7 +738,7 @@ public Builder mergeFrom( case 18: { deployedModelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -1237,8 +1256,8 @@ public Builder setDeployedModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1254,8 +1273,8 @@ public Builder setDeployedModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedModelId() { - deployedModelId_ = getDefaultInstance().getDeployedModelId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1276,8 +1295,8 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1286,9 +1305,9 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensurePredictionsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { predictions_ = new java.util.ArrayList(predictions_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } @@ -1523,7 +1542,7 @@ public Builder addAllPredictions( public Builder clearPredictions() { if (predictionsBuilder_ == null) { predictions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { predictionsBuilder_.clear(); @@ -1658,7 +1677,7 @@ public java.util.List getPredictionsBuilderLi com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( - predictions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + predictions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); predictions_ = null; } return predictionsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Explanation.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Explanation.java index 520644b7bdb5..aeb8e271ab56 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Explanation.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Explanation.java @@ -72,6 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ATTRIBUTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List attributions_; /** * @@ -231,6 +233,8 @@ public com.google.cloud.aiplatform.v1.AttributionOrBuilder getAttributionsOrBuil } public static final int NEIGHBORS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List neighbors_; /** * @@ -532,6 +536,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (attributionsBuilder_ == null) { attributions_ = java.util.Collections.emptyList(); } else { @@ -573,7 +578,15 @@ public com.google.cloud.aiplatform.v1.Explanation build() { public com.google.cloud.aiplatform.v1.Explanation buildPartial() { com.google.cloud.aiplatform.v1.Explanation result = new com.google.cloud.aiplatform.v1.Explanation(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.Explanation result) { if (attributionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { attributions_ = java.util.Collections.unmodifiableList(attributions_); @@ -592,8 +605,10 @@ public com.google.cloud.aiplatform.v1.Explanation buildPartial() { } else { result.neighbors_ = neighborsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Explanation result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadata.java index b991594c0c25..3bb280e90a2f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadata.java @@ -1154,7 +1154,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MIN_VALUE_FIELD_NUMBER = 1; - private float minValue_; + private float minValue_ = 0F; /** * * @@ -1172,7 +1172,7 @@ public float getMinValue() { } public static final int MAX_VALUE_FIELD_NUMBER = 2; - private float maxValue_; + private float maxValue_ = 0F; /** * * @@ -1190,7 +1190,7 @@ public float getMaxValue() { } public static final int ORIGINAL_MEAN_FIELD_NUMBER = 3; - private float originalMean_; + private float originalMean_ = 0F; /** * * @@ -1210,7 +1210,7 @@ public float getOriginalMean() { } public static final int ORIGINAL_STDDEV_FIELD_NUMBER = 4; - private float originalStddev_; + private float originalStddev_ = 0F; /** * * @@ -1496,14 +1496,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; minValue_ = 0F; - maxValue_ = 0F; - originalMean_ = 0F; - originalStddev_ = 0F; - return this; } @@ -1538,14 +1535,31 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata .FeatureValueDomain(this); - result.minValue_ = minValue_; - result.maxValue_ = maxValue_; - result.originalMean_ = originalMean_; - result.originalStddev_ = originalStddev_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.FeatureValueDomain + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.minValue_ = minValue_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxValue_ = maxValue_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.originalMean_ = originalMean_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.originalStddev_ = originalStddev_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1643,25 +1657,25 @@ public Builder mergeFrom( case 13: { minValue_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 case 21: { maxValue_ = input.readFloat(); - + bitField0_ |= 0x00000002; break; } // case 21 case 29: { originalMean_ = input.readFloat(); - + bitField0_ |= 0x00000004; break; } // case 29 case 37: { originalStddev_ = input.readFloat(); - + bitField0_ |= 0x00000008; break; } // case 37 default: @@ -1681,6 +1695,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float minValue_; /** * @@ -1712,6 +1728,7 @@ public float getMinValue() { public Builder setMinValue(float value) { minValue_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1727,7 +1744,7 @@ public Builder setMinValue(float value) { * @return This builder for chaining. */ public Builder clearMinValue() { - + bitField0_ = (bitField0_ & ~0x00000001); minValue_ = 0F; onChanged(); return this; @@ -1764,6 +1781,7 @@ public float getMaxValue() { public Builder setMaxValue(float value) { maxValue_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1779,7 +1797,7 @@ public Builder setMaxValue(float value) { * @return This builder for chaining. */ public Builder clearMaxValue() { - + bitField0_ = (bitField0_ & ~0x00000002); maxValue_ = 0F; onChanged(); return this; @@ -1820,6 +1838,7 @@ public float getOriginalMean() { public Builder setOriginalMean(float value) { originalMean_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1837,7 +1856,7 @@ public Builder setOriginalMean(float value) { * @return This builder for chaining. */ public Builder clearOriginalMean() { - + bitField0_ = (bitField0_ & ~0x00000004); originalMean_ = 0F; onChanged(); return this; @@ -1878,6 +1897,7 @@ public float getOriginalStddev() { public Builder setOriginalStddev(float value) { originalStddev_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1895,7 +1915,7 @@ public Builder setOriginalStddev(float value) { * @return This builder for chaining. */ public Builder clearOriginalStddev() { - + bitField0_ = (bitField0_ & ~0x00000008); originalStddev_ = 0F; onChanged(); return this; @@ -3036,7 +3056,7 @@ private OverlayType(int value) { } public static final int TYPE_FIELD_NUMBER = 1; - private int type_; + private int type_ = 0; /** * * @@ -3078,10 +3098,9 @@ public int getTypeValue() { @java.lang.Override public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.Type getType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.Type result = com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.Type - .valueOf(type_); + .forNumber(type_); return result == null ? com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.Type .UNRECOGNIZED @@ -3089,7 +3108,7 @@ public int getTypeValue() { } public static final int POLARITY_FIELD_NUMBER = 2; - private int polarity_; + private int polarity_ = 0; /** * * @@ -3125,11 +3144,10 @@ public int getPolarityValue() { @java.lang.Override public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.Polarity getPolarity() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.Polarity result = com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization - .Polarity.valueOf(polarity_); + .Polarity.forNumber(polarity_); return result == null ? com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization .Polarity.UNRECOGNIZED @@ -3137,7 +3155,7 @@ public int getPolarityValue() { } public static final int COLOR_MAP_FIELD_NUMBER = 3; - private int colorMap_; + private int colorMap_ = 0; /** * * @@ -3189,11 +3207,10 @@ public int getColorMapValue() { @java.lang.Override public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.ColorMap getColorMap() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.ColorMap result = com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization - .ColorMap.valueOf(colorMap_); + .ColorMap.forNumber(colorMap_); return result == null ? com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization .ColorMap.UNRECOGNIZED @@ -3201,7 +3218,7 @@ public int getColorMapValue() { } public static final int CLIP_PERCENT_UPPERBOUND_FIELD_NUMBER = 4; - private float clipPercentUpperbound_; + private float clipPercentUpperbound_ = 0F; /** * * @@ -3223,7 +3240,7 @@ public float getClipPercentUpperbound() { } public static final int CLIP_PERCENT_LOWERBOUND_FIELD_NUMBER = 5; - private float clipPercentLowerbound_; + private float clipPercentLowerbound_ = 0F; /** * * @@ -3242,7 +3259,7 @@ public float getClipPercentLowerbound() { } public static final int OVERLAY_TYPE_FIELD_NUMBER = 6; - private int overlayType_; + private int overlayType_ = 0; /** * * @@ -3281,11 +3298,10 @@ public int getOverlayTypeValue() { public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization .OverlayType getOverlayType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.OverlayType result = com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization - .OverlayType.valueOf(overlayType_); + .OverlayType.forNumber(overlayType_); return result == null ? com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization .OverlayType.UNRECOGNIZED @@ -3578,18 +3594,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; type_ = 0; - polarity_ = 0; - colorMap_ = 0; - clipPercentUpperbound_ = 0F; - clipPercentLowerbound_ = 0F; - overlayType_ = 0; - return this; } @@ -3623,16 +3634,36 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization result = new com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization( this); - result.type_ = type_; - result.polarity_ = polarity_; - result.colorMap_ = colorMap_; - result.clipPercentUpperbound_ = clipPercentUpperbound_; - result.clipPercentLowerbound_ = clipPercentLowerbound_; - result.overlayType_ = overlayType_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.polarity_ = polarity_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.colorMap_ = colorMap_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.clipPercentUpperbound_ = clipPercentUpperbound_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.clipPercentLowerbound_ = clipPercentLowerbound_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.overlayType_ = overlayType_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3734,37 +3765,37 @@ public Builder mergeFrom( case 8: { type_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { polarity_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { colorMap_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 24 case 37: { clipPercentUpperbound_ = input.readFloat(); - + bitField0_ |= 0x00000008; break; } // case 37 case 45: { clipPercentLowerbound_ = input.readFloat(); - + bitField0_ |= 0x00000010; break; } // case 45 case 48: { overlayType_ = input.readEnum(); - + bitField0_ |= 0x00000020; break; } // case 48 default: @@ -3784,6 +3815,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int type_ = 0; /** * @@ -3825,8 +3858,8 @@ public int getTypeValue() { * @return This builder for chaining. */ public Builder setTypeValue(int value) { - type_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3850,11 +3883,10 @@ public Builder setTypeValue(int value) { @java.lang.Override public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.Type getType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.Type result = com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization - .Type.valueOf(type_); + .Type.forNumber(type_); return result == null ? com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.Type .UNRECOGNIZED @@ -3884,7 +3916,7 @@ public Builder setType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; @@ -3907,7 +3939,7 @@ public Builder setType( * @return This builder for chaining. */ public Builder clearType() { - + bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; @@ -3948,8 +3980,8 @@ public int getPolarityValue() { * @return This builder for chaining. */ public Builder setPolarityValue(int value) { - polarity_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3971,11 +4003,10 @@ public Builder setPolarityValue(int value) { public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization .Polarity getPolarity() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.Polarity result = com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization - .Polarity.valueOf(polarity_); + .Polarity.forNumber(polarity_); return result == null ? com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization .Polarity.UNRECOGNIZED @@ -4002,7 +4033,7 @@ public Builder setPolarity( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; polarity_ = value.getNumber(); onChanged(); return this; @@ -4022,7 +4053,7 @@ public Builder setPolarity( * @return This builder for chaining. */ public Builder clearPolarity() { - + bitField0_ = (bitField0_ & ~0x00000002); polarity_ = 0; onChanged(); return this; @@ -4079,8 +4110,8 @@ public int getColorMapValue() { * @return This builder for chaining. */ public Builder setColorMapValue(int value) { - colorMap_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4110,11 +4141,10 @@ public Builder setColorMapValue(int value) { public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization .ColorMap getColorMap() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.ColorMap result = com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization - .ColorMap.valueOf(colorMap_); + .ColorMap.forNumber(colorMap_); return result == null ? com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization .ColorMap.UNRECOGNIZED @@ -4149,7 +4179,7 @@ public Builder setColorMap( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; colorMap_ = value.getNumber(); onChanged(); return this; @@ -4177,7 +4207,7 @@ public Builder setColorMap( * @return This builder for chaining. */ public Builder clearColorMap() { - + bitField0_ = (bitField0_ & ~0x00000004); colorMap_ = 0; onChanged(); return this; @@ -4222,6 +4252,7 @@ public float getClipPercentUpperbound() { public Builder setClipPercentUpperbound(float value) { clipPercentUpperbound_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -4241,7 +4272,7 @@ public Builder setClipPercentUpperbound(float value) { * @return This builder for chaining. */ public Builder clearClipPercentUpperbound() { - + bitField0_ = (bitField0_ & ~0x00000008); clipPercentUpperbound_ = 0F; onChanged(); return this; @@ -4280,6 +4311,7 @@ public float getClipPercentLowerbound() { public Builder setClipPercentLowerbound(float value) { clipPercentLowerbound_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -4296,7 +4328,7 @@ public Builder setClipPercentLowerbound(float value) { * @return This builder for chaining. */ public Builder clearClipPercentLowerbound() { - + bitField0_ = (bitField0_ & ~0x00000010); clipPercentLowerbound_ = 0F; onChanged(); return this; @@ -4339,8 +4371,8 @@ public int getOverlayTypeValue() { * @return This builder for chaining. */ public Builder setOverlayTypeValue(int value) { - overlayType_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4363,11 +4395,10 @@ public Builder setOverlayTypeValue(int value) { public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization .OverlayType getOverlayType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.OverlayType result = com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization - .OverlayType.valueOf(overlayType_); + .OverlayType.forNumber(overlayType_); return result == null ? com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization .OverlayType.UNRECOGNIZED @@ -4396,7 +4427,7 @@ public Builder setOverlayType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000020; overlayType_ = value.getNumber(); onChanged(); return this; @@ -4417,7 +4448,7 @@ public Builder setOverlayType( * @return This builder for chaining. */ public Builder clearOverlayType() { - + bitField0_ = (bitField0_ & ~0x00000020); overlayType_ = 0; onChanged(); return this; @@ -4493,6 +4524,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int INPUT_BASELINES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List inputBaselines_; /** * @@ -4632,7 +4665,9 @@ public com.google.protobuf.ValueOrBuilder getInputBaselinesOrBuilder(int index) } public static final int INPUT_TENSOR_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object inputTensorName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object inputTensorName_ = ""; /** * * @@ -4683,7 +4718,7 @@ public com.google.protobuf.ByteString getInputTensorNameBytes() { } public static final int ENCODING_FIELD_NUMBER = 3; - private int encoding_; + private int encoding_ = 0; /** * * @@ -4716,9 +4751,8 @@ public int getEncodingValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Encoding getEncoding() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Encoding result = - com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Encoding.valueOf( + com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Encoding.forNumber( encoding_); return result == null ? com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Encoding.UNRECOGNIZED @@ -4726,7 +4760,9 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Encoding } public static final int MODALITY_FIELD_NUMBER = 4; - private volatile java.lang.Object modality_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modality_ = ""; /** * * @@ -4835,11 +4871,16 @@ public boolean hasFeatureValueDomain() { public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata .FeatureValueDomainOrBuilder getFeatureValueDomainOrBuilder() { - return getFeatureValueDomain(); + return featureValueDomain_ == null + ? com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.FeatureValueDomain + .getDefaultInstance() + : featureValueDomain_; } public static final int INDICES_TENSOR_NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object indicesTensorName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object indicesTensorName_ = ""; /** * * @@ -4894,7 +4935,9 @@ public com.google.protobuf.ByteString getIndicesTensorNameBytes() { } public static final int DENSE_SHAPE_TENSOR_NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object denseShapeTensorName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object denseShapeTensorName_ = ""; /** * * @@ -4947,6 +4990,8 @@ public com.google.protobuf.ByteString getDenseShapeTensorNameBytes() { } public static final int INDEX_FEATURE_MAPPING_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList indexFeatureMapping_; /** * @@ -5020,7 +5065,9 @@ public com.google.protobuf.ByteString getIndexFeatureMappingBytes(int index) { } public static final int ENCODED_TENSOR_NAME_FIELD_NUMBER = 9; - private volatile java.lang.Object encodedTensorName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object encodedTensorName_ = ""; /** * * @@ -5085,6 +5132,8 @@ public com.google.protobuf.ByteString getEncodedTensorNameBytes() { } public static final int ENCODED_BASELINES_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") private java.util.List encodedBaselines_; /** * @@ -5223,11 +5272,16 @@ public boolean hasVisualization() { @java.lang.Override public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.VisualizationOrBuilder getVisualizationOrBuilder() { - return getVisualization(); + return visualization_ == null + ? com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization + .getDefaultInstance() + : visualization_; } public static final int GROUP_NAME_FIELD_NUMBER = 12; - private volatile java.lang.Object groupName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object groupName_ = ""; /** * * @@ -5620,6 +5674,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (inputBaselinesBuilder_ == null) { inputBaselines_ = java.util.Collections.emptyList(); } else { @@ -5628,40 +5683,31 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); inputTensorName_ = ""; - encoding_ = 0; - modality_ = ""; - - if (featureValueDomainBuilder_ == null) { - featureValueDomain_ = null; - } else { - featureValueDomain_ = null; + featureValueDomain_ = null; + if (featureValueDomainBuilder_ != null) { + featureValueDomainBuilder_.dispose(); featureValueDomainBuilder_ = null; } indicesTensorName_ = ""; - denseShapeTensorName_ = ""; - indexFeatureMapping_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000080); encodedTensorName_ = ""; - if (encodedBaselinesBuilder_ == null) { encodedBaselines_ = java.util.Collections.emptyList(); } else { encodedBaselines_ = null; encodedBaselinesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); - if (visualizationBuilder_ == null) { - visualization_ = null; - } else { - visualization_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + visualization_ = null; + if (visualizationBuilder_ != null) { + visualizationBuilder_.dispose(); visualizationBuilder_ = null; } groupName_ = ""; - return this; } @@ -5691,7 +5737,16 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata build() public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata buildPartial() { com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata result = new com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata result) { if (inputBaselinesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { inputBaselines_ = java.util.Collections.unmodifiableList(inputBaselines_); @@ -5701,39 +5756,56 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata buildPar } else { result.inputBaselines_ = inputBaselinesBuilder_.build(); } - result.inputTensorName_ = inputTensorName_; - result.encoding_ = encoding_; - result.modality_ = modality_; - if (featureValueDomainBuilder_ == null) { - result.featureValueDomain_ = featureValueDomain_; - } else { - result.featureValueDomain_ = featureValueDomainBuilder_.build(); - } - result.indicesTensorName_ = indicesTensorName_; - result.denseShapeTensorName_ = denseShapeTensorName_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { indexFeatureMapping_ = indexFeatureMapping_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000080); } result.indexFeatureMapping_ = indexFeatureMapping_; - result.encodedTensorName_ = encodedTensorName_; if (encodedBaselinesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { encodedBaselines_ = java.util.Collections.unmodifiableList(encodedBaselines_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); } result.encodedBaselines_ = encodedBaselines_; } else { result.encodedBaselines_ = encodedBaselinesBuilder_.build(); } - if (visualizationBuilder_ == null) { - result.visualization_ = visualization_; - } else { - result.visualization_ = visualizationBuilder_.build(); + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inputTensorName_ = inputTensorName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.encoding_ = encoding_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.modality_ = modality_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.featureValueDomain_ = + featureValueDomainBuilder_ == null + ? featureValueDomain_ + : featureValueDomainBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.indicesTensorName_ = indicesTensorName_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.denseShapeTensorName_ = denseShapeTensorName_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.encodedTensorName_ = encodedTensorName_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.visualization_ = + visualizationBuilder_ == null ? visualization_ : visualizationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.groupName_ = groupName_; } - result.groupName_ = groupName_; - onBuilt(); - return result; } @java.lang.Override @@ -5816,6 +5888,7 @@ public Builder mergeFrom( } if (!other.getInputTensorName().isEmpty()) { inputTensorName_ = other.inputTensorName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.encoding_ != 0) { @@ -5823,6 +5896,7 @@ public Builder mergeFrom( } if (!other.getModality().isEmpty()) { modality_ = other.modality_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasFeatureValueDomain()) { @@ -5830,16 +5904,18 @@ public Builder mergeFrom( } if (!other.getIndicesTensorName().isEmpty()) { indicesTensorName_ = other.indicesTensorName_; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getDenseShapeTensorName().isEmpty()) { denseShapeTensorName_ = other.denseShapeTensorName_; + bitField0_ |= 0x00000040; onChanged(); } if (!other.indexFeatureMapping_.isEmpty()) { if (indexFeatureMapping_.isEmpty()) { indexFeatureMapping_ = other.indexFeatureMapping_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureIndexFeatureMappingIsMutable(); indexFeatureMapping_.addAll(other.indexFeatureMapping_); @@ -5848,13 +5924,14 @@ public Builder mergeFrom( } if (!other.getEncodedTensorName().isEmpty()) { encodedTensorName_ = other.encodedTensorName_; + bitField0_ |= 0x00000100; onChanged(); } if (encodedBaselinesBuilder_ == null) { if (!other.encodedBaselines_.isEmpty()) { if (encodedBaselines_.isEmpty()) { encodedBaselines_ = other.encodedBaselines_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureEncodedBaselinesIsMutable(); encodedBaselines_.addAll(other.encodedBaselines_); @@ -5867,7 +5944,7 @@ public Builder mergeFrom( encodedBaselinesBuilder_.dispose(); encodedBaselinesBuilder_ = null; encodedBaselines_ = other.encodedBaselines_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); encodedBaselinesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEncodedBaselinesFieldBuilder() @@ -5882,6 +5959,7 @@ public Builder mergeFrom( } if (!other.getGroupName().isEmpty()) { groupName_ = other.groupName_; + bitField0_ |= 0x00000800; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -5925,38 +6003,38 @@ public Builder mergeFrom( case 18: { inputTensorName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { encoding_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { modality_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getFeatureValueDomainFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { indicesTensorName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 case 58: { denseShapeTensorName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 58 case 66: @@ -5969,7 +6047,7 @@ public Builder mergeFrom( case 74: { encodedTensorName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 74 case 82: @@ -5987,13 +6065,13 @@ public Builder mergeFrom( case 90: { input.readMessage(getVisualizationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 90 case 98: { groupName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000800; break; } // case 98 default: @@ -6682,8 +6760,8 @@ public Builder setInputTensorName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - inputTensorName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -6700,8 +6778,8 @@ public Builder setInputTensorName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInputTensorName() { - inputTensorName_ = getDefaultInstance().getInputTensorName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -6723,8 +6801,8 @@ public Builder setInputTensorNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - inputTensorName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -6762,8 +6840,8 @@ public int getEncodingValue() { * @return This builder for chaining. */ public Builder setEncodingValue(int value) { - encoding_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -6783,9 +6861,8 @@ public Builder setEncodingValue(int value) { @java.lang.Override public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Encoding getEncoding() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Encoding result = - com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Encoding.valueOf( + com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Encoding.forNumber( encoding_); return result == null ? com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Encoding.UNRECOGNIZED @@ -6810,7 +6887,7 @@ public Builder setEncoding( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; encoding_ = value.getNumber(); onChanged(); return this; @@ -6829,7 +6906,7 @@ public Builder setEncoding( * @return This builder for chaining. */ public Builder clearEncoding() { - + bitField0_ = (bitField0_ & ~0x00000004); encoding_ = 0; onChanged(); return this; @@ -6899,8 +6976,8 @@ public Builder setModality(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modality_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -6917,8 +6994,8 @@ public Builder setModality(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModality() { - modality_ = getDefaultInstance().getModality(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -6940,8 +7017,8 @@ public Builder setModalityBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modality_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -6970,7 +7047,7 @@ public Builder setModalityBytes(com.google.protobuf.ByteString value) { * @return Whether the featureValueDomain field is set. */ public boolean hasFeatureValueDomain() { - return featureValueDomainBuilder_ != null || featureValueDomain_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -7017,11 +7094,11 @@ public Builder setFeatureValueDomain( throw new NullPointerException(); } featureValueDomain_ = value; - onChanged(); } else { featureValueDomainBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -7042,11 +7119,11 @@ public Builder setFeatureValueDomain( builderForValue) { if (featureValueDomainBuilder_ == null) { featureValueDomain_ = builderForValue.build(); - onChanged(); } else { featureValueDomainBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -7065,20 +7142,20 @@ public Builder mergeFeatureValueDomain( com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.FeatureValueDomain value) { if (featureValueDomainBuilder_ == null) { - if (featureValueDomain_ != null) { - featureValueDomain_ = - com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.FeatureValueDomain - .newBuilder(featureValueDomain_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && featureValueDomain_ != null + && featureValueDomain_ + != com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata + .FeatureValueDomain.getDefaultInstance()) { + getFeatureValueDomainBuilder().mergeFrom(value); } else { featureValueDomain_ = value; } - onChanged(); } else { featureValueDomainBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -7094,14 +7171,13 @@ public Builder mergeFeatureValueDomain( * */ public Builder clearFeatureValueDomain() { - if (featureValueDomainBuilder_ == null) { - featureValueDomain_ = null; - onChanged(); - } else { - featureValueDomain_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + featureValueDomain_ = null; + if (featureValueDomainBuilder_ != null) { + featureValueDomainBuilder_.dispose(); featureValueDomainBuilder_ = null; } - + onChanged(); return this; } /** @@ -7119,7 +7195,7 @@ public Builder clearFeatureValueDomain() { public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.FeatureValueDomain .Builder getFeatureValueDomainBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getFeatureValueDomainFieldBuilder().getBuilder(); } @@ -7251,8 +7327,8 @@ public Builder setIndicesTensorName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - indicesTensorName_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -7271,8 +7347,8 @@ public Builder setIndicesTensorName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearIndicesTensorName() { - indicesTensorName_ = getDefaultInstance().getIndicesTensorName(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -7296,8 +7372,8 @@ public Builder setIndicesTensorNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - indicesTensorName_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -7369,8 +7445,8 @@ public Builder setDenseShapeTensorName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - denseShapeTensorName_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -7388,8 +7464,8 @@ public Builder setDenseShapeTensorName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDenseShapeTensorName() { - denseShapeTensorName_ = getDefaultInstance().getDenseShapeTensorName(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -7412,8 +7488,8 @@ public Builder setDenseShapeTensorNameBytes(com.google.protobuf.ByteString value throw new NullPointerException(); } checkByteStringIsUtf8(value); - denseShapeTensorName_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -7422,9 +7498,9 @@ public Builder setDenseShapeTensorNameBytes(com.google.protobuf.ByteString value com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureIndexFeatureMappingIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { indexFeatureMapping_ = new com.google.protobuf.LazyStringArrayList(indexFeatureMapping_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000080; } } /** @@ -7583,7 +7659,7 @@ public Builder addAllIndexFeatureMapping(java.lang.Iterable va */ public Builder clearIndexFeatureMapping() { indexFeatureMapping_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -7698,8 +7774,8 @@ public Builder setEncodedTensorName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - encodedTensorName_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -7723,8 +7799,8 @@ public Builder setEncodedTensorName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEncodedTensorName() { - encodedTensorName_ = getDefaultInstance().getEncodedTensorName(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -7753,8 +7829,8 @@ public Builder setEncodedTensorNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - encodedTensorName_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -7763,9 +7839,9 @@ public Builder setEncodedTensorNameBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureEncodedBaselinesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000200) != 0)) { encodedBaselines_ = new java.util.ArrayList(encodedBaselines_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000200; } } @@ -8013,7 +8089,7 @@ public Builder addAllEncodedBaselines( public Builder clearEncodedBaselines() { if (encodedBaselinesBuilder_ == null) { encodedBaselines_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { encodedBaselinesBuilder_.clear(); @@ -8156,7 +8232,7 @@ public java.util.List getEncodedBaselinesBuil com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( encodedBaselines_, - ((bitField0_ & 0x00000004) != 0), + ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); encodedBaselines_ = null; @@ -8187,7 +8263,7 @@ public java.util.List getEncodedBaselinesBuil * @return Whether the visualization field is set. */ public boolean hasVisualization() { - return visualizationBuilder_ != null || visualization_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -8231,11 +8307,11 @@ public Builder setVisualization( throw new NullPointerException(); } visualization_ = value; - onChanged(); } else { visualizationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -8254,11 +8330,11 @@ public Builder setVisualization( builderForValue) { if (visualizationBuilder_ == null) { visualization_ = builderForValue.build(); - onChanged(); } else { visualizationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -8275,20 +8351,20 @@ public Builder setVisualization( public Builder mergeVisualization( com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization value) { if (visualizationBuilder_ == null) { - if (visualization_ != null) { - visualization_ = - com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization - .newBuilder(visualization_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && visualization_ != null + && visualization_ + != com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization + .getDefaultInstance()) { + getVisualizationBuilder().mergeFrom(value); } else { visualization_ = value; } - onChanged(); } else { visualizationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -8303,14 +8379,13 @@ public Builder mergeVisualization( * */ public Builder clearVisualization() { - if (visualizationBuilder_ == null) { - visualization_ = null; - onChanged(); - } else { - visualization_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + visualization_ = null; + if (visualizationBuilder_ != null) { + visualizationBuilder_.dispose(); visualizationBuilder_ = null; } - + onChanged(); return this; } /** @@ -8326,7 +8401,7 @@ public Builder clearVisualization() { */ public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.Builder getVisualizationBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getVisualizationFieldBuilder().getBuilder(); } @@ -8460,8 +8535,8 @@ public Builder setGroupName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - groupName_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -8482,8 +8557,8 @@ public Builder setGroupName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearGroupName() { - groupName_ = getDefaultInstance().getGroupName(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -8509,8 +8584,8 @@ public Builder setGroupNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - groupName_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -9003,7 +9078,9 @@ public com.google.protobuf.ByteString getDisplayNameMappingKeyBytes() { } public static final int OUTPUT_TENSOR_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object outputTensorName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputTensorName_ = ""; /** * * @@ -9293,11 +9370,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (indexDisplayNameMappingBuilder_ != null) { indexDisplayNameMappingBuilder_.clear(); } outputTensorName_ = ""; - displayNameMappingCase_ = 0; displayNameMapping_ = null; return this; @@ -9329,22 +9406,31 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata build() public com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata buildPartial() { com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata result = new com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata(this); - if (displayNameMappingCase_ == 1) { - if (indexDisplayNameMappingBuilder_ == null) { - result.displayNameMapping_ = displayNameMapping_; - } else { - result.displayNameMapping_ = indexDisplayNameMappingBuilder_.build(); - } - } - if (displayNameMappingCase_ == 2) { - result.displayNameMapping_ = displayNameMapping_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.outputTensorName_ = outputTensorName_; - result.displayNameMappingCase_ = displayNameMappingCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outputTensorName_ = outputTensorName_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata result) { + result.displayNameMappingCase_ = displayNameMappingCase_; + result.displayNameMapping_ = this.displayNameMapping_; + if (displayNameMappingCase_ == 1 && indexDisplayNameMappingBuilder_ != null) { + result.displayNameMapping_ = indexDisplayNameMappingBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -9398,6 +9484,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getOutputTensorName().isEmpty()) { outputTensorName_ = other.outputTensorName_; + bitField0_ |= 0x00000004; onChanged(); } switch (other.getDisplayNameMappingCase()) { @@ -9461,7 +9548,7 @@ public Builder mergeFrom( case 26: { outputTensorName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -9495,6 +9582,8 @@ public Builder clearDisplayNameMapping() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Value, com.google.protobuf.Value.Builder, @@ -9799,7 +9888,6 @@ public com.google.protobuf.ValueOrBuilder getIndexDisplayNameMappingOrBuilder() } displayNameMappingCase_ = 1; onChanged(); - ; return indexDisplayNameMappingBuilder_; } @@ -10031,8 +10119,8 @@ public Builder setOutputTensorName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - outputTensorName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -10049,8 +10137,8 @@ public Builder setOutputTensorName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOutputTensorName() { - outputTensorName_ = getDefaultInstance().getOutputTensorName(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -10072,8 +10160,8 @@ public Builder setOutputTensorNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - outputTensorName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -10164,6 +10252,7 @@ private static final class InputsDefaultEntryHolder { .getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata> inputs_; @@ -10268,9 +10357,11 @@ public boolean containsInputs(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata getInputsOrDefault( - java.lang.String key, - com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata + getInputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -10335,6 +10426,7 @@ private static final class OutputsDefaultEntryHolder { .getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata> outputs_; @@ -10421,9 +10513,11 @@ public boolean containsOutputs(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata getOutputsOrDefault( - java.lang.String key, - com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata + getOutputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -10464,7 +10558,9 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata getOutp } public static final int FEATURE_ATTRIBUTIONS_SCHEMA_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object featureAttributionsSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object featureAttributionsSchemaUri_ = ""; /** * * @@ -10529,7 +10625,9 @@ public com.google.protobuf.ByteString getFeatureAttributionsSchemaUriBytes() { } public static final int LATENT_SPACE_SOURCE_FIELD_NUMBER = 5; - private volatile java.lang.Object latentSpaceSource_; + + @SuppressWarnings("serial") + private volatile java.lang.Object latentSpaceSource_ = ""; /** * * @@ -10850,12 +10948,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; internalGetMutableInputs().clear(); internalGetMutableOutputs().clear(); featureAttributionsSchemaUri_ = ""; - latentSpaceSource_ = ""; - return this; } @@ -10883,17 +10980,31 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadata build() { public com.google.cloud.aiplatform.v1.ExplanationMetadata buildPartial() { com.google.cloud.aiplatform.v1.ExplanationMetadata result = new com.google.cloud.aiplatform.v1.ExplanationMetadata(this); - int from_bitField0_ = bitField0_; - result.inputs_ = internalGetInputs(); - result.inputs_.makeImmutable(); - result.outputs_ = internalGetOutputs(); - result.outputs_.makeImmutable(); - result.featureAttributionsSchemaUri_ = featureAttributionsSchemaUri_; - result.latentSpaceSource_ = latentSpaceSource_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ExplanationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = internalGetInputs(); + result.inputs_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputs_ = internalGetOutputs(); + result.outputs_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.featureAttributionsSchemaUri_ = featureAttributionsSchemaUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.latentSpaceSource_ = latentSpaceSource_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -10941,13 +11052,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExplanationMetadata othe if (other == com.google.cloud.aiplatform.v1.ExplanationMetadata.getDefaultInstance()) return this; internalGetMutableInputs().mergeFrom(other.internalGetInputs()); + bitField0_ |= 0x00000001; internalGetMutableOutputs().mergeFrom(other.internalGetOutputs()); + bitField0_ |= 0x00000002; if (!other.getFeatureAttributionsSchemaUri().isEmpty()) { featureAttributionsSchemaUri_ = other.featureAttributionsSchemaUri_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getLatentSpaceSource().isEmpty()) { latentSpaceSource_ = other.latentSpaceSource_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -10988,6 +11103,7 @@ public Builder mergeFrom( internalGetMutableInputs() .getMutableMap() .put(inputs__.getKey(), inputs__.getValue()); + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -11002,18 +11118,19 @@ public Builder mergeFrom( internalGetMutableOutputs() .getMutableMap() .put(outputs__.getKey(), outputs__.getValue()); + bitField0_ |= 0x00000002; break; } // case 18 case 26: { featureAttributionsSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 42: { latentSpaceSource_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 42 default: @@ -11051,14 +11168,14 @@ public Builder mergeFrom( private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata> internalGetMutableInputs() { - onChanged(); - ; if (inputs_ == null) { inputs_ = com.google.protobuf.MapField.newMapField(InputsDefaultEntryHolder.defaultEntry); } if (!inputs_.isMutable()) { inputs_ = inputs_.copy(); } + bitField0_ |= 0x00000001; + onChanged(); return inputs_; } @@ -11153,9 +11270,11 @@ public boolean containsInputs(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata getInputsOrDefault( - java.lang.String key, - com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata + getInputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -11202,6 +11321,7 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata getInput } public Builder clearInputs() { + bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableInputs().getMutableMap().clear(); return this; } @@ -11239,6 +11359,7 @@ public Builder removeInputs(java.lang.String key) { public java.util.Map< java.lang.String, com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata> getMutableInputs() { + bitField0_ |= 0x00000001; return internalGetMutableInputs().getMutableMap(); } /** @@ -11272,8 +11393,8 @@ public Builder putInputs( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableInputs().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; return this; } /** @@ -11303,6 +11424,7 @@ public Builder putAllInputs( java.lang.String, com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata> values) { internalGetMutableInputs().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; return this; } @@ -11322,14 +11444,14 @@ public Builder putAllInputs( private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata> internalGetMutableOutputs() { - onChanged(); - ; if (outputs_ == null) { outputs_ = com.google.protobuf.MapField.newMapField(OutputsDefaultEntryHolder.defaultEntry); } if (!outputs_.isMutable()) { outputs_ = outputs_.copy(); } + bitField0_ |= 0x00000002; + onChanged(); return outputs_; } @@ -11406,9 +11528,11 @@ public boolean containsOutputs(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata getOutputsOrDefault( - java.lang.String key, - com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata + getOutputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -11449,6 +11573,7 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata getOutp } public Builder clearOutputs() { + bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableOutputs().getMutableMap().clear(); return this; } @@ -11480,6 +11605,7 @@ public Builder removeOutputs(java.lang.String key) { public java.util.Map< java.lang.String, com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata> getMutableOutputs() { + bitField0_ |= 0x00000002; return internalGetMutableOutputs().getMutableMap(); } /** @@ -11507,8 +11633,8 @@ public Builder putOutputs( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableOutputs().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; return this; } /** @@ -11532,6 +11658,7 @@ public Builder putAllOutputs( java.lang.String, com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata> values) { internalGetMutableOutputs().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; return this; } @@ -11620,8 +11747,8 @@ public Builder setFeatureAttributionsSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - featureAttributionsSchemaUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -11645,8 +11772,8 @@ public Builder setFeatureAttributionsSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFeatureAttributionsSchemaUri() { - featureAttributionsSchemaUri_ = getDefaultInstance().getFeatureAttributionsSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -11675,8 +11802,8 @@ public Builder setFeatureAttributionsSchemaUriBytes(com.google.protobuf.ByteStri throw new NullPointerException(); } checkByteStringIsUtf8(value); - featureAttributionsSchemaUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -11742,8 +11869,8 @@ public Builder setLatentSpaceSource(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - latentSpaceSource_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -11759,8 +11886,8 @@ public Builder setLatentSpaceSource(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLatentSpaceSource() { - latentSpaceSource_ = getDefaultInstance().getLatentSpaceSource(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -11781,8 +11908,8 @@ public Builder setLatentSpaceSourceBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - latentSpaceSource_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOrBuilder.java index e707a16d50dd..4d8aa59ba4bb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOrBuilder.java @@ -119,7 +119,6 @@ public interface ExplanationMetadataOrBuilder * map<string, .google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata> inputs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ - /* nullable */ com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata getInputsOrDefault( java.lang.String key, @@ -222,7 +221,6 @@ com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata getInputsOrThro * map<string, .google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata> outputs = 2 [(.google.api.field_behavior) = REQUIRED]; * */ - /* nullable */ com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata getOutputsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOverride.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOverride.java index e0f6d4028ada..ff0ad17dec27 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOverride.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOverride.java @@ -209,6 +209,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INPUT_BASELINES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List inputBaselines_; /** * @@ -514,6 +516,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (inputBaselinesBuilder_ == null) { inputBaselines_ = java.util.Collections.emptyList(); } else { @@ -554,7 +557,16 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride result = new com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride( this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride result) { if (inputBaselinesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { inputBaselines_ = java.util.Collections.unmodifiableList(inputBaselines_); @@ -564,8 +576,11 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } else { result.inputBaselines_ = inputBaselinesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -1219,6 +1234,7 @@ private static final class InputsDefaultEntryHolder { .InputMetadataOverride.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride> @@ -1309,9 +1325,11 @@ public boolean containsInputs(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride + public /* nullable */ com.google.cloud.aiplatform.v1.ExplanationMetadataOverride + .InputMetadataOverride getInputsOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride defaultValue) { if (key == null) { @@ -1588,6 +1606,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; internalGetMutableInputs().clear(); return this; } @@ -1616,13 +1635,21 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadataOverride build() { public com.google.cloud.aiplatform.v1.ExplanationMetadataOverride buildPartial() { com.google.cloud.aiplatform.v1.ExplanationMetadataOverride result = new com.google.cloud.aiplatform.v1.ExplanationMetadataOverride(this); - int from_bitField0_ = bitField0_; - result.inputs_ = internalGetInputs(); - result.inputs_.makeImmutable(); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ExplanationMetadataOverride result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = internalGetInputs(); + result.inputs_.makeImmutable(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1670,6 +1697,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExplanationMetadataOverr if (other == com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.getDefaultInstance()) return this; internalGetMutableInputs().mergeFrom(other.internalGetInputs()); + bitField0_ |= 0x00000001; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1709,6 +1737,7 @@ public Builder mergeFrom( internalGetMutableInputs() .getMutableMap() .put(inputs__.getKey(), inputs__.getValue()); + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -1749,14 +1778,14 @@ public Builder mergeFrom( java.lang.String, com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride> internalGetMutableInputs() { - onChanged(); - ; if (inputs_ == null) { inputs_ = com.google.protobuf.MapField.newMapField(InputsDefaultEntryHolder.defaultEntry); } if (!inputs_.isMutable()) { inputs_ = inputs_.copy(); } + bitField0_ |= 0x00000001; + onChanged(); return inputs_; } @@ -1835,9 +1864,11 @@ public boolean containsInputs(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride + public /* nullable */ com.google.cloud.aiplatform.v1.ExplanationMetadataOverride + .InputMetadataOverride getInputsOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride defaultValue) { if (key == null) { @@ -1882,6 +1913,7 @@ public boolean containsInputs(java.lang.String key) { } public Builder clearInputs() { + bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableInputs().getMutableMap().clear(); return this; } @@ -1914,6 +1946,7 @@ public Builder removeInputs(java.lang.String key) { java.lang.String, com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride> getMutableInputs() { + bitField0_ |= 0x00000001; return internalGetMutableInputs().getMutableMap(); } /** @@ -1941,8 +1974,8 @@ public Builder putInputs( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableInputs().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; return this; } /** @@ -1967,6 +2000,7 @@ public Builder putAllInputs( com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride> values) { internalGetMutableInputs().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOverrideOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOverrideOrBuilder.java index eff6daf642f7..571cdfa20a33 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOverrideOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOverrideOrBuilder.java @@ -99,7 +99,6 @@ public interface ExplanationMetadataOverrideOrBuilder * map<string, .google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride> inputs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ - /* nullable */ com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride getInputsOrDefault( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationParameters.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationParameters.java index b2106bb5a2cb..ff74e65be707 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationParameters.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationParameters.java @@ -317,7 +317,7 @@ public com.google.cloud.aiplatform.v1.XraiAttributionOrBuilder getXraiAttributio } public static final int TOP_K_FIELD_NUMBER = 4; - private int topK_; + private int topK_ = 0; /** * * @@ -409,7 +409,9 @@ public com.google.protobuf.ListValue getOutputIndices() { */ @java.lang.Override public com.google.protobuf.ListValueOrBuilder getOutputIndicesOrBuilder() { - return getOutputIndices(); + return outputIndices_ == null + ? com.google.protobuf.ListValue.getDefaultInstance() + : outputIndices_; } private byte memoizedIsInitialized = -1; @@ -680,6 +682,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (sampledShapleyAttributionBuilder_ != null) { sampledShapleyAttributionBuilder_.clear(); } @@ -690,11 +693,9 @@ public Builder clear() { xraiAttributionBuilder_.clear(); } topK_ = 0; - - if (outputIndicesBuilder_ == null) { - outputIndices_ = null; - } else { - outputIndices_ = null; + outputIndices_ = null; + if (outputIndicesBuilder_ != null) { + outputIndicesBuilder_.dispose(); outputIndicesBuilder_ = null; } methodCase_ = 0; @@ -726,36 +727,37 @@ public com.google.cloud.aiplatform.v1.ExplanationParameters build() { public com.google.cloud.aiplatform.v1.ExplanationParameters buildPartial() { com.google.cloud.aiplatform.v1.ExplanationParameters result = new com.google.cloud.aiplatform.v1.ExplanationParameters(this); - if (methodCase_ == 1) { - if (sampledShapleyAttributionBuilder_ == null) { - result.method_ = method_; - } else { - result.method_ = sampledShapleyAttributionBuilder_.build(); - } - } - if (methodCase_ == 2) { - if (integratedGradientsAttributionBuilder_ == null) { - result.method_ = method_; - } else { - result.method_ = integratedGradientsAttributionBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (methodCase_ == 3) { - if (xraiAttributionBuilder_ == null) { - result.method_ = method_; - } else { - result.method_ = xraiAttributionBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ExplanationParameters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.topK_ = topK_; } - result.topK_ = topK_; - if (outputIndicesBuilder_ == null) { - result.outputIndices_ = outputIndices_; - } else { - result.outputIndices_ = outputIndicesBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.outputIndices_ = + outputIndicesBuilder_ == null ? outputIndices_ : outputIndicesBuilder_.build(); } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.ExplanationParameters result) { result.methodCase_ = methodCase_; - onBuilt(); - return result; + result.method_ = this.method_; + if (methodCase_ == 1 && sampledShapleyAttributionBuilder_ != null) { + result.method_ = sampledShapleyAttributionBuilder_.build(); + } + if (methodCase_ == 2 && integratedGradientsAttributionBuilder_ != null) { + result.method_ = integratedGradientsAttributionBuilder_.build(); + } + if (methodCase_ == 3 && xraiAttributionBuilder_ != null) { + result.method_ = xraiAttributionBuilder_.build(); + } } @java.lang.Override @@ -881,13 +883,13 @@ public Builder mergeFrom( case 32: { topK_ = input.readInt32(); - + bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage(getOutputIndicesFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -921,6 +923,8 @@ public Builder clearMethod() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.SampledShapleyAttribution, com.google.cloud.aiplatform.v1.SampledShapleyAttribution.Builder, @@ -1168,7 +1172,6 @@ public Builder clearSampledShapleyAttribution() { } methodCase_ = 1; onChanged(); - ; return sampledShapleyAttributionBuilder_; } @@ -1422,7 +1425,6 @@ public Builder clearIntegratedGradientsAttribution() { } methodCase_ = 2; onChanged(); - ; return integratedGradientsAttributionBuilder_; } @@ -1695,7 +1697,6 @@ public com.google.cloud.aiplatform.v1.XraiAttributionOrBuilder getXraiAttributio } methodCase_ = 3; onChanged(); - ; return xraiAttributionBuilder_; } @@ -1736,6 +1737,7 @@ public int getTopK() { public Builder setTopK(int value) { topK_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1754,7 +1756,7 @@ public Builder setTopK(int value) { * @return This builder for chaining. */ public Builder clearTopK() { - + bitField0_ = (bitField0_ & ~0x00000008); topK_ = 0; onChanged(); return this; @@ -1787,7 +1789,7 @@ public Builder clearTopK() { * @return Whether the outputIndices field is set. */ public boolean hasOutputIndices() { - return outputIndicesBuilder_ != null || outputIndices_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1842,11 +1844,11 @@ public Builder setOutputIndices(com.google.protobuf.ListValue value) { throw new NullPointerException(); } outputIndices_ = value; - onChanged(); } else { outputIndicesBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1870,11 +1872,11 @@ public Builder setOutputIndices(com.google.protobuf.ListValue value) { public Builder setOutputIndices(com.google.protobuf.ListValue.Builder builderForValue) { if (outputIndicesBuilder_ == null) { outputIndices_ = builderForValue.build(); - onChanged(); } else { outputIndicesBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1897,19 +1899,18 @@ public Builder setOutputIndices(com.google.protobuf.ListValue.Builder builderFor */ public Builder mergeOutputIndices(com.google.protobuf.ListValue value) { if (outputIndicesBuilder_ == null) { - if (outputIndices_ != null) { - outputIndices_ = - com.google.protobuf.ListValue.newBuilder(outputIndices_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && outputIndices_ != null + && outputIndices_ != com.google.protobuf.ListValue.getDefaultInstance()) { + getOutputIndicesBuilder().mergeFrom(value); } else { outputIndices_ = value; } - onChanged(); } else { outputIndicesBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1931,14 +1932,13 @@ public Builder mergeOutputIndices(com.google.protobuf.ListValue value) { * .google.protobuf.ListValue output_indices = 5; */ public Builder clearOutputIndices() { - if (outputIndicesBuilder_ == null) { - outputIndices_ = null; - onChanged(); - } else { - outputIndices_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + outputIndices_ = null; + if (outputIndicesBuilder_ != null) { + outputIndicesBuilder_.dispose(); outputIndicesBuilder_ = null; } - + onChanged(); return this; } /** @@ -1960,7 +1960,7 @@ public Builder clearOutputIndices() { * .google.protobuf.ListValue output_indices = 5; */ public com.google.protobuf.ListValue.Builder getOutputIndicesBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getOutputIndicesFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpec.java index 5dedd9fa3a14..3aa6750a8988 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpec.java @@ -116,7 +116,9 @@ public com.google.cloud.aiplatform.v1.ExplanationParameters getParameters() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ExplanationParametersOrBuilder getParametersOrBuilder() { - return getParameters(); + return parameters_ == null + ? com.google.cloud.aiplatform.v1.ExplanationParameters.getDefaultInstance() + : parameters_; } public static final int METADATA_FIELD_NUMBER = 2; @@ -170,7 +172,9 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadata getMetadata() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ExplanationMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null + ? com.google.cloud.aiplatform.v1.ExplanationMetadata.getDefaultInstance() + : metadata_; } private byte memoizedIsInitialized = -1; @@ -389,16 +393,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (parametersBuilder_ == null) { - parameters_ = null; - } else { - parameters_ = null; + bitField0_ = 0; + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; @@ -428,20 +431,23 @@ public com.google.cloud.aiplatform.v1.ExplanationSpec build() { public com.google.cloud.aiplatform.v1.ExplanationSpec buildPartial() { com.google.cloud.aiplatform.v1.ExplanationSpec result = new com.google.cloud.aiplatform.v1.ExplanationSpec(this); - if (parametersBuilder_ == null) { - result.parameters_ = parameters_; - } else { - result.parameters_ = parametersBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ExplanationSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -522,13 +528,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -548,6 +554,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.ExplanationParameters parameters_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.ExplanationParameters, @@ -568,7 +576,7 @@ public Builder mergeFrom( * @return Whether the parameters field is set. */ public boolean hasParameters() { - return parametersBuilder_ != null || parameters_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -609,11 +617,11 @@ public Builder setParameters(com.google.cloud.aiplatform.v1.ExplanationParameter throw new NullPointerException(); } parameters_ = value; - onChanged(); } else { parametersBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -631,11 +639,11 @@ public Builder setParameters( com.google.cloud.aiplatform.v1.ExplanationParameters.Builder builderForValue) { if (parametersBuilder_ == null) { parameters_ = builderForValue.build(); - onChanged(); } else { parametersBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -651,19 +659,19 @@ public Builder setParameters( */ public Builder mergeParameters(com.google.cloud.aiplatform.v1.ExplanationParameters value) { if (parametersBuilder_ == null) { - if (parameters_ != null) { - parameters_ = - com.google.cloud.aiplatform.v1.ExplanationParameters.newBuilder(parameters_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && parameters_ != null + && parameters_ + != com.google.cloud.aiplatform.v1.ExplanationParameters.getDefaultInstance()) { + getParametersBuilder().mergeFrom(value); } else { parameters_ = value; } - onChanged(); } else { parametersBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -678,14 +686,13 @@ public Builder mergeParameters(com.google.cloud.aiplatform.v1.ExplanationParamet * */ public Builder clearParameters() { - if (parametersBuilder_ == null) { - parameters_ = null; - onChanged(); - } else { - parameters_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } - + onChanged(); return this; } /** @@ -700,7 +707,7 @@ public Builder clearParameters() { * */ public com.google.cloud.aiplatform.v1.ExplanationParameters.Builder getParametersBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getParametersFieldBuilder().getBuilder(); } @@ -772,7 +779,7 @@ public com.google.cloud.aiplatform.v1.ExplanationParametersOrBuilder getParamete * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -813,11 +820,11 @@ public Builder setMetadata(com.google.cloud.aiplatform.v1.ExplanationMetadata va throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -835,11 +842,11 @@ public Builder setMetadata( com.google.cloud.aiplatform.v1.ExplanationMetadata.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -855,19 +862,19 @@ public Builder setMetadata( */ public Builder mergeMetadata(com.google.cloud.aiplatform.v1.ExplanationMetadata value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.cloud.aiplatform.v1.ExplanationMetadata.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.aiplatform.v1.ExplanationMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -882,14 +889,13 @@ public Builder mergeMetadata(com.google.cloud.aiplatform.v1.ExplanationMetadata * */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -904,7 +910,7 @@ public Builder clearMetadata() { * */ public com.google.cloud.aiplatform.v1.ExplanationMetadata.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpecOverride.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpecOverride.java index 4035e351db66..7d190c7dea43 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpecOverride.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpecOverride.java @@ -118,7 +118,9 @@ public com.google.cloud.aiplatform.v1.ExplanationParameters getParameters() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ExplanationParametersOrBuilder getParametersOrBuilder() { - return getParameters(); + return parameters_ == null + ? com.google.cloud.aiplatform.v1.ExplanationParameters.getDefaultInstance() + : parameters_; } public static final int METADATA_FIELD_NUMBER = 2; @@ -167,7 +169,9 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadataOverride getMetadata() @java.lang.Override public com.google.cloud.aiplatform.v1.ExplanationMetadataOverrideOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null + ? com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.getDefaultInstance() + : metadata_; } public static final int EXAMPLES_OVERRIDE_FIELD_NUMBER = 3; @@ -215,7 +219,9 @@ public com.google.cloud.aiplatform.v1.ExamplesOverride getExamplesOverride() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ExamplesOverrideOrBuilder getExamplesOverrideOrBuilder() { - return getExamplesOverride(); + return examplesOverride_ == null + ? com.google.cloud.aiplatform.v1.ExamplesOverride.getDefaultInstance() + : examplesOverride_; } private byte memoizedIsInitialized = -1; @@ -451,22 +457,20 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (parametersBuilder_ == null) { - parameters_ = null; - } else { - parameters_ = null; + bitField0_ = 0; + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - if (examplesOverrideBuilder_ == null) { - examplesOverride_ = null; - } else { - examplesOverride_ = null; + examplesOverride_ = null; + if (examplesOverrideBuilder_ != null) { + examplesOverrideBuilder_.dispose(); examplesOverrideBuilder_ = null; } return this; @@ -496,25 +500,27 @@ public com.google.cloud.aiplatform.v1.ExplanationSpecOverride build() { public com.google.cloud.aiplatform.v1.ExplanationSpecOverride buildPartial() { com.google.cloud.aiplatform.v1.ExplanationSpecOverride result = new com.google.cloud.aiplatform.v1.ExplanationSpecOverride(this); - if (parametersBuilder_ == null) { - result.parameters_ = parameters_; - } else { - result.parameters_ = parametersBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (examplesOverrideBuilder_ == null) { - result.examplesOverride_ = examplesOverride_; - } else { - result.examplesOverride_ = examplesOverrideBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ExplanationSpecOverride result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.examplesOverride_ = + examplesOverrideBuilder_ == null ? examplesOverride_ : examplesOverrideBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -599,20 +605,20 @@ public Builder mergeFrom( case 10: { input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getExamplesOverrideFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -632,6 +638,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.ExplanationParameters parameters_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.ExplanationParameters, @@ -652,7 +660,7 @@ public Builder mergeFrom( * @return Whether the parameters field is set. */ public boolean hasParameters() { - return parametersBuilder_ != null || parameters_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -693,11 +701,11 @@ public Builder setParameters(com.google.cloud.aiplatform.v1.ExplanationParameter throw new NullPointerException(); } parameters_ = value; - onChanged(); } else { parametersBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -715,11 +723,11 @@ public Builder setParameters( com.google.cloud.aiplatform.v1.ExplanationParameters.Builder builderForValue) { if (parametersBuilder_ == null) { parameters_ = builderForValue.build(); - onChanged(); } else { parametersBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -735,19 +743,19 @@ public Builder setParameters( */ public Builder mergeParameters(com.google.cloud.aiplatform.v1.ExplanationParameters value) { if (parametersBuilder_ == null) { - if (parameters_ != null) { - parameters_ = - com.google.cloud.aiplatform.v1.ExplanationParameters.newBuilder(parameters_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && parameters_ != null + && parameters_ + != com.google.cloud.aiplatform.v1.ExplanationParameters.getDefaultInstance()) { + getParametersBuilder().mergeFrom(value); } else { parameters_ = value; } - onChanged(); } else { parametersBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -762,14 +770,13 @@ public Builder mergeParameters(com.google.cloud.aiplatform.v1.ExplanationParamet * .google.cloud.aiplatform.v1.ExplanationParameters parameters = 1; */ public Builder clearParameters() { - if (parametersBuilder_ == null) { - parameters_ = null; - onChanged(); - } else { - parameters_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } - + onChanged(); return this; } /** @@ -784,7 +791,7 @@ public Builder clearParameters() { * .google.cloud.aiplatform.v1.ExplanationParameters parameters = 1; */ public com.google.cloud.aiplatform.v1.ExplanationParameters.Builder getParametersBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getParametersFieldBuilder().getBuilder(); } @@ -854,7 +861,7 @@ public com.google.cloud.aiplatform.v1.ExplanationParametersOrBuilder getParamete * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -891,11 +898,11 @@ public Builder setMetadata(com.google.cloud.aiplatform.v1.ExplanationMetadataOve throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -911,11 +918,11 @@ public Builder setMetadata( com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -929,19 +936,20 @@ public Builder setMetadata( */ public Builder mergeMetadata(com.google.cloud.aiplatform.v1.ExplanationMetadataOverride value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.aiplatform.v1.ExplanationMetadataOverride + .getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -954,14 +962,13 @@ public Builder mergeMetadata(com.google.cloud.aiplatform.v1.ExplanationMetadataO * .google.cloud.aiplatform.v1.ExplanationMetadataOverride metadata = 2; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -974,7 +981,7 @@ public Builder clearMetadata() { * .google.cloud.aiplatform.v1.ExplanationMetadataOverride metadata = 2; */ public com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -1041,7 +1048,7 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.Builder getMet * @return Whether the examplesOverride field is set. */ public boolean hasExamplesOverride() { - return examplesOverrideBuilder_ != null || examplesOverride_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1078,11 +1085,11 @@ public Builder setExamplesOverride(com.google.cloud.aiplatform.v1.ExamplesOverri throw new NullPointerException(); } examplesOverride_ = value; - onChanged(); } else { examplesOverrideBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1098,11 +1105,11 @@ public Builder setExamplesOverride( com.google.cloud.aiplatform.v1.ExamplesOverride.Builder builderForValue) { if (examplesOverrideBuilder_ == null) { examplesOverride_ = builderForValue.build(); - onChanged(); } else { examplesOverrideBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1116,19 +1123,19 @@ public Builder setExamplesOverride( */ public Builder mergeExamplesOverride(com.google.cloud.aiplatform.v1.ExamplesOverride value) { if (examplesOverrideBuilder_ == null) { - if (examplesOverride_ != null) { - examplesOverride_ = - com.google.cloud.aiplatform.v1.ExamplesOverride.newBuilder(examplesOverride_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && examplesOverride_ != null + && examplesOverride_ + != com.google.cloud.aiplatform.v1.ExamplesOverride.getDefaultInstance()) { + getExamplesOverrideBuilder().mergeFrom(value); } else { examplesOverride_ = value; } - onChanged(); } else { examplesOverrideBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1141,14 +1148,13 @@ public Builder mergeExamplesOverride(com.google.cloud.aiplatform.v1.ExamplesOver * .google.cloud.aiplatform.v1.ExamplesOverride examples_override = 3; */ public Builder clearExamplesOverride() { - if (examplesOverrideBuilder_ == null) { - examplesOverride_ = null; - onChanged(); - } else { - examplesOverride_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + examplesOverride_ = null; + if (examplesOverrideBuilder_ != null) { + examplesOverrideBuilder_.dispose(); examplesOverrideBuilder_ = null; } - + onChanged(); return this; } /** @@ -1161,7 +1167,7 @@ public Builder clearExamplesOverride() { * .google.cloud.aiplatform.v1.ExamplesOverride examples_override = 3; */ public com.google.cloud.aiplatform.v1.ExamplesOverride.Builder getExamplesOverrideBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getExamplesOverrideFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataConfig.java index dc906454561b..19c3d96eca98 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataConfig.java @@ -188,7 +188,9 @@ public com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder getGcsDestinationO } public static final int ANNOTATIONS_FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object annotationsFilter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object annotationsFilter_ = ""; /** * * @@ -464,11 +466,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (gcsDestinationBuilder_ != null) { gcsDestinationBuilder_.clear(); } annotationsFilter_ = ""; - destinationCase_ = 0; destination_ = null; return this; @@ -498,19 +500,29 @@ public com.google.cloud.aiplatform.v1.ExportDataConfig build() { public com.google.cloud.aiplatform.v1.ExportDataConfig buildPartial() { com.google.cloud.aiplatform.v1.ExportDataConfig result = new com.google.cloud.aiplatform.v1.ExportDataConfig(this); - if (destinationCase_ == 1) { - if (gcsDestinationBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = gcsDestinationBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - result.annotationsFilter_ = annotationsFilter_; - result.destinationCase_ = destinationCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ExportDataConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.annotationsFilter_ = annotationsFilter_; + } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.ExportDataConfig result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { + result.destination_ = gcsDestinationBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -559,6 +571,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExportDataConfig other) return this; if (!other.getAnnotationsFilter().isEmpty()) { annotationsFilter_ = other.annotationsFilter_; + bitField0_ |= 0x00000002; onChanged(); } switch (other.getDestinationCase()) { @@ -607,7 +620,7 @@ public Builder mergeFrom( case 18: { annotationsFilter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -641,6 +654,8 @@ public Builder clearDestination() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GcsDestination, com.google.cloud.aiplatform.v1.GcsDestination.Builder, @@ -919,7 +934,6 @@ public com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder getGcsDestinationO } destinationCase_ = 1; onChanged(); - ; return gcsDestinationBuilder_; } @@ -993,8 +1007,8 @@ public Builder setAnnotationsFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - annotationsFilter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1013,8 +1027,8 @@ public Builder setAnnotationsFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAnnotationsFilter() { - annotationsFilter_ = getDefaultInstance().getAnnotationsFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1038,8 +1052,8 @@ public Builder setAnnotationsFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - annotationsFilter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataOperationMetadata.java index 383a939a986d..47c08541a631 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataOperationMetadata.java @@ -114,11 +114,15 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } public static final int GCS_OUTPUT_DIRECTORY_FIELD_NUMBER = 2; - private volatile java.lang.Object gcsOutputDirectory_; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsOutputDirectory_ = ""; /** * * @@ -381,14 +385,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } gcsOutputDirectory_ = ""; - return this; } @@ -416,16 +419,24 @@ public com.google.cloud.aiplatform.v1.ExportDataOperationMetadata build() { public com.google.cloud.aiplatform.v1.ExportDataOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.ExportDataOperationMetadata result = new com.google.cloud.aiplatform.v1.ExportDataOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.gcsOutputDirectory_ = gcsOutputDirectory_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ExportDataOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gcsOutputDirectory_ = gcsOutputDirectory_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -477,6 +488,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExportDataOperationMetad } if (!other.getGcsOutputDirectory().isEmpty()) { gcsOutputDirectory_ = other.gcsOutputDirectory_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -508,13 +520,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { gcsOutputDirectory_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -534,6 +546,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -552,7 +566,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -590,11 +604,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -610,11 +624,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -629,19 +643,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -654,14 +668,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -675,7 +688,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } @@ -788,8 +801,8 @@ public Builder setGcsOutputDirectory(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - gcsOutputDirectory_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -806,8 +819,8 @@ public Builder setGcsOutputDirectory(java.lang.String value) { * @return This builder for chaining. */ public Builder clearGcsOutputDirectory() { - gcsOutputDirectory_ = getDefaultInstance().getGcsOutputDirectory(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -829,8 +842,8 @@ public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - gcsOutputDirectory_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataRequest.java index 5133ecce03d1..600e31e8462b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -176,7 +178,9 @@ public com.google.cloud.aiplatform.v1.ExportDataConfig getExportConfig() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ExportDataConfigOrBuilder getExportConfigOrBuilder() { - return getExportConfig(); + return exportConfig_ == null + ? com.google.cloud.aiplatform.v1.ExportDataConfig.getDefaultInstance() + : exportConfig_; } private byte memoizedIsInitialized = -1; @@ -391,12 +395,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - - if (exportConfigBuilder_ == null) { - exportConfig_ = null; - } else { - exportConfig_ = null; + exportConfig_ = null; + if (exportConfigBuilder_ != null) { + exportConfigBuilder_.dispose(); exportConfigBuilder_ = null; } return this; @@ -426,16 +429,24 @@ public com.google.cloud.aiplatform.v1.ExportDataRequest build() { public com.google.cloud.aiplatform.v1.ExportDataRequest buildPartial() { com.google.cloud.aiplatform.v1.ExportDataRequest result = new com.google.cloud.aiplatform.v1.ExportDataRequest(this); - result.name_ = name_; - if (exportConfigBuilder_ == null) { - result.exportConfig_ = exportConfig_; - } else { - result.exportConfig_ = exportConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ExportDataRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.exportConfig_ = + exportConfigBuilder_ == null ? exportConfig_ : exportConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -484,6 +495,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExportDataRequest other) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasExportConfig()) { @@ -518,13 +530,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getExportConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -544,6 +556,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -617,8 +631,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -638,8 +652,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -664,8 +678,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -690,7 +704,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the exportConfig field is set. */ public boolean hasExportConfig() { - return exportConfigBuilder_ != null || exportConfig_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -731,11 +745,11 @@ public Builder setExportConfig(com.google.cloud.aiplatform.v1.ExportDataConfig v throw new NullPointerException(); } exportConfig_ = value; - onChanged(); } else { exportConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -753,11 +767,11 @@ public Builder setExportConfig( com.google.cloud.aiplatform.v1.ExportDataConfig.Builder builderForValue) { if (exportConfigBuilder_ == null) { exportConfig_ = builderForValue.build(); - onChanged(); } else { exportConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -773,19 +787,19 @@ public Builder setExportConfig( */ public Builder mergeExportConfig(com.google.cloud.aiplatform.v1.ExportDataConfig value) { if (exportConfigBuilder_ == null) { - if (exportConfig_ != null) { - exportConfig_ = - com.google.cloud.aiplatform.v1.ExportDataConfig.newBuilder(exportConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && exportConfig_ != null + && exportConfig_ + != com.google.cloud.aiplatform.v1.ExportDataConfig.getDefaultInstance()) { + getExportConfigBuilder().mergeFrom(value); } else { exportConfig_ = value; } - onChanged(); } else { exportConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -800,14 +814,13 @@ public Builder mergeExportConfig(com.google.cloud.aiplatform.v1.ExportDataConfig * */ public Builder clearExportConfig() { - if (exportConfigBuilder_ == null) { - exportConfig_ = null; - onChanged(); - } else { - exportConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + exportConfig_ = null; + if (exportConfigBuilder_ != null) { + exportConfigBuilder_.dispose(); exportConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -822,7 +835,7 @@ public Builder clearExportConfig() { * */ public com.google.cloud.aiplatform.v1.ExportDataConfig.Builder getExportConfigBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getExportConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataResponse.java index 5d45026b69b4..7124e7b950a2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportDataResponse.java @@ -69,6 +69,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int EXPORTED_FILES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList exportedFiles_; /** * @@ -334,6 +336,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; exportedFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; @@ -363,14 +366,25 @@ public com.google.cloud.aiplatform.v1.ExportDataResponse build() { public com.google.cloud.aiplatform.v1.ExportDataResponse buildPartial() { com.google.cloud.aiplatform.v1.ExportDataResponse result = new com.google.cloud.aiplatform.v1.ExportDataResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ExportDataResponse result) { if (((bitField0_ & 0x00000001) != 0)) { exportedFiles_ = exportedFiles_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.exportedFiles_ = exportedFiles_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ExportDataResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportFeatureValuesOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportFeatureValuesOperationMetadata.java index f5bedc8063d9..dbc323e86c0b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportFeatureValuesOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportFeatureValuesOperationMetadata.java @@ -113,7 +113,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -321,10 +323,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -356,15 +358,22 @@ public com.google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata build public com.google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata result = new com.google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -446,7 +455,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -466,6 +475,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -484,7 +495,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -522,11 +533,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -542,11 +553,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -561,19 +572,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -586,14 +597,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -607,7 +617,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportFeatureValuesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportFeatureValuesRequest.java index 0b7e0333d9b7..3891aa30ce99 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportFeatureValuesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportFeatureValuesRequest.java @@ -256,7 +256,9 @@ public com.google.protobuf.Timestamp getSnapshotTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { - return getSnapshotTime(); + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; } public static final int START_TIME_FIELD_NUMBER = 2; @@ -308,7 +310,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } private byte memoizedIsInitialized = -1; @@ -540,16 +542,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (snapshotTimeBuilder_ == null) { - snapshotTime_ = null; - } else { - snapshotTime_ = null; + bitField0_ = 0; + snapshotTime_ = null; + if (snapshotTimeBuilder_ != null) { + snapshotTimeBuilder_.dispose(); snapshotTimeBuilder_ = null; } - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } return this; @@ -583,20 +584,25 @@ public com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport buildPartial() { com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport result = new com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport(this); - if (snapshotTimeBuilder_ == null) { - result.snapshotTime_ = snapshotTime_; - } else { - result.snapshotTime_ = snapshotTimeBuilder_.build(); - } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.snapshotTime_ = + snapshotTimeBuilder_ == null ? snapshotTime_ : snapshotTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -684,13 +690,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getSnapshotTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -710,6 +716,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Timestamp snapshotTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -730,7 +738,7 @@ public Builder mergeFrom( * @return Whether the snapshotTime field is set. */ public boolean hasSnapshotTime() { - return snapshotTimeBuilder_ != null || snapshotTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -771,11 +779,11 @@ public Builder setSnapshotTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } snapshotTime_ = value; - onChanged(); } else { snapshotTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -792,11 +800,11 @@ public Builder setSnapshotTime(com.google.protobuf.Timestamp value) { public Builder setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (snapshotTimeBuilder_ == null) { snapshotTime_ = builderForValue.build(); - onChanged(); } else { snapshotTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -812,19 +820,18 @@ public Builder setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForV */ public Builder mergeSnapshotTime(com.google.protobuf.Timestamp value) { if (snapshotTimeBuilder_ == null) { - if (snapshotTime_ != null) { - snapshotTime_ = - com.google.protobuf.Timestamp.newBuilder(snapshotTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && snapshotTime_ != null + && snapshotTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getSnapshotTimeBuilder().mergeFrom(value); } else { snapshotTime_ = value; } - onChanged(); } else { snapshotTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -839,14 +846,13 @@ public Builder mergeSnapshotTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp snapshot_time = 1; */ public Builder clearSnapshotTime() { - if (snapshotTimeBuilder_ == null) { - snapshotTime_ = null; - onChanged(); - } else { - snapshotTime_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + snapshotTime_ = null; + if (snapshotTimeBuilder_ != null) { + snapshotTimeBuilder_.dispose(); snapshotTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -861,7 +867,7 @@ public Builder clearSnapshotTime() { * .google.protobuf.Timestamp snapshot_time = 1; */ public com.google.protobuf.Timestamp.Builder getSnapshotTimeBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getSnapshotTimeFieldBuilder().getBuilder(); } @@ -933,7 +939,7 @@ public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -974,11 +980,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -995,11 +1001,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1015,19 +1021,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1042,14 +1047,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp start_time = 2; */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1064,7 +1068,7 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 2; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -1368,7 +1372,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 1; @@ -1420,7 +1424,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } private byte memoizedIsInitialized = -1; @@ -1645,16 +1649,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + bitField0_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } return this; @@ -1687,20 +1690,24 @@ public com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport buil public com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport buildPartial() { com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport result = new com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport(this); - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); - } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1787,13 +1794,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 10 case 18: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 18 default: @@ -1813,6 +1820,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1833,7 +1842,7 @@ public Builder mergeFrom( * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1874,11 +1883,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1895,11 +1904,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1915,19 +1924,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1942,14 +1950,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp start_time = 2; */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1964,7 +1971,7 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 2; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -2036,7 +2043,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -2075,11 +2082,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2096,11 +2103,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2116,17 +2123,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2141,14 +2149,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp end_time = 1; */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2163,7 +2170,7 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 1; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -2449,7 +2456,9 @@ public com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport getF } public static final int ENTITY_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object entityType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityType_ = ""; /** * * @@ -2556,7 +2565,9 @@ public com.google.cloud.aiplatform.v1.FeatureValueDestination getDestination() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.FeatureValueDestinationOrBuilder getDestinationOrBuilder() { - return getDestination(); + return destination_ == null + ? com.google.cloud.aiplatform.v1.FeatureValueDestination.getDefaultInstance() + : destination_; } public static final int FEATURE_SELECTOR_FIELD_NUMBER = 5; @@ -2610,10 +2621,14 @@ public com.google.cloud.aiplatform.v1.FeatureSelector getFeatureSelector() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.FeatureSelectorOrBuilder getFeatureSelectorOrBuilder() { - return getFeatureSelector(); + return featureSelector_ == null + ? com.google.cloud.aiplatform.v1.FeatureSelector.getDefaultInstance() + : featureSelector_; } public static final int SETTINGS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") private java.util.List settings_; /** * @@ -2963,6 +2978,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (snapshotExportBuilder_ != null) { snapshotExportBuilder_.clear(); } @@ -2970,17 +2986,14 @@ public Builder clear() { fullExportBuilder_.clear(); } entityType_ = ""; - - if (destinationBuilder_ == null) { - destination_ = null; - } else { - destination_ = null; + destination_ = null; + if (destinationBuilder_ != null) { + destinationBuilder_.dispose(); destinationBuilder_ = null; } - if (featureSelectorBuilder_ == null) { - featureSelector_ = null; - } else { - featureSelector_ = null; + featureSelector_ = null; + if (featureSelectorBuilder_ != null) { + featureSelectorBuilder_.dispose(); featureSelectorBuilder_ = null; } if (settingsBuilder_ == null) { @@ -2989,7 +3002,7 @@ public Builder clear() { settings_ = null; settingsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); modeCase_ = 0; mode_ = null; return this; @@ -3019,44 +3032,53 @@ public com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest build() { public com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest buildPartial() { com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest result = new com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest(this); - int from_bitField0_ = bitField0_; - if (modeCase_ == 3) { - if (snapshotExportBuilder_ == null) { - result.mode_ = mode_; - } else { - result.mode_ = snapshotExportBuilder_.build(); - } - } - if (modeCase_ == 7) { - if (fullExportBuilder_ == null) { - result.mode_ = mode_; - } else { - result.mode_ = fullExportBuilder_.build(); - } - } - result.entityType_ = entityType_; - if (destinationBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = destinationBuilder_.build(); - } - if (featureSelectorBuilder_ == null) { - result.featureSelector_ = featureSelector_; - } else { - result.featureSelector_ = featureSelectorBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest result) { if (settingsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { settings_ = java.util.Collections.unmodifiableList(settings_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); } result.settings_ = settings_; } else { result.settings_ = settingsBuilder_.build(); } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.entityType_ = entityType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.destination_ = + destinationBuilder_ == null ? destination_ : destinationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.featureSelector_ = + featureSelectorBuilder_ == null ? featureSelector_ : featureSelectorBuilder_.build(); + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest result) { result.modeCase_ = modeCase_; - onBuilt(); - return result; + result.mode_ = this.mode_; + if (modeCase_ == 3 && snapshotExportBuilder_ != null) { + result.mode_ = snapshotExportBuilder_.build(); + } + if (modeCase_ == 7 && fullExportBuilder_ != null) { + result.mode_ = fullExportBuilder_.build(); + } } @java.lang.Override @@ -3107,6 +3129,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExportFeatureValuesReque return this; if (!other.getEntityType().isEmpty()) { entityType_ = other.entityType_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasDestination()) { @@ -3119,7 +3142,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExportFeatureValuesReque if (!other.settings_.isEmpty()) { if (settings_.isEmpty()) { settings_ = other.settings_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureSettingsIsMutable(); settings_.addAll(other.settings_); @@ -3132,7 +3155,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExportFeatureValuesReque settingsBuilder_.dispose(); settingsBuilder_ = null; settings_ = other.settings_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); settingsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSettingsFieldBuilder() @@ -3187,7 +3210,7 @@ public Builder mergeFrom( case 10: { entityType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 10 case 26: @@ -3199,13 +3222,13 @@ public Builder mergeFrom( case 34: { input.readMessage(getDestinationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getFeatureSelectorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: @@ -3508,7 +3531,6 @@ public Builder clearSnapshotExport() { } modeCase_ = 3; onChanged(); - ; return snapshotExportBuilder_; } @@ -3748,7 +3770,6 @@ public Builder clearFullExport() { } modeCase_ = 7; onChanged(); - ; return fullExportBuilder_; } @@ -3825,8 +3846,8 @@ public Builder setEntityType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityType_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3846,8 +3867,8 @@ public Builder setEntityType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityType() { - entityType_ = getDefaultInstance().getEntityType(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -3872,8 +3893,8 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityType_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3898,7 +3919,7 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { * @return Whether the destination field is set. */ public boolean hasDestination() { - return destinationBuilder_ != null || destination_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -3939,11 +3960,11 @@ public Builder setDestination(com.google.cloud.aiplatform.v1.FeatureValueDestina throw new NullPointerException(); } destination_ = value; - onChanged(); } else { destinationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3961,11 +3982,11 @@ public Builder setDestination( com.google.cloud.aiplatform.v1.FeatureValueDestination.Builder builderForValue) { if (destinationBuilder_ == null) { destination_ = builderForValue.build(); - onChanged(); } else { destinationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3981,19 +4002,19 @@ public Builder setDestination( */ public Builder mergeDestination(com.google.cloud.aiplatform.v1.FeatureValueDestination value) { if (destinationBuilder_ == null) { - if (destination_ != null) { - destination_ = - com.google.cloud.aiplatform.v1.FeatureValueDestination.newBuilder(destination_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && destination_ != null + && destination_ + != com.google.cloud.aiplatform.v1.FeatureValueDestination.getDefaultInstance()) { + getDestinationBuilder().mergeFrom(value); } else { destination_ = value; } - onChanged(); } else { destinationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4008,14 +4029,13 @@ public Builder mergeDestination(com.google.cloud.aiplatform.v1.FeatureValueDesti * */ public Builder clearDestination() { - if (destinationBuilder_ == null) { - destination_ = null; - onChanged(); - } else { - destination_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + destination_ = null; + if (destinationBuilder_ != null) { + destinationBuilder_.dispose(); destinationBuilder_ = null; } - + onChanged(); return this; } /** @@ -4030,7 +4050,7 @@ public Builder clearDestination() { * */ public com.google.cloud.aiplatform.v1.FeatureValueDestination.Builder getDestinationBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getDestinationFieldBuilder().getBuilder(); } @@ -4103,7 +4123,7 @@ public com.google.cloud.aiplatform.v1.FeatureValueDestination.Builder getDestina * @return Whether the featureSelector field is set. */ public boolean hasFeatureSelector() { - return featureSelectorBuilder_ != null || featureSelector_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -4144,11 +4164,11 @@ public Builder setFeatureSelector(com.google.cloud.aiplatform.v1.FeatureSelector throw new NullPointerException(); } featureSelector_ = value; - onChanged(); } else { featureSelectorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4166,11 +4186,11 @@ public Builder setFeatureSelector( com.google.cloud.aiplatform.v1.FeatureSelector.Builder builderForValue) { if (featureSelectorBuilder_ == null) { featureSelector_ = builderForValue.build(); - onChanged(); } else { featureSelectorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4186,19 +4206,19 @@ public Builder setFeatureSelector( */ public Builder mergeFeatureSelector(com.google.cloud.aiplatform.v1.FeatureSelector value) { if (featureSelectorBuilder_ == null) { - if (featureSelector_ != null) { - featureSelector_ = - com.google.cloud.aiplatform.v1.FeatureSelector.newBuilder(featureSelector_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && featureSelector_ != null + && featureSelector_ + != com.google.cloud.aiplatform.v1.FeatureSelector.getDefaultInstance()) { + getFeatureSelectorBuilder().mergeFrom(value); } else { featureSelector_ = value; } - onChanged(); } else { featureSelectorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4213,14 +4233,13 @@ public Builder mergeFeatureSelector(com.google.cloud.aiplatform.v1.FeatureSelect * */ public Builder clearFeatureSelector() { - if (featureSelectorBuilder_ == null) { - featureSelector_ = null; - onChanged(); - } else { - featureSelector_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + featureSelector_ = null; + if (featureSelectorBuilder_ != null) { + featureSelectorBuilder_.dispose(); featureSelectorBuilder_ = null; } - + onChanged(); return this; } /** @@ -4235,7 +4254,7 @@ public Builder clearFeatureSelector() { * */ public com.google.cloud.aiplatform.v1.FeatureSelector.Builder getFeatureSelectorBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getFeatureSelectorFieldBuilder().getBuilder(); } @@ -4291,11 +4310,11 @@ public com.google.cloud.aiplatform.v1.FeatureSelectorOrBuilder getFeatureSelecto java.util.Collections.emptyList(); private void ensureSettingsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { settings_ = new java.util.ArrayList( settings_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000020; } } @@ -4517,7 +4536,7 @@ public Builder addAllSettings( public Builder clearSettings() { if (settingsBuilder_ == null) { settings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { settingsBuilder_.clear(); @@ -4645,7 +4664,7 @@ public com.google.cloud.aiplatform.v1.DestinationFeatureSetting.Builder addSetti com.google.cloud.aiplatform.v1.DestinationFeatureSetting, com.google.cloud.aiplatform.v1.DestinationFeatureSetting.Builder, com.google.cloud.aiplatform.v1.DestinationFeatureSettingOrBuilder>( - settings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + settings_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); settings_ = null; } return settingsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelOperationMetadata.java index 144889d104f8..a99b26d5deaa 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelOperationMetadata.java @@ -180,7 +180,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ARTIFACT_OUTPUT_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object artifactOutputUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object artifactOutputUri_ = ""; /** * * @@ -233,7 +235,9 @@ public com.google.protobuf.ByteString getArtifactOutputUriBytes() { } public static final int IMAGE_OUTPUT_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object imageOutputUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object imageOutputUri_ = ""; /** * * @@ -497,10 +501,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; artifactOutputUri_ = ""; - imageOutputUri_ = ""; - return this; } @@ -531,12 +534,24 @@ public com.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo bu public com.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo buildPartial() { com.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo result = new com.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo(this); - result.artifactOutputUri_ = artifactOutputUri_; - result.imageOutputUri_ = imageOutputUri_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.artifactOutputUri_ = artifactOutputUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.imageOutputUri_ = imageOutputUri_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -591,10 +606,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getArtifactOutputUri().isEmpty()) { artifactOutputUri_ = other.artifactOutputUri_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getImageOutputUri().isEmpty()) { imageOutputUri_ = other.imageOutputUri_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -626,13 +643,13 @@ public Builder mergeFrom( case 18: { artifactOutputUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 18 case 26: { imageOutputUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 26 default: @@ -652,6 +669,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object artifactOutputUri_ = ""; /** * @@ -719,8 +738,8 @@ public Builder setArtifactOutputUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - artifactOutputUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -738,8 +757,8 @@ public Builder setArtifactOutputUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearArtifactOutputUri() { - artifactOutputUri_ = getDefaultInstance().getArtifactOutputUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -762,8 +781,8 @@ public Builder setArtifactOutputUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - artifactOutputUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -832,8 +851,8 @@ public Builder setImageOutputUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - imageOutputUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -850,8 +869,8 @@ public Builder setImageOutputUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearImageOutputUri() { - imageOutputUri_ = getDefaultInstance().getImageOutputUri(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -873,8 +892,8 @@ public Builder setImageOutputUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - imageOutputUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -993,7 +1012,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } public static final int OUTPUT_INFO_FIELD_NUMBER = 2; @@ -1052,7 +1073,10 @@ public com.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo ge @java.lang.Override public com.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfoOrBuilder getOutputInfoOrBuilder() { - return getOutputInfo(); + return outputInfo_ == null + ? com.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + .getDefaultInstance() + : outputInfo_; } private byte memoizedIsInitialized = -1; @@ -1274,16 +1298,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - if (outputInfoBuilder_ == null) { - outputInfo_ = null; - } else { - outputInfo_ = null; + outputInfo_ = null; + if (outputInfoBuilder_ != null) { + outputInfoBuilder_.dispose(); outputInfoBuilder_ = null; } return this; @@ -1313,20 +1336,24 @@ public com.google.cloud.aiplatform.v1.ExportModelOperationMetadata build() { public com.google.cloud.aiplatform.v1.ExportModelOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.ExportModelOperationMetadata result = new com.google.cloud.aiplatform.v1.ExportModelOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); - } - if (outputInfoBuilder_ == null) { - result.outputInfo_ = outputInfo_; - } else { - result.outputInfo_ = outputInfoBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ExportModelOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputInfo_ = outputInfoBuilder_ == null ? outputInfo_ : outputInfoBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1408,13 +1435,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getOutputInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1434,6 +1461,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -1452,7 +1481,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1490,11 +1519,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1510,11 +1539,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1529,19 +1558,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1554,14 +1583,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -1575,7 +1603,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } @@ -1645,7 +1673,7 @@ public Builder clearGenericMetadata() { * @return Whether the outputInfo field is set. */ public boolean hasOutputInfo() { - return outputInfoBuilder_ != null || outputInfo_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1690,11 +1718,11 @@ public Builder setOutputInfo( throw new NullPointerException(); } outputInfo_ = value; - onChanged(); } else { outputInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1714,11 +1742,11 @@ public Builder setOutputInfo( builderForValue) { if (outputInfoBuilder_ == null) { outputInfo_ = builderForValue.build(); - onChanged(); } else { outputInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1736,20 +1764,20 @@ public Builder setOutputInfo( public Builder mergeOutputInfo( com.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo value) { if (outputInfoBuilder_ == null) { - if (outputInfo_ != null) { - outputInfo_ = - com.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.newBuilder( - outputInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && outputInfo_ != null + && outputInfo_ + != com.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + .getDefaultInstance()) { + getOutputInfoBuilder().mergeFrom(value); } else { outputInfo_ = value; } - onChanged(); } else { outputInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1765,14 +1793,13 @@ public Builder mergeOutputInfo( * */ public Builder clearOutputInfo() { - if (outputInfoBuilder_ == null) { - outputInfo_ = null; - onChanged(); - } else { - outputInfo_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + outputInfo_ = null; + if (outputInfoBuilder_ != null) { + outputInfoBuilder_.dispose(); outputInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -1789,7 +1816,7 @@ public Builder clearOutputInfo() { */ public com.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.Builder getOutputInfoBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getOutputInfoFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelRequest.java index 5633ddae0c4f..c49618c57fc0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelRequest.java @@ -257,7 +257,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int EXPORT_FORMAT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object exportFormatId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object exportFormatId_ = ""; /** * * @@ -380,7 +382,9 @@ public com.google.cloud.aiplatform.v1.GcsDestination getArtifactDestination() { @java.lang.Override public com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder getArtifactDestinationOrBuilder() { - return getArtifactDestination(); + return artifactDestination_ == null + ? com.google.cloud.aiplatform.v1.GcsDestination.getDefaultInstance() + : artifactDestination_; } public static final int IMAGE_DESTINATION_FIELD_NUMBER = 4; @@ -438,7 +442,9 @@ public com.google.cloud.aiplatform.v1.ContainerRegistryDestination getImageDesti @java.lang.Override public com.google.cloud.aiplatform.v1.ContainerRegistryDestinationOrBuilder getImageDestinationOrBuilder() { - return getImageDestination(); + return imageDestination_ == null + ? com.google.cloud.aiplatform.v1.ContainerRegistryDestination.getDefaultInstance() + : imageDestination_; } private byte memoizedIsInitialized = -1; @@ -670,18 +676,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; exportFormatId_ = ""; - - if (artifactDestinationBuilder_ == null) { - artifactDestination_ = null; - } else { - artifactDestination_ = null; + artifactDestination_ = null; + if (artifactDestinationBuilder_ != null) { + artifactDestinationBuilder_.dispose(); artifactDestinationBuilder_ = null; } - if (imageDestinationBuilder_ == null) { - imageDestination_ = null; - } else { - imageDestination_ = null; + imageDestination_ = null; + if (imageDestinationBuilder_ != null) { + imageDestinationBuilder_.dispose(); imageDestinationBuilder_ = null; } return this; @@ -712,21 +716,33 @@ public com.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig build() { public com.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig buildPartial() { com.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig result = new com.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig(this); - result.exportFormatId_ = exportFormatId_; - if (artifactDestinationBuilder_ == null) { - result.artifactDestination_ = artifactDestination_; - } else { - result.artifactDestination_ = artifactDestinationBuilder_.build(); - } - if (imageDestinationBuilder_ == null) { - result.imageDestination_ = imageDestination_; - } else { - result.imageDestination_ = imageDestinationBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.exportFormatId_ = exportFormatId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.artifactDestination_ = + artifactDestinationBuilder_ == null + ? artifactDestination_ + : artifactDestinationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.imageDestination_ = + imageDestinationBuilder_ == null + ? imageDestination_ + : imageDestinationBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -779,6 +795,7 @@ public Builder mergeFrom( return this; if (!other.getExportFormatId().isEmpty()) { exportFormatId_ = other.exportFormatId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasArtifactDestination()) { @@ -816,21 +833,21 @@ public Builder mergeFrom( case 10: { exportFormatId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: { input.readMessage( getArtifactDestinationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 26 case 34: { input.readMessage( getImageDestinationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 34 default: @@ -850,6 +867,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object exportFormatId_ = ""; /** * @@ -923,8 +942,8 @@ public Builder setExportFormatId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - exportFormatId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -944,8 +963,8 @@ public Builder setExportFormatId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearExportFormatId() { - exportFormatId_ = getDefaultInstance().getExportFormatId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -970,8 +989,8 @@ public Builder setExportFormatIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - exportFormatId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1001,7 +1020,7 @@ public Builder setExportFormatIdBytes(com.google.protobuf.ByteString value) { * @return Whether the artifactDestination field is set. */ public boolean hasArtifactDestination() { - return artifactDestinationBuilder_ != null || artifactDestination_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1052,11 +1071,11 @@ public Builder setArtifactDestination(com.google.cloud.aiplatform.v1.GcsDestinat throw new NullPointerException(); } artifactDestination_ = value; - onChanged(); } else { artifactDestinationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1079,11 +1098,11 @@ public Builder setArtifactDestination( com.google.cloud.aiplatform.v1.GcsDestination.Builder builderForValue) { if (artifactDestinationBuilder_ == null) { artifactDestination_ = builderForValue.build(); - onChanged(); } else { artifactDestinationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1104,19 +1123,19 @@ public Builder setArtifactDestination( */ public Builder mergeArtifactDestination(com.google.cloud.aiplatform.v1.GcsDestination value) { if (artifactDestinationBuilder_ == null) { - if (artifactDestination_ != null) { - artifactDestination_ = - com.google.cloud.aiplatform.v1.GcsDestination.newBuilder(artifactDestination_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && artifactDestination_ != null + && artifactDestination_ + != com.google.cloud.aiplatform.v1.GcsDestination.getDefaultInstance()) { + getArtifactDestinationBuilder().mergeFrom(value); } else { artifactDestination_ = value; } - onChanged(); } else { artifactDestinationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1136,14 +1155,13 @@ public Builder mergeArtifactDestination(com.google.cloud.aiplatform.v1.GcsDestin * .google.cloud.aiplatform.v1.GcsDestination artifact_destination = 3; */ public Builder clearArtifactDestination() { - if (artifactDestinationBuilder_ == null) { - artifactDestination_ = null; - onChanged(); - } else { - artifactDestination_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + artifactDestination_ = null; + if (artifactDestinationBuilder_ != null) { + artifactDestinationBuilder_.dispose(); artifactDestinationBuilder_ = null; } - + onChanged(); return this; } /** @@ -1163,7 +1181,7 @@ public Builder clearArtifactDestination() { * .google.cloud.aiplatform.v1.GcsDestination artifact_destination = 3; */ public com.google.cloud.aiplatform.v1.GcsDestination.Builder getArtifactDestinationBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getArtifactDestinationFieldBuilder().getBuilder(); } @@ -1248,7 +1266,7 @@ public com.google.cloud.aiplatform.v1.GcsDestination.Builder getArtifactDestinat * @return Whether the imageDestination field is set. */ public boolean hasImageDestination() { - return imageDestinationBuilder_ != null || imageDestination_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1294,11 +1312,11 @@ public Builder setImageDestination( throw new NullPointerException(); } imageDestination_ = value; - onChanged(); } else { imageDestinationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1318,11 +1336,11 @@ public Builder setImageDestination( com.google.cloud.aiplatform.v1.ContainerRegistryDestination.Builder builderForValue) { if (imageDestinationBuilder_ == null) { imageDestination_ = builderForValue.build(); - onChanged(); } else { imageDestinationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1341,20 +1359,20 @@ public Builder setImageDestination( public Builder mergeImageDestination( com.google.cloud.aiplatform.v1.ContainerRegistryDestination value) { if (imageDestinationBuilder_ == null) { - if (imageDestination_ != null) { - imageDestination_ = - com.google.cloud.aiplatform.v1.ContainerRegistryDestination.newBuilder( - imageDestination_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && imageDestination_ != null + && imageDestination_ + != com.google.cloud.aiplatform.v1.ContainerRegistryDestination + .getDefaultInstance()) { + getImageDestinationBuilder().mergeFrom(value); } else { imageDestination_ = value; } - onChanged(); } else { imageDestinationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1371,14 +1389,13 @@ public Builder mergeImageDestination( * */ public Builder clearImageDestination() { - if (imageDestinationBuilder_ == null) { - imageDestination_ = null; - onChanged(); - } else { - imageDestination_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + imageDestination_ = null; + if (imageDestinationBuilder_ != null) { + imageDestinationBuilder_.dispose(); imageDestinationBuilder_ = null; } - + onChanged(); return this; } /** @@ -1396,7 +1413,7 @@ public Builder clearImageDestination() { */ public com.google.cloud.aiplatform.v1.ContainerRegistryDestination.Builder getImageDestinationBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getImageDestinationFieldBuilder().getBuilder(); } @@ -1521,7 +1538,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -1629,7 +1648,9 @@ public com.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig getOutputC @java.lang.Override public com.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfigOrBuilder getOutputConfigOrBuilder() { - return getOutputConfig(); + return outputConfig_ == null + ? com.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.getDefaultInstance() + : outputConfig_; } private byte memoizedIsInitialized = -1; @@ -1844,12 +1865,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - - if (outputConfigBuilder_ == null) { - outputConfig_ = null; - } else { - outputConfig_ = null; + outputConfig_ = null; + if (outputConfigBuilder_ != null) { + outputConfigBuilder_.dispose(); outputConfigBuilder_ = null; } return this; @@ -1879,16 +1899,24 @@ public com.google.cloud.aiplatform.v1.ExportModelRequest build() { public com.google.cloud.aiplatform.v1.ExportModelRequest buildPartial() { com.google.cloud.aiplatform.v1.ExportModelRequest result = new com.google.cloud.aiplatform.v1.ExportModelRequest(this); - result.name_ = name_; - if (outputConfigBuilder_ == null) { - result.outputConfig_ = outputConfig_; - } else { - result.outputConfig_ = outputConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ExportModelRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputConfig_ = + outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1937,6 +1965,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExportModelRequest other return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasOutputConfig()) { @@ -1971,13 +2000,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1997,6 +2026,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -2070,8 +2101,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2091,8 +2122,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2117,8 +2148,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2143,7 +2174,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { - return outputConfigBuilder_ != null || outputConfig_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -2185,11 +2216,11 @@ public Builder setOutputConfig( throw new NullPointerException(); } outputConfig_ = value; - onChanged(); } else { outputConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2207,11 +2238,11 @@ public Builder setOutputConfig( com.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.Builder builderForValue) { if (outputConfigBuilder_ == null) { outputConfig_ = builderForValue.build(); - onChanged(); } else { outputConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2228,20 +2259,20 @@ public Builder setOutputConfig( public Builder mergeOutputConfig( com.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig value) { if (outputConfigBuilder_ == null) { - if (outputConfig_ != null) { - outputConfig_ = - com.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.newBuilder( - outputConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + .getDefaultInstance()) { + getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; } - onChanged(); } else { outputConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2256,14 +2287,13 @@ public Builder mergeOutputConfig( * */ public Builder clearOutputConfig() { - if (outputConfigBuilder_ == null) { - outputConfig_ = null; - onChanged(); - } else { - outputConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + outputConfig_ = null; + if (outputConfigBuilder_ != null) { + outputConfigBuilder_.dispose(); outputConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -2279,7 +2309,7 @@ public Builder clearOutputConfig() { */ public com.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.Builder getOutputConfigBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportTensorboardTimeSeriesDataRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportTensorboardTimeSeriesDataRequest.java index cba0c084b49d..69ed988c2e97 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportTensorboardTimeSeriesDataRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportTensorboardTimeSeriesDataRequest.java @@ -74,7 +74,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_TIME_SERIES_FIELD_NUMBER = 1; - private volatile java.lang.Object tensorboardTimeSeries_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboardTimeSeries_ = ""; /** * * @@ -131,7 +133,9 @@ public com.google.protobuf.ByteString getTensorboardTimeSeriesBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -180,7 +184,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -200,7 +204,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -259,7 +265,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -548,16 +556,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; tensorboardTimeSeries_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - orderBy_ = ""; - return this; } @@ -587,15 +591,33 @@ public com.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest bui public com.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest buildPartial() { com.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest result = new com.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest(this); - result.tensorboardTimeSeries_ = tensorboardTimeSeries_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.orderBy_ = orderBy_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tensorboardTimeSeries_ = tensorboardTimeSeries_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -647,10 +669,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getTensorboardTimeSeries().isEmpty()) { tensorboardTimeSeries_ = other.tensorboardTimeSeries_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -658,10 +682,12 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -693,31 +719,31 @@ public Builder mergeFrom( case 10: { tensorboardTimeSeries_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -737,6 +763,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object tensorboardTimeSeries_ = ""; /** * @@ -810,8 +838,8 @@ public Builder setTensorboardTimeSeries(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboardTimeSeries_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -831,8 +859,8 @@ public Builder setTensorboardTimeSeries(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboardTimeSeries() { - tensorboardTimeSeries_ = getDefaultInstance().getTensorboardTimeSeries(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -857,8 +885,8 @@ public Builder setTensorboardTimeSeriesBytes(com.google.protobuf.ByteString valu throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboardTimeSeries_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -924,8 +952,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -941,8 +969,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -963,8 +991,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1004,6 +1032,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1021,7 +1050,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1103,8 +1132,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1125,8 +1154,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1152,8 +1181,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1225,8 +1254,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1244,8 +1273,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1268,8 +1297,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportTensorboardTimeSeriesDataResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportTensorboardTimeSeriesDataResponse.java index 5c6e664bb882..725e999f2187 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportTensorboardTimeSeriesDataResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportTensorboardTimeSeriesDataResponse.java @@ -72,6 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TIME_SERIES_DATA_POINTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List timeSeriesDataPoints_; /** * @@ -148,7 +150,9 @@ public com.google.cloud.aiplatform.v1.TimeSeriesDataPoint getTimeSeriesDataPoint } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -413,6 +417,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (timeSeriesDataPointsBuilder_ == null) { timeSeriesDataPoints_ = java.util.Collections.emptyList(); } else { @@ -421,7 +426,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -452,7 +456,16 @@ public com.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse bu public com.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse buildPartial() { com.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse result = new com.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse result) { if (timeSeriesDataPointsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { timeSeriesDataPoints_ = java.util.Collections.unmodifiableList(timeSeriesDataPoints_); @@ -462,9 +475,14 @@ public com.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse bu } else { result.timeSeriesDataPoints_ = timeSeriesDataPointsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -545,6 +563,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -590,7 +609,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1061,8 +1080,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1080,8 +1099,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1104,8 +1123,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Feature.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Feature.java index 8efcf28d006c..f705b5e6ea25 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Feature.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Feature.java @@ -687,7 +687,7 @@ private Objective(int value) { } public static final int OBJECTIVE_FIELD_NUMBER = 1; - private int objective_; + private int objective_ = 0; /** * * @@ -720,9 +720,8 @@ public int getObjectiveValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.Objective getObjective() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.Objective result = - com.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.Objective.valueOf( + com.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.Objective.forNumber( objective_); return result == null ? com.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.Objective.UNRECOGNIZED @@ -781,7 +780,9 @@ public com.google.cloud.aiplatform.v1.FeatureStatsAnomaly getFeatureStatsAnomaly @java.lang.Override public com.google.cloud.aiplatform.v1.FeatureStatsAnomalyOrBuilder getFeatureStatsAnomalyOrBuilder() { - return getFeatureStatsAnomaly(); + return featureStatsAnomaly_ == null + ? com.google.cloud.aiplatform.v1.FeatureStatsAnomaly.getDefaultInstance() + : featureStatsAnomaly_; } private byte memoizedIsInitialized = -1; @@ -1010,12 +1011,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; objective_ = 0; - - if (featureStatsAnomalyBuilder_ == null) { - featureStatsAnomaly_ = null; - } else { - featureStatsAnomaly_ = null; + featureStatsAnomaly_ = null; + if (featureStatsAnomalyBuilder_ != null) { + featureStatsAnomalyBuilder_.dispose(); featureStatsAnomalyBuilder_ = null; } return this; @@ -1046,16 +1046,27 @@ public com.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly build() { public com.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly buildPartial() { com.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly result = new com.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly(this); - result.objective_ = objective_; - if (featureStatsAnomalyBuilder_ == null) { - result.featureStatsAnomaly_ = featureStatsAnomaly_; - } else { - result.featureStatsAnomaly_ = featureStatsAnomalyBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.objective_ = objective_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.featureStatsAnomaly_ = + featureStatsAnomalyBuilder_ == null + ? featureStatsAnomaly_ + : featureStatsAnomalyBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1141,14 +1152,14 @@ public Builder mergeFrom( case 8: { objective_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getFeatureStatsAnomalyFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1168,6 +1179,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int objective_ = 0; /** * @@ -1201,8 +1214,8 @@ public int getObjectiveValue() { * @return This builder for chaining. */ public Builder setObjectiveValue(int value) { - objective_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1222,9 +1235,8 @@ public Builder setObjectiveValue(int value) { @java.lang.Override public com.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.Objective getObjective() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.Objective result = - com.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.Objective.valueOf( + com.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.Objective.forNumber( objective_); return result == null ? com.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.Objective.UNRECOGNIZED @@ -1249,7 +1261,7 @@ public Builder setObjective( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; objective_ = value.getNumber(); onChanged(); return this; @@ -1268,7 +1280,7 @@ public Builder setObjective( * @return This builder for chaining. */ public Builder clearObjective() { - + bitField0_ = (bitField0_ & ~0x00000001); objective_ = 0; onChanged(); return this; @@ -1294,7 +1306,7 @@ public Builder clearObjective() { * @return Whether the featureStatsAnomaly field is set. */ public boolean hasFeatureStatsAnomaly() { - return featureStatsAnomalyBuilder_ != null || featureStatsAnomaly_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1336,11 +1348,11 @@ public Builder setFeatureStatsAnomaly( throw new NullPointerException(); } featureStatsAnomaly_ = value; - onChanged(); } else { featureStatsAnomalyBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1358,11 +1370,11 @@ public Builder setFeatureStatsAnomaly( com.google.cloud.aiplatform.v1.FeatureStatsAnomaly.Builder builderForValue) { if (featureStatsAnomalyBuilder_ == null) { featureStatsAnomaly_ = builderForValue.build(); - onChanged(); } else { featureStatsAnomalyBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1379,19 +1391,19 @@ public Builder setFeatureStatsAnomaly( public Builder mergeFeatureStatsAnomaly( com.google.cloud.aiplatform.v1.FeatureStatsAnomaly value) { if (featureStatsAnomalyBuilder_ == null) { - if (featureStatsAnomaly_ != null) { - featureStatsAnomaly_ = - com.google.cloud.aiplatform.v1.FeatureStatsAnomaly.newBuilder(featureStatsAnomaly_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && featureStatsAnomaly_ != null + && featureStatsAnomaly_ + != com.google.cloud.aiplatform.v1.FeatureStatsAnomaly.getDefaultInstance()) { + getFeatureStatsAnomalyBuilder().mergeFrom(value); } else { featureStatsAnomaly_ = value; } - onChanged(); } else { featureStatsAnomalyBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1406,14 +1418,13 @@ public Builder mergeFeatureStatsAnomaly( * */ public Builder clearFeatureStatsAnomaly() { - if (featureStatsAnomalyBuilder_ == null) { - featureStatsAnomaly_ = null; - onChanged(); - } else { - featureStatsAnomaly_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + featureStatsAnomaly_ = null; + if (featureStatsAnomalyBuilder_ != null) { + featureStatsAnomalyBuilder_.dispose(); featureStatsAnomalyBuilder_ = null; } - + onChanged(); return this; } /** @@ -1429,7 +1440,7 @@ public Builder clearFeatureStatsAnomaly() { */ public com.google.cloud.aiplatform.v1.FeatureStatsAnomaly.Builder getFeatureStatsAnomalyBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getFeatureStatsAnomalyFieldBuilder().getBuilder(); } @@ -1550,7 +1561,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -1611,7 +1624,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -1660,7 +1675,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int VALUE_TYPE_FIELD_NUMBER = 3; - private int valueType_; + private int valueType_ = 0; /** * * @@ -1693,9 +1708,8 @@ public int getValueTypeValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.Feature.ValueType getValueType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Feature.ValueType result = - com.google.cloud.aiplatform.v1.Feature.ValueType.valueOf(valueType_); + com.google.cloud.aiplatform.v1.Feature.ValueType.forNumber(valueType_); return result == null ? com.google.cloud.aiplatform.v1.Feature.ValueType.UNRECOGNIZED : result; } @@ -1745,7 +1759,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 5; @@ -1794,7 +1808,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int LABELS_FIELD_NUMBER = 6; @@ -1810,6 +1824,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -1891,7 +1906,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1928,7 +1946,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int ETAG_FIELD_NUMBER = 7; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -1979,7 +1999,7 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int DISABLE_MONITORING_FIELD_NUMBER = 12; - private boolean disableMonitoring_; + private boolean disableMonitoring_ = false; /** * * @@ -2002,6 +2022,8 @@ public boolean getDisableMonitoring() { } public static final int MONITORING_STATS_ANOMALIES_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") private java.util.List monitoringStatsAnomalies_; /** @@ -2405,36 +2427,30 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - description_ = ""; - valueType_ = 0; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); etag_ = ""; - disableMonitoring_ = false; - if (monitoringStatsAnomaliesBuilder_ == null) { monitoringStatsAnomalies_ = java.util.Collections.emptyList(); } else { monitoringStatsAnomalies_ = null; monitoringStatsAnomaliesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000100); return this; } @@ -2462,36 +2478,54 @@ public com.google.cloud.aiplatform.v1.Feature build() { public com.google.cloud.aiplatform.v1.Feature buildPartial() { com.google.cloud.aiplatform.v1.Feature result = new com.google.cloud.aiplatform.v1.Feature(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.description_ = description_; - result.valueType_ = valueType_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.etag_ = etag_; - result.disableMonitoring_ = disableMonitoring_; + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.Feature result) { if (monitoringStatsAnomaliesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { monitoringStatsAnomalies_ = java.util.Collections.unmodifiableList(monitoringStatsAnomalies_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000100); } result.monitoringStatsAnomalies_ = monitoringStatsAnomalies_; } else { result.monitoringStatsAnomalies_ = monitoringStatsAnomaliesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Feature result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.valueType_ = valueType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.disableMonitoring_ = disableMonitoring_; + } } @java.lang.Override @@ -2541,10 +2575,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Feature other) { if (other == com.google.cloud.aiplatform.v1.Feature.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000002; onChanged(); } if (other.valueType_ != 0) { @@ -2557,8 +2593,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Feature other) { mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000020; if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000040; onChanged(); } if (other.getDisableMonitoring() != false) { @@ -2568,7 +2606,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Feature other) { if (!other.monitoringStatsAnomalies_.isEmpty()) { if (monitoringStatsAnomalies_.isEmpty()) { monitoringStatsAnomalies_ = other.monitoringStatsAnomalies_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureMonitoringStatsAnomaliesIsMutable(); monitoringStatsAnomalies_.addAll(other.monitoringStatsAnomalies_); @@ -2581,7 +2619,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Feature other) { monitoringStatsAnomaliesBuilder_.dispose(); monitoringStatsAnomaliesBuilder_ = null; monitoringStatsAnomalies_ = other.monitoringStatsAnomalies_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000100); monitoringStatsAnomaliesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMonitoringStatsAnomaliesFieldBuilder() @@ -2620,31 +2658,31 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { valueType_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: @@ -2656,12 +2694,13 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; break; } // case 50 case 58: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 58 case 90: @@ -2681,7 +2720,7 @@ public Builder mergeFrom( case 96: { disableMonitoring_ = input.readBool(); - + bitField0_ |= 0x00000080; break; } // case 96 default: @@ -2782,8 +2821,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2805,8 +2844,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2833,8 +2872,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2900,8 +2939,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2917,8 +2956,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2939,8 +2978,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2978,8 +3017,8 @@ public int getValueTypeValue() { * @return This builder for chaining. */ public Builder setValueTypeValue(int value) { - valueType_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2998,9 +3037,8 @@ public Builder setValueTypeValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.Feature.ValueType getValueType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Feature.ValueType result = - com.google.cloud.aiplatform.v1.Feature.ValueType.valueOf(valueType_); + com.google.cloud.aiplatform.v1.Feature.ValueType.forNumber(valueType_); return result == null ? com.google.cloud.aiplatform.v1.Feature.ValueType.UNRECOGNIZED : result; @@ -3023,7 +3061,7 @@ public Builder setValueType(com.google.cloud.aiplatform.v1.Feature.ValueType val if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; valueType_ = value.getNumber(); onChanged(); return this; @@ -3042,7 +3080,7 @@ public Builder setValueType(com.google.cloud.aiplatform.v1.Feature.ValueType val * @return This builder for chaining. */ public Builder clearValueType() { - + bitField0_ = (bitField0_ & ~0x00000004); valueType_ = 0; onChanged(); return this; @@ -3068,7 +3106,7 @@ public Builder clearValueType() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -3109,11 +3147,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3130,11 +3168,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3150,17 +3188,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3175,14 +3214,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3197,7 +3235,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -3269,7 +3307,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -3310,11 +3348,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3331,11 +3369,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3351,17 +3389,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3376,14 +3415,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3398,7 +3436,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -3461,14 +3499,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000020; + onChanged(); return labels_; } @@ -3544,8 +3582,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3582,6 +3622,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -3612,6 +3653,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000020; return internalGetMutableLabels().getMutableMap(); } /** @@ -3638,8 +3680,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000020; return this; } /** @@ -3661,6 +3703,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000020; return this; } @@ -3728,8 +3771,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3746,8 +3789,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -3769,8 +3812,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3816,6 +3859,7 @@ public boolean getDisableMonitoring() { public Builder setDisableMonitoring(boolean value) { disableMonitoring_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3836,7 +3880,7 @@ public Builder setDisableMonitoring(boolean value) { * @return This builder for chaining. */ public Builder clearDisableMonitoring() { - + bitField0_ = (bitField0_ & ~0x00000080); disableMonitoring_ = false; onChanged(); return this; @@ -3846,11 +3890,11 @@ public Builder clearDisableMonitoring() { monitoringStatsAnomalies_ = java.util.Collections.emptyList(); private void ensureMonitoringStatsAnomaliesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { monitoringStatsAnomalies_ = new java.util.ArrayList( monitoringStatsAnomalies_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000100; } } @@ -4107,7 +4151,7 @@ public Builder addAllMonitoringStatsAnomalies( public Builder clearMonitoringStatsAnomalies() { if (monitoringStatsAnomaliesBuilder_ == null) { monitoringStatsAnomalies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { monitoringStatsAnomaliesBuilder_.clear(); @@ -4259,7 +4303,7 @@ public Builder removeMonitoringStatsAnomalies(int index) { com.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.Builder, com.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomalyOrBuilder>( monitoringStatsAnomalies_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); monitoringStatsAnomalies_ = null; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureNoiseSigma.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureNoiseSigma.java index 31ed7fce2f47..f7f8a3cc88e5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureNoiseSigma.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureNoiseSigma.java @@ -171,7 +171,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -226,7 +228,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int SIGMA_FIELD_NUMBER = 2; - private float sigma_; + private float sigma_ = 0F; /** * * @@ -459,10 +461,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - sigma_ = 0F; - return this; } @@ -493,12 +494,24 @@ public com.google.cloud.aiplatform.v1.FeatureNoiseSigma.NoiseSigmaForFeature bui public com.google.cloud.aiplatform.v1.FeatureNoiseSigma.NoiseSigmaForFeature buildPartial() { com.google.cloud.aiplatform.v1.FeatureNoiseSigma.NoiseSigmaForFeature result = new com.google.cloud.aiplatform.v1.FeatureNoiseSigma.NoiseSigmaForFeature(this); - result.name_ = name_; - result.sigma_ = sigma_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.FeatureNoiseSigma.NoiseSigmaForFeature result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sigma_ = sigma_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -553,6 +566,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getSigma() != 0F) { @@ -587,13 +601,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 21: { sigma_ = input.readFloat(); - + bitField0_ |= 0x00000002; break; } // case 21 default: @@ -613,6 +627,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -683,8 +699,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -703,8 +719,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -728,8 +744,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -771,6 +787,7 @@ public float getSigma() { public Builder setSigma(float value) { sigma_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -789,7 +806,7 @@ public Builder setSigma(float value) { * @return This builder for chaining. */ public Builder clearSigma() { - + bitField0_ = (bitField0_ & ~0x00000002); sigma_ = 0F; onChanged(); return this; @@ -864,6 +881,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int NOISE_SIGMA_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List noiseSigma_; /** @@ -1148,6 +1167,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (noiseSigmaBuilder_ == null) { noiseSigma_ = java.util.Collections.emptyList(); } else { @@ -1182,7 +1202,16 @@ public com.google.cloud.aiplatform.v1.FeatureNoiseSigma build() { public com.google.cloud.aiplatform.v1.FeatureNoiseSigma buildPartial() { com.google.cloud.aiplatform.v1.FeatureNoiseSigma result = new com.google.cloud.aiplatform.v1.FeatureNoiseSigma(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.FeatureNoiseSigma result) { if (noiseSigmaBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { noiseSigma_ = java.util.Collections.unmodifiableList(noiseSigma_); @@ -1192,8 +1221,10 @@ public com.google.cloud.aiplatform.v1.FeatureNoiseSigma buildPartial() { } else { result.noiseSigma_ = noiseSigmaBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.FeatureNoiseSigma result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOrBuilder.java index 58dbfc137396..1d7eadb12605 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOrBuilder.java @@ -264,7 +264,6 @@ public interface FeatureOrBuilder * * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureSelector.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureSelector.java index 5ba53e1fdb12..3aff422d3870 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureSelector.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureSelector.java @@ -116,7 +116,9 @@ public com.google.cloud.aiplatform.v1.IdMatcher getIdMatcher() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.IdMatcherOrBuilder getIdMatcherOrBuilder() { - return getIdMatcher(); + return idMatcher_ == null + ? com.google.cloud.aiplatform.v1.IdMatcher.getDefaultInstance() + : idMatcher_; } private byte memoizedIsInitialized = -1; @@ -321,10 +323,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (idMatcherBuilder_ == null) { - idMatcher_ = null; - } else { - idMatcher_ = null; + bitField0_ = 0; + idMatcher_ = null; + if (idMatcherBuilder_ != null) { + idMatcherBuilder_.dispose(); idMatcherBuilder_ = null; } return this; @@ -354,15 +356,20 @@ public com.google.cloud.aiplatform.v1.FeatureSelector build() { public com.google.cloud.aiplatform.v1.FeatureSelector buildPartial() { com.google.cloud.aiplatform.v1.FeatureSelector result = new com.google.cloud.aiplatform.v1.FeatureSelector(this); - if (idMatcherBuilder_ == null) { - result.idMatcher_ = idMatcher_; - } else { - result.idMatcher_ = idMatcherBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.FeatureSelector result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.idMatcher_ = idMatcherBuilder_ == null ? idMatcher_ : idMatcherBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -440,7 +447,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getIdMatcherFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -460,6 +467,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.IdMatcher idMatcher_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.IdMatcher, @@ -480,7 +489,7 @@ public Builder mergeFrom( * @return Whether the idMatcher field is set. */ public boolean hasIdMatcher() { - return idMatcherBuilder_ != null || idMatcher_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -521,11 +530,11 @@ public Builder setIdMatcher(com.google.cloud.aiplatform.v1.IdMatcher value) { throw new NullPointerException(); } idMatcher_ = value; - onChanged(); } else { idMatcherBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -542,11 +551,11 @@ public Builder setIdMatcher(com.google.cloud.aiplatform.v1.IdMatcher value) { public Builder setIdMatcher(com.google.cloud.aiplatform.v1.IdMatcher.Builder builderForValue) { if (idMatcherBuilder_ == null) { idMatcher_ = builderForValue.build(); - onChanged(); } else { idMatcherBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -562,19 +571,18 @@ public Builder setIdMatcher(com.google.cloud.aiplatform.v1.IdMatcher.Builder bui */ public Builder mergeIdMatcher(com.google.cloud.aiplatform.v1.IdMatcher value) { if (idMatcherBuilder_ == null) { - if (idMatcher_ != null) { - idMatcher_ = - com.google.cloud.aiplatform.v1.IdMatcher.newBuilder(idMatcher_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && idMatcher_ != null + && idMatcher_ != com.google.cloud.aiplatform.v1.IdMatcher.getDefaultInstance()) { + getIdMatcherBuilder().mergeFrom(value); } else { idMatcher_ = value; } - onChanged(); } else { idMatcherBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -589,14 +597,13 @@ public Builder mergeIdMatcher(com.google.cloud.aiplatform.v1.IdMatcher value) { * */ public Builder clearIdMatcher() { - if (idMatcherBuilder_ == null) { - idMatcher_ = null; - onChanged(); - } else { - idMatcher_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + idMatcher_ = null; + if (idMatcherBuilder_ != null) { + idMatcherBuilder_.dispose(); idMatcherBuilder_ = null; } - + onChanged(); return this; } /** @@ -611,7 +618,7 @@ public Builder clearIdMatcher() { * */ public com.google.cloud.aiplatform.v1.IdMatcher.Builder getIdMatcherBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getIdMatcherFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureStatsAnomaly.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureStatsAnomaly.java index 21b17c2fbe7c..9a30ce681458 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureStatsAnomaly.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureStatsAnomaly.java @@ -77,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SCORE_FIELD_NUMBER = 1; - private double score_; + private double score_ = 0D; /** * * @@ -100,7 +100,9 @@ public double getScore() { } public static final int STATS_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object statsUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object statsUri_ = ""; /** * * @@ -157,7 +159,9 @@ public com.google.protobuf.ByteString getStatsUriBytes() { } public static final int ANOMALY_URI_FIELD_NUMBER = 4; - private volatile java.lang.Object anomalyUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object anomalyUri_ = ""; /** * * @@ -220,7 +224,7 @@ public com.google.protobuf.ByteString getAnomalyUriBytes() { } public static final int DISTRIBUTION_DEVIATION_FIELD_NUMBER = 5; - private double distributionDeviation_; + private double distributionDeviation_ = 0D; /** * * @@ -242,7 +246,7 @@ public double getDistributionDeviation() { } public static final int ANOMALY_DETECTION_THRESHOLD_FIELD_NUMBER = 9; - private double anomalyDetectionThreshold_; + private double anomalyDetectionThreshold_ = 0D; /** * * @@ -313,7 +317,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 8; @@ -368,7 +372,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } private byte memoizedIsInitialized = -1; @@ -652,26 +656,20 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; score_ = 0D; - statsUri_ = ""; - anomalyUri_ = ""; - distributionDeviation_ = 0D; - anomalyDetectionThreshold_ = 0D; - - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } return this; @@ -701,25 +699,38 @@ public com.google.cloud.aiplatform.v1.FeatureStatsAnomaly build() { public com.google.cloud.aiplatform.v1.FeatureStatsAnomaly buildPartial() { com.google.cloud.aiplatform.v1.FeatureStatsAnomaly result = new com.google.cloud.aiplatform.v1.FeatureStatsAnomaly(this); - result.score_ = score_; - result.statsUri_ = statsUri_; - result.anomalyUri_ = anomalyUri_; - result.distributionDeviation_ = distributionDeviation_; - result.anomalyDetectionThreshold_ = anomalyDetectionThreshold_; - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); - } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.FeatureStatsAnomaly result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.score_ = score_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.statsUri_ = statsUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.anomalyUri_ = anomalyUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.distributionDeviation_ = distributionDeviation_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.anomalyDetectionThreshold_ = anomalyDetectionThreshold_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -771,10 +782,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.FeatureStatsAnomaly othe } if (!other.getStatsUri().isEmpty()) { statsUri_ = other.statsUri_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getAnomalyUri().isEmpty()) { anomalyUri_ = other.anomalyUri_; + bitField0_ |= 0x00000004; onChanged(); } if (other.getDistributionDeviation() != 0D) { @@ -818,43 +831,43 @@ public Builder mergeFrom( case 9: { score_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 case 26: { statsUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 26 case 34: { anomalyUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 34 case 41: { distributionDeviation_ = input.readDouble(); - + bitField0_ |= 0x00000008; break; } // case 41 case 58: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 58 case 66: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 66 case 73: { anomalyDetectionThreshold_ = input.readDouble(); - + bitField0_ |= 0x00000010; break; } // case 73 default: @@ -874,6 +887,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private double score_; /** * @@ -915,6 +930,7 @@ public double getScore() { public Builder setScore(double value) { score_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -935,7 +951,7 @@ public Builder setScore(double value) { * @return This builder for chaining. */ public Builder clearScore() { - + bitField0_ = (bitField0_ & ~0x00000001); score_ = 0D; onChanged(); return this; @@ -1014,8 +1030,8 @@ public Builder setStatsUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - statsUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1035,8 +1051,8 @@ public Builder setStatsUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearStatsUri() { - statsUri_ = getDefaultInstance().getStatsUri(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1061,8 +1077,8 @@ public Builder setStatsUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - statsUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1149,8 +1165,8 @@ public Builder setAnomalyUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - anomalyUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1173,8 +1189,8 @@ public Builder setAnomalyUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAnomalyUri() { - anomalyUri_ = getDefaultInstance().getAnomalyUri(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1202,8 +1218,8 @@ public Builder setAnomalyUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - anomalyUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1247,6 +1263,7 @@ public double getDistributionDeviation() { public Builder setDistributionDeviation(double value) { distributionDeviation_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1266,7 +1283,7 @@ public Builder setDistributionDeviation(double value) { * @return This builder for chaining. */ public Builder clearDistributionDeviation() { - + bitField0_ = (bitField0_ & ~0x00000008); distributionDeviation_ = 0D; onChanged(); return this; @@ -1307,6 +1324,7 @@ public double getAnomalyDetectionThreshold() { public Builder setAnomalyDetectionThreshold(double value) { anomalyDetectionThreshold_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1324,7 +1342,7 @@ public Builder setAnomalyDetectionThreshold(double value) { * @return This builder for chaining. */ public Builder clearAnomalyDetectionThreshold() { - + bitField0_ = (bitField0_ & ~0x00000010); anomalyDetectionThreshold_ = 0D; onChanged(); return this; @@ -1351,7 +1369,7 @@ public Builder clearAnomalyDetectionThreshold() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1392,11 +1410,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1414,11 +1432,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1435,17 +1453,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1461,14 +1480,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp start_time = 7; */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1484,7 +1502,7 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 7; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -1557,7 +1575,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -1598,11 +1616,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -1620,11 +1638,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -1641,17 +1659,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -1667,14 +1686,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp end_time = 8; */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1690,7 +1708,7 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 8; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValue.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValue.java index 6c4e5e105682..b0f59e9cbd2e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValue.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValue.java @@ -227,7 +227,9 @@ public com.google.protobuf.Timestamp getGenerateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder() { - return getGenerateTime(); + return generateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : generateTime_; } private byte memoizedIsInitialized = -1; @@ -435,10 +437,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (generateTimeBuilder_ == null) { - generateTime_ = null; - } else { - generateTime_ = null; + bitField0_ = 0; + generateTime_ = null; + if (generateTimeBuilder_ != null) { + generateTimeBuilder_.dispose(); generateTimeBuilder_ = null; } return this; @@ -468,15 +470,21 @@ public com.google.cloud.aiplatform.v1.FeatureValue.Metadata build() { public com.google.cloud.aiplatform.v1.FeatureValue.Metadata buildPartial() { com.google.cloud.aiplatform.v1.FeatureValue.Metadata result = new com.google.cloud.aiplatform.v1.FeatureValue.Metadata(this); - if (generateTimeBuilder_ == null) { - result.generateTime_ = generateTime_; - } else { - result.generateTime_ = generateTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.FeatureValue.Metadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.generateTime_ = + generateTimeBuilder_ == null ? generateTime_ : generateTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -557,7 +565,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenerateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -577,6 +585,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Timestamp generateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -600,7 +610,7 @@ public Builder mergeFrom( * @return Whether the generateTime field is set. */ public boolean hasGenerateTime() { - return generateTimeBuilder_ != null || generateTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -647,11 +657,11 @@ public Builder setGenerateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } generateTime_ = value; - onChanged(); } else { generateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -671,11 +681,11 @@ public Builder setGenerateTime(com.google.protobuf.Timestamp value) { public Builder setGenerateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (generateTimeBuilder_ == null) { generateTime_ = builderForValue.build(); - onChanged(); } else { generateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -694,19 +704,18 @@ public Builder setGenerateTime(com.google.protobuf.Timestamp.Builder builderForV */ public Builder mergeGenerateTime(com.google.protobuf.Timestamp value) { if (generateTimeBuilder_ == null) { - if (generateTime_ != null) { - generateTime_ = - com.google.protobuf.Timestamp.newBuilder(generateTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && generateTime_ != null + && generateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getGenerateTimeBuilder().mergeFrom(value); } else { generateTime_ = value; } - onChanged(); } else { generateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -724,14 +733,13 @@ public Builder mergeGenerateTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp generate_time = 1; */ public Builder clearGenerateTime() { - if (generateTimeBuilder_ == null) { - generateTime_ = null; - onChanged(); - } else { - generateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + generateTime_ = null; + if (generateTimeBuilder_ != null) { + generateTimeBuilder_.dispose(); generateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -749,7 +757,7 @@ public Builder clearGenerateTime() { * .google.protobuf.Timestamp generate_time = 1; */ public com.google.protobuf.Timestamp.Builder getGenerateTimeBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenerateTimeFieldBuilder().getBuilder(); } @@ -1398,7 +1406,9 @@ public com.google.cloud.aiplatform.v1.FeatureValue.Metadata getMetadata() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.FeatureValue.MetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null + ? com.google.cloud.aiplatform.v1.FeatureValue.Metadata.getDefaultInstance() + : metadata_; } private byte memoizedIsInitialized = -1; @@ -1749,6 +1759,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (boolArrayValueBuilder_ != null) { boolArrayValueBuilder_.clear(); } @@ -1761,10 +1772,9 @@ public Builder clear() { if (stringArrayValueBuilder_ != null) { stringArrayValueBuilder_.clear(); } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } valueCase_ = 0; @@ -1796,57 +1806,36 @@ public com.google.cloud.aiplatform.v1.FeatureValue build() { public com.google.cloud.aiplatform.v1.FeatureValue buildPartial() { com.google.cloud.aiplatform.v1.FeatureValue result = new com.google.cloud.aiplatform.v1.FeatureValue(this); - if (valueCase_ == 1) { - result.value_ = value_; - } - if (valueCase_ == 2) { - result.value_ = value_; - } - if (valueCase_ == 5) { - result.value_ = value_; - } - if (valueCase_ == 6) { - result.value_ = value_; + if (bitField0_ != 0) { + buildPartial0(result); } - if (valueCase_ == 7) { - if (boolArrayValueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = boolArrayValueBuilder_.build(); - } - } - if (valueCase_ == 8) { - if (doubleArrayValueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = doubleArrayValueBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.FeatureValue result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000200) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); } - if (valueCase_ == 11) { - if (int64ArrayValueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = int64ArrayValueBuilder_.build(); - } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.FeatureValue result) { + result.valueCase_ = valueCase_; + result.value_ = this.value_; + if (valueCase_ == 7 && boolArrayValueBuilder_ != null) { + result.value_ = boolArrayValueBuilder_.build(); } - if (valueCase_ == 12) { - if (stringArrayValueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = stringArrayValueBuilder_.build(); - } + if (valueCase_ == 8 && doubleArrayValueBuilder_ != null) { + result.value_ = doubleArrayValueBuilder_.build(); } - if (valueCase_ == 13) { - result.value_ = value_; + if (valueCase_ == 11 && int64ArrayValueBuilder_ != null) { + result.value_ = int64ArrayValueBuilder_.build(); } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (valueCase_ == 12 && stringArrayValueBuilder_ != null) { + result.value_ = stringArrayValueBuilder_.build(); } - result.valueCase_ = valueCase_; - onBuilt(); - return result; } @java.lang.Override @@ -2036,7 +2025,7 @@ public Builder mergeFrom( case 114: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 114 default: @@ -2070,6 +2059,8 @@ public Builder clearValue() { return this; } + private int bitField0_; + /** * * @@ -2114,6 +2105,7 @@ public boolean getBoolValue() { * @return This builder for chaining. */ public Builder setBoolValue(boolean value) { + valueCase_ = 1; value_ = value; onChanged(); @@ -2183,6 +2175,7 @@ public double getDoubleValue() { * @return This builder for chaining. */ public Builder setDoubleValue(double value) { + valueCase_ = 2; value_ = value; onChanged(); @@ -2252,6 +2245,7 @@ public long getInt64Value() { * @return This builder for chaining. */ public Builder setInt64Value(long value) { + valueCase_ = 5; value_ = value; onChanged(); @@ -2617,7 +2611,6 @@ public com.google.cloud.aiplatform.v1.BoolArrayOrBuilder getBoolArrayValueOrBuil } valueCase_ = 7; onChanged(); - ; return boolArrayValueBuilder_; } @@ -2827,7 +2820,6 @@ public com.google.cloud.aiplatform.v1.DoubleArrayOrBuilder getDoubleArrayValueOr } valueCase_ = 8; onChanged(); - ; return doubleArrayValueBuilder_; } @@ -3037,7 +3029,6 @@ public com.google.cloud.aiplatform.v1.Int64ArrayOrBuilder getInt64ArrayValueOrBu } valueCase_ = 11; onChanged(); - ; return int64ArrayValueBuilder_; } @@ -3247,7 +3238,6 @@ public com.google.cloud.aiplatform.v1.StringArrayOrBuilder getStringArrayValueOr } valueCase_ = 12; onChanged(); - ; return stringArrayValueBuilder_; } @@ -3341,7 +3331,7 @@ public Builder clearBytesValue() { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -3378,11 +3368,11 @@ public Builder setMetadata(com.google.cloud.aiplatform.v1.FeatureValue.Metadata throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3398,11 +3388,11 @@ public Builder setMetadata( com.google.cloud.aiplatform.v1.FeatureValue.Metadata.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3416,19 +3406,19 @@ public Builder setMetadata( */ public Builder mergeMetadata(com.google.cloud.aiplatform.v1.FeatureValue.Metadata value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.cloud.aiplatform.v1.FeatureValue.Metadata.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.aiplatform.v1.FeatureValue.Metadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3441,14 +3431,13 @@ public Builder mergeMetadata(com.google.cloud.aiplatform.v1.FeatureValue.Metadat * .google.cloud.aiplatform.v1.FeatureValue.Metadata metadata = 14; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -3461,7 +3450,7 @@ public Builder clearMetadata() { * .google.cloud.aiplatform.v1.FeatureValue.Metadata metadata = 14; */ public com.google.cloud.aiplatform.v1.FeatureValue.Metadata.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValueDestination.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValueDestination.java index 6e9ad56ec028..0b3ffc345bf7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValueDestination.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValueDestination.java @@ -552,6 +552,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (bigqueryDestinationBuilder_ != null) { bigqueryDestinationBuilder_.clear(); } @@ -590,32 +591,32 @@ public com.google.cloud.aiplatform.v1.FeatureValueDestination build() { public com.google.cloud.aiplatform.v1.FeatureValueDestination buildPartial() { com.google.cloud.aiplatform.v1.FeatureValueDestination result = new com.google.cloud.aiplatform.v1.FeatureValueDestination(this); - if (destinationCase_ == 1) { - if (bigqueryDestinationBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = bigqueryDestinationBuilder_.build(); - } - } - if (destinationCase_ == 2) { - if (tfrecordDestinationBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = tfrecordDestinationBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (destinationCase_ == 3) { - if (csvDestinationBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = csvDestinationBuilder_.build(); - } - } - result.destinationCase_ = destinationCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.FeatureValueDestination result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.FeatureValueDestination result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + if (destinationCase_ == 1 && bigqueryDestinationBuilder_ != null) { + result.destination_ = bigqueryDestinationBuilder_.build(); + } + if (destinationCase_ == 2 && tfrecordDestinationBuilder_ != null) { + result.destination_ = tfrecordDestinationBuilder_.build(); + } + if (destinationCase_ == 3 && csvDestinationBuilder_ != null) { + result.destination_ = csvDestinationBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -760,6 +761,8 @@ public Builder clearDestination() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.BigQueryDestination, com.google.cloud.aiplatform.v1.BigQueryDestination.Builder, @@ -1007,7 +1010,6 @@ public Builder clearBigqueryDestination() { } destinationCase_ = 1; onChanged(); - ; return bigqueryDestinationBuilder_; } @@ -1294,7 +1296,6 @@ public Builder clearTfrecordDestination() { } destinationCase_ = 2; onChanged(); - ; return tfrecordDestinationBuilder_; } @@ -1513,7 +1514,6 @@ public com.google.cloud.aiplatform.v1.CsvDestinationOrBuilder getCsvDestinationO } destinationCase_ = 3; onChanged(); - ; return csvDestinationBuilder_; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValueList.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValueList.java index 0bc0e3c7f818..58b81fe531c1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValueList.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValueList.java @@ -68,6 +68,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List values_; /** * @@ -335,6 +337,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); } else { @@ -369,7 +372,16 @@ public com.google.cloud.aiplatform.v1.FeatureValueList build() { public com.google.cloud.aiplatform.v1.FeatureValueList buildPartial() { com.google.cloud.aiplatform.v1.FeatureValueList result = new com.google.cloud.aiplatform.v1.FeatureValueList(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.FeatureValueList result) { if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); @@ -379,8 +391,10 @@ public com.google.cloud.aiplatform.v1.FeatureValueList buildPartial() { } else { result.values_ = valuesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.FeatureValueList result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Featurestore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Featurestore.java index e8316c2bbae9..ea5f1ea0c657 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Featurestore.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Featurestore.java @@ -459,7 +459,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MIN_NODE_COUNT_FIELD_NUMBER = 1; - private int minNodeCount_; + private int minNodeCount_ = 0; /** * * @@ -478,7 +478,7 @@ public int getMinNodeCount() { } public static final int MAX_NODE_COUNT_FIELD_NUMBER = 2; - private int maxNodeCount_; + private int maxNodeCount_ = 0; /** * * @@ -718,10 +718,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; minNodeCount_ = 0; - maxNodeCount_ = 0; - return this; } @@ -753,12 +752,24 @@ public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling b buildPartial() { com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling result = new com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling(this); - result.minNodeCount_ = minNodeCount_; - result.maxNodeCount_ = maxNodeCount_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.minNodeCount_ = minNodeCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxNodeCount_ = maxNodeCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -846,13 +857,13 @@ public Builder mergeFrom( case 8: { minNodeCount_ = input.readInt32(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { maxNodeCount_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -872,6 +883,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int minNodeCount_; /** * @@ -905,6 +918,7 @@ public int getMinNodeCount() { public Builder setMinNodeCount(int value) { minNodeCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -921,7 +935,7 @@ public Builder setMinNodeCount(int value) { * @return This builder for chaining. */ public Builder clearMinNodeCount() { - + bitField0_ = (bitField0_ & ~0x00000001); minNodeCount_ = 0; onChanged(); return this; @@ -960,6 +974,7 @@ public int getMaxNodeCount() { public Builder setMaxNodeCount(int value) { maxNodeCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -976,7 +991,7 @@ public Builder setMaxNodeCount(int value) { * @return This builder for chaining. */ public Builder clearMaxNodeCount() { - + bitField0_ = (bitField0_ & ~0x00000002); maxNodeCount_ = 0; onChanged(); return this; @@ -1051,7 +1066,7 @@ public com.google.protobuf.Parser getParserForType() { } public static final int FIXED_NODE_COUNT_FIELD_NUMBER = 2; - private int fixedNodeCount_; + private int fixedNodeCount_ = 0; /** * * @@ -1127,7 +1142,10 @@ public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling g @java.lang.Override public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.ScalingOrBuilder getScalingOrBuilder() { - return getScaling(); + return scaling_ == null + ? com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + .getDefaultInstance() + : scaling_; } private byte memoizedIsInitialized = -1; @@ -1347,12 +1365,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; fixedNodeCount_ = 0; - - if (scalingBuilder_ == null) { - scaling_ = null; - } else { - scaling_ = null; + scaling_ = null; + if (scalingBuilder_ != null) { + scalingBuilder_.dispose(); scalingBuilder_ = null; } return this; @@ -1383,16 +1400,24 @@ public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig build() { public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig buildPartial() { com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig result = new com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig(this); - result.fixedNodeCount_ = fixedNodeCount_; - if (scalingBuilder_ == null) { - result.scaling_ = scaling_; - } else { - result.scaling_ = scalingBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fixedNodeCount_ = fixedNodeCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.scaling_ = scalingBuilder_ == null ? scaling_ : scalingBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1478,13 +1503,13 @@ public Builder mergeFrom( case 16: { fixedNodeCount_ = input.readInt32(); - + bitField0_ |= 0x00000001; break; } // case 16 case 34: { input.readMessage(getScalingFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 34 default: @@ -1504,6 +1529,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int fixedNodeCount_; /** * @@ -1541,6 +1568,7 @@ public int getFixedNodeCount() { public Builder setFixedNodeCount(int value) { fixedNodeCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1559,7 +1587,7 @@ public Builder setFixedNodeCount(int value) { * @return This builder for chaining. */ public Builder clearFixedNodeCount() { - + bitField0_ = (bitField0_ & ~0x00000001); fixedNodeCount_ = 0; onChanged(); return this; @@ -1586,7 +1614,7 @@ public Builder clearFixedNodeCount() { * @return Whether the scaling field is set. */ public boolean hasScaling() { - return scalingBuilder_ != null || scaling_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1631,11 +1659,11 @@ public Builder setScaling( throw new NullPointerException(); } scaling_ = value; - onChanged(); } else { scalingBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1655,11 +1683,11 @@ public Builder setScaling( builderForValue) { if (scalingBuilder_ == null) { scaling_ = builderForValue.build(); - onChanged(); } else { scalingBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1677,20 +1705,20 @@ public Builder setScaling( public Builder mergeScaling( com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling value) { if (scalingBuilder_ == null) { - if (scaling_ != null) { - scaling_ = - com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.newBuilder( - scaling_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && scaling_ != null + && scaling_ + != com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + .getDefaultInstance()) { + getScalingBuilder().mergeFrom(value); } else { scaling_ = value; } - onChanged(); } else { scalingBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1706,14 +1734,13 @@ public Builder mergeScaling( * */ public Builder clearScaling() { - if (scalingBuilder_ == null) { - scaling_ = null; - onChanged(); - } else { - scaling_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + scaling_ = null; + if (scalingBuilder_ != null) { + scalingBuilder_.dispose(); scalingBuilder_ = null; } - + onChanged(); return this; } /** @@ -1730,7 +1757,7 @@ public Builder clearScaling() { */ public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.Builder getScalingBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getScalingFieldBuilder().getBuilder(); } @@ -1854,7 +1881,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -1950,7 +1979,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 4; @@ -1999,11 +2028,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ETAG_FIELD_NUMBER = 5; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -2066,6 +2097,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -2150,7 +2182,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2248,11 +2283,13 @@ public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig getOnline @java.lang.Override public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfigOrBuilder getOnlineServingConfigOrBuilder() { - return getOnlineServingConfig(); + return onlineServingConfig_ == null + ? com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.getDefaultInstance() + : onlineServingConfig_; } public static final int STATE_FIELD_NUMBER = 8; - private int state_; + private int state_ = 0; /** * * @@ -2285,9 +2322,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.Featurestore.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Featurestore.State result = - com.google.cloud.aiplatform.v1.Featurestore.State.valueOf(state_); + com.google.cloud.aiplatform.v1.Featurestore.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.Featurestore.State.UNRECOGNIZED : result; } @@ -2345,7 +2381,9 @@ public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } private byte memoizedIsInitialized = -1; @@ -2658,35 +2696,29 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } etag_ = ""; - internalGetMutableLabels().clear(); - if (onlineServingConfigBuilder_ == null) { - onlineServingConfig_ = null; - } else { - onlineServingConfig_ = null; + onlineServingConfig_ = null; + if (onlineServingConfigBuilder_ != null) { + onlineServingConfigBuilder_.dispose(); onlineServingConfigBuilder_ = null; } state_ = 0; - - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } return this; @@ -2716,34 +2748,44 @@ public com.google.cloud.aiplatform.v1.Featurestore build() { public com.google.cloud.aiplatform.v1.Featurestore buildPartial() { com.google.cloud.aiplatform.v1.Featurestore result = new com.google.cloud.aiplatform.v1.Featurestore(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Featurestore result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } - result.etag_ = etag_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (onlineServingConfigBuilder_ == null) { - result.onlineServingConfig_ = onlineServingConfig_; - } else { - result.onlineServingConfig_ = onlineServingConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } - result.state_ = state_; - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.onlineServingConfig_ = + onlineServingConfigBuilder_ == null + ? onlineServingConfig_ + : onlineServingConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -2793,6 +2835,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Featurestore other) { if (other == com.google.cloud.aiplatform.v1.Featurestore.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasCreateTime()) { @@ -2803,9 +2846,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Featurestore other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000008; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; if (other.hasOnlineServingConfig()) { mergeOnlineServingConfig(other.getOnlineServingConfig()); } @@ -2844,25 +2889,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 26 case 34: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 34 case 42: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 42 case 50: @@ -2874,25 +2919,26 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; break; } // case 50 case 58: { input.readMessage( getOnlineServingConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 58 case 64: { state_ = input.readEnum(); - + bitField0_ |= 0x00000040; break; } // case 64 case 82: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 82 default: @@ -2978,8 +3024,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2996,8 +3042,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3019,8 +3065,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3045,7 +3091,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -3086,11 +3132,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -3107,11 +3153,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -3127,17 +3173,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -3152,14 +3199,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3174,7 +3220,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -3246,7 +3292,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -3287,11 +3333,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3308,11 +3354,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3328,17 +3374,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3353,14 +3400,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3375,7 +3421,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -3491,8 +3537,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3509,8 +3555,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -3532,8 +3578,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3549,14 +3595,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000010; + onChanged(); return labels_; } @@ -3635,8 +3681,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3674,6 +3722,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -3705,6 +3754,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000010; return internalGetMutableLabels().getMutableMap(); } /** @@ -3732,8 +3782,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; return this; } /** @@ -3756,6 +3806,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; return this; } @@ -3782,7 +3833,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the onlineServingConfig field is set. */ public boolean hasOnlineServingConfig() { - return onlineServingConfigBuilder_ != null || onlineServingConfig_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -3831,11 +3882,11 @@ public Builder setOnlineServingConfig( throw new NullPointerException(); } onlineServingConfig_ = value; - onChanged(); } else { onlineServingConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -3856,11 +3907,11 @@ public Builder setOnlineServingConfig( com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Builder builderForValue) { if (onlineServingConfigBuilder_ == null) { onlineServingConfig_ = builderForValue.build(); - onChanged(); } else { onlineServingConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -3880,20 +3931,20 @@ public Builder setOnlineServingConfig( public Builder mergeOnlineServingConfig( com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig value) { if (onlineServingConfigBuilder_ == null) { - if (onlineServingConfig_ != null) { - onlineServingConfig_ = - com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.newBuilder( - onlineServingConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && onlineServingConfig_ != null + && onlineServingConfig_ + != com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + .getDefaultInstance()) { + getOnlineServingConfigBuilder().mergeFrom(value); } else { onlineServingConfig_ = value; } - onChanged(); } else { onlineServingConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -3911,14 +3962,13 @@ public Builder mergeOnlineServingConfig( * */ public Builder clearOnlineServingConfig() { - if (onlineServingConfigBuilder_ == null) { - onlineServingConfig_ = null; - onChanged(); - } else { - onlineServingConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + onlineServingConfig_ = null; + if (onlineServingConfigBuilder_ != null) { + onlineServingConfigBuilder_.dispose(); onlineServingConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -3937,7 +3987,7 @@ public Builder clearOnlineServingConfig() { */ public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Builder getOnlineServingConfigBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getOnlineServingConfigFieldBuilder().getBuilder(); } @@ -4029,8 +4079,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4049,9 +4099,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.Featurestore.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Featurestore.State result = - com.google.cloud.aiplatform.v1.Featurestore.State.valueOf(state_); + com.google.cloud.aiplatform.v1.Featurestore.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.Featurestore.State.UNRECOGNIZED : result; @@ -4074,7 +4123,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.Featurestore.State value) if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000040; state_ = value.getNumber(); onChanged(); return this; @@ -4093,7 +4142,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.Featurestore.State value) * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000040); state_ = 0; onChanged(); return this; @@ -4120,7 +4169,7 @@ public Builder clearState() { * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -4163,11 +4212,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec v throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -4186,11 +4235,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -4207,19 +4256,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -4235,14 +4284,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec * */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -4258,7 +4306,7 @@ public Builder clearEncryptionSpec() { * */ public com.google.cloud.aiplatform.v1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreMonitoringConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreMonitoringConfig.java index 49cfadcc3c13..01c7a413c04b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreMonitoringConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreMonitoringConfig.java @@ -180,7 +180,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DISABLED_FIELD_NUMBER = 1; - private boolean disabled_; + private boolean disabled_ = false; /** * * @@ -208,7 +208,7 @@ public boolean getDisabled() { } public static final int MONITORING_INTERVAL_DAYS_FIELD_NUMBER = 3; - private int monitoringIntervalDays_; + private int monitoringIntervalDays_ = 0; /** * * @@ -233,7 +233,7 @@ public int getMonitoringIntervalDays() { } public static final int STALENESS_DAYS_FIELD_NUMBER = 4; - private int stalenessDays_; + private int stalenessDays_ = 0; /** * * @@ -484,12 +484,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; disabled_ = false; - monitoringIntervalDays_ = 0; - stalenessDays_ = 0; - return this; } @@ -521,13 +519,27 @@ public com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnaly buildPartial() { com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis result = new com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis(this); - result.disabled_ = disabled_; - result.monitoringIntervalDays_ = monitoringIntervalDays_; - result.stalenessDays_ = stalenessDays_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disabled_ = disabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.monitoringIntervalDays_ = monitoringIntervalDays_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.stalenessDays_ = stalenessDays_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -619,19 +631,19 @@ public Builder mergeFrom( case 8: { disabled_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 case 24: { monitoringIntervalDays_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 24 case 32: { stalenessDays_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 32 default: @@ -651,6 +663,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean disabled_; /** * @@ -702,6 +716,7 @@ public boolean getDisabled() { public Builder setDisabled(boolean value) { disabled_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -727,7 +742,7 @@ public Builder setDisabled(boolean value) { * @return This builder for chaining. */ public Builder clearDisabled() { - + bitField0_ = (bitField0_ & ~0x00000001); disabled_ = false; onChanged(); return this; @@ -778,6 +793,7 @@ public int getMonitoringIntervalDays() { public Builder setMonitoringIntervalDays(int value) { monitoringIntervalDays_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -800,7 +816,7 @@ public Builder setMonitoringIntervalDays(int value) { * @return This builder for chaining. */ public Builder clearMonitoringIntervalDays() { - + bitField0_ = (bitField0_ & ~0x00000002); monitoringIntervalDays_ = 0; onChanged(); return this; @@ -841,6 +857,7 @@ public int getStalenessDays() { public Builder setStalenessDays(int value) { stalenessDays_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -858,7 +875,7 @@ public Builder setStalenessDays(int value) { * @return This builder for chaining. */ public Builder clearStalenessDays() { - + bitField0_ = (bitField0_ & ~0x00000004); stalenessDays_ = 0; onChanged(); return this; @@ -1451,7 +1468,7 @@ private Baseline(int value) { } public static final int STATE_FIELD_NUMBER = 1; - private int state_; + private int state_ = 0; /** * * @@ -1487,11 +1504,10 @@ public int getStateValue() { @java.lang.Override public com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State result = com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis - .State.valueOf(state_); + .State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State .UNRECOGNIZED @@ -1499,7 +1515,7 @@ public int getStateValue() { } public static final int ANOMALY_DETECTION_BASELINE_FIELD_NUMBER = 2; - private int anomalyDetectionBaseline_; + private int anomalyDetectionBaseline_ = 0; /** * * @@ -1536,11 +1552,10 @@ public int getAnomalyDetectionBaselineValue() { public com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis .Baseline getAnomalyDetectionBaseline() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline result = com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis - .Baseline.valueOf(anomalyDetectionBaseline_); + .Baseline.forNumber(anomalyDetectionBaseline_); return result == null ? com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis .Baseline.UNRECOGNIZED @@ -1784,10 +1799,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; state_ = 0; - anomalyDetectionBaseline_ = 0; - return this; } @@ -1821,12 +1835,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis result = new com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis( this); - result.state_ = state_; - result.anomalyDetectionBaseline_ = anomalyDetectionBaseline_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.anomalyDetectionBaseline_ = anomalyDetectionBaseline_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1917,13 +1944,13 @@ public Builder mergeFrom( case 8: { state_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { anomalyDetectionBaseline_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -1943,6 +1970,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int state_ = 0; /** * @@ -1978,8 +2007,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2001,11 +2030,10 @@ public Builder setStateValue(int value) { public com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis .State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State result = com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis - .State.valueOf(state_); + .State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis .State.UNRECOGNIZED @@ -2032,7 +2060,7 @@ public Builder setState( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; state_ = value.getNumber(); onChanged(); return this; @@ -2052,7 +2080,7 @@ public Builder setState( * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000001); state_ = 0; onChanged(); return this; @@ -2093,8 +2121,8 @@ public int getAnomalyDetectionBaselineValue() { * @return This builder for chaining. */ public Builder setAnomalyDetectionBaselineValue(int value) { - anomalyDetectionBaseline_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2116,11 +2144,10 @@ public Builder setAnomalyDetectionBaselineValue(int value) { public com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis .Baseline getAnomalyDetectionBaseline() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline result = com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis - .Baseline.valueOf(anomalyDetectionBaseline_); + .Baseline.forNumber(anomalyDetectionBaseline_); return result == null ? com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis .Baseline.UNRECOGNIZED @@ -2148,7 +2175,7 @@ public Builder setAnomalyDetectionBaseline( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; anomalyDetectionBaseline_ = value.getNumber(); onChanged(); return this; @@ -2168,7 +2195,7 @@ public Builder setAnomalyDetectionBaseline( * @return This builder for chaining. */ public Builder clearAnomalyDetectionBaseline() { - + bitField0_ = (bitField0_ & ~0x00000002); anomalyDetectionBaseline_ = 0; onChanged(); return this; @@ -2655,6 +2682,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; thresholdCase_ = 0; threshold_ = null; return this; @@ -2688,14 +2716,25 @@ public com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConf buildPartial() { com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig result = new com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig(this); - if (thresholdCase_ == 1) { - result.threshold_ = threshold_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.thresholdCase_ = thresholdCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig result) { + result.thresholdCase_ = thresholdCase_; + result.threshold_ = this.threshold_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2823,6 +2862,8 @@ public Builder clearThreshold() { return this; } + private int bitField0_; + /** * * @@ -2885,6 +2926,7 @@ public double getValue() { * @return This builder for chaining. */ public Builder setValue(double value) { + thresholdCase_ = 1; threshold_ = value; onChanged(); @@ -3039,7 +3081,10 @@ public boolean hasSnapshotAnalysis() { @java.lang.Override public com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysisOrBuilder getSnapshotAnalysisOrBuilder() { - return getSnapshotAnalysis(); + return snapshotAnalysis_ == null + ? com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis + .getDefaultInstance() + : snapshotAnalysis_; } public static final int IMPORT_FEATURES_ANALYSIS_FIELD_NUMBER = 2; @@ -3097,7 +3142,10 @@ public boolean hasImportFeaturesAnalysis() { @java.lang.Override public com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysisOrBuilder getImportFeaturesAnalysisOrBuilder() { - return getImportFeaturesAnalysis(); + return importFeaturesAnalysis_ == null + ? com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis + .getDefaultInstance() + : importFeaturesAnalysis_; } public static final int NUMERICAL_THRESHOLD_CONFIG_FIELD_NUMBER = 3; @@ -3167,7 +3215,10 @@ public boolean hasNumericalThresholdConfig() { @java.lang.Override public com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfigOrBuilder getNumericalThresholdConfigOrBuilder() { - return getNumericalThresholdConfig(); + return numericalThresholdConfig_ == null + ? com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig + .getDefaultInstance() + : numericalThresholdConfig_; } public static final int CATEGORICAL_THRESHOLD_CONFIG_FIELD_NUMBER = 4; @@ -3237,7 +3288,10 @@ public boolean hasCategoricalThresholdConfig() { @java.lang.Override public com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfigOrBuilder getCategoricalThresholdConfigOrBuilder() { - return getCategoricalThresholdConfig(); + return categoricalThresholdConfig_ == null + ? com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig + .getDefaultInstance() + : categoricalThresholdConfig_; } private byte memoizedIsInitialized = -1; @@ -3491,28 +3545,25 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (snapshotAnalysisBuilder_ == null) { - snapshotAnalysis_ = null; - } else { - snapshotAnalysis_ = null; + bitField0_ = 0; + snapshotAnalysis_ = null; + if (snapshotAnalysisBuilder_ != null) { + snapshotAnalysisBuilder_.dispose(); snapshotAnalysisBuilder_ = null; } - if (importFeaturesAnalysisBuilder_ == null) { - importFeaturesAnalysis_ = null; - } else { - importFeaturesAnalysis_ = null; + importFeaturesAnalysis_ = null; + if (importFeaturesAnalysisBuilder_ != null) { + importFeaturesAnalysisBuilder_.dispose(); importFeaturesAnalysisBuilder_ = null; } - if (numericalThresholdConfigBuilder_ == null) { - numericalThresholdConfig_ = null; - } else { - numericalThresholdConfig_ = null; + numericalThresholdConfig_ = null; + if (numericalThresholdConfigBuilder_ != null) { + numericalThresholdConfigBuilder_.dispose(); numericalThresholdConfigBuilder_ = null; } - if (categoricalThresholdConfigBuilder_ == null) { - categoricalThresholdConfig_ = null; - } else { - categoricalThresholdConfig_ = null; + categoricalThresholdConfig_ = null; + if (categoricalThresholdConfigBuilder_ != null) { + categoricalThresholdConfigBuilder_.dispose(); categoricalThresholdConfigBuilder_ = null; } return this; @@ -3542,28 +3593,37 @@ public com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig build() { public com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig buildPartial() { com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig result = new com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig(this); - if (snapshotAnalysisBuilder_ == null) { - result.snapshotAnalysis_ = snapshotAnalysis_; - } else { - result.snapshotAnalysis_ = snapshotAnalysisBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (importFeaturesAnalysisBuilder_ == null) { - result.importFeaturesAnalysis_ = importFeaturesAnalysis_; - } else { - result.importFeaturesAnalysis_ = importFeaturesAnalysisBuilder_.build(); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.snapshotAnalysis_ = + snapshotAnalysisBuilder_ == null ? snapshotAnalysis_ : snapshotAnalysisBuilder_.build(); } - if (numericalThresholdConfigBuilder_ == null) { - result.numericalThresholdConfig_ = numericalThresholdConfig_; - } else { - result.numericalThresholdConfig_ = numericalThresholdConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.importFeaturesAnalysis_ = + importFeaturesAnalysisBuilder_ == null + ? importFeaturesAnalysis_ + : importFeaturesAnalysisBuilder_.build(); } - if (categoricalThresholdConfigBuilder_ == null) { - result.categoricalThresholdConfig_ = categoricalThresholdConfig_; - } else { - result.categoricalThresholdConfig_ = categoricalThresholdConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.numericalThresholdConfig_ = + numericalThresholdConfigBuilder_ == null + ? numericalThresholdConfig_ + : numericalThresholdConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.categoricalThresholdConfig_ = + categoricalThresholdConfigBuilder_ == null + ? categoricalThresholdConfig_ + : categoricalThresholdConfigBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -3654,28 +3714,28 @@ public Builder mergeFrom( { input.readMessage( getSnapshotAnalysisFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getImportFeaturesAnalysisFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getNumericalThresholdConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getCategoricalThresholdConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -3695,6 +3755,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis snapshotAnalysis_; private com.google.protobuf.SingleFieldBuilderV3< @@ -3716,7 +3778,7 @@ public Builder mergeFrom( * @return Whether the snapshotAnalysis field is set. */ public boolean hasSnapshotAnalysis() { - return snapshotAnalysisBuilder_ != null || snapshotAnalysis_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -3760,11 +3822,11 @@ public Builder setSnapshotAnalysis( throw new NullPointerException(); } snapshotAnalysis_ = value; - onChanged(); } else { snapshotAnalysisBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -3783,11 +3845,11 @@ public Builder setSnapshotAnalysis( builderForValue) { if (snapshotAnalysisBuilder_ == null) { snapshotAnalysis_ = builderForValue.build(); - onChanged(); } else { snapshotAnalysisBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -3804,20 +3866,20 @@ public Builder setSnapshotAnalysis( public Builder mergeSnapshotAnalysis( com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis value) { if (snapshotAnalysisBuilder_ == null) { - if (snapshotAnalysis_ != null) { - snapshotAnalysis_ = - com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis - .newBuilder(snapshotAnalysis_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && snapshotAnalysis_ != null + && snapshotAnalysis_ + != com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis + .getDefaultInstance()) { + getSnapshotAnalysisBuilder().mergeFrom(value); } else { snapshotAnalysis_ = value; } - onChanged(); } else { snapshotAnalysisBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -3832,14 +3894,13 @@ public Builder mergeSnapshotAnalysis( * */ public Builder clearSnapshotAnalysis() { - if (snapshotAnalysisBuilder_ == null) { - snapshotAnalysis_ = null; - onChanged(); - } else { - snapshotAnalysis_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + snapshotAnalysis_ = null; + if (snapshotAnalysisBuilder_ != null) { + snapshotAnalysisBuilder_.dispose(); snapshotAnalysisBuilder_ = null; } - + onChanged(); return this; } /** @@ -3855,7 +3916,7 @@ public Builder clearSnapshotAnalysis() { */ public com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis.Builder getSnapshotAnalysisBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getSnapshotAnalysisFieldBuilder().getBuilder(); } @@ -3934,7 +3995,7 @@ public Builder clearSnapshotAnalysis() { * @return Whether the importFeaturesAnalysis field is set. */ public boolean hasImportFeaturesAnalysis() { - return importFeaturesAnalysisBuilder_ != null || importFeaturesAnalysis_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -3978,11 +4039,11 @@ public Builder setImportFeaturesAnalysis( throw new NullPointerException(); } importFeaturesAnalysis_ = value; - onChanged(); } else { importFeaturesAnalysisBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -4001,11 +4062,11 @@ public Builder setImportFeaturesAnalysis( builderForValue) { if (importFeaturesAnalysisBuilder_ == null) { importFeaturesAnalysis_ = builderForValue.build(); - onChanged(); } else { importFeaturesAnalysisBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -4022,20 +4083,20 @@ public Builder setImportFeaturesAnalysis( public Builder mergeImportFeaturesAnalysis( com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis value) { if (importFeaturesAnalysisBuilder_ == null) { - if (importFeaturesAnalysis_ != null) { - importFeaturesAnalysis_ = - com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis - .newBuilder(importFeaturesAnalysis_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && importFeaturesAnalysis_ != null + && importFeaturesAnalysis_ + != com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig + .ImportFeaturesAnalysis.getDefaultInstance()) { + getImportFeaturesAnalysisBuilder().mergeFrom(value); } else { importFeaturesAnalysis_ = value; } - onChanged(); } else { importFeaturesAnalysisBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -4050,14 +4111,13 @@ public Builder mergeImportFeaturesAnalysis( * */ public Builder clearImportFeaturesAnalysis() { - if (importFeaturesAnalysisBuilder_ == null) { - importFeaturesAnalysis_ = null; - onChanged(); - } else { - importFeaturesAnalysis_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + importFeaturesAnalysis_ = null; + if (importFeaturesAnalysisBuilder_ != null) { + importFeaturesAnalysisBuilder_.dispose(); importFeaturesAnalysisBuilder_ = null; } - + onChanged(); return this; } /** @@ -4074,7 +4134,7 @@ public Builder clearImportFeaturesAnalysis() { public com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis .Builder getImportFeaturesAnalysisBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getImportFeaturesAnalysisFieldBuilder().getBuilder(); } @@ -4158,7 +4218,7 @@ public Builder clearImportFeaturesAnalysis() { * @return Whether the numericalThresholdConfig field is set. */ public boolean hasNumericalThresholdConfig() { - return numericalThresholdConfigBuilder_ != null || numericalThresholdConfig_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -4210,11 +4270,11 @@ public Builder setNumericalThresholdConfig( throw new NullPointerException(); } numericalThresholdConfig_ = value; - onChanged(); } else { numericalThresholdConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4237,11 +4297,11 @@ public Builder setNumericalThresholdConfig( builderForValue) { if (numericalThresholdConfigBuilder_ == null) { numericalThresholdConfig_ = builderForValue.build(); - onChanged(); } else { numericalThresholdConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4262,20 +4322,20 @@ public Builder setNumericalThresholdConfig( public Builder mergeNumericalThresholdConfig( com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig value) { if (numericalThresholdConfigBuilder_ == null) { - if (numericalThresholdConfig_ != null) { - numericalThresholdConfig_ = - com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig - .newBuilder(numericalThresholdConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && numericalThresholdConfig_ != null + && numericalThresholdConfig_ + != com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig + .getDefaultInstance()) { + getNumericalThresholdConfigBuilder().mergeFrom(value); } else { numericalThresholdConfig_ = value; } - onChanged(); } else { numericalThresholdConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4294,14 +4354,13 @@ public Builder mergeNumericalThresholdConfig( * */ public Builder clearNumericalThresholdConfig() { - if (numericalThresholdConfigBuilder_ == null) { - numericalThresholdConfig_ = null; - onChanged(); - } else { - numericalThresholdConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + numericalThresholdConfig_ = null; + if (numericalThresholdConfigBuilder_ != null) { + numericalThresholdConfigBuilder_.dispose(); numericalThresholdConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -4321,7 +4380,7 @@ public Builder clearNumericalThresholdConfig() { */ public com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig.Builder getNumericalThresholdConfigBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getNumericalThresholdConfigFieldBuilder().getBuilder(); } @@ -4409,7 +4468,7 @@ public Builder clearNumericalThresholdConfig() { * @return Whether the categoricalThresholdConfig field is set. */ public boolean hasCategoricalThresholdConfig() { - return categoricalThresholdConfigBuilder_ != null || categoricalThresholdConfig_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -4461,11 +4520,11 @@ public Builder setCategoricalThresholdConfig( throw new NullPointerException(); } categoricalThresholdConfig_ = value; - onChanged(); } else { categoricalThresholdConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4488,11 +4547,11 @@ public Builder setCategoricalThresholdConfig( builderForValue) { if (categoricalThresholdConfigBuilder_ == null) { categoricalThresholdConfig_ = builderForValue.build(); - onChanged(); } else { categoricalThresholdConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4513,20 +4572,20 @@ public Builder setCategoricalThresholdConfig( public Builder mergeCategoricalThresholdConfig( com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig value) { if (categoricalThresholdConfigBuilder_ == null) { - if (categoricalThresholdConfig_ != null) { - categoricalThresholdConfig_ = - com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig - .newBuilder(categoricalThresholdConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && categoricalThresholdConfig_ != null + && categoricalThresholdConfig_ + != com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig + .getDefaultInstance()) { + getCategoricalThresholdConfigBuilder().mergeFrom(value); } else { categoricalThresholdConfig_ = value; } - onChanged(); } else { categoricalThresholdConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4545,14 +4604,13 @@ public Builder mergeCategoricalThresholdConfig( * */ public Builder clearCategoricalThresholdConfig() { - if (categoricalThresholdConfigBuilder_ == null) { - categoricalThresholdConfig_ = null; - onChanged(); - } else { - categoricalThresholdConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + categoricalThresholdConfig_ = null; + if (categoricalThresholdConfigBuilder_ != null) { + categoricalThresholdConfigBuilder_.dispose(); categoricalThresholdConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -4572,7 +4630,7 @@ public Builder clearCategoricalThresholdConfig() { */ public com.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig.Builder getCategoricalThresholdConfigBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getCategoricalThresholdConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOrBuilder.java index ab27e7df0bbb..9f7939c8e170 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOrBuilder.java @@ -231,7 +231,6 @@ public interface FeaturestoreOrBuilder * * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FilterSplit.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FilterSplit.java index cb498b0d10a8..25047b857986 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FilterSplit.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FilterSplit.java @@ -75,7 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRAINING_FILTER_FIELD_NUMBER = 1; - private volatile java.lang.Object trainingFilter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object trainingFilter_ = ""; /** * * @@ -136,7 +138,9 @@ public com.google.protobuf.ByteString getTrainingFilterBytes() { } public static final int VALIDATION_FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object validationFilter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object validationFilter_ = ""; /** * * @@ -197,7 +201,9 @@ public com.google.protobuf.ByteString getValidationFilterBytes() { } public static final int TEST_FILTER_FIELD_NUMBER = 3; - private volatile java.lang.Object testFilter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object testFilter_ = ""; /** * * @@ -477,12 +483,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; trainingFilter_ = ""; - validationFilter_ = ""; - testFilter_ = ""; - return this; } @@ -510,13 +514,26 @@ public com.google.cloud.aiplatform.v1.FilterSplit build() { public com.google.cloud.aiplatform.v1.FilterSplit buildPartial() { com.google.cloud.aiplatform.v1.FilterSplit result = new com.google.cloud.aiplatform.v1.FilterSplit(this); - result.trainingFilter_ = trainingFilter_; - result.validationFilter_ = validationFilter_; - result.testFilter_ = testFilter_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.FilterSplit result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trainingFilter_ = trainingFilter_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validationFilter_ = validationFilter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.testFilter_ = testFilter_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -564,14 +581,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.FilterSplit other) { if (other == com.google.cloud.aiplatform.v1.FilterSplit.getDefaultInstance()) return this; if (!other.getTrainingFilter().isEmpty()) { trainingFilter_ = other.trainingFilter_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getValidationFilter().isEmpty()) { validationFilter_ = other.validationFilter_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getTestFilter().isEmpty()) { testFilter_ = other.testFilter_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -603,19 +623,19 @@ public Builder mergeFrom( case 10: { trainingFilter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { validationFilter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { testFilter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -635,6 +655,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object trainingFilter_ = ""; /** * @@ -714,8 +736,8 @@ public Builder setTrainingFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - trainingFilter_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -737,8 +759,8 @@ public Builder setTrainingFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTrainingFilter() { - trainingFilter_ = getDefaultInstance().getTrainingFilter(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -765,8 +787,8 @@ public Builder setTrainingFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - trainingFilter_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -850,8 +872,8 @@ public Builder setValidationFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - validationFilter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -873,8 +895,8 @@ public Builder setValidationFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearValidationFilter() { - validationFilter_ = getDefaultInstance().getValidationFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -901,8 +923,8 @@ public Builder setValidationFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - validationFilter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -986,8 +1008,8 @@ public Builder setTestFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - testFilter_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1009,8 +1031,8 @@ public Builder setTestFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTestFilter() { - testFilter_ = getDefaultInstance().getTestFilter(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1037,8 +1059,8 @@ public Builder setTestFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - testFilter_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FractionSplit.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FractionSplit.java index 5b723543947e..60262f41a54f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FractionSplit.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FractionSplit.java @@ -71,7 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRAINING_FRACTION_FIELD_NUMBER = 1; - private double trainingFraction_; + private double trainingFraction_ = 0D; /** * * @@ -89,7 +89,7 @@ public double getTrainingFraction() { } public static final int VALIDATION_FRACTION_FIELD_NUMBER = 2; - private double validationFraction_; + private double validationFraction_ = 0D; /** * * @@ -107,7 +107,7 @@ public double getValidationFraction() { } public static final int TEST_FRACTION_FIELD_NUMBER = 3; - private double testFraction_; + private double testFraction_ = 0D; /** * * @@ -356,12 +356,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; trainingFraction_ = 0D; - validationFraction_ = 0D; - testFraction_ = 0D; - return this; } @@ -389,13 +387,26 @@ public com.google.cloud.aiplatform.v1.FractionSplit build() { public com.google.cloud.aiplatform.v1.FractionSplit buildPartial() { com.google.cloud.aiplatform.v1.FractionSplit result = new com.google.cloud.aiplatform.v1.FractionSplit(this); - result.trainingFraction_ = trainingFraction_; - result.validationFraction_ = validationFraction_; - result.testFraction_ = testFraction_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.FractionSplit result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trainingFraction_ = trainingFraction_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validationFraction_ = validationFraction_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.testFraction_ = testFraction_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -479,19 +490,19 @@ public Builder mergeFrom( case 9: { trainingFraction_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 case 17: { validationFraction_ = input.readDouble(); - + bitField0_ |= 0x00000002; break; } // case 17 case 25: { testFraction_ = input.readDouble(); - + bitField0_ |= 0x00000004; break; } // case 25 default: @@ -511,6 +522,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private double trainingFraction_; /** * @@ -542,6 +555,7 @@ public double getTrainingFraction() { public Builder setTrainingFraction(double value) { trainingFraction_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -557,7 +571,7 @@ public Builder setTrainingFraction(double value) { * @return This builder for chaining. */ public Builder clearTrainingFraction() { - + bitField0_ = (bitField0_ & ~0x00000001); trainingFraction_ = 0D; onChanged(); return this; @@ -594,6 +608,7 @@ public double getValidationFraction() { public Builder setValidationFraction(double value) { validationFraction_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -609,7 +624,7 @@ public Builder setValidationFraction(double value) { * @return This builder for chaining. */ public Builder clearValidationFraction() { - + bitField0_ = (bitField0_ & ~0x00000002); validationFraction_ = 0D; onChanged(); return this; @@ -646,6 +661,7 @@ public double getTestFraction() { public Builder setTestFraction(double value) { testFraction_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -661,7 +677,7 @@ public Builder setTestFraction(double value) { * @return This builder for chaining. */ public Builder clearTestFraction() { - + bitField0_ = (bitField0_ & ~0x00000004); testFraction_ = 0D; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GcsDestination.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GcsDestination.java index 45c13c4dcd8e..63c4372f67fb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GcsDestination.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GcsDestination.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 1; - private volatile java.lang.Object outputUriPrefix_; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputUriPrefix_ = ""; /** * * @@ -319,8 +321,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; outputUriPrefix_ = ""; - return this; } @@ -348,11 +350,20 @@ public com.google.cloud.aiplatform.v1.GcsDestination build() { public com.google.cloud.aiplatform.v1.GcsDestination buildPartial() { com.google.cloud.aiplatform.v1.GcsDestination result = new com.google.cloud.aiplatform.v1.GcsDestination(this); - result.outputUriPrefix_ = outputUriPrefix_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GcsDestination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.outputUriPrefix_ = outputUriPrefix_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -400,6 +411,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GcsDestination other) { if (other == com.google.cloud.aiplatform.v1.GcsDestination.getDefaultInstance()) return this; if (!other.getOutputUriPrefix().isEmpty()) { outputUriPrefix_ = other.outputUriPrefix_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -431,7 +443,7 @@ public Builder mergeFrom( case 10: { outputUriPrefix_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -451,6 +463,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object outputUriPrefix_ = ""; /** * @@ -521,8 +535,8 @@ public Builder setOutputUriPrefix(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - outputUriPrefix_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -541,8 +555,8 @@ public Builder setOutputUriPrefix(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOutputUriPrefix() { - outputUriPrefix_ = getDefaultInstance().getOutputUriPrefix(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -566,8 +580,8 @@ public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - outputUriPrefix_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GcsSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GcsSource.java index 4a8bc87e8770..09d603849f89 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GcsSource.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GcsSource.java @@ -68,6 +68,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int URIS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList uris_; /** * @@ -339,6 +341,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; @@ -368,14 +371,24 @@ public com.google.cloud.aiplatform.v1.GcsSource build() { public com.google.cloud.aiplatform.v1.GcsSource buildPartial() { com.google.cloud.aiplatform.v1.GcsSource result = new com.google.cloud.aiplatform.v1.GcsSource(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.GcsSource result) { if (((bitField0_ & 0x00000001) != 0)) { uris_ = uris_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.uris_ = uris_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.GcsSource result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenericOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenericOperationMetadata.java index d395a1c3858c..4c1a1349520c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenericOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenericOperationMetadata.java @@ -68,6 +68,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARTIAL_FAILURES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List partialFailures_; /** * @@ -207,7 +209,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 3; @@ -262,7 +264,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } private byte memoizedIsInitialized = -1; @@ -493,6 +495,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (partialFailuresBuilder_ == null) { partialFailures_ = java.util.Collections.emptyList(); } else { @@ -500,16 +503,14 @@ public Builder clear() { partialFailuresBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } return this; @@ -539,7 +540,16 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata build() { public com.google.cloud.aiplatform.v1.GenericOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.GenericOperationMetadata result = new com.google.cloud.aiplatform.v1.GenericOperationMetadata(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.GenericOperationMetadata result) { if (partialFailuresBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { partialFailures_ = java.util.Collections.unmodifiableList(partialFailures_); @@ -549,18 +559,16 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata buildPartial() { } else { result.partialFailures_ = partialFailuresBuilder_.build(); } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.GenericOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -683,13 +691,13 @@ public Builder mergeFrom( case 18: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -1166,7 +1174,7 @@ public java.util.List getPartialFailuresBuilderLi * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1207,11 +1215,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1228,11 +1236,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1248,17 +1256,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1273,14 +1282,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1295,7 +1303,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1369,7 +1377,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1414,11 +1422,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1437,11 +1445,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1459,17 +1467,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1486,14 +1495,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1510,7 +1518,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetAnnotationSpecRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetAnnotationSpecRequest.java index 05d074ceab0c..ca0d293ed33b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetAnnotationSpecRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetAnnotationSpecRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -168,7 +170,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -384,12 +386,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -419,16 +420,23 @@ public com.google.cloud.aiplatform.v1.GetAnnotationSpecRequest build() { public com.google.cloud.aiplatform.v1.GetAnnotationSpecRequest buildPartial() { com.google.cloud.aiplatform.v1.GetAnnotationSpecRequest result = new com.google.cloud.aiplatform.v1.GetAnnotationSpecRequest(this); - result.name_ = name_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetAnnotationSpecRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -477,6 +485,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetAnnotationSpecRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasReadMask()) { @@ -511,13 +520,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -537,6 +546,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -610,8 +621,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -631,8 +642,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -657,8 +668,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -681,7 +692,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -716,11 +727,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -735,11 +746,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -753,17 +764,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -776,14 +788,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 2; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -796,7 +807,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 2; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetArtifactRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetArtifactRequest.java index beb2b7594b90..da9f7ceea8c7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetArtifactRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetArtifactRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1.GetArtifactRequest build() { public com.google.cloud.aiplatform.v1.GetArtifactRequest buildPartial() { com.google.cloud.aiplatform.v1.GetArtifactRequest result = new com.google.cloud.aiplatform.v1.GetArtifactRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetArtifactRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -405,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetArtifactRequest other return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -436,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -456,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -529,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -550,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -576,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetBatchPredictionJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetBatchPredictionJobRequest.java index ffe8266528e7..b9196443c94a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetBatchPredictionJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetBatchPredictionJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest build() { public com.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest buildPartial() { com.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest result = new com.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetBatchPredictionJobReq return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetContextRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetContextRequest.java index 4c569dd4a7f0..40b57928bb60 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetContextRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetContextRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1.GetContextRequest build() { public com.google.cloud.aiplatform.v1.GetContextRequest buildPartial() { com.google.cloud.aiplatform.v1.GetContextRequest result = new com.google.cloud.aiplatform.v1.GetContextRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetContextRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -405,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetContextRequest other) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -436,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -456,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -529,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -550,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -576,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetCustomJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetCustomJobRequest.java index 855ab53331a7..a1aa04e41bf8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetCustomJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetCustomJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1.GetCustomJobRequest build() { public com.google.cloud.aiplatform.v1.GetCustomJobRequest buildPartial() { com.google.cloud.aiplatform.v1.GetCustomJobRequest result = new com.google.cloud.aiplatform.v1.GetCustomJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetCustomJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -405,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetCustomJobRequest othe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -436,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -456,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -529,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -550,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -576,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDataLabelingJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDataLabelingJobRequest.java index e16558389d64..9ed6e36a50e1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDataLabelingJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDataLabelingJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1.GetDataLabelingJobRequest build() { public com.google.cloud.aiplatform.v1.GetDataLabelingJobRequest buildPartial() { com.google.cloud.aiplatform.v1.GetDataLabelingJobRequest result = new com.google.cloud.aiplatform.v1.GetDataLabelingJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetDataLabelingJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetDataLabelingJobReques return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java index 9cd39f8f78a2..6ba89edf201b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -164,7 +166,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -379,12 +381,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -414,16 +415,23 @@ public com.google.cloud.aiplatform.v1.GetDatasetRequest build() { public com.google.cloud.aiplatform.v1.GetDatasetRequest buildPartial() { com.google.cloud.aiplatform.v1.GetDatasetRequest result = new com.google.cloud.aiplatform.v1.GetDatasetRequest(this); - result.name_ = name_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetDatasetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -472,6 +480,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetDatasetRequest other) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasReadMask()) { @@ -506,13 +515,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -532,6 +541,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -599,8 +610,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -618,8 +629,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -642,8 +653,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -666,7 +677,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -701,11 +712,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -720,11 +731,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -738,17 +749,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -761,14 +773,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 2; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -781,7 +792,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 2; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetEndpointRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetEndpointRequest.java index 43f67e0fef77..2e8f834a6ca9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetEndpointRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetEndpointRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1.GetEndpointRequest build() { public com.google.cloud.aiplatform.v1.GetEndpointRequest buildPartial() { com.google.cloud.aiplatform.v1.GetEndpointRequest result = new com.google.cloud.aiplatform.v1.GetEndpointRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetEndpointRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -405,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetEndpointRequest other return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -436,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -456,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -529,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -550,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -576,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetEntityTypeRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetEntityTypeRequest.java index f2ea711bcfcd..e0321a9bdb9e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetEntityTypeRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetEntityTypeRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1.GetEntityTypeRequest build() { public com.google.cloud.aiplatform.v1.GetEntityTypeRequest buildPartial() { com.google.cloud.aiplatform.v1.GetEntityTypeRequest result = new com.google.cloud.aiplatform.v1.GetEntityTypeRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -405,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetEntityTypeRequest oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -436,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -456,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -529,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -550,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -576,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetExecutionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetExecutionRequest.java index dae18ca63af7..5dec8a85cddb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetExecutionRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetExecutionRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1.GetExecutionRequest build() { public com.google.cloud.aiplatform.v1.GetExecutionRequest buildPartial() { com.google.cloud.aiplatform.v1.GetExecutionRequest result = new com.google.cloud.aiplatform.v1.GetExecutionRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetExecutionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -405,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetExecutionRequest othe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -436,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -456,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -529,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -550,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -576,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetFeatureRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetFeatureRequest.java index f61cbee6089d..9cbaa76432b5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetFeatureRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetFeatureRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1.GetFeatureRequest build() { public com.google.cloud.aiplatform.v1.GetFeatureRequest buildPartial() { com.google.cloud.aiplatform.v1.GetFeatureRequest result = new com.google.cloud.aiplatform.v1.GetFeatureRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetFeatureRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -405,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetFeatureRequest other) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -436,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -456,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -529,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -550,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -576,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetFeaturestoreRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetFeaturestoreRequest.java index 1e6d26ff9588..1ee80d08e7d5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetFeaturestoreRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetFeaturestoreRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -320,8 +322,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -349,11 +351,20 @@ public com.google.cloud.aiplatform.v1.GetFeaturestoreRequest build() { public com.google.cloud.aiplatform.v1.GetFeaturestoreRequest buildPartial() { com.google.cloud.aiplatform.v1.GetFeaturestoreRequest result = new com.google.cloud.aiplatform.v1.GetFeaturestoreRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetFeaturestoreRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -402,6 +413,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetFeaturestoreRequest o return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -433,7 +445,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -453,6 +465,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -520,8 +534,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -539,8 +553,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -563,8 +577,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetHyperparameterTuningJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetHyperparameterTuningJobRequest.java index 8ff651933ea9..9a663e427a90 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetHyperparameterTuningJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetHyperparameterTuningJobRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -325,8 +327,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -355,11 +357,21 @@ public com.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest build() public com.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest buildPartial() { com.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest result = new com.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -410,6 +422,7 @@ public Builder mergeFrom( return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -441,7 +454,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -461,6 +474,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -534,8 +549,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -555,8 +570,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -581,8 +596,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetIndexEndpointRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetIndexEndpointRequest.java index f566f888977f..f9cee80d2e69 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetIndexEndpointRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetIndexEndpointRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1.GetIndexEndpointRequest build() { public com.google.cloud.aiplatform.v1.GetIndexEndpointRequest buildPartial() { com.google.cloud.aiplatform.v1.GetIndexEndpointRequest result = new com.google.cloud.aiplatform.v1.GetIndexEndpointRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetIndexEndpointRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetIndexEndpointRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetIndexRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetIndexRequest.java index 08be8e0b50bb..31c9216f1a87 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetIndexRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetIndexRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1.GetIndexRequest build() { public com.google.cloud.aiplatform.v1.GetIndexRequest buildPartial() { com.google.cloud.aiplatform.v1.GetIndexRequest result = new com.google.cloud.aiplatform.v1.GetIndexRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetIndexRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,6 +415,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetIndexRequest other) { if (other == com.google.cloud.aiplatform.v1.GetIndexRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -435,7 +447,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -455,6 +467,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -528,8 +542,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -549,8 +563,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -575,8 +589,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetMetadataSchemaRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetMetadataSchemaRequest.java index aefe4c39ec5c..a1438aaae810 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetMetadataSchemaRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetMetadataSchemaRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1.GetMetadataSchemaRequest build() { public com.google.cloud.aiplatform.v1.GetMetadataSchemaRequest buildPartial() { com.google.cloud.aiplatform.v1.GetMetadataSchemaRequest result = new com.google.cloud.aiplatform.v1.GetMetadataSchemaRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetMetadataSchemaRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetMetadataSchemaRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetMetadataStoreRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetMetadataStoreRequest.java index 0145808080cc..d631188945b4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetMetadataStoreRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetMetadataStoreRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1.GetMetadataStoreRequest build() { public com.google.cloud.aiplatform.v1.GetMetadataStoreRequest buildPartial() { com.google.cloud.aiplatform.v1.GetMetadataStoreRequest result = new com.google.cloud.aiplatform.v1.GetMetadataStoreRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetMetadataStoreRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetMetadataStoreRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelDeploymentMonitoringJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelDeploymentMonitoringJobRequest.java index e5991b49092f..a0b586ea7047 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelDeploymentMonitoringJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelDeploymentMonitoringJobRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -328,8 +330,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -359,11 +361,21 @@ public com.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest bui public com.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest buildPartial() { com.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest result = new com.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -415,6 +427,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -446,7 +459,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -466,6 +479,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -539,8 +554,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -560,8 +575,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -586,8 +601,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelEvaluationRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelEvaluationRequest.java index 146ba7d6dd88..9e09634465f7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelEvaluationRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelEvaluationRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1.GetModelEvaluationRequest build() { public com.google.cloud.aiplatform.v1.GetModelEvaluationRequest buildPartial() { com.google.cloud.aiplatform.v1.GetModelEvaluationRequest result = new com.google.cloud.aiplatform.v1.GetModelEvaluationRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetModelEvaluationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetModelEvaluationReques return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelEvaluationSliceRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelEvaluationSliceRequest.java index bb8283db9016..fc8a6acf4510 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelEvaluationSliceRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelEvaluationSliceRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -325,8 +327,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -355,11 +357,21 @@ public com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest build() { public com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest buildPartial() { com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest result = new com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -409,6 +421,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetModelEvaluationSliceR return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -440,7 +453,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -460,6 +473,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -533,8 +548,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -554,8 +569,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -580,8 +595,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelRequest.java index f58d4e58b54e..77b3f9595fd2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -339,8 +341,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -368,11 +370,20 @@ public com.google.cloud.aiplatform.v1.GetModelRequest build() { public com.google.cloud.aiplatform.v1.GetModelRequest buildPartial() { com.google.cloud.aiplatform.v1.GetModelRequest result = new com.google.cloud.aiplatform.v1.GetModelRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetModelRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -420,6 +431,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetModelRequest other) { if (other == com.google.cloud.aiplatform.v1.GetModelRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -451,7 +463,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -471,6 +483,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -568,8 +582,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -597,8 +611,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -631,8 +645,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPipelineJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPipelineJobRequest.java index 9176831cfd77..ad5cdc4ae683 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPipelineJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPipelineJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1.GetPipelineJobRequest build() { public com.google.cloud.aiplatform.v1.GetPipelineJobRequest buildPartial() { com.google.cloud.aiplatform.v1.GetPipelineJobRequest result = new com.google.cloud.aiplatform.v1.GetPipelineJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetPipelineJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -405,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetPipelineJobRequest ot return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -436,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -456,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -529,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -550,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -576,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetSpecialistPoolRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetSpecialistPoolRequest.java index 475a63a19ade..7c7e90a95099 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetSpecialistPoolRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetSpecialistPoolRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1.GetSpecialistPoolRequest build() { public com.google.cloud.aiplatform.v1.GetSpecialistPoolRequest buildPartial() { com.google.cloud.aiplatform.v1.GetSpecialistPoolRequest result = new com.google.cloud.aiplatform.v1.GetSpecialistPoolRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetSpecialistPoolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetSpecialistPoolRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetStudyRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetStudyRequest.java index a1259c4aa1d7..299a75e9ea73 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetStudyRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetStudyRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -321,8 +323,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -350,11 +352,20 @@ public com.google.cloud.aiplatform.v1.GetStudyRequest build() { public com.google.cloud.aiplatform.v1.GetStudyRequest buildPartial() { com.google.cloud.aiplatform.v1.GetStudyRequest result = new com.google.cloud.aiplatform.v1.GetStudyRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetStudyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -402,6 +413,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetStudyRequest other) { if (other == com.google.cloud.aiplatform.v1.GetStudyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -433,7 +445,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -453,6 +465,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -523,8 +537,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -543,8 +557,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -568,8 +582,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardExperimentRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardExperimentRequest.java index b3f8c0b33a43..bb06165f6df7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardExperimentRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardExperimentRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -325,8 +327,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -355,11 +357,21 @@ public com.google.cloud.aiplatform.v1.GetTensorboardExperimentRequest build() { public com.google.cloud.aiplatform.v1.GetTensorboardExperimentRequest buildPartial() { com.google.cloud.aiplatform.v1.GetTensorboardExperimentRequest result = new com.google.cloud.aiplatform.v1.GetTensorboardExperimentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.GetTensorboardExperimentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -409,6 +421,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetTensorboardExperiment return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -440,7 +453,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -460,6 +473,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -533,8 +548,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -554,8 +569,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -580,8 +595,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardRequest.java index 44fa5c77e7c2..1a4e368992ff 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1.GetTensorboardRequest build() { public com.google.cloud.aiplatform.v1.GetTensorboardRequest buildPartial() { com.google.cloud.aiplatform.v1.GetTensorboardRequest result = new com.google.cloud.aiplatform.v1.GetTensorboardRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetTensorboardRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -405,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetTensorboardRequest ot return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -436,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -456,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -529,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -550,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -576,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardRunRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardRunRequest.java index ba508ab11aa3..48d5b761af01 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardRunRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardRunRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1.GetTensorboardRunRequest build() { public com.google.cloud.aiplatform.v1.GetTensorboardRunRequest buildPartial() { com.google.cloud.aiplatform.v1.GetTensorboardRunRequest result = new com.google.cloud.aiplatform.v1.GetTensorboardRunRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetTensorboardRunRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetTensorboardRunRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardTimeSeriesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardTimeSeriesRequest.java index 896f2147871c..3ad6cf4ff756 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardTimeSeriesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTensorboardTimeSeriesRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -325,8 +327,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -355,11 +357,21 @@ public com.google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest build() { public com.google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest buildPartial() { com.google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest result = new com.google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -409,6 +421,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetTensorboardTimeSeries return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -440,7 +453,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -460,6 +473,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -533,8 +548,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -554,8 +569,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -580,8 +595,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTrainingPipelineRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTrainingPipelineRequest.java index 8c6cee9ee2cb..0de39d5d1511 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTrainingPipelineRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTrainingPipelineRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1.GetTrainingPipelineRequest build() { public com.google.cloud.aiplatform.v1.GetTrainingPipelineRequest buildPartial() { com.google.cloud.aiplatform.v1.GetTrainingPipelineRequest result = new com.google.cloud.aiplatform.v1.GetTrainingPipelineRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetTrainingPipelineRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetTrainingPipelineReque return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTrialRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTrialRequest.java index 996defbb8fec..5c5416b2aaad 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTrialRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetTrialRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1.GetTrialRequest build() { public com.google.cloud.aiplatform.v1.GetTrialRequest buildPartial() { com.google.cloud.aiplatform.v1.GetTrialRequest result = new com.google.cloud.aiplatform.v1.GetTrialRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.GetTrialRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,6 +415,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetTrialRequest other) { if (other == com.google.cloud.aiplatform.v1.GetTrialRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -435,7 +447,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -455,6 +467,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -528,8 +542,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -549,8 +563,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -575,8 +589,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJob.java index 64d37f2889e9..3d9566e1cbc1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJob.java @@ -84,7 +84,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -133,7 +135,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -236,11 +240,13 @@ public com.google.cloud.aiplatform.v1.StudySpec getStudySpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.StudySpecOrBuilder getStudySpecOrBuilder() { - return getStudySpec(); + return studySpec_ == null + ? com.google.cloud.aiplatform.v1.StudySpec.getDefaultInstance() + : studySpec_; } public static final int MAX_TRIAL_COUNT_FIELD_NUMBER = 5; - private int maxTrialCount_; + private int maxTrialCount_ = 0; /** * * @@ -258,7 +264,7 @@ public int getMaxTrialCount() { } public static final int PARALLEL_TRIAL_COUNT_FIELD_NUMBER = 6; - private int parallelTrialCount_; + private int parallelTrialCount_ = 0; /** * * @@ -276,7 +282,7 @@ public int getParallelTrialCount() { } public static final int MAX_FAILED_TRIAL_COUNT_FIELD_NUMBER = 7; - private int maxFailedTrialCount_; + private int maxFailedTrialCount_ = 0; /** * * @@ -350,10 +356,14 @@ public com.google.cloud.aiplatform.v1.CustomJobSpec getTrialJobSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.CustomJobSpecOrBuilder getTrialJobSpecOrBuilder() { - return getTrialJobSpec(); + return trialJobSpec_ == null + ? com.google.cloud.aiplatform.v1.CustomJobSpec.getDefaultInstance() + : trialJobSpec_; } public static final int TRIALS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") private java.util.List trials_; /** * @@ -433,7 +443,7 @@ public com.google.cloud.aiplatform.v1.TrialOrBuilder getTrialsOrBuilder(int inde } public static final int STATE_FIELD_NUMBER = 10; - private int state_; + private int state_ = 0; /** * * @@ -466,9 +476,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.JobState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.JobState result = - com.google.cloud.aiplatform.v1.JobState.valueOf(state_); + com.google.cloud.aiplatform.v1.JobState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.JobState.UNRECOGNIZED : result; } @@ -518,7 +527,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int START_TIME_FIELD_NUMBER = 12; @@ -570,7 +579,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 13; @@ -625,7 +634,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 14; @@ -677,7 +686,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ERROR_FIELD_NUMBER = 15; @@ -726,7 +735,7 @@ public com.google.rpc.Status getError() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return getError(); + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } public static final int LABELS_FIELD_NUMBER = 16; @@ -742,6 +751,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -811,7 +821,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 16; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -894,7 +907,9 @@ public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } private byte memoizedIsInitialized = -1; @@ -1302,26 +1317,20 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - - if (studySpecBuilder_ == null) { - studySpec_ = null; - } else { - studySpec_ = null; + studySpec_ = null; + if (studySpecBuilder_ != null) { + studySpecBuilder_.dispose(); studySpecBuilder_ = null; } maxTrialCount_ = 0; - parallelTrialCount_ = 0; - maxFailedTrialCount_ = 0; - - if (trialJobSpecBuilder_ == null) { - trialJobSpec_ = null; - } else { - trialJobSpec_ = null; + trialJobSpec_ = null; + if (trialJobSpecBuilder_ != null) { + trialJobSpecBuilder_.dispose(); trialJobSpecBuilder_ = null; } if (trialsBuilder_ == null) { @@ -1330,44 +1339,37 @@ public Builder clear() { trials_ = null; trialsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); state_ = 0; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - if (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } internalGetMutableLabels().clear(); - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } return this; @@ -1397,66 +1399,77 @@ public com.google.cloud.aiplatform.v1.HyperparameterTuningJob build() { public com.google.cloud.aiplatform.v1.HyperparameterTuningJob buildPartial() { com.google.cloud.aiplatform.v1.HyperparameterTuningJob result = new com.google.cloud.aiplatform.v1.HyperparameterTuningJob(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - if (studySpecBuilder_ == null) { - result.studySpec_ = studySpec_; - } else { - result.studySpec_ = studySpecBuilder_.build(); - } - result.maxTrialCount_ = maxTrialCount_; - result.parallelTrialCount_ = parallelTrialCount_; - result.maxFailedTrialCount_ = maxFailedTrialCount_; - if (trialJobSpecBuilder_ == null) { - result.trialJobSpec_ = trialJobSpec_; - } else { - result.trialJobSpec_ = trialJobSpecBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.HyperparameterTuningJob result) { if (trialsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { trials_ = java.util.Collections.unmodifiableList(trials_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); } result.trials_ = trials_; } else { result.trials_ = trialsBuilder_.build(); } - result.state_ = state_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.HyperparameterTuningJob result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.studySpec_ = studySpecBuilder_ == null ? studySpec_ : studySpecBuilder_.build(); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.maxTrialCount_ = maxTrialCount_; } - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.parallelTrialCount_ = parallelTrialCount_; } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.maxFailedTrialCount_ = maxFailedTrialCount_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.trialJobSpec_ = + trialJobSpecBuilder_ == null ? trialJobSpec_ : trialJobSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -1507,10 +1520,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.HyperparameterTuningJob return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasStudySpec()) { @@ -1532,7 +1547,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.HyperparameterTuningJob if (!other.trials_.isEmpty()) { if (trials_.isEmpty()) { trials_ = other.trials_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureTrialsIsMutable(); trials_.addAll(other.trials_); @@ -1545,7 +1560,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.HyperparameterTuningJob trialsBuilder_.dispose(); trialsBuilder_ = null; trials_ = other.trials_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); trialsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTrialsFieldBuilder() @@ -1574,6 +1589,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.HyperparameterTuningJob mergeError(other.getError()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00004000; if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } @@ -1606,43 +1622,43 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 34: { input.readMessage(getStudySpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 34 case 40: { maxTrialCount_ = input.readInt32(); - + bitField0_ |= 0x00000008; break; } // case 40 case 48: { parallelTrialCount_ = input.readInt32(); - + bitField0_ |= 0x00000010; break; } // case 48 case 56: { maxFailedTrialCount_ = input.readInt32(); - + bitField0_ |= 0x00000020; break; } // case 56 case 66: { input.readMessage(getTrialJobSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 66 case 74: @@ -1661,37 +1677,37 @@ public Builder mergeFrom( case 80: { state_ = input.readEnum(); - + bitField0_ |= 0x00000100; break; } // case 80 case 90: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 90 case 98: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 98 case 106: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000800; break; } // case 106 case 114: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00001000; break; } // case 114 case 122: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00002000; break; } // case 122 case 130: @@ -1703,12 +1719,13 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00004000; break; } // case 130 case 138: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00008000; break; } // case 138 default: @@ -1791,8 +1808,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1808,8 +1825,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1830,8 +1847,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1903,8 +1920,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1922,8 +1939,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1946,8 +1963,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1972,7 +1989,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the studySpec field is set. */ public boolean hasStudySpec() { - return studySpecBuilder_ != null || studySpec_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -2013,11 +2030,11 @@ public Builder setStudySpec(com.google.cloud.aiplatform.v1.StudySpec value) { throw new NullPointerException(); } studySpec_ = value; - onChanged(); } else { studySpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2034,11 +2051,11 @@ public Builder setStudySpec(com.google.cloud.aiplatform.v1.StudySpec value) { public Builder setStudySpec(com.google.cloud.aiplatform.v1.StudySpec.Builder builderForValue) { if (studySpecBuilder_ == null) { studySpec_ = builderForValue.build(); - onChanged(); } else { studySpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2054,19 +2071,18 @@ public Builder setStudySpec(com.google.cloud.aiplatform.v1.StudySpec.Builder bui */ public Builder mergeStudySpec(com.google.cloud.aiplatform.v1.StudySpec value) { if (studySpecBuilder_ == null) { - if (studySpec_ != null) { - studySpec_ = - com.google.cloud.aiplatform.v1.StudySpec.newBuilder(studySpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && studySpec_ != null + && studySpec_ != com.google.cloud.aiplatform.v1.StudySpec.getDefaultInstance()) { + getStudySpecBuilder().mergeFrom(value); } else { studySpec_ = value; } - onChanged(); } else { studySpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2081,14 +2097,13 @@ public Builder mergeStudySpec(com.google.cloud.aiplatform.v1.StudySpec value) { * */ public Builder clearStudySpec() { - if (studySpecBuilder_ == null) { - studySpec_ = null; - onChanged(); - } else { - studySpec_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + studySpec_ = null; + if (studySpecBuilder_ != null) { + studySpecBuilder_.dispose(); studySpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -2103,7 +2118,7 @@ public Builder clearStudySpec() { * */ public com.google.cloud.aiplatform.v1.StudySpec.Builder getStudySpecBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getStudySpecFieldBuilder().getBuilder(); } @@ -2186,6 +2201,7 @@ public int getMaxTrialCount() { public Builder setMaxTrialCount(int value) { maxTrialCount_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2201,7 +2217,7 @@ public Builder setMaxTrialCount(int value) { * @return This builder for chaining. */ public Builder clearMaxTrialCount() { - + bitField0_ = (bitField0_ & ~0x00000008); maxTrialCount_ = 0; onChanged(); return this; @@ -2238,6 +2254,7 @@ public int getParallelTrialCount() { public Builder setParallelTrialCount(int value) { parallelTrialCount_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2253,7 +2270,7 @@ public Builder setParallelTrialCount(int value) { * @return This builder for chaining. */ public Builder clearParallelTrialCount() { - + bitField0_ = (bitField0_ & ~0x00000010); parallelTrialCount_ = 0; onChanged(); return this; @@ -2296,6 +2313,7 @@ public int getMaxFailedTrialCount() { public Builder setMaxFailedTrialCount(int value) { maxFailedTrialCount_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2314,7 +2332,7 @@ public Builder setMaxFailedTrialCount(int value) { * @return This builder for chaining. */ public Builder clearMaxFailedTrialCount() { - + bitField0_ = (bitField0_ & ~0x00000020); maxFailedTrialCount_ = 0; onChanged(); return this; @@ -2341,7 +2359,7 @@ public Builder clearMaxFailedTrialCount() { * @return Whether the trialJobSpec field is set. */ public boolean hasTrialJobSpec() { - return trialJobSpecBuilder_ != null || trialJobSpec_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2384,11 +2402,11 @@ public Builder setTrialJobSpec(com.google.cloud.aiplatform.v1.CustomJobSpec valu throw new NullPointerException(); } trialJobSpec_ = value; - onChanged(); } else { trialJobSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2407,11 +2425,11 @@ public Builder setTrialJobSpec( com.google.cloud.aiplatform.v1.CustomJobSpec.Builder builderForValue) { if (trialJobSpecBuilder_ == null) { trialJobSpec_ = builderForValue.build(); - onChanged(); } else { trialJobSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2428,19 +2446,18 @@ public Builder setTrialJobSpec( */ public Builder mergeTrialJobSpec(com.google.cloud.aiplatform.v1.CustomJobSpec value) { if (trialJobSpecBuilder_ == null) { - if (trialJobSpec_ != null) { - trialJobSpec_ = - com.google.cloud.aiplatform.v1.CustomJobSpec.newBuilder(trialJobSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && trialJobSpec_ != null + && trialJobSpec_ != com.google.cloud.aiplatform.v1.CustomJobSpec.getDefaultInstance()) { + getTrialJobSpecBuilder().mergeFrom(value); } else { trialJobSpec_ = value; } - onChanged(); } else { trialJobSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2456,14 +2473,13 @@ public Builder mergeTrialJobSpec(com.google.cloud.aiplatform.v1.CustomJobSpec va * */ public Builder clearTrialJobSpec() { - if (trialJobSpecBuilder_ == null) { - trialJobSpec_ = null; - onChanged(); - } else { - trialJobSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + trialJobSpec_ = null; + if (trialJobSpecBuilder_ != null) { + trialJobSpecBuilder_.dispose(); trialJobSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -2479,7 +2495,7 @@ public Builder clearTrialJobSpec() { * */ public com.google.cloud.aiplatform.v1.CustomJobSpec.Builder getTrialJobSpecBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getTrialJobSpecFieldBuilder().getBuilder(); } @@ -2537,9 +2553,9 @@ public com.google.cloud.aiplatform.v1.CustomJobSpecOrBuilder getTrialJobSpecOrBu java.util.Collections.emptyList(); private void ensureTrialsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { trials_ = new java.util.ArrayList(trials_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000080; } } @@ -2776,7 +2792,7 @@ public Builder addAllTrials( public Builder clearTrials() { if (trialsBuilder_ == null) { trials_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { trialsBuilder_.clear(); @@ -2911,7 +2927,7 @@ public java.util.List getTrialsBui com.google.cloud.aiplatform.v1.Trial, com.google.cloud.aiplatform.v1.Trial.Builder, com.google.cloud.aiplatform.v1.TrialOrBuilder>( - trials_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + trials_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); trials_ = null; } return trialsBuilder_; @@ -2950,8 +2966,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2970,9 +2986,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.JobState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.JobState result = - com.google.cloud.aiplatform.v1.JobState.valueOf(state_); + com.google.cloud.aiplatform.v1.JobState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.JobState.UNRECOGNIZED : result; } /** @@ -2993,7 +3008,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.JobState value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000100; state_ = value.getNumber(); onChanged(); return this; @@ -3012,7 +3027,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.JobState value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000100); state_ = 0; onChanged(); return this; @@ -3038,7 +3053,7 @@ public Builder clearState() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -3079,11 +3094,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3100,11 +3115,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3120,17 +3135,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3145,14 +3161,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3167,7 +3182,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -3240,7 +3255,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -3281,11 +3296,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3303,11 +3318,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3324,17 +3339,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3350,14 +3366,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3373,7 +3388,7 @@ public Builder clearStartTime() { * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -3446,7 +3461,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -3487,11 +3502,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -3509,11 +3524,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -3530,17 +3545,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000800) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -3556,14 +3572,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000800); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3579,7 +3594,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000800; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -3652,7 +3667,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -3695,11 +3710,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3717,11 +3732,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3738,17 +3753,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00001000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3764,14 +3780,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00001000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3787,7 +3802,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00001000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -3858,7 +3873,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the error field is set. */ public boolean hasError() { - return errorBuilder_ != null || error_ != null; + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -3895,11 +3910,11 @@ public Builder setError(com.google.rpc.Status value) { throw new NullPointerException(); } error_ = value; - onChanged(); } else { errorBuilder_.setMessage(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3915,11 +3930,11 @@ public Builder setError(com.google.rpc.Status value) { public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); - onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3934,16 +3949,18 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (error_ != null) { - error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00002000) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); } else { error_ = value; } - onChanged(); } else { errorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3957,14 +3974,13 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; + bitField0_ = (bitField0_ & ~0x00002000); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } - + onChanged(); return this; } /** @@ -3978,7 +3994,7 @@ public Builder clearError() { * .google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + bitField0_ |= 0x00002000; onChanged(); return getErrorFieldBuilder().getBuilder(); } @@ -4034,14 +4050,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00004000; + onChanged(); return labels_; } @@ -4105,8 +4121,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 16; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -4139,6 +4157,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00004000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -4165,6 +4184,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00004000; return internalGetMutableLabels().getMutableMap(); } /** @@ -4187,8 +4207,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00004000; return this; } /** @@ -4206,6 +4226,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00004000; return this; } @@ -4229,7 +4250,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -4270,11 +4291,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec v throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00008000; + onChanged(); return this; } /** @@ -4292,11 +4313,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00008000; + onChanged(); return this; } /** @@ -4312,19 +4333,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00008000) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00008000; + onChanged(); return this; } /** @@ -4339,14 +4360,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 17; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00008000); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -4361,7 +4381,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 17; */ public com.google.cloud.aiplatform.v1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00008000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobOrBuilder.java index d3766143d42b..01d86fa5bd3a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobOrBuilder.java @@ -554,7 +554,6 @@ public interface HyperparameterTuningJobOrBuilder * * map<string, string> labels = 16; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IdMatcher.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IdMatcher.java index fbcb1f95a71a..973a8dffc220 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IdMatcher.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IdMatcher.java @@ -68,6 +68,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int IDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList ids_; /** * @@ -347,6 +349,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; @@ -376,14 +379,24 @@ public com.google.cloud.aiplatform.v1.IdMatcher build() { public com.google.cloud.aiplatform.v1.IdMatcher buildPartial() { com.google.cloud.aiplatform.v1.IdMatcher result = new com.google.cloud.aiplatform.v1.IdMatcher(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.IdMatcher result) { if (((bitField0_ & 0x00000001) != 0)) { ids_ = ids_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.ids_ = ids_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.IdMatcher result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfig.java index 7f0d4821357c..0b8c87397608 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfig.java @@ -189,6 +189,7 @@ private static final class DataItemLabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField dataItemLabels_; private com.google.protobuf.MapField @@ -284,8 +285,10 @@ public java.util.Map getDataItemLabelsMap() * map<string, string> data_item_labels = 2; */ @java.lang.Override - public java.lang.String getDataItemLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getDataItemLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -338,6 +341,7 @@ private static final class AnnotationLabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField annotationLabels_; private com.google.protobuf.MapField @@ -424,8 +428,10 @@ public java.util.Map getAnnotationLabelsMap( * map<string, string> annotation_labels = 3; */ @java.lang.Override - public java.lang.String getAnnotationLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getAnnotationLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -463,7 +469,9 @@ public java.lang.String getAnnotationLabelsOrThrow(java.lang.String key) { } public static final int IMPORT_SCHEMA_URI_FIELD_NUMBER = 4; - private volatile java.lang.Object importSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object importSchemaUri_ = ""; /** * * @@ -797,13 +805,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (gcsSourceBuilder_ != null) { gcsSourceBuilder_.clear(); } internalGetMutableDataItemLabels().clear(); internalGetMutableAnnotationLabels().clear(); importSchemaUri_ = ""; - sourceCase_ = 0; source_ = null; return this; @@ -833,24 +841,37 @@ public com.google.cloud.aiplatform.v1.ImportDataConfig build() { public com.google.cloud.aiplatform.v1.ImportDataConfig buildPartial() { com.google.cloud.aiplatform.v1.ImportDataConfig result = new com.google.cloud.aiplatform.v1.ImportDataConfig(this); - int from_bitField0_ = bitField0_; - if (sourceCase_ == 1) { - if (gcsSourceBuilder_ == null) { - result.source_ = source_; - } else { - result.source_ = gcsSourceBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - result.dataItemLabels_ = internalGetDataItemLabels(); - result.dataItemLabels_.makeImmutable(); - result.annotationLabels_ = internalGetAnnotationLabels(); - result.annotationLabels_.makeImmutable(); - result.importSchemaUri_ = importSchemaUri_; - result.sourceCase_ = sourceCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ImportDataConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataItemLabels_ = internalGetDataItemLabels(); + result.dataItemLabels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.annotationLabels_ = internalGetAnnotationLabels(); + result.annotationLabels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.importSchemaUri_ = importSchemaUri_; + } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.ImportDataConfig result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { + result.source_ = gcsSourceBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -898,9 +919,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ImportDataConfig other) if (other == com.google.cloud.aiplatform.v1.ImportDataConfig.getDefaultInstance()) return this; internalGetMutableDataItemLabels().mergeFrom(other.internalGetDataItemLabels()); + bitField0_ |= 0x00000002; internalGetMutableAnnotationLabels().mergeFrom(other.internalGetAnnotationLabels()); + bitField0_ |= 0x00000004; if (!other.getImportSchemaUri().isEmpty()) { importSchemaUri_ = other.importSchemaUri_; + bitField0_ |= 0x00000008; onChanged(); } switch (other.getSourceCase()) { @@ -955,6 +979,7 @@ public Builder mergeFrom( internalGetMutableDataItemLabels() .getMutableMap() .put(dataItemLabels__.getKey(), dataItemLabels__.getValue()); + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -967,12 +992,13 @@ public Builder mergeFrom( internalGetMutableAnnotationLabels() .getMutableMap() .put(annotationLabels__.getKey(), annotationLabels__.getValue()); + bitField0_ |= 0x00000004; break; } // case 26 case 34: { importSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -1213,7 +1239,6 @@ public com.google.cloud.aiplatform.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() } sourceCase_ = 1; onChanged(); - ; return gcsSourceBuilder_; } @@ -1230,8 +1255,6 @@ public com.google.cloud.aiplatform.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() private com.google.protobuf.MapField internalGetMutableDataItemLabels() { - onChanged(); - ; if (dataItemLabels_ == null) { dataItemLabels_ = com.google.protobuf.MapField.newMapField(DataItemLabelsDefaultEntryHolder.defaultEntry); @@ -1239,6 +1262,8 @@ public com.google.cloud.aiplatform.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() if (!dataItemLabels_.isMutable()) { dataItemLabels_ = dataItemLabels_.copy(); } + bitField0_ |= 0x00000002; + onChanged(); return dataItemLabels_; } @@ -1326,8 +1351,10 @@ public java.util.Map getDataItemLabelsMap() * map<string, string> data_item_labels = 2; */ @java.lang.Override - public java.lang.String getDataItemLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getDataItemLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1368,6 +1395,7 @@ public java.lang.String getDataItemLabelsOrThrow(java.lang.String key) { } public Builder clearDataItemLabels() { + bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableDataItemLabels().getMutableMap().clear(); return this; } @@ -1402,6 +1430,7 @@ public Builder removeDataItemLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableDataItemLabels() { + bitField0_ |= 0x00000002; return internalGetMutableDataItemLabels().getMutableMap(); } /** @@ -1432,8 +1461,8 @@ public Builder putDataItemLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableDataItemLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; return this; } /** @@ -1459,6 +1488,7 @@ public Builder putDataItemLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllDataItemLabels(java.util.Map values) { internalGetMutableDataItemLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; return this; } @@ -1475,8 +1505,6 @@ public Builder putAllDataItemLabels(java.util.Map internalGetMutableAnnotationLabels() { - onChanged(); - ; if (annotationLabels_ == null) { annotationLabels_ = com.google.protobuf.MapField.newMapField( @@ -1485,6 +1513,8 @@ public Builder putAllDataItemLabels(java.util.Map getAnnotationLabelsMap( * map<string, string> annotation_labels = 3; */ @java.lang.Override - public java.lang.String getAnnotationLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getAnnotationLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1604,6 +1636,7 @@ public java.lang.String getAnnotationLabelsOrThrow(java.lang.String key) { } public Builder clearAnnotationLabels() { + bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableAnnotationLabels().getMutableMap().clear(); return this; } @@ -1635,6 +1668,7 @@ public Builder removeAnnotationLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAnnotationLabels() { + bitField0_ |= 0x00000004; return internalGetMutableAnnotationLabels().getMutableMap(); } /** @@ -1662,8 +1696,8 @@ public Builder putAnnotationLabels(java.lang.String key, java.lang.String value) if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAnnotationLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; return this; } /** @@ -1687,6 +1721,7 @@ public Builder putAnnotationLabels(java.lang.String key, java.lang.String value) public Builder putAllAnnotationLabels( java.util.Map values) { internalGetMutableAnnotationLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; return this; } @@ -1760,8 +1795,8 @@ public Builder setImportSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - importSchemaUri_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1780,8 +1815,8 @@ public Builder setImportSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearImportSchemaUri() { - importSchemaUri_ = getDefaultInstance().getImportSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1805,8 +1840,8 @@ public Builder setImportSchemaUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - importSchemaUri_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfigOrBuilder.java index 17c6b7fb77c5..cebc044a7d63 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataConfigOrBuilder.java @@ -148,7 +148,6 @@ public interface ImportDataConfigOrBuilder * * map<string, string> data_item_labels = 2; */ - /* nullable */ java.lang.String getDataItemLabelsOrDefault( java.lang.String key, @@ -255,7 +254,6 @@ java.lang.String getDataItemLabelsOrDefault( * * map<string, string> annotation_labels = 3; */ - /* nullable */ java.lang.String getAnnotationLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataOperationMetadata.java index 5e902f1d646f..d3e037608feb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataOperationMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -319,10 +321,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -352,15 +354,21 @@ public com.google.cloud.aiplatform.v1.ImportDataOperationMetadata build() { public com.google.cloud.aiplatform.v1.ImportDataOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.ImportDataOperationMetadata result = new com.google.cloud.aiplatform.v1.ImportDataOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ImportDataOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -439,7 +447,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +467,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -477,7 +487,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -515,11 +525,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -535,11 +545,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -554,19 +564,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -579,14 +589,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -600,7 +609,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataRequest.java index d66eb9b3d8eb..0e68ef843bf2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportDataRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -127,6 +129,8 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int IMPORT_CONFIGS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List importConfigs_; /** * @@ -420,15 +424,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - if (importConfigsBuilder_ == null) { importConfigs_ = java.util.Collections.emptyList(); } else { importConfigs_ = null; importConfigsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -456,19 +460,32 @@ public com.google.cloud.aiplatform.v1.ImportDataRequest build() { public com.google.cloud.aiplatform.v1.ImportDataRequest buildPartial() { com.google.cloud.aiplatform.v1.ImportDataRequest result = new com.google.cloud.aiplatform.v1.ImportDataRequest(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ImportDataRequest result) { if (importConfigsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { importConfigs_ = java.util.Collections.unmodifiableList(importConfigs_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.importConfigs_ = importConfigs_; } else { result.importConfigs_ = importConfigsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ImportDataRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } } @java.lang.Override @@ -519,13 +536,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ImportDataRequest other) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (importConfigsBuilder_ == null) { if (!other.importConfigs_.isEmpty()) { if (importConfigs_.isEmpty()) { importConfigs_ = other.importConfigs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureImportConfigsIsMutable(); importConfigs_.addAll(other.importConfigs_); @@ -538,7 +556,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ImportDataRequest other) importConfigsBuilder_.dispose(); importConfigsBuilder_ = null; importConfigs_ = other.importConfigs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); importConfigsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getImportConfigsFieldBuilder() @@ -577,7 +595,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -686,8 +704,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -707,8 +725,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -733,8 +751,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -743,11 +761,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureImportConfigsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { importConfigs_ = new java.util.ArrayList( importConfigs_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -998,7 +1016,7 @@ public Builder addAllImportConfigs( public Builder clearImportConfigs() { if (importConfigsBuilder_ == null) { importConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { importConfigsBuilder_.clear(); @@ -1145,7 +1163,7 @@ public com.google.cloud.aiplatform.v1.ImportDataConfig.Builder addImportConfigsB com.google.cloud.aiplatform.v1.ImportDataConfig.Builder, com.google.cloud.aiplatform.v1.ImportDataConfigOrBuilder>( importConfigs_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); importConfigs_ = null; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesOperationMetadata.java index be22ba2a3abb..2d7013ed8a95 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesOperationMetadata.java @@ -115,11 +115,13 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } public static final int IMPORTED_ENTITY_COUNT_FIELD_NUMBER = 2; - private long importedEntityCount_; + private long importedEntityCount_ = 0L; /** * * @@ -137,7 +139,7 @@ public long getImportedEntityCount() { } public static final int IMPORTED_FEATURE_VALUE_COUNT_FIELD_NUMBER = 3; - private long importedFeatureValueCount_; + private long importedFeatureValueCount_ = 0L; /** * * @@ -155,6 +157,8 @@ public long getImportedFeatureValueCount() { } public static final int SOURCE_URIS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList sourceUris_; /** * @@ -216,7 +220,7 @@ public com.google.protobuf.ByteString getSourceUrisBytes(int index) { } public static final int INVALID_ROW_COUNT_FIELD_NUMBER = 6; - private long invalidRowCount_; + private long invalidRowCount_ = 0L; /** * * @@ -238,7 +242,7 @@ public long getInvalidRowCount() { } public static final int TIMESTAMP_OUTSIDE_RETENTION_ROWS_COUNT_FIELD_NUMBER = 7; - private long timestampOutsideRetentionRowsCount_; + private long timestampOutsideRetentionRowsCount_ = 0L; /** * * @@ -518,22 +522,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } importedEntityCount_ = 0L; - importedFeatureValueCount_ = 0L; - sourceUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); invalidRowCount_ = 0L; - timestampOutsideRetentionRowsCount_ = 0L; - return this; } @@ -563,23 +563,42 @@ public com.google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata build public com.google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata result = new com.google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata(this); - int from_bitField0_ = bitField0_; - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.importedEntityCount_ = importedEntityCount_; - result.importedFeatureValueCount_ = importedFeatureValueCount_; - if (((bitField0_ & 0x00000001) != 0)) { + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata result) { + if (((bitField0_ & 0x00000008) != 0)) { sourceUris_ = sourceUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.sourceUris_ = sourceUris_; - result.invalidRowCount_ = invalidRowCount_; - result.timestampOutsideRetentionRowsCount_ = timestampOutsideRetentionRowsCount_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.importedEntityCount_ = importedEntityCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.importedFeatureValueCount_ = importedFeatureValueCount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.invalidRowCount_ = invalidRowCount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.timestampOutsideRetentionRowsCount_ = timestampOutsideRetentionRowsCount_; + } } @java.lang.Override @@ -643,7 +662,7 @@ public Builder mergeFrom( if (!other.sourceUris_.isEmpty()) { if (sourceUris_.isEmpty()) { sourceUris_ = other.sourceUris_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureSourceUrisIsMutable(); sourceUris_.addAll(other.sourceUris_); @@ -685,19 +704,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { importedEntityCount_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { importedFeatureValueCount_ = input.readInt64(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: @@ -710,13 +729,13 @@ public Builder mergeFrom( case 48: { invalidRowCount_ = input.readInt64(); - + bitField0_ |= 0x00000010; break; } // case 48 case 56: { timestampOutsideRetentionRowsCount_ = input.readInt64(); - + bitField0_ |= 0x00000020; break; } // case 56 default: @@ -756,7 +775,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -794,11 +813,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -814,11 +833,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -833,19 +852,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -858,14 +877,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -879,7 +897,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } @@ -959,6 +977,7 @@ public long getImportedEntityCount() { public Builder setImportedEntityCount(long value) { importedEntityCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -974,7 +993,7 @@ public Builder setImportedEntityCount(long value) { * @return This builder for chaining. */ public Builder clearImportedEntityCount() { - + bitField0_ = (bitField0_ & ~0x00000002); importedEntityCount_ = 0L; onChanged(); return this; @@ -1011,6 +1030,7 @@ public long getImportedFeatureValueCount() { public Builder setImportedFeatureValueCount(long value) { importedFeatureValueCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1026,7 +1046,7 @@ public Builder setImportedFeatureValueCount(long value) { * @return This builder for chaining. */ public Builder clearImportedFeatureValueCount() { - + bitField0_ = (bitField0_ & ~0x00000004); importedFeatureValueCount_ = 0L; onChanged(); return this; @@ -1036,9 +1056,9 @@ public Builder clearImportedFeatureValueCount() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSourceUrisIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { sourceUris_ = new com.google.protobuf.LazyStringArrayList(sourceUris_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } /** @@ -1173,7 +1193,7 @@ public Builder addAllSourceUris(java.lang.Iterable values) { */ public Builder clearSourceUris() { sourceUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1239,6 +1259,7 @@ public long getInvalidRowCount() { public Builder setInvalidRowCount(long value) { invalidRowCount_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1258,7 +1279,7 @@ public Builder setInvalidRowCount(long value) { * @return This builder for chaining. */ public Builder clearInvalidRowCount() { - + bitField0_ = (bitField0_ & ~0x00000010); invalidRowCount_ = 0L; onChanged(); return this; @@ -1297,6 +1318,7 @@ public long getTimestampOutsideRetentionRowsCount() { public Builder setTimestampOutsideRetentionRowsCount(long value) { timestampOutsideRetentionRowsCount_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1313,7 +1335,7 @@ public Builder setTimestampOutsideRetentionRowsCount(long value) { * @return This builder for chaining. */ public Builder clearTimestampOutsideRetentionRowsCount() { - + bitField0_ = (bitField0_ & ~0x00000020); timestampOutsideRetentionRowsCount_ = 0L; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesRequest.java index d018be87c711..8bd519671641 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesRequest.java @@ -180,7 +180,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -231,7 +233,9 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int SOURCE_FIELD_FIELD_NUMBER = 2; - private volatile java.lang.Object sourceField_; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceField_ = ""; /** * * @@ -493,10 +497,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - sourceField_ = ""; - return this; } @@ -527,12 +530,24 @@ public com.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec bui public com.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec buildPartial() { com.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec result = new com.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec(this); - result.id_ = id_; - result.sourceField_ = sourceField_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sourceField_ = sourceField_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -587,10 +602,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getSourceField().isEmpty()) { sourceField_ = other.sourceField_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -622,13 +639,13 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { sourceField_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -648,6 +665,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object id_ = ""; /** * @@ -712,8 +731,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -730,8 +749,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -753,8 +772,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -823,8 +842,8 @@ public Builder setSourceField(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - sourceField_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -841,8 +860,8 @@ public Builder setSourceField(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSourceField() { - sourceField_ = getDefaultInstance().getSourceField(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -864,8 +883,8 @@ public Builder setSourceFieldBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - sourceField_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1256,7 +1275,9 @@ public com.google.protobuf.TimestampOrBuilder getFeatureTimeOrBuilder() { } public static final int ENTITY_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object entityType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityType_ = ""; /** * * @@ -1313,7 +1334,9 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { } public static final int ENTITY_ID_FIELD_FIELD_NUMBER = 5; - private volatile java.lang.Object entityIdField_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityIdField_ = ""; /** * * @@ -1364,6 +1387,8 @@ public com.google.protobuf.ByteString getEntityIdFieldBytes() { } public static final int FEATURE_SPECS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") private java.util.List featureSpecs_; /** @@ -1458,7 +1483,7 @@ public com.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec get } public static final int DISABLE_ONLINE_SERVING_FIELD_NUMBER = 9; - private boolean disableOnlineServing_; + private boolean disableOnlineServing_ = false; /** * * @@ -1478,7 +1503,7 @@ public boolean getDisableOnlineServing() { } public static final int WORKER_COUNT_FIELD_NUMBER = 11; - private int workerCount_; + private int workerCount_ = 0; /** * * @@ -1501,7 +1526,7 @@ public int getWorkerCount() { } public static final int DISABLE_INGESTION_ANALYSIS_FIELD_NUMBER = 12; - private boolean disableIngestionAnalysis_; + private boolean disableIngestionAnalysis_ = false; /** * * @@ -1855,6 +1880,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (avroSourceBuilder_ != null) { avroSourceBuilder_.clear(); } @@ -1868,22 +1894,17 @@ public Builder clear() { featureTimeBuilder_.clear(); } entityType_ = ""; - entityIdField_ = ""; - if (featureSpecsBuilder_ == null) { featureSpecs_ = java.util.Collections.emptyList(); } else { featureSpecs_ = null; featureSpecsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); disableOnlineServing_ = false; - workerCount_ = 0; - disableIngestionAnalysis_ = false; - sourceCase_ = 0; source_ = null; featureTimeSourceCase_ = 0; @@ -1915,56 +1936,65 @@ public com.google.cloud.aiplatform.v1.ImportFeatureValuesRequest build() { public com.google.cloud.aiplatform.v1.ImportFeatureValuesRequest buildPartial() { com.google.cloud.aiplatform.v1.ImportFeatureValuesRequest result = new com.google.cloud.aiplatform.v1.ImportFeatureValuesRequest(this); - int from_bitField0_ = bitField0_; - if (sourceCase_ == 2) { - if (avroSourceBuilder_ == null) { - result.source_ = source_; - } else { - result.source_ = avroSourceBuilder_.build(); - } - } - if (sourceCase_ == 3) { - if (bigquerySourceBuilder_ == null) { - result.source_ = source_; - } else { - result.source_ = bigquerySourceBuilder_.build(); - } - } - if (sourceCase_ == 4) { - if (csvSourceBuilder_ == null) { - result.source_ = source_; - } else { - result.source_ = csvSourceBuilder_.build(); - } - } - if (featureTimeSourceCase_ == 6) { - result.featureTimeSource_ = featureTimeSource_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - if (featureTimeSourceCase_ == 7) { - if (featureTimeBuilder_ == null) { - result.featureTimeSource_ = featureTimeSource_; - } else { - result.featureTimeSource_ = featureTimeBuilder_.build(); - } - } - result.entityType_ = entityType_; - result.entityIdField_ = entityIdField_; + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ImportFeatureValuesRequest result) { if (featureSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { featureSpecs_ = java.util.Collections.unmodifiableList(featureSpecs_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); } result.featureSpecs_ = featureSpecs_; } else { result.featureSpecs_ = featureSpecsBuilder_.build(); } - result.disableOnlineServing_ = disableOnlineServing_; - result.workerCount_ = workerCount_; - result.disableIngestionAnalysis_ = disableIngestionAnalysis_; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ImportFeatureValuesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.entityType_ = entityType_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.entityIdField_ = entityIdField_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.disableOnlineServing_ = disableOnlineServing_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.workerCount_ = workerCount_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.disableIngestionAnalysis_ = disableIngestionAnalysis_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.ImportFeatureValuesRequest result) { result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 2 && avroSourceBuilder_ != null) { + result.source_ = avroSourceBuilder_.build(); + } + if (sourceCase_ == 3 && bigquerySourceBuilder_ != null) { + result.source_ = bigquerySourceBuilder_.build(); + } + if (sourceCase_ == 4 && csvSourceBuilder_ != null) { + result.source_ = csvSourceBuilder_.build(); + } result.featureTimeSourceCase_ = featureTimeSourceCase_; - onBuilt(); - return result; + result.featureTimeSource_ = this.featureTimeSource_; + if (featureTimeSourceCase_ == 7 && featureTimeBuilder_ != null) { + result.featureTimeSource_ = featureTimeBuilder_.build(); + } } @java.lang.Override @@ -2015,17 +2045,19 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ImportFeatureValuesReque return this; if (!other.getEntityType().isEmpty()) { entityType_ = other.entityType_; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getEntityIdField().isEmpty()) { entityIdField_ = other.entityIdField_; + bitField0_ |= 0x00000040; onChanged(); } if (featureSpecsBuilder_ == null) { if (!other.featureSpecs_.isEmpty()) { if (featureSpecs_.isEmpty()) { featureSpecs_ = other.featureSpecs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureFeatureSpecsIsMutable(); featureSpecs_.addAll(other.featureSpecs_); @@ -2038,7 +2070,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ImportFeatureValuesReque featureSpecsBuilder_.dispose(); featureSpecsBuilder_ = null; featureSpecs_ = other.featureSpecs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); featureSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFeatureSpecsFieldBuilder() @@ -2125,7 +2157,7 @@ public Builder mergeFrom( case 10: { entityType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 10 case 18: @@ -2149,7 +2181,7 @@ public Builder mergeFrom( case 42: { entityIdField_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 42 case 50: @@ -2183,19 +2215,19 @@ public Builder mergeFrom( case 72: { disableOnlineServing_ = input.readBool(); - + bitField0_ |= 0x00000100; break; } // case 72 case 88: { workerCount_ = input.readInt32(); - + bitField0_ |= 0x00000200; break; } // case 88 case 96: { disableIngestionAnalysis_ = input.readBool(); - + bitField0_ |= 0x00000400; break; } // case 96 default: @@ -2383,7 +2415,6 @@ public com.google.cloud.aiplatform.v1.AvroSourceOrBuilder getAvroSourceOrBuilder } sourceCase_ = 2; onChanged(); - ; return avroSourceBuilder_; } @@ -2525,7 +2556,6 @@ public com.google.cloud.aiplatform.v1.BigQuerySourceOrBuilder getBigquerySourceO } sourceCase_ = 3; onChanged(); - ; return bigquerySourceBuilder_; } @@ -2666,7 +2696,6 @@ public com.google.cloud.aiplatform.v1.CsvSourceOrBuilder getCsvSourceOrBuilder() } sourceCase_ = 4; onChanged(); - ; return csvSourceBuilder_; } @@ -3024,7 +3053,6 @@ public com.google.protobuf.TimestampOrBuilder getFeatureTimeOrBuilder() { } featureTimeSourceCase_ = 7; onChanged(); - ; return featureTimeBuilder_; } @@ -3101,8 +3129,8 @@ public Builder setEntityType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityType_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3122,8 +3150,8 @@ public Builder setEntityType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityType() { - entityType_ = getDefaultInstance().getEntityType(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -3148,8 +3176,8 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityType_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3218,8 +3246,8 @@ public Builder setEntityIdField(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityIdField_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3236,8 +3264,8 @@ public Builder setEntityIdField(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityIdField() { - entityIdField_ = getDefaultInstance().getEntityIdField(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -3259,8 +3287,8 @@ public Builder setEntityIdFieldBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityIdField_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3269,12 +3297,12 @@ public Builder setEntityIdFieldBytes(com.google.protobuf.ByteString value) { featureSpecs_ = java.util.Collections.emptyList(); private void ensureFeatureSpecsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { featureSpecs_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec>( featureSpecs_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000080; } } @@ -3546,7 +3574,7 @@ public Builder addAllFeatureSpecs( public Builder clearFeatureSpecs() { if (featureSpecsBuilder_ == null) { featureSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { featureSpecsBuilder_.clear(); @@ -3708,7 +3736,7 @@ public Builder removeFeatureSpecs(int index) { com.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec, com.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec.Builder, com.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpecOrBuilder>( - featureSpecs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + featureSpecs_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); featureSpecs_ = null; } return featureSpecsBuilder_; @@ -3749,6 +3777,7 @@ public boolean getDisableOnlineServing() { public Builder setDisableOnlineServing(boolean value) { disableOnlineServing_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3766,7 +3795,7 @@ public Builder setDisableOnlineServing(boolean value) { * @return This builder for chaining. */ public Builder clearDisableOnlineServing() { - + bitField0_ = (bitField0_ & ~0x00000100); disableOnlineServing_ = false; onChanged(); return this; @@ -3813,6 +3842,7 @@ public int getWorkerCount() { public Builder setWorkerCount(int value) { workerCount_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3833,7 +3863,7 @@ public Builder setWorkerCount(int value) { * @return This builder for chaining. */ public Builder clearWorkerCount() { - + bitField0_ = (bitField0_ & ~0x00000200); workerCount_ = 0; onChanged(); return this; @@ -3870,6 +3900,7 @@ public boolean getDisableIngestionAnalysis() { public Builder setDisableIngestionAnalysis(boolean value) { disableIngestionAnalysis_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3885,7 +3916,7 @@ public Builder setDisableIngestionAnalysis(boolean value) { * @return This builder for chaining. */ public Builder clearDisableIngestionAnalysis() { - + bitField0_ = (bitField0_ & ~0x00000400); disableIngestionAnalysis_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesResponse.java index a4593c6117e4..e827d6d3fcf0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesResponse.java @@ -67,7 +67,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int IMPORTED_ENTITY_COUNT_FIELD_NUMBER = 1; - private long importedEntityCount_; + private long importedEntityCount_ = 0L; /** * * @@ -85,7 +85,7 @@ public long getImportedEntityCount() { } public static final int IMPORTED_FEATURE_VALUE_COUNT_FIELD_NUMBER = 2; - private long importedFeatureValueCount_; + private long importedFeatureValueCount_ = 0L; /** * * @@ -103,7 +103,7 @@ public long getImportedFeatureValueCount() { } public static final int INVALID_ROW_COUNT_FIELD_NUMBER = 6; - private long invalidRowCount_; + private long invalidRowCount_ = 0L; /** * * @@ -125,7 +125,7 @@ public long getInvalidRowCount() { } public static final int TIMESTAMP_OUTSIDE_RETENTION_ROWS_COUNT_FIELD_NUMBER = 4; - private long timestampOutsideRetentionRowsCount_; + private long timestampOutsideRetentionRowsCount_ = 0L; /** * * @@ -374,14 +374,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; importedEntityCount_ = 0L; - importedFeatureValueCount_ = 0L; - invalidRowCount_ = 0L; - timestampOutsideRetentionRowsCount_ = 0L; - return this; } @@ -409,14 +406,29 @@ public com.google.cloud.aiplatform.v1.ImportFeatureValuesResponse build() { public com.google.cloud.aiplatform.v1.ImportFeatureValuesResponse buildPartial() { com.google.cloud.aiplatform.v1.ImportFeatureValuesResponse result = new com.google.cloud.aiplatform.v1.ImportFeatureValuesResponse(this); - result.importedEntityCount_ = importedEntityCount_; - result.importedFeatureValueCount_ = importedFeatureValueCount_; - result.invalidRowCount_ = invalidRowCount_; - result.timestampOutsideRetentionRowsCount_ = timestampOutsideRetentionRowsCount_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ImportFeatureValuesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.importedEntityCount_ = importedEntityCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.importedFeatureValueCount_ = importedFeatureValueCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.invalidRowCount_ = invalidRowCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.timestampOutsideRetentionRowsCount_ = timestampOutsideRetentionRowsCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -504,25 +516,25 @@ public Builder mergeFrom( case 8: { importedEntityCount_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { importedFeatureValueCount_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 case 32: { timestampOutsideRetentionRowsCount_ = input.readInt64(); - + bitField0_ |= 0x00000008; break; } // case 32 case 48: { invalidRowCount_ = input.readInt64(); - + bitField0_ |= 0x00000004; break; } // case 48 default: @@ -542,6 +554,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long importedEntityCount_; /** * @@ -573,6 +587,7 @@ public long getImportedEntityCount() { public Builder setImportedEntityCount(long value) { importedEntityCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -588,7 +603,7 @@ public Builder setImportedEntityCount(long value) { * @return This builder for chaining. */ public Builder clearImportedEntityCount() { - + bitField0_ = (bitField0_ & ~0x00000001); importedEntityCount_ = 0L; onChanged(); return this; @@ -625,6 +640,7 @@ public long getImportedFeatureValueCount() { public Builder setImportedFeatureValueCount(long value) { importedFeatureValueCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -640,7 +656,7 @@ public Builder setImportedFeatureValueCount(long value) { * @return This builder for chaining. */ public Builder clearImportedFeatureValueCount() { - + bitField0_ = (bitField0_ & ~0x00000002); importedFeatureValueCount_ = 0L; onChanged(); return this; @@ -685,6 +701,7 @@ public long getInvalidRowCount() { public Builder setInvalidRowCount(long value) { invalidRowCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -704,7 +721,7 @@ public Builder setInvalidRowCount(long value) { * @return This builder for chaining. */ public Builder clearInvalidRowCount() { - + bitField0_ = (bitField0_ & ~0x00000004); invalidRowCount_ = 0L; onChanged(); return this; @@ -743,6 +760,7 @@ public long getTimestampOutsideRetentionRowsCount() { public Builder setTimestampOutsideRetentionRowsCount(long value) { timestampOutsideRetentionRowsCount_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -759,7 +777,7 @@ public Builder setTimestampOutsideRetentionRowsCount(long value) { * @return This builder for chaining. */ public Builder clearTimestampOutsideRetentionRowsCount() { - + bitField0_ = (bitField0_ & ~0x00000008); timestampOutsideRetentionRowsCount_ = 0L; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportModelEvaluationRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportModelEvaluationRequest.java index 1a0511cf9404..5fda1782bcb0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportModelEvaluationRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportModelEvaluationRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -174,7 +176,9 @@ public com.google.cloud.aiplatform.v1.ModelEvaluation getModelEvaluation() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ModelEvaluationOrBuilder getModelEvaluationOrBuilder() { - return getModelEvaluation(); + return modelEvaluation_ == null + ? com.google.cloud.aiplatform.v1.ModelEvaluation.getDefaultInstance() + : modelEvaluation_; } private byte memoizedIsInitialized = -1; @@ -390,12 +394,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (modelEvaluationBuilder_ == null) { - modelEvaluation_ = null; - } else { - modelEvaluation_ = null; + modelEvaluation_ = null; + if (modelEvaluationBuilder_ != null) { + modelEvaluationBuilder_.dispose(); modelEvaluationBuilder_ = null; } return this; @@ -425,16 +428,24 @@ public com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest build() { public com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest buildPartial() { com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest result = new com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest(this); - result.parent_ = parent_; - if (modelEvaluationBuilder_ == null) { - result.modelEvaluation_ = modelEvaluation_; - } else { - result.modelEvaluation_ = modelEvaluationBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ImportModelEvaluationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelEvaluation_ = + modelEvaluationBuilder_ == null ? modelEvaluation_ : modelEvaluationBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -483,6 +494,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ImportModelEvaluationReq return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasModelEvaluation()) { @@ -517,13 +529,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getModelEvaluationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -543,6 +555,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -613,8 +627,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -633,8 +647,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -658,8 +672,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -684,7 +698,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the modelEvaluation field is set. */ public boolean hasModelEvaluation() { - return modelEvaluationBuilder_ != null || modelEvaluation_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -725,11 +739,11 @@ public Builder setModelEvaluation(com.google.cloud.aiplatform.v1.ModelEvaluation throw new NullPointerException(); } modelEvaluation_ = value; - onChanged(); } else { modelEvaluationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -747,11 +761,11 @@ public Builder setModelEvaluation( com.google.cloud.aiplatform.v1.ModelEvaluation.Builder builderForValue) { if (modelEvaluationBuilder_ == null) { modelEvaluation_ = builderForValue.build(); - onChanged(); } else { modelEvaluationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -767,19 +781,19 @@ public Builder setModelEvaluation( */ public Builder mergeModelEvaluation(com.google.cloud.aiplatform.v1.ModelEvaluation value) { if (modelEvaluationBuilder_ == null) { - if (modelEvaluation_ != null) { - modelEvaluation_ = - com.google.cloud.aiplatform.v1.ModelEvaluation.newBuilder(modelEvaluation_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && modelEvaluation_ != null + && modelEvaluation_ + != com.google.cloud.aiplatform.v1.ModelEvaluation.getDefaultInstance()) { + getModelEvaluationBuilder().mergeFrom(value); } else { modelEvaluation_ = value; } - onChanged(); } else { modelEvaluationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -794,14 +808,13 @@ public Builder mergeModelEvaluation(com.google.cloud.aiplatform.v1.ModelEvaluati * */ public Builder clearModelEvaluation() { - if (modelEvaluationBuilder_ == null) { - modelEvaluation_ = null; - onChanged(); - } else { - modelEvaluation_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + modelEvaluation_ = null; + if (modelEvaluationBuilder_ != null) { + modelEvaluationBuilder_.dispose(); modelEvaluationBuilder_ = null; } - + onChanged(); return this; } /** @@ -816,7 +829,7 @@ public Builder clearModelEvaluation() { * */ public com.google.cloud.aiplatform.v1.ModelEvaluation.Builder getModelEvaluationBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getModelEvaluationFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Index.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Index.java index 01469084f6b4..82a5bb9005b2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Index.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Index.java @@ -252,7 +252,9 @@ private IndexUpdateMethod(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -301,7 +303,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -354,7 +358,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -403,7 +409,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int METADATA_SCHEMA_URI_FIELD_NUMBER = 4; - private volatile java.lang.Object metadataSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metadataSchemaUri_ = ""; /** * * @@ -514,10 +522,12 @@ public com.google.protobuf.Value getMetadata() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; } public static final int DEPLOYED_INDEXES_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") private java.util.List deployedIndexes_; /** * @@ -608,7 +618,9 @@ public com.google.cloud.aiplatform.v1.DeployedIndexRefOrBuilder getDeployedIndex } public static final int ETAG_FIELD_NUMBER = 8; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -671,6 +683,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -740,7 +753,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -818,7 +834,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 11; @@ -888,7 +904,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int INDEX_STATS_FIELD_NUMBER = 14; @@ -942,11 +958,13 @@ public com.google.cloud.aiplatform.v1.IndexStats getIndexStats() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.IndexStatsOrBuilder getIndexStatsOrBuilder() { - return getIndexStats(); + return indexStats_ == null + ? com.google.cloud.aiplatform.v1.IndexStats.getDefaultInstance() + : indexStats_; } public static final int INDEX_UPDATE_METHOD_FIELD_NUMBER = 16; - private int indexUpdateMethod_; + private int indexUpdateMethod_ = 0; /** * * @@ -981,9 +999,8 @@ public int getIndexUpdateMethodValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod getIndexUpdateMethod() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod result = - com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod.valueOf(indexUpdateMethod_); + com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod.forNumber(indexUpdateMethod_); return result == null ? com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod.UNRECOGNIZED : result; @@ -1338,18 +1355,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - metadataSchemaUri_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } if (deployedIndexesBuilder_ == null) { @@ -1358,30 +1371,25 @@ public Builder clear() { deployedIndexes_ = null; deployedIndexesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); etag_ = ""; - internalGetMutableLabels().clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - if (indexStatsBuilder_ == null) { - indexStats_ = null; - } else { - indexStats_ = null; + indexStats_ = null; + if (indexStatsBuilder_ != null) { + indexStatsBuilder_.dispose(); indexStatsBuilder_ = null; } indexUpdateMethod_ = 0; - return this; } @@ -1408,46 +1416,62 @@ public com.google.cloud.aiplatform.v1.Index build() { @java.lang.Override public com.google.cloud.aiplatform.v1.Index buildPartial() { com.google.cloud.aiplatform.v1.Index result = new com.google.cloud.aiplatform.v1.Index(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; - result.metadataSchemaUri_ = metadataSchemaUri_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.Index result) { if (deployedIndexesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { deployedIndexes_ = java.util.Collections.unmodifiableList(deployedIndexes_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); } result.deployedIndexes_ = deployedIndexes_; } else { result.deployedIndexes_ = deployedIndexesBuilder_.build(); } - result.etag_ = etag_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Index result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (indexStatsBuilder_ == null) { - result.indexStats_ = indexStats_; - } else { - result.indexStats_ = indexStatsBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.metadataSchemaUri_ = metadataSchemaUri_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.indexStats_ = indexStatsBuilder_ == null ? indexStats_ : indexStatsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.indexUpdateMethod_ = indexUpdateMethod_; } - result.indexUpdateMethod_ = indexUpdateMethod_; - onBuilt(); - return result; } @java.lang.Override @@ -1497,18 +1521,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Index other) { if (other == com.google.cloud.aiplatform.v1.Index.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getMetadataSchemaUri().isEmpty()) { metadataSchemaUri_ = other.metadataSchemaUri_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasMetadata()) { @@ -1518,7 +1546,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Index other) { if (!other.deployedIndexes_.isEmpty()) { if (deployedIndexes_.isEmpty()) { deployedIndexes_ = other.deployedIndexes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureDeployedIndexesIsMutable(); deployedIndexes_.addAll(other.deployedIndexes_); @@ -1531,7 +1559,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Index other) { deployedIndexesBuilder_.dispose(); deployedIndexesBuilder_ = null; deployedIndexes_ = other.deployedIndexes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); deployedIndexesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDeployedIndexesFieldBuilder() @@ -1543,9 +1571,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Index other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000040; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000080; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1587,31 +1617,31 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { metadataSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 50: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 50 case 58: @@ -1631,7 +1661,7 @@ public Builder mergeFrom( case 66: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 66 case 74: @@ -1643,30 +1673,31 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; break; } // case 74 case 82: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 82 case 90: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 90 case 114: { input.readMessage(getIndexStatsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 114 case 128: { indexUpdateMethod_ = input.readEnum(); - + bitField0_ |= 0x00000800; break; } // case 128 default: @@ -1749,8 +1780,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1766,8 +1797,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1788,8 +1819,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1861,8 +1892,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1880,8 +1911,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1904,8 +1935,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1971,8 +2002,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1988,8 +2019,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2010,8 +2041,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2098,8 +2129,8 @@ public Builder setMetadataSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metadataSchemaUri_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2122,8 +2153,8 @@ public Builder setMetadataSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetadataSchemaUri() { - metadataSchemaUri_ = getDefaultInstance().getMetadataSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2151,8 +2182,8 @@ public Builder setMetadataSchemaUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metadataSchemaUri_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2177,7 +2208,7 @@ public Builder setMetadataSchemaUriBytes(com.google.protobuf.ByteString value) { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2216,11 +2247,11 @@ public Builder setMetadata(com.google.protobuf.Value value) { throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2237,11 +2268,11 @@ public Builder setMetadata(com.google.protobuf.Value value) { public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2257,17 +2288,18 @@ public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Value value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Value.newBuilder(metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Value.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2282,14 +2314,13 @@ public Builder mergeMetadata(com.google.protobuf.Value value) { * .google.protobuf.Value metadata = 6; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -2304,7 +2335,7 @@ public Builder clearMetadata() { * .google.protobuf.Value metadata = 6; */ public com.google.protobuf.Value.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -2358,11 +2389,11 @@ public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { java.util.Collections.emptyList(); private void ensureDeployedIndexesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { deployedIndexes_ = new java.util.ArrayList( deployedIndexes_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000020; } } @@ -2625,7 +2656,7 @@ public Builder addAllDeployedIndexes( public Builder clearDeployedIndexes() { if (deployedIndexesBuilder_ == null) { deployedIndexes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { deployedIndexesBuilder_.clear(); @@ -2779,7 +2810,7 @@ public com.google.cloud.aiplatform.v1.DeployedIndexRef.Builder addDeployedIndexe com.google.cloud.aiplatform.v1.DeployedIndexRef.Builder, com.google.cloud.aiplatform.v1.DeployedIndexRefOrBuilder>( deployedIndexes_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); deployedIndexes_ = null; @@ -2851,8 +2882,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2869,8 +2900,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2892,8 +2923,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2909,14 +2940,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000080; + onChanged(); return labels_; } @@ -2980,8 +3011,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3014,6 +3047,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000080); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -3040,6 +3074,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000080; return internalGetMutableLabels().getMutableMap(); } /** @@ -3062,8 +3097,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000080; return this; } /** @@ -3081,6 +3116,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000080; return this; } @@ -3104,7 +3140,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -3145,11 +3181,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3166,11 +3202,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3186,17 +3222,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3211,14 +3248,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3233,7 +3269,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -3312,7 +3348,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -3367,11 +3403,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3395,11 +3431,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3422,17 +3458,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3454,14 +3491,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3483,7 +3519,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -3569,7 +3605,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the indexStats field is set. */ public boolean hasIndexStats() { - return indexStatsBuilder_ != null || indexStats_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -3610,11 +3646,11 @@ public Builder setIndexStats(com.google.cloud.aiplatform.v1.IndexStats value) { throw new NullPointerException(); } indexStats_ = value; - onChanged(); } else { indexStatsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3632,11 +3668,11 @@ public Builder setIndexStats( com.google.cloud.aiplatform.v1.IndexStats.Builder builderForValue) { if (indexStatsBuilder_ == null) { indexStats_ = builderForValue.build(); - onChanged(); } else { indexStatsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3652,19 +3688,18 @@ public Builder setIndexStats( */ public Builder mergeIndexStats(com.google.cloud.aiplatform.v1.IndexStats value) { if (indexStatsBuilder_ == null) { - if (indexStats_ != null) { - indexStats_ = - com.google.cloud.aiplatform.v1.IndexStats.newBuilder(indexStats_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && indexStats_ != null + && indexStats_ != com.google.cloud.aiplatform.v1.IndexStats.getDefaultInstance()) { + getIndexStatsBuilder().mergeFrom(value); } else { indexStats_ = value; } - onChanged(); } else { indexStatsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3679,14 +3714,13 @@ public Builder mergeIndexStats(com.google.cloud.aiplatform.v1.IndexStats value) * */ public Builder clearIndexStats() { - if (indexStatsBuilder_ == null) { - indexStats_ = null; - onChanged(); - } else { - indexStats_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + indexStats_ = null; + if (indexStatsBuilder_ != null) { + indexStatsBuilder_.dispose(); indexStatsBuilder_ = null; } - + onChanged(); return this; } /** @@ -3701,7 +3735,7 @@ public Builder clearIndexStats() { * */ public com.google.cloud.aiplatform.v1.IndexStats.Builder getIndexStatsBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getIndexStatsFieldBuilder().getBuilder(); } @@ -3788,8 +3822,8 @@ public int getIndexUpdateMethodValue() { * @return This builder for chaining. */ public Builder setIndexUpdateMethodValue(int value) { - indexUpdateMethod_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3809,9 +3843,8 @@ public Builder setIndexUpdateMethodValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod getIndexUpdateMethod() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod result = - com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod.valueOf(indexUpdateMethod_); + com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod.forNumber(indexUpdateMethod_); return result == null ? com.google.cloud.aiplatform.v1.Index.IndexUpdateMethod.UNRECOGNIZED : result; @@ -3836,7 +3869,7 @@ public Builder setIndexUpdateMethod( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000800; indexUpdateMethod_ = value.getNumber(); onChanged(); return this; @@ -3856,7 +3889,7 @@ public Builder setIndexUpdateMethod( * @return This builder for chaining. */ public Builder clearIndexUpdateMethod() { - + bitField0_ = (bitField0_ & ~0x00000800); indexUpdateMethod_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexDatapoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexDatapoint.java index 69a8abb6af51..f37f539213e6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexDatapoint.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexDatapoint.java @@ -254,7 +254,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAMESPACE_FIELD_NUMBER = 1; - private volatile java.lang.Object namespace_; + + @SuppressWarnings("serial") + private volatile java.lang.Object namespace_ = ""; /** * * @@ -303,6 +305,8 @@ public com.google.protobuf.ByteString getNamespaceBytes() { } public static final int ALLOW_LIST_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList allowList_; /** * @@ -364,6 +368,8 @@ public com.google.protobuf.ByteString getAllowListBytes(int index) { } public static final int DENY_LIST_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList denyList_; /** * @@ -657,12 +663,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; namespace_ = ""; - allowList_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - denyList_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); + denyList_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -690,20 +696,33 @@ public com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction build() { public com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction buildPartial() { com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction result = new com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction(this); - int from_bitField0_ = bitField0_; - result.namespace_ = namespace_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction result) { + if (((bitField0_ & 0x00000002) != 0)) { allowList_ = allowList_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.allowList_ = allowList_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { denyList_ = denyList_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.denyList_ = denyList_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.namespace_ = namespace_; + } } @java.lang.Override @@ -756,12 +775,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.IndexDatapoint.Restricti return this; if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.allowList_.isEmpty()) { if (allowList_.isEmpty()) { allowList_ = other.allowList_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAllowListIsMutable(); allowList_.addAll(other.allowList_); @@ -771,7 +791,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.IndexDatapoint.Restricti if (!other.denyList_.isEmpty()) { if (denyList_.isEmpty()) { denyList_ = other.denyList_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDenyListIsMutable(); denyList_.addAll(other.denyList_); @@ -807,7 +827,7 @@ public Builder mergeFrom( case 10: { namespace_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -904,8 +924,8 @@ public Builder setNamespace(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - namespace_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -921,8 +941,8 @@ public Builder setNamespace(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNamespace() { - namespace_ = getDefaultInstance().getNamespace(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -943,8 +963,8 @@ public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - namespace_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -953,9 +973,9 @@ public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { allowList_ = new com.google.protobuf.LazyStringArrayList(allowList_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -1090,7 +1110,7 @@ public Builder addAllAllowList(java.lang.Iterable values) { */ public Builder clearAllowList() { allowList_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1121,9 +1141,9 @@ public Builder addAllowListBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDenyListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { denyList_ = new com.google.protobuf.LazyStringArrayList(denyList_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } /** @@ -1258,7 +1278,7 @@ public Builder addAllDenyList(java.lang.Iterable values) { */ public Builder clearDenyList() { denyList_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1439,7 +1459,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CROWDING_ATTRIBUTE_FIELD_NUMBER = 1; - private volatile java.lang.Object crowdingAttribute_; + + @SuppressWarnings("serial") + private volatile java.lang.Object crowdingAttribute_ = ""; /** * * @@ -1697,8 +1719,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; crowdingAttribute_ = ""; - return this; } @@ -1726,11 +1748,20 @@ public com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag build() { public com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag buildPartial() { com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag result = new com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag(this); - result.crowdingAttribute_ = crowdingAttribute_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.crowdingAttribute_ = crowdingAttribute_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1781,6 +1812,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingT return this; if (!other.getCrowdingAttribute().isEmpty()) { crowdingAttribute_ = other.crowdingAttribute_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1812,7 +1844,7 @@ public Builder mergeFrom( case 10: { crowdingAttribute_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -1832,6 +1864,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object crowdingAttribute_ = ""; /** * @@ -1905,8 +1939,8 @@ public Builder setCrowdingAttribute(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - crowdingAttribute_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1926,8 +1960,8 @@ public Builder setCrowdingAttribute(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCrowdingAttribute() { - crowdingAttribute_ = getDefaultInstance().getCrowdingAttribute(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1952,8 +1986,8 @@ public Builder setCrowdingAttributeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - crowdingAttribute_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2023,7 +2057,9 @@ public com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag getDefaultInsta } public static final int DATAPOINT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object datapointId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object datapointId_ = ""; /** * * @@ -2072,6 +2108,8 @@ public com.google.protobuf.ByteString getDatapointIdBytes() { } public static final int FEATURE_VECTOR_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.FloatList featureVector_; /** * @@ -2124,6 +2162,8 @@ public float getFeatureVector(int index) { private int featureVectorMemoizedSerializedSize = -1; public static final int RESTRICTS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List restricts_; /** * @@ -2275,7 +2315,9 @@ public com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag getCrowdingTag( @java.lang.Override public com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTagOrBuilder getCrowdingTagOrBuilder() { - return getCrowdingTag(); + return crowdingTag_ == null + ? com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.getDefaultInstance() + : crowdingTag_; } private byte memoizedIsInitialized = -1; @@ -2523,21 +2565,19 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; datapointId_ = ""; - featureVector_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000001); if (restrictsBuilder_ == null) { restricts_ = java.util.Collections.emptyList(); } else { restricts_ = null; restrictsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); - if (crowdingTagBuilder_ == null) { - crowdingTag_ = null; - } else { - crowdingTag_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + crowdingTag_ = null; + if (crowdingTagBuilder_ != null) { + crowdingTagBuilder_.dispose(); crowdingTagBuilder_ = null; } return this; @@ -2567,29 +2607,40 @@ public com.google.cloud.aiplatform.v1.IndexDatapoint build() { public com.google.cloud.aiplatform.v1.IndexDatapoint buildPartial() { com.google.cloud.aiplatform.v1.IndexDatapoint result = new com.google.cloud.aiplatform.v1.IndexDatapoint(this); - int from_bitField0_ = bitField0_; - result.datapointId_ = datapointId_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.IndexDatapoint result) { + if (((bitField0_ & 0x00000002) != 0)) { featureVector_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.featureVector_ = featureVector_; if (restrictsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { restricts_ = java.util.Collections.unmodifiableList(restricts_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.restricts_ = restricts_; } else { result.restricts_ = restrictsBuilder_.build(); } - if (crowdingTagBuilder_ == null) { - result.crowdingTag_ = crowdingTag_; - } else { - result.crowdingTag_ = crowdingTagBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.IndexDatapoint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.datapointId_ = datapointId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.crowdingTag_ = + crowdingTagBuilder_ == null ? crowdingTag_ : crowdingTagBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -2639,12 +2690,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.IndexDatapoint other) { if (other == com.google.cloud.aiplatform.v1.IndexDatapoint.getDefaultInstance()) return this; if (!other.getDatapointId().isEmpty()) { datapointId_ = other.datapointId_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.featureVector_.isEmpty()) { if (featureVector_.isEmpty()) { featureVector_ = other.featureVector_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFeatureVectorIsMutable(); featureVector_.addAll(other.featureVector_); @@ -2655,7 +2707,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.IndexDatapoint other) { if (!other.restricts_.isEmpty()) { if (restricts_.isEmpty()) { restricts_ = other.restricts_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRestrictsIsMutable(); restricts_.addAll(other.restricts_); @@ -2668,7 +2720,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.IndexDatapoint other) { restrictsBuilder_.dispose(); restrictsBuilder_ = null; restricts_ = other.restricts_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); restrictsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRestrictsFieldBuilder() @@ -2710,7 +2762,7 @@ public Builder mergeFrom( case 10: { datapointId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 21: @@ -2748,7 +2800,7 @@ public Builder mergeFrom( case 42: { input.readMessage(getCrowdingTagFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 42 default: @@ -2831,8 +2883,8 @@ public Builder setDatapointId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - datapointId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2848,8 +2900,8 @@ public Builder setDatapointId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDatapointId() { - datapointId_ = getDefaultInstance().getDatapointId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2870,8 +2922,8 @@ public Builder setDatapointIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - datapointId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2879,9 +2931,9 @@ public Builder setDatapointIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Internal.FloatList featureVector_ = emptyFloatList(); private void ensureFeatureVectorIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { featureVector_ = mutableCopy(featureVector_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -2897,7 +2949,7 @@ private void ensureFeatureVectorIsMutable() { * @return A list containing the featureVector. */ public java.util.List getFeatureVectorList() { - return ((bitField0_ & 0x00000001) != 0) + return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(featureVector_) : featureVector_; } @@ -2947,6 +2999,7 @@ public float getFeatureVector(int index) { * @return This builder for chaining. */ public Builder setFeatureVector(int index, float value) { + ensureFeatureVectorIsMutable(); featureVector_.setFloat(index, value); onChanged(); @@ -2966,6 +3019,7 @@ public Builder setFeatureVector(int index, float value) { * @return This builder for chaining. */ public Builder addFeatureVector(float value) { + ensureFeatureVectorIsMutable(); featureVector_.addFloat(value); onChanged(); @@ -3004,7 +3058,7 @@ public Builder addAllFeatureVector(java.lang.Iterable */ public Builder clearFeatureVector() { featureVector_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3013,11 +3067,11 @@ public Builder clearFeatureVector() { java.util.Collections.emptyList(); private void ensureRestrictsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { restricts_ = new java.util.ArrayList( restricts_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } @@ -3294,7 +3348,7 @@ public Builder addAllRestricts( public Builder clearRestricts() { if (restrictsBuilder_ == null) { restricts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { restrictsBuilder_.clear(); @@ -3458,7 +3512,7 @@ public com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.Builder addRest com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction, com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.Builder, com.google.cloud.aiplatform.v1.IndexDatapoint.RestrictionOrBuilder>( - restricts_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + restricts_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); restricts_ = null; } return restrictsBuilder_; @@ -3485,7 +3539,7 @@ public com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.Builder addRest * @return Whether the crowdingTag field is set. */ public boolean hasCrowdingTag() { - return crowdingTagBuilder_ != null || crowdingTag_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -3528,11 +3582,11 @@ public Builder setCrowdingTag(com.google.cloud.aiplatform.v1.IndexDatapoint.Crow throw new NullPointerException(); } crowdingTag_ = value; - onChanged(); } else { crowdingTagBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3551,11 +3605,11 @@ public Builder setCrowdingTag( com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.Builder builderForValue) { if (crowdingTagBuilder_ == null) { crowdingTag_ = builderForValue.build(); - onChanged(); } else { crowdingTagBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3573,19 +3627,19 @@ public Builder setCrowdingTag( public Builder mergeCrowdingTag( com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag value) { if (crowdingTagBuilder_ == null) { - if (crowdingTag_ != null) { - crowdingTag_ = - com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.newBuilder(crowdingTag_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && crowdingTag_ != null + && crowdingTag_ + != com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.getDefaultInstance()) { + getCrowdingTagBuilder().mergeFrom(value); } else { crowdingTag_ = value; } - onChanged(); } else { crowdingTagBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3601,14 +3655,13 @@ public Builder mergeCrowdingTag( * */ public Builder clearCrowdingTag() { - if (crowdingTagBuilder_ == null) { - crowdingTag_ = null; - onChanged(); - } else { - crowdingTag_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + crowdingTag_ = null; + if (crowdingTagBuilder_ != null) { + crowdingTagBuilder_.dispose(); crowdingTagBuilder_ = null; } - + onChanged(); return this; } /** @@ -3625,7 +3678,7 @@ public Builder clearCrowdingTag() { */ public com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.Builder getCrowdingTagBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getCrowdingTagFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpoint.java index 4447071d9c2b..084e03fb7608 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpoint.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpoint.java @@ -85,7 +85,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -134,7 +136,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -187,7 +191,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -236,6 +242,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int DEPLOYED_INDEXES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List deployedIndexes_; /** * @@ -316,7 +324,9 @@ public com.google.cloud.aiplatform.v1.DeployedIndexOrBuilder getDeployedIndexesO } public static final int ETAG_FIELD_NUMBER = 5; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -379,6 +389,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -448,7 +459,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -526,7 +540,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 8; @@ -584,11 +598,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int NETWORK_FIELD_NUMBER = 9; - private volatile java.lang.Object network_; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; /** * * @@ -659,7 +675,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { } public static final int ENABLE_PRIVATE_SERVICE_CONNECT_FIELD_NUMBER = 10; - private boolean enablePrivateServiceConnect_; + private boolean enablePrivateServiceConnect_ = false; /** * * @@ -1006,38 +1022,31 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - if (deployedIndexesBuilder_ == null) { deployedIndexes_ = java.util.Collections.emptyList(); } else { deployedIndexes_ = null; deployedIndexesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); etag_ = ""; - internalGetMutableLabels().clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } network_ = ""; - enablePrivateServiceConnect_ = false; - return this; } @@ -1065,36 +1074,56 @@ public com.google.cloud.aiplatform.v1.IndexEndpoint build() { public com.google.cloud.aiplatform.v1.IndexEndpoint buildPartial() { com.google.cloud.aiplatform.v1.IndexEndpoint result = new com.google.cloud.aiplatform.v1.IndexEndpoint(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.IndexEndpoint result) { if (deployedIndexesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { deployedIndexes_ = java.util.Collections.unmodifiableList(deployedIndexes_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.deployedIndexes_ = deployedIndexes_; } else { result.deployedIndexes_ = deployedIndexesBuilder_.build(); } - result.etag_ = etag_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.IndexEndpoint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.enablePrivateServiceConnect_ = enablePrivateServiceConnect_; } - result.network_ = network_; - result.enablePrivateServiceConnect_ = enablePrivateServiceConnect_; - onBuilt(); - return result; } @java.lang.Override @@ -1144,21 +1173,24 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.IndexEndpoint other) { if (other == com.google.cloud.aiplatform.v1.IndexEndpoint.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (deployedIndexesBuilder_ == null) { if (!other.deployedIndexes_.isEmpty()) { if (deployedIndexes_.isEmpty()) { deployedIndexes_ = other.deployedIndexes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureDeployedIndexesIsMutable(); deployedIndexes_.addAll(other.deployedIndexes_); @@ -1171,7 +1203,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.IndexEndpoint other) { deployedIndexesBuilder_.dispose(); deployedIndexesBuilder_ = null; deployedIndexes_ = other.deployedIndexes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); deployedIndexesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDeployedIndexesFieldBuilder() @@ -1183,9 +1215,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.IndexEndpoint other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000010; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000020; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1194,6 +1228,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.IndexEndpoint other) { } if (!other.getNetwork().isEmpty()) { network_ = other.network_; + bitField0_ |= 0x00000100; onChanged(); } if (other.getEnablePrivateServiceConnect() != false) { @@ -1228,19 +1263,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: @@ -1259,7 +1294,7 @@ public Builder mergeFrom( case 42: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: @@ -1271,30 +1306,31 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 66 case 74: { network_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 74 case 80: { enablePrivateServiceConnect_ = input.readBool(); - + bitField0_ |= 0x00000200; break; } // case 80 default: @@ -1377,8 +1413,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1394,8 +1430,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1416,8 +1452,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1489,8 +1525,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1508,8 +1544,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1532,8 +1568,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1599,8 +1635,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1616,8 +1652,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1638,8 +1674,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1648,10 +1684,10 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureDeployedIndexesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { deployedIndexes_ = new java.util.ArrayList(deployedIndexes_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -1891,7 +1927,7 @@ public Builder addAllDeployedIndexes( public Builder clearDeployedIndexes() { if (deployedIndexesBuilder_ == null) { deployedIndexes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { deployedIndexesBuilder_.clear(); @@ -2031,7 +2067,7 @@ public com.google.cloud.aiplatform.v1.DeployedIndex.Builder addDeployedIndexesBu com.google.cloud.aiplatform.v1.DeployedIndex.Builder, com.google.cloud.aiplatform.v1.DeployedIndexOrBuilder>( deployedIndexes_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); deployedIndexes_ = null; @@ -2103,8 +2139,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2121,8 +2157,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2144,8 +2180,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2161,14 +2197,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000020; + onChanged(); return labels_; } @@ -2232,8 +2268,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2266,6 +2304,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -2292,6 +2331,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000020; return internalGetMutableLabels().getMutableMap(); } /** @@ -2314,8 +2354,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000020; return this; } /** @@ -2333,6 +2373,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000020; return this; } @@ -2356,7 +2397,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2397,11 +2438,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2418,11 +2459,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2438,17 +2479,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2463,14 +2505,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2485,7 +2526,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2560,7 +2601,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2607,11 +2648,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2631,11 +2672,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2654,17 +2695,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2682,14 +2724,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2707,7 +2748,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2859,8 +2900,8 @@ public Builder setNetwork(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - network_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2887,8 +2928,8 @@ public Builder setNetwork(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNetwork() { - network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2920,8 +2961,8 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - network_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2977,6 +3018,7 @@ public boolean getEnablePrivateServiceConnect() { public Builder setEnablePrivateServiceConnect(boolean value) { enablePrivateServiceConnect_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3002,7 +3044,7 @@ public Builder setEnablePrivateServiceConnect(boolean value) { */ @java.lang.Deprecated public Builder clearEnablePrivateServiceConnect() { - + bitField0_ = (bitField0_ & ~0x00000200); enablePrivateServiceConnect_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointOrBuilder.java index f7b2bda21f8b..47da3ba8ad28 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointOrBuilder.java @@ -249,7 +249,6 @@ public interface IndexEndpointOrBuilder * * map<string, string> labels = 6; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexOrBuilder.java index 20afff554549..c127aff59f5c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexOrBuilder.java @@ -339,7 +339,6 @@ public interface IndexOrBuilder * * map<string, string> labels = 9; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexPrivateEndpoints.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexPrivateEndpoints.java index 3d45dbe84e38..897bccfde3ec 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexPrivateEndpoints.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexPrivateEndpoints.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MATCH_GRPC_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object matchGrpcAddress_; + + @SuppressWarnings("serial") + private volatile java.lang.Object matchGrpcAddress_ = ""; /** * * @@ -122,7 +124,9 @@ public com.google.protobuf.ByteString getMatchGrpcAddressBytes() { } public static final int SERVICE_ATTACHMENT_FIELD_NUMBER = 2; - private volatile java.lang.Object serviceAttachment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAttachment_ = ""; /** * * @@ -382,10 +386,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; matchGrpcAddress_ = ""; - serviceAttachment_ = ""; - return this; } @@ -413,12 +416,23 @@ public com.google.cloud.aiplatform.v1.IndexPrivateEndpoints build() { public com.google.cloud.aiplatform.v1.IndexPrivateEndpoints buildPartial() { com.google.cloud.aiplatform.v1.IndexPrivateEndpoints result = new com.google.cloud.aiplatform.v1.IndexPrivateEndpoints(this); - result.matchGrpcAddress_ = matchGrpcAddress_; - result.serviceAttachment_ = serviceAttachment_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.IndexPrivateEndpoints result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.matchGrpcAddress_ = matchGrpcAddress_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.serviceAttachment_ = serviceAttachment_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -467,10 +481,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.IndexPrivateEndpoints ot return this; if (!other.getMatchGrpcAddress().isEmpty()) { matchGrpcAddress_ = other.matchGrpcAddress_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getServiceAttachment().isEmpty()) { serviceAttachment_ = other.serviceAttachment_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -502,13 +518,13 @@ public Builder mergeFrom( case 10: { matchGrpcAddress_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { serviceAttachment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -528,6 +544,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object matchGrpcAddress_ = ""; /** * @@ -589,8 +607,8 @@ public Builder setMatchGrpcAddress(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - matchGrpcAddress_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -606,8 +624,8 @@ public Builder setMatchGrpcAddress(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMatchGrpcAddress() { - matchGrpcAddress_ = getDefaultInstance().getMatchGrpcAddress(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -628,8 +646,8 @@ public Builder setMatchGrpcAddressBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - matchGrpcAddress_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -698,8 +716,8 @@ public Builder setServiceAttachment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - serviceAttachment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -716,8 +734,8 @@ public Builder setServiceAttachment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearServiceAttachment() { - serviceAttachment_ = getDefaultInstance().getServiceAttachment(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -739,8 +757,8 @@ public Builder setServiceAttachmentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - serviceAttachment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexStats.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexStats.java index d1ff020f054b..9cc24e9cf983 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexStats.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexStats.java @@ -66,7 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VECTORS_COUNT_FIELD_NUMBER = 1; - private long vectorsCount_; + private long vectorsCount_ = 0L; /** * * @@ -84,7 +84,7 @@ public long getVectorsCount() { } public static final int SHARDS_COUNT_FIELD_NUMBER = 2; - private int shardsCount_; + private int shardsCount_ = 0; /** * * @@ -307,10 +307,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; vectorsCount_ = 0L; - shardsCount_ = 0; - return this; } @@ -338,12 +337,23 @@ public com.google.cloud.aiplatform.v1.IndexStats build() { public com.google.cloud.aiplatform.v1.IndexStats buildPartial() { com.google.cloud.aiplatform.v1.IndexStats result = new com.google.cloud.aiplatform.v1.IndexStats(this); - result.vectorsCount_ = vectorsCount_; - result.shardsCount_ = shardsCount_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.IndexStats result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.vectorsCount_ = vectorsCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.shardsCount_ = shardsCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -424,13 +434,13 @@ public Builder mergeFrom( case 8: { vectorsCount_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { shardsCount_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -450,6 +460,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long vectorsCount_; /** * @@ -481,6 +493,7 @@ public long getVectorsCount() { public Builder setVectorsCount(long value) { vectorsCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -496,7 +509,7 @@ public Builder setVectorsCount(long value) { * @return This builder for chaining. */ public Builder clearVectorsCount() { - + bitField0_ = (bitField0_ & ~0x00000001); vectorsCount_ = 0L; onChanged(); return this; @@ -533,6 +546,7 @@ public int getShardsCount() { public Builder setShardsCount(int value) { shardsCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -548,7 +562,7 @@ public Builder setShardsCount(int value) { * @return This builder for chaining. */ public Builder clearShardsCount() { - + bitField0_ = (bitField0_ & ~0x00000002); shardsCount_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfig.java index e630e68ad858..b5c9edbc2df9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfig.java @@ -629,7 +629,9 @@ public com.google.cloud.aiplatform.v1.BigQueryDestination getBigqueryDestination } public static final int DATASET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object datasetId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object datasetId_ = ""; /** * * @@ -690,7 +692,9 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { } public static final int ANNOTATIONS_FILTER_FIELD_NUMBER = 6; - private volatile java.lang.Object annotationsFilter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object annotationsFilter_ = ""; /** * * @@ -755,7 +759,9 @@ public com.google.protobuf.ByteString getAnnotationsFilterBytes() { } public static final int ANNOTATION_SCHEMA_URI_FIELD_NUMBER = 9; - private volatile java.lang.Object annotationSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object annotationSchemaUri_ = ""; /** * * @@ -842,7 +848,9 @@ public com.google.protobuf.ByteString getAnnotationSchemaUriBytes() { } public static final int SAVED_QUERY_ID_FIELD_NUMBER = 7; - private volatile java.lang.Object savedQueryId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object savedQueryId_ = ""; /** * * @@ -921,7 +929,7 @@ public com.google.protobuf.ByteString getSavedQueryIdBytes() { } public static final int PERSIST_ML_USE_ASSIGNMENT_FIELD_NUMBER = 11; - private boolean persistMlUseAssignment_; + private boolean persistMlUseAssignment_ = false; /** * * @@ -1295,6 +1303,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (fractionSplitBuilder_ != null) { fractionSplitBuilder_.clear(); } @@ -1317,15 +1326,10 @@ public Builder clear() { bigqueryDestinationBuilder_.clear(); } datasetId_ = ""; - annotationsFilter_ = ""; - annotationSchemaUri_ = ""; - savedQueryId_ = ""; - persistMlUseAssignment_ = false; - splitCase_ = 0; split_ = null; destinationCase_ = 0; @@ -1357,64 +1361,59 @@ public com.google.cloud.aiplatform.v1.InputDataConfig build() { public com.google.cloud.aiplatform.v1.InputDataConfig buildPartial() { com.google.cloud.aiplatform.v1.InputDataConfig result = new com.google.cloud.aiplatform.v1.InputDataConfig(this); - if (splitCase_ == 2) { - if (fractionSplitBuilder_ == null) { - result.split_ = split_; - } else { - result.split_ = fractionSplitBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (splitCase_ == 3) { - if (filterSplitBuilder_ == null) { - result.split_ = split_; - } else { - result.split_ = filterSplitBuilder_.build(); - } - } - if (splitCase_ == 4) { - if (predefinedSplitBuilder_ == null) { - result.split_ = split_; - } else { - result.split_ = predefinedSplitBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.InputDataConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.datasetId_ = datasetId_; } - if (splitCase_ == 5) { - if (timestampSplitBuilder_ == null) { - result.split_ = split_; - } else { - result.split_ = timestampSplitBuilder_.build(); - } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.annotationsFilter_ = annotationsFilter_; } - if (splitCase_ == 12) { - if (stratifiedSplitBuilder_ == null) { - result.split_ = split_; - } else { - result.split_ = stratifiedSplitBuilder_.build(); - } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.annotationSchemaUri_ = annotationSchemaUri_; } - if (destinationCase_ == 8) { - if (gcsDestinationBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = gcsDestinationBuilder_.build(); - } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.savedQueryId_ = savedQueryId_; } - if (destinationCase_ == 10) { - if (bigqueryDestinationBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = bigqueryDestinationBuilder_.build(); - } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.persistMlUseAssignment_ = persistMlUseAssignment_; } - result.datasetId_ = datasetId_; - result.annotationsFilter_ = annotationsFilter_; - result.annotationSchemaUri_ = annotationSchemaUri_; - result.savedQueryId_ = savedQueryId_; - result.persistMlUseAssignment_ = persistMlUseAssignment_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.InputDataConfig result) { result.splitCase_ = splitCase_; + result.split_ = this.split_; + if (splitCase_ == 2 && fractionSplitBuilder_ != null) { + result.split_ = fractionSplitBuilder_.build(); + } + if (splitCase_ == 3 && filterSplitBuilder_ != null) { + result.split_ = filterSplitBuilder_.build(); + } + if (splitCase_ == 4 && predefinedSplitBuilder_ != null) { + result.split_ = predefinedSplitBuilder_.build(); + } + if (splitCase_ == 5 && timestampSplitBuilder_ != null) { + result.split_ = timestampSplitBuilder_.build(); + } + if (splitCase_ == 12 && stratifiedSplitBuilder_ != null) { + result.split_ = stratifiedSplitBuilder_.build(); + } result.destinationCase_ = destinationCase_; - onBuilt(); - return result; + result.destination_ = this.destination_; + if (destinationCase_ == 8 && gcsDestinationBuilder_ != null) { + result.destination_ = gcsDestinationBuilder_.build(); + } + if (destinationCase_ == 10 && bigqueryDestinationBuilder_ != null) { + result.destination_ = bigqueryDestinationBuilder_.build(); + } } @java.lang.Override @@ -1464,18 +1463,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.InputDataConfig other) { if (other == com.google.cloud.aiplatform.v1.InputDataConfig.getDefaultInstance()) return this; if (!other.getDatasetId().isEmpty()) { datasetId_ = other.datasetId_; + bitField0_ |= 0x00000080; onChanged(); } if (!other.getAnnotationsFilter().isEmpty()) { annotationsFilter_ = other.annotationsFilter_; + bitField0_ |= 0x00000100; onChanged(); } if (!other.getAnnotationSchemaUri().isEmpty()) { annotationSchemaUri_ = other.annotationSchemaUri_; + bitField0_ |= 0x00000200; onChanged(); } if (!other.getSavedQueryId().isEmpty()) { savedQueryId_ = other.savedQueryId_; + bitField0_ |= 0x00000400; onChanged(); } if (other.getPersistMlUseAssignment() != false) { @@ -1557,7 +1560,7 @@ public Builder mergeFrom( case 10: { datasetId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 10 case 18: @@ -1587,13 +1590,13 @@ public Builder mergeFrom( case 50: { annotationsFilter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 50 case 58: { savedQueryId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000400; break; } // case 58 case 66: @@ -1605,7 +1608,7 @@ public Builder mergeFrom( case 74: { annotationSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000200; break; } // case 74 case 82: @@ -1618,7 +1621,7 @@ public Builder mergeFrom( case 88: { persistMlUseAssignment_ = input.readBool(); - + bitField0_ |= 0x00000800; break; } // case 88 case 98: @@ -1672,6 +1675,8 @@ public Builder clearDestination() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.FractionSplit, com.google.cloud.aiplatform.v1.FractionSplit.Builder, @@ -1878,7 +1883,6 @@ public com.google.cloud.aiplatform.v1.FractionSplitOrBuilder getFractionSplitOrB } splitCase_ = 2; onChanged(); - ; return fractionSplitBuilder_; } @@ -2088,7 +2092,6 @@ public com.google.cloud.aiplatform.v1.FilterSplitOrBuilder getFilterSplitOrBuild } splitCase_ = 3; onChanged(); - ; return filterSplitBuilder_; } @@ -2307,7 +2310,6 @@ public com.google.cloud.aiplatform.v1.PredefinedSplitOrBuilder getPredefinedSpli } splitCase_ = 4; onChanged(); - ; return predefinedSplitBuilder_; } @@ -2526,7 +2528,6 @@ public com.google.cloud.aiplatform.v1.TimestampSplitOrBuilder getTimestampSplitO } splitCase_ = 5; onChanged(); - ; return timestampSplitBuilder_; } @@ -2745,7 +2746,6 @@ public com.google.cloud.aiplatform.v1.StratifiedSplitOrBuilder getStratifiedSpli } splitCase_ = 12; onChanged(); - ; return stratifiedSplitBuilder_; } @@ -3090,7 +3090,6 @@ public com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder getGcsDestinationO } destinationCase_ = 8; onChanged(); - ; return gcsDestinationBuilder_; } @@ -3431,7 +3430,6 @@ public Builder clearBigqueryDestination() { } destinationCase_ = 10; onChanged(); - ; return bigqueryDestinationBuilder_; } @@ -3514,8 +3512,8 @@ public Builder setDatasetId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - datasetId_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3537,8 +3535,8 @@ public Builder setDatasetId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDatasetId() { - datasetId_ = getDefaultInstance().getDatasetId(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -3565,8 +3563,8 @@ public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - datasetId_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3656,8 +3654,8 @@ public Builder setAnnotationsFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - annotationsFilter_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3681,8 +3679,8 @@ public Builder setAnnotationsFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAnnotationsFilter() { - annotationsFilter_ = getDefaultInstance().getAnnotationsFilter(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -3711,8 +3709,8 @@ public Builder setAnnotationsFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - annotationsFilter_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3835,8 +3833,8 @@ public Builder setAnnotationSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - annotationSchemaUri_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3871,8 +3869,8 @@ public Builder setAnnotationSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAnnotationSchemaUri() { - annotationSchemaUri_ = getDefaultInstance().getAnnotationSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -3912,8 +3910,8 @@ public Builder setAnnotationSchemaUriBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - annotationSchemaUri_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4024,8 +4022,8 @@ public Builder setSavedQueryId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - savedQueryId_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4056,8 +4054,8 @@ public Builder setSavedQueryId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSavedQueryId() { - savedQueryId_ = getDefaultInstance().getSavedQueryId(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -4093,8 +4091,8 @@ public Builder setSavedQueryIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - savedQueryId_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4130,6 +4128,7 @@ public boolean getPersistMlUseAssignment() { public Builder setPersistMlUseAssignment(boolean value) { persistMlUseAssignment_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4145,7 +4144,7 @@ public Builder setPersistMlUseAssignment(boolean value) { * @return This builder for chaining. */ public Builder clearPersistMlUseAssignment() { - + bitField0_ = (bitField0_ & ~0x00000800); persistMlUseAssignment_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Int64Array.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Int64Array.java index 8171d6a2990e..642aa93d68de 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Int64Array.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Int64Array.java @@ -68,6 +68,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList values_; /** * @@ -329,8 +331,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; values_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -358,14 +360,24 @@ public com.google.cloud.aiplatform.v1.Int64Array build() { public com.google.cloud.aiplatform.v1.Int64Array buildPartial() { com.google.cloud.aiplatform.v1.Int64Array result = new com.google.cloud.aiplatform.v1.Int64Array(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.Int64Array result) { if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Int64Array result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -553,6 +565,7 @@ public long getValues(int index) { * @return This builder for chaining. */ public Builder setValues(int index, long value) { + ensureValuesIsMutable(); values_.setLong(index, value); onChanged(); @@ -571,6 +584,7 @@ public Builder setValues(int index, long value) { * @return This builder for chaining. */ public Builder addValues(long value) { + ensureValuesIsMutable(); values_.addLong(value); onChanged(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IntegratedGradientsAttribution.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IntegratedGradientsAttribution.java index 3bfa649c90d0..2f3550e6e076 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IntegratedGradientsAttribution.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IntegratedGradientsAttribution.java @@ -69,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int STEP_COUNT_FIELD_NUMBER = 1; - private int stepCount_; + private int stepCount_ = 0; /** * * @@ -146,7 +146,9 @@ public com.google.cloud.aiplatform.v1.SmoothGradConfig getSmoothGradConfig() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.SmoothGradConfigOrBuilder getSmoothGradConfigOrBuilder() { - return getSmoothGradConfig(); + return smoothGradConfig_ == null + ? com.google.cloud.aiplatform.v1.SmoothGradConfig.getDefaultInstance() + : smoothGradConfig_; } public static final int BLUR_BASELINE_CONFIG_FIELD_NUMBER = 3; @@ -207,7 +209,9 @@ public com.google.cloud.aiplatform.v1.BlurBaselineConfig getBlurBaselineConfig() @java.lang.Override public com.google.cloud.aiplatform.v1.BlurBaselineConfigOrBuilder getBlurBaselineConfigOrBuilder() { - return getBlurBaselineConfig(); + return blurBaselineConfig_ == null + ? com.google.cloud.aiplatform.v1.BlurBaselineConfig.getDefaultInstance() + : blurBaselineConfig_; } private byte memoizedIsInitialized = -1; @@ -438,18 +442,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; stepCount_ = 0; - - if (smoothGradConfigBuilder_ == null) { - smoothGradConfig_ = null; - } else { - smoothGradConfig_ = null; + smoothGradConfig_ = null; + if (smoothGradConfigBuilder_ != null) { + smoothGradConfigBuilder_.dispose(); smoothGradConfigBuilder_ = null; } - if (blurBaselineConfigBuilder_ == null) { - blurBaselineConfig_ = null; - } else { - blurBaselineConfig_ = null; + blurBaselineConfig_ = null; + if (blurBaselineConfigBuilder_ != null) { + blurBaselineConfigBuilder_.dispose(); blurBaselineConfigBuilder_ = null; } return this; @@ -480,21 +482,31 @@ public com.google.cloud.aiplatform.v1.IntegratedGradientsAttribution build() { public com.google.cloud.aiplatform.v1.IntegratedGradientsAttribution buildPartial() { com.google.cloud.aiplatform.v1.IntegratedGradientsAttribution result = new com.google.cloud.aiplatform.v1.IntegratedGradientsAttribution(this); - result.stepCount_ = stepCount_; - if (smoothGradConfigBuilder_ == null) { - result.smoothGradConfig_ = smoothGradConfig_; - } else { - result.smoothGradConfig_ = smoothGradConfigBuilder_.build(); - } - if (blurBaselineConfigBuilder_ == null) { - result.blurBaselineConfig_ = blurBaselineConfig_; - } else { - result.blurBaselineConfig_ = blurBaselineConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.IntegratedGradientsAttribution result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.stepCount_ = stepCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.smoothGradConfig_ = + smoothGradConfigBuilder_ == null ? smoothGradConfig_ : smoothGradConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.blurBaselineConfig_ = + blurBaselineConfigBuilder_ == null + ? blurBaselineConfig_ + : blurBaselineConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -580,21 +592,21 @@ public Builder mergeFrom( case 8: { stepCount_ = input.readInt32(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getSmoothGradConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getBlurBaselineConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -614,6 +626,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int stepCount_; /** * @@ -651,6 +665,7 @@ public int getStepCount() { public Builder setStepCount(int value) { stepCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -669,7 +684,7 @@ public Builder setStepCount(int value) { * @return This builder for chaining. */ public Builder clearStepCount() { - + bitField0_ = (bitField0_ & ~0x00000001); stepCount_ = 0; onChanged(); return this; @@ -697,7 +712,7 @@ public Builder clearStepCount() { * @return Whether the smoothGradConfig field is set. */ public boolean hasSmoothGradConfig() { - return smoothGradConfigBuilder_ != null || smoothGradConfig_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -742,11 +757,11 @@ public Builder setSmoothGradConfig(com.google.cloud.aiplatform.v1.SmoothGradConf throw new NullPointerException(); } smoothGradConfig_ = value; - onChanged(); } else { smoothGradConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -766,11 +781,11 @@ public Builder setSmoothGradConfig( com.google.cloud.aiplatform.v1.SmoothGradConfig.Builder builderForValue) { if (smoothGradConfigBuilder_ == null) { smoothGradConfig_ = builderForValue.build(); - onChanged(); } else { smoothGradConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -788,19 +803,19 @@ public Builder setSmoothGradConfig( */ public Builder mergeSmoothGradConfig(com.google.cloud.aiplatform.v1.SmoothGradConfig value) { if (smoothGradConfigBuilder_ == null) { - if (smoothGradConfig_ != null) { - smoothGradConfig_ = - com.google.cloud.aiplatform.v1.SmoothGradConfig.newBuilder(smoothGradConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && smoothGradConfig_ != null + && smoothGradConfig_ + != com.google.cloud.aiplatform.v1.SmoothGradConfig.getDefaultInstance()) { + getSmoothGradConfigBuilder().mergeFrom(value); } else { smoothGradConfig_ = value; } - onChanged(); } else { smoothGradConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -817,14 +832,13 @@ public Builder mergeSmoothGradConfig(com.google.cloud.aiplatform.v1.SmoothGradCo * .google.cloud.aiplatform.v1.SmoothGradConfig smooth_grad_config = 2; */ public Builder clearSmoothGradConfig() { - if (smoothGradConfigBuilder_ == null) { - smoothGradConfig_ = null; - onChanged(); - } else { - smoothGradConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + smoothGradConfig_ = null; + if (smoothGradConfigBuilder_ != null) { + smoothGradConfigBuilder_.dispose(); smoothGradConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -841,7 +855,7 @@ public Builder clearSmoothGradConfig() { * .google.cloud.aiplatform.v1.SmoothGradConfig smooth_grad_config = 2; */ public com.google.cloud.aiplatform.v1.SmoothGradConfig.Builder getSmoothGradConfigBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getSmoothGradConfigFieldBuilder().getBuilder(); } @@ -919,7 +933,7 @@ public com.google.cloud.aiplatform.v1.SmoothGradConfigOrBuilder getSmoothGradCon * @return Whether the blurBaselineConfig field is set. */ public boolean hasBlurBaselineConfig() { - return blurBaselineConfigBuilder_ != null || blurBaselineConfig_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -964,11 +978,11 @@ public Builder setBlurBaselineConfig(com.google.cloud.aiplatform.v1.BlurBaseline throw new NullPointerException(); } blurBaselineConfig_ = value; - onChanged(); } else { blurBaselineConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -988,11 +1002,11 @@ public Builder setBlurBaselineConfig( com.google.cloud.aiplatform.v1.BlurBaselineConfig.Builder builderForValue) { if (blurBaselineConfigBuilder_ == null) { blurBaselineConfig_ = builderForValue.build(); - onChanged(); } else { blurBaselineConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1011,19 +1025,19 @@ public Builder setBlurBaselineConfig( public Builder mergeBlurBaselineConfig( com.google.cloud.aiplatform.v1.BlurBaselineConfig value) { if (blurBaselineConfigBuilder_ == null) { - if (blurBaselineConfig_ != null) { - blurBaselineConfig_ = - com.google.cloud.aiplatform.v1.BlurBaselineConfig.newBuilder(blurBaselineConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && blurBaselineConfig_ != null + && blurBaselineConfig_ + != com.google.cloud.aiplatform.v1.BlurBaselineConfig.getDefaultInstance()) { + getBlurBaselineConfigBuilder().mergeFrom(value); } else { blurBaselineConfig_ = value; } - onChanged(); } else { blurBaselineConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1040,14 +1054,13 @@ public Builder mergeBlurBaselineConfig( * .google.cloud.aiplatform.v1.BlurBaselineConfig blur_baseline_config = 3; */ public Builder clearBlurBaselineConfig() { - if (blurBaselineConfigBuilder_ == null) { - blurBaselineConfig_ = null; - onChanged(); - } else { - blurBaselineConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + blurBaselineConfig_ = null; + if (blurBaselineConfigBuilder_ != null) { + blurBaselineConfigBuilder_.dispose(); blurBaselineConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1065,7 +1078,7 @@ public Builder clearBlurBaselineConfig() { */ public com.google.cloud.aiplatform.v1.BlurBaselineConfig.Builder getBlurBaselineConfigBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getBlurBaselineConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LineageSubgraph.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LineageSubgraph.java index 4a46369df230..d0b1cc54ec30 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LineageSubgraph.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LineageSubgraph.java @@ -71,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ARTIFACTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List artifacts_; /** * @@ -140,6 +142,8 @@ public com.google.cloud.aiplatform.v1.ArtifactOrBuilder getArtifactsOrBuilder(in } public static final int EXECUTIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List executions_; /** * @@ -209,6 +213,8 @@ public com.google.cloud.aiplatform.v1.ExecutionOrBuilder getExecutionsOrBuilder( } public static final int EVENTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List events_; /** * @@ -499,6 +505,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (artifactsBuilder_ == null) { artifacts_ = java.util.Collections.emptyList(); } else { @@ -547,7 +554,15 @@ public com.google.cloud.aiplatform.v1.LineageSubgraph build() { public com.google.cloud.aiplatform.v1.LineageSubgraph buildPartial() { com.google.cloud.aiplatform.v1.LineageSubgraph result = new com.google.cloud.aiplatform.v1.LineageSubgraph(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.LineageSubgraph result) { if (artifactsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { artifacts_ = java.util.Collections.unmodifiableList(artifacts_); @@ -575,8 +590,10 @@ public com.google.cloud.aiplatform.v1.LineageSubgraph buildPartial() { } else { result.events_ = eventsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.LineageSubgraph result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListAnnotationsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListAnnotationsRequest.java index 27d1d2cc879c..e6172cfa12e2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListAnnotationsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListAnnotationsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -178,7 +182,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -196,7 +200,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -287,11 +293,13 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } public static final int ORDER_BY_FIELD_NUMBER = 6; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -590,22 +598,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } orderBy_ = ""; - return this; } @@ -633,20 +636,35 @@ public com.google.cloud.aiplatform.v1.ListAnnotationsRequest build() { public com.google.cloud.aiplatform.v1.ListAnnotationsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListAnnotationsRequest result = new com.google.cloud.aiplatform.v1.ListAnnotationsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.orderBy_ = orderBy_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListAnnotationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -695,10 +713,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListAnnotationsRequest o return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -706,6 +726,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListAnnotationsRequest o } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -713,6 +734,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListAnnotationsRequest o } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -744,37 +766,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -794,6 +816,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -867,8 +891,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -888,8 +912,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -914,8 +938,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -981,8 +1005,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -998,8 +1022,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1020,8 +1044,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1057,6 +1081,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1072,7 +1097,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1139,8 +1164,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1156,8 +1181,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1178,8 +1203,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1202,7 +1227,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1237,11 +1262,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1256,11 +1281,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1274,17 +1299,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1297,14 +1323,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1317,7 +1342,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } @@ -1427,8 +1452,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1445,8 +1470,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1468,8 +1493,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListAnnotationsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListAnnotationsResponse.java index 6823d3f25bcd..58f586f2822f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListAnnotationsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListAnnotationsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ANNOTATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List annotations_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1.AnnotationOrBuilder getAnnotationsOrBuilde } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -397,6 +401,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (annotationsBuilder_ == null) { annotations_ = java.util.Collections.emptyList(); } else { @@ -405,7 +410,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -433,7 +437,16 @@ public com.google.cloud.aiplatform.v1.ListAnnotationsResponse build() { public com.google.cloud.aiplatform.v1.ListAnnotationsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListAnnotationsResponse result = new com.google.cloud.aiplatform.v1.ListAnnotationsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListAnnotationsResponse result) { if (annotationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { annotations_ = java.util.Collections.unmodifiableList(annotations_); @@ -443,9 +456,13 @@ public com.google.cloud.aiplatform.v1.ListAnnotationsResponse buildPartial() { } else { result.annotations_ = annotationsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListAnnotationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -523,6 +540,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListAnnotationsResponse } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -567,7 +585,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1001,8 +1019,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1018,8 +1036,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1040,8 +1058,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListArtifactsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListArtifactsRequest.java index 979f9b097c4b..fb5de9a61ca5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListArtifactsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListArtifactsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -148,7 +150,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -207,7 +211,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -304,7 +310,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -596,16 +604,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - filter_ = ""; - orderBy_ = ""; - return this; } @@ -633,15 +637,32 @@ public com.google.cloud.aiplatform.v1.ListArtifactsRequest build() { public com.google.cloud.aiplatform.v1.ListArtifactsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListArtifactsRequest result = new com.google.cloud.aiplatform.v1.ListArtifactsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; - result.orderBy_ = orderBy_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListArtifactsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -690,6 +711,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListArtifactsRequest oth return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -697,14 +719,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListArtifactsRequest oth } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -736,31 +761,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -780,6 +805,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -853,8 +880,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -874,8 +901,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -900,8 +927,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -939,6 +966,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -955,7 +983,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -1037,8 +1065,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1059,8 +1087,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1086,8 +1114,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1225,8 +1253,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1266,8 +1294,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1312,8 +1340,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1394,8 +1422,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1416,8 +1444,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1443,8 +1471,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListArtifactsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListArtifactsResponse.java index 27e30b775b39..ff0b16c73f53 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListArtifactsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListArtifactsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ARTIFACTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List artifacts_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1.ArtifactOrBuilder getArtifactsOrBuilder(in } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -402,6 +406,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (artifactsBuilder_ == null) { artifacts_ = java.util.Collections.emptyList(); } else { @@ -410,7 +415,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -438,7 +442,16 @@ public com.google.cloud.aiplatform.v1.ListArtifactsResponse build() { public com.google.cloud.aiplatform.v1.ListArtifactsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListArtifactsResponse result = new com.google.cloud.aiplatform.v1.ListArtifactsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListArtifactsResponse result) { if (artifactsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { artifacts_ = java.util.Collections.unmodifiableList(artifacts_); @@ -448,9 +461,13 @@ public com.google.cloud.aiplatform.v1.ListArtifactsResponse buildPartial() { } else { result.artifacts_ = artifactsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListArtifactsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -528,6 +545,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListArtifactsResponse ot } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -572,7 +590,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1013,8 +1031,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1033,8 +1051,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1058,8 +1076,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequest.java index d29f65621d7c..284a5a28dd81 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -208,7 +212,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -226,7 +230,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -327,7 +333,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -570,18 +576,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -612,19 +614,33 @@ public com.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest build() { public com.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest result = new com.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -674,10 +690,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListBatchPredictionJobsR return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -685,6 +703,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListBatchPredictionJobsR } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -719,31 +738,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -763,6 +782,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -833,8 +854,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -853,8 +874,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -878,8 +899,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -993,8 +1014,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1026,8 +1047,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1064,8 +1085,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1101,6 +1122,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1116,7 +1138,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1198,8 +1220,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1220,8 +1242,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1247,8 +1269,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1271,7 +1293,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1306,11 +1328,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1325,11 +1347,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1343,17 +1365,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1366,14 +1389,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1386,7 +1408,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsResponse.java index 16dc97fbfd68..d9e03c02de93 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsResponse.java @@ -71,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int BATCH_PREDICTION_JOBS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List batchPredictionJobs_; /** * @@ -142,7 +144,9 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJobOrBuilder getBatchPredic } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -407,6 +411,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (batchPredictionJobsBuilder_ == null) { batchPredictionJobs_ = java.util.Collections.emptyList(); } else { @@ -415,7 +420,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -444,7 +448,16 @@ public com.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse build() { public com.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse result = new com.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse result) { if (batchPredictionJobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { batchPredictionJobs_ = java.util.Collections.unmodifiableList(batchPredictionJobs_); @@ -454,9 +467,14 @@ public com.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse buildParti } else { result.batchPredictionJobs_ = batchPredictionJobsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -535,6 +553,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListBatchPredictionJobsR } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -580,7 +599,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1053,8 +1072,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1073,8 +1092,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1098,8 +1117,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListContextsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListContextsRequest.java index 94e9957bf87f..dcbe1d112485 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListContextsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListContextsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -148,7 +150,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -207,7 +211,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -310,7 +316,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -602,16 +610,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - filter_ = ""; - orderBy_ = ""; - return this; } @@ -639,15 +643,32 @@ public com.google.cloud.aiplatform.v1.ListContextsRequest build() { public com.google.cloud.aiplatform.v1.ListContextsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListContextsRequest result = new com.google.cloud.aiplatform.v1.ListContextsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; - result.orderBy_ = orderBy_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListContextsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -696,6 +717,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListContextsRequest othe return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -703,14 +725,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListContextsRequest othe } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -742,31 +767,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -786,6 +811,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -859,8 +886,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -880,8 +907,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -906,8 +933,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -945,6 +972,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -961,7 +989,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -1043,8 +1071,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1065,8 +1093,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1092,8 +1120,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1240,8 +1268,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1284,8 +1312,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1333,8 +1361,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1415,8 +1443,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1437,8 +1465,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1464,8 +1492,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListContextsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListContextsResponse.java index 5a5882cc9b7c..9e7d69d413f6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListContextsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListContextsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTEXTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List contexts_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1.ContextOrBuilder getContextsOrBuilder(int } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -402,6 +406,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (contextsBuilder_ == null) { contexts_ = java.util.Collections.emptyList(); } else { @@ -410,7 +415,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -438,7 +442,16 @@ public com.google.cloud.aiplatform.v1.ListContextsResponse build() { public com.google.cloud.aiplatform.v1.ListContextsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListContextsResponse result = new com.google.cloud.aiplatform.v1.ListContextsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListContextsResponse result) { if (contextsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { contexts_ = java.util.Collections.unmodifiableList(contexts_); @@ -448,9 +461,13 @@ public com.google.cloud.aiplatform.v1.ListContextsResponse buildPartial() { } else { result.contexts_ = contextsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListContextsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -528,6 +545,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListContextsResponse oth } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -572,7 +590,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1012,8 +1030,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1032,8 +1050,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1057,8 +1075,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsRequest.java index 5129bfdfc2ce..6cbd8a54f062 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -126,7 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -205,7 +209,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -223,7 +227,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -324,7 +330,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -566,18 +572,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -607,19 +609,32 @@ public com.google.cloud.aiplatform.v1.ListCustomJobsRequest build() { public com.google.cloud.aiplatform.v1.ListCustomJobsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListCustomJobsRequest result = new com.google.cloud.aiplatform.v1.ListCustomJobsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListCustomJobsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -668,10 +683,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListCustomJobsRequest ot return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -679,6 +696,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListCustomJobsRequest ot } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -713,31 +731,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -757,6 +775,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -827,8 +847,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -847,8 +867,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -872,8 +892,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -984,8 +1004,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1016,8 +1036,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1053,8 +1073,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1090,6 +1110,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1105,7 +1126,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1187,8 +1208,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1209,8 +1230,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1236,8 +1257,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1260,7 +1281,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1295,11 +1316,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1314,11 +1335,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1332,17 +1353,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1355,14 +1377,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1375,7 +1396,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsResponse.java index 27bbe1b8e67c..3d5adc49e205 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CUSTOM_JOBS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List customJobs_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1.CustomJobOrBuilder getCustomJobsOrBuilder( } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -403,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (customJobsBuilder_ == null) { customJobs_ = java.util.Collections.emptyList(); } else { @@ -411,7 +416,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -439,7 +443,16 @@ public com.google.cloud.aiplatform.v1.ListCustomJobsResponse build() { public com.google.cloud.aiplatform.v1.ListCustomJobsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListCustomJobsResponse result = new com.google.cloud.aiplatform.v1.ListCustomJobsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListCustomJobsResponse result) { if (customJobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { customJobs_ = java.util.Collections.unmodifiableList(customJobs_); @@ -449,9 +462,13 @@ public com.google.cloud.aiplatform.v1.ListCustomJobsResponse buildPartial() { } else { result.customJobs_ = customJobsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListCustomJobsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -529,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListCustomJobsResponse o } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -573,7 +591,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1015,8 +1033,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1035,8 +1053,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1060,8 +1078,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataItemsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataItemsRequest.java index 0f687c6c85c8..d34b7cabac4e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataItemsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataItemsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -178,7 +182,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -196,7 +200,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -287,11 +293,13 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } public static final int ORDER_BY_FIELD_NUMBER = 6; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -589,22 +597,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } orderBy_ = ""; - return this; } @@ -632,20 +635,35 @@ public com.google.cloud.aiplatform.v1.ListDataItemsRequest build() { public com.google.cloud.aiplatform.v1.ListDataItemsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListDataItemsRequest result = new com.google.cloud.aiplatform.v1.ListDataItemsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.orderBy_ = orderBy_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListDataItemsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -694,10 +712,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListDataItemsRequest oth return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -705,6 +725,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListDataItemsRequest oth } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -712,6 +733,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListDataItemsRequest oth } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -743,37 +765,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -793,6 +815,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -866,8 +890,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -887,8 +911,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -913,8 +937,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -980,8 +1004,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -997,8 +1021,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1019,8 +1043,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1056,6 +1080,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1071,7 +1096,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1138,8 +1163,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1155,8 +1180,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1177,8 +1202,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1201,7 +1226,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1236,11 +1261,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1255,11 +1280,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1273,17 +1298,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1296,14 +1322,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1316,7 +1341,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } @@ -1426,8 +1451,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1444,8 +1469,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1467,8 +1492,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataItemsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataItemsResponse.java index ae1850f0559b..af20ca72514c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataItemsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataItemsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DATA_ITEMS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List dataItems_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1.DataItemOrBuilder getDataItemsOrBuilder(in } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -396,6 +400,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (dataItemsBuilder_ == null) { dataItems_ = java.util.Collections.emptyList(); } else { @@ -404,7 +409,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -432,7 +436,16 @@ public com.google.cloud.aiplatform.v1.ListDataItemsResponse build() { public com.google.cloud.aiplatform.v1.ListDataItemsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListDataItemsResponse result = new com.google.cloud.aiplatform.v1.ListDataItemsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListDataItemsResponse result) { if (dataItemsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { dataItems_ = java.util.Collections.unmodifiableList(dataItems_); @@ -442,9 +455,13 @@ public com.google.cloud.aiplatform.v1.ListDataItemsResponse buildPartial() { } else { result.dataItems_ = dataItemsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListDataItemsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -522,6 +539,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListDataItemsResponse ot } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -566,7 +584,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -998,8 +1016,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1015,8 +1033,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1037,8 +1055,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsRequest.java index 2ec52cfd2102..37b6058e0f95 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -206,7 +210,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -224,7 +228,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -324,11 +330,13 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } public static final int ORDER_BY_FIELD_NUMBER = 6; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -629,22 +637,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } orderBy_ = ""; - return this; } @@ -672,20 +675,35 @@ public com.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest build() { public com.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest result = new com.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.orderBy_ = orderBy_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -734,10 +752,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListDataLabelingJobsRequ return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -745,6 +765,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListDataLabelingJobsRequ } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -752,6 +773,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListDataLabelingJobsRequ } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -783,37 +805,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -833,6 +855,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -903,8 +927,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -923,8 +947,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -948,8 +972,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1060,8 +1084,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1092,8 +1116,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1129,8 +1153,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1166,6 +1190,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1181,7 +1206,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1248,8 +1273,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1265,8 +1290,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1287,8 +1312,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1314,7 +1339,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1355,11 +1380,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1377,11 +1402,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1398,17 +1423,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1424,14 +1450,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1447,7 +1472,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } @@ -1566,8 +1591,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1585,8 +1610,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1609,8 +1634,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsResponse.java index 42af329deb23..5f46368e3328 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DATA_LABELING_JOBS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List dataLabelingJobs_; /** * @@ -145,7 +147,9 @@ public com.google.cloud.aiplatform.v1.DataLabelingJobOrBuilder getDataLabelingJo } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -403,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (dataLabelingJobsBuilder_ == null) { dataLabelingJobs_ = java.util.Collections.emptyList(); } else { @@ -411,7 +416,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -439,7 +443,16 @@ public com.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse build() { public com.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse result = new com.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse result) { if (dataLabelingJobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { dataLabelingJobs_ = java.util.Collections.unmodifiableList(dataLabelingJobs_); @@ -449,9 +462,13 @@ public com.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse buildPartial( } else { result.dataLabelingJobs_ = dataLabelingJobsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -529,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListDataLabelingJobsResp } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -573,7 +591,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1035,8 +1053,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1052,8 +1070,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1074,8 +1092,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetsRequest.java index ae1a5d65cbb7..66a0fd239508 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -196,7 +200,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -214,7 +218,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -305,11 +311,13 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } public static final int ORDER_BY_FIELD_NUMBER = 6; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -615,22 +623,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } orderBy_ = ""; - return this; } @@ -658,20 +661,35 @@ public com.google.cloud.aiplatform.v1.ListDatasetsRequest build() { public com.google.cloud.aiplatform.v1.ListDatasetsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListDatasetsRequest result = new com.google.cloud.aiplatform.v1.ListDatasetsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.orderBy_ = orderBy_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListDatasetsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -720,10 +738,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListDatasetsRequest othe return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -731,6 +751,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListDatasetsRequest othe } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -738,6 +759,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListDatasetsRequest othe } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -769,37 +791,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -819,6 +841,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -889,8 +913,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -909,8 +933,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -934,8 +958,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1031,8 +1055,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1058,8 +1082,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1090,8 +1114,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1127,6 +1151,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1142,7 +1167,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1209,8 +1234,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1226,8 +1251,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1248,8 +1273,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1272,7 +1297,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1307,11 +1332,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1326,11 +1351,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1344,17 +1369,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1367,14 +1393,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1387,7 +1412,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } @@ -1509,8 +1534,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1531,8 +1556,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1558,8 +1583,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetsResponse.java index 2c195474971d..7bd74c60c7b9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DATASETS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List datasets_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1.DatasetOrBuilder getDatasetsOrBuilder(int } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -396,6 +400,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (datasetsBuilder_ == null) { datasets_ = java.util.Collections.emptyList(); } else { @@ -404,7 +409,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -432,7 +436,16 @@ public com.google.cloud.aiplatform.v1.ListDatasetsResponse build() { public com.google.cloud.aiplatform.v1.ListDatasetsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListDatasetsResponse result = new com.google.cloud.aiplatform.v1.ListDatasetsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListDatasetsResponse result) { if (datasetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { datasets_ = java.util.Collections.unmodifiableList(datasets_); @@ -442,9 +455,13 @@ public com.google.cloud.aiplatform.v1.ListDatasetsResponse buildPartial() { } else { result.datasets_ = datasetsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListDatasetsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -522,6 +539,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListDatasetsResponse oth } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -566,7 +584,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -997,8 +1015,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1014,8 +1032,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1036,8 +1054,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsRequest.java index f81bbebd501a..818a3ce2f16a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -202,7 +206,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -220,7 +224,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -324,11 +330,13 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } public static final int ORDER_BY_FIELD_NUMBER = 6; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -636,22 +644,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } orderBy_ = ""; - return this; } @@ -679,20 +682,35 @@ public com.google.cloud.aiplatform.v1.ListEndpointsRequest build() { public com.google.cloud.aiplatform.v1.ListEndpointsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListEndpointsRequest result = new com.google.cloud.aiplatform.v1.ListEndpointsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.orderBy_ = orderBy_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListEndpointsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -741,10 +759,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListEndpointsRequest oth return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -752,6 +772,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListEndpointsRequest oth } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -759,6 +780,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListEndpointsRequest oth } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -790,37 +812,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -840,6 +862,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -910,8 +934,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -930,8 +954,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -955,8 +979,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1061,8 +1085,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1091,8 +1115,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1126,8 +1150,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1163,6 +1187,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1178,7 +1203,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1260,8 +1285,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1282,8 +1307,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1309,8 +1334,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1334,7 +1359,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1371,11 +1396,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1391,11 +1416,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1410,17 +1435,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1434,14 +1460,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1455,7 +1480,7 @@ public Builder clearReadMask() { * */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } @@ -1582,8 +1607,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1605,8 +1630,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1633,8 +1658,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsResponse.java index f2b15b0ff176..51c58a2d1deb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEndpointsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENDPOINTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List endpoints_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1.EndpointOrBuilder getEndpointsOrBuilder(in } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -402,6 +406,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (endpointsBuilder_ == null) { endpoints_ = java.util.Collections.emptyList(); } else { @@ -410,7 +415,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -438,7 +442,16 @@ public com.google.cloud.aiplatform.v1.ListEndpointsResponse build() { public com.google.cloud.aiplatform.v1.ListEndpointsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListEndpointsResponse result = new com.google.cloud.aiplatform.v1.ListEndpointsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListEndpointsResponse result) { if (endpointsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { endpoints_ = java.util.Collections.unmodifiableList(endpoints_); @@ -448,9 +461,13 @@ public com.google.cloud.aiplatform.v1.ListEndpointsResponse buildPartial() { } else { result.endpoints_ = endpointsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListEndpointsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -528,6 +545,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListEndpointsResponse ot } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -572,7 +590,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1013,8 +1031,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1033,8 +1051,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1058,8 +1076,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEntityTypesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEntityTypesRequest.java index f58d04b5dd7d..e31c0adbff6c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEntityTypesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEntityTypesRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -206,7 +210,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -227,7 +231,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -286,7 +292,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -387,7 +395,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -639,20 +647,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - orderBy_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -682,20 +685,35 @@ public com.google.cloud.aiplatform.v1.ListEntityTypesRequest build() { public com.google.cloud.aiplatform.v1.ListEntityTypesRequest buildPartial() { com.google.cloud.aiplatform.v1.ListEntityTypesRequest result = new com.google.cloud.aiplatform.v1.ListEntityTypesRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.orderBy_ = orderBy_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListEntityTypesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -744,10 +762,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListEntityTypesRequest o return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -755,10 +775,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListEntityTypesRequest o } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasReadMask()) { @@ -793,37 +815,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -843,6 +865,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -916,8 +940,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -937,8 +961,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -963,8 +987,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1072,8 +1096,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1103,8 +1127,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1139,8 +1163,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1182,6 +1206,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1200,7 +1225,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1282,8 +1307,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1304,8 +1329,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1331,8 +1356,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1413,8 +1438,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1435,8 +1460,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1462,8 +1487,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1486,7 +1511,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1521,11 +1546,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1540,11 +1565,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1558,17 +1583,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1581,14 +1607,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 6; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1601,7 +1626,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 6; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEntityTypesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEntityTypesResponse.java index 8804acddf50c..64ecf58b0bc0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEntityTypesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListEntityTypesResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENTITY_TYPES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List entityTypes_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1.EntityTypeOrBuilder getEntityTypesOrBuilde } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -403,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (entityTypesBuilder_ == null) { entityTypes_ = java.util.Collections.emptyList(); } else { @@ -411,7 +416,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -439,7 +443,16 @@ public com.google.cloud.aiplatform.v1.ListEntityTypesResponse build() { public com.google.cloud.aiplatform.v1.ListEntityTypesResponse buildPartial() { com.google.cloud.aiplatform.v1.ListEntityTypesResponse result = new com.google.cloud.aiplatform.v1.ListEntityTypesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListEntityTypesResponse result) { if (entityTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { entityTypes_ = java.util.Collections.unmodifiableList(entityTypes_); @@ -449,9 +462,13 @@ public com.google.cloud.aiplatform.v1.ListEntityTypesResponse buildPartial() { } else { result.entityTypes_ = entityTypesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListEntityTypesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -529,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListEntityTypesResponse } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -573,7 +591,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1016,8 +1034,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1036,8 +1054,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1061,8 +1079,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListExecutionsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListExecutionsRequest.java index b07fd36289b4..af9d5cc11ab4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListExecutionsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListExecutionsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -148,7 +150,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -207,7 +211,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -304,7 +310,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -596,16 +604,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - filter_ = ""; - orderBy_ = ""; - return this; } @@ -633,15 +637,32 @@ public com.google.cloud.aiplatform.v1.ListExecutionsRequest build() { public com.google.cloud.aiplatform.v1.ListExecutionsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListExecutionsRequest result = new com.google.cloud.aiplatform.v1.ListExecutionsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; - result.orderBy_ = orderBy_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListExecutionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -690,6 +711,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListExecutionsRequest ot return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -697,14 +719,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListExecutionsRequest ot } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -736,31 +761,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -780,6 +805,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -853,8 +880,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -874,8 +901,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -900,8 +927,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -939,6 +966,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -955,7 +983,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -1037,8 +1065,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1059,8 +1087,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1086,8 +1114,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1225,8 +1253,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1266,8 +1294,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1312,8 +1340,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1394,8 +1422,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1416,8 +1444,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1443,8 +1471,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListExecutionsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListExecutionsResponse.java index 670b519cfba0..5c8eaf93ce1a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListExecutionsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListExecutionsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int EXECUTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List executions_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1.ExecutionOrBuilder getExecutionsOrBuilder( } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -403,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (executionsBuilder_ == null) { executions_ = java.util.Collections.emptyList(); } else { @@ -411,7 +416,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -439,7 +443,16 @@ public com.google.cloud.aiplatform.v1.ListExecutionsResponse build() { public com.google.cloud.aiplatform.v1.ListExecutionsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListExecutionsResponse result = new com.google.cloud.aiplatform.v1.ListExecutionsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListExecutionsResponse result) { if (executionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { executions_ = java.util.Collections.unmodifiableList(executions_); @@ -449,9 +462,13 @@ public com.google.cloud.aiplatform.v1.ListExecutionsResponse buildPartial() { } else { result.executions_ = executionsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListExecutionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -529,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListExecutionsResponse o } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -573,7 +591,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1015,8 +1033,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1035,8 +1053,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1060,8 +1078,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturesRequest.java index db9096a03728..7623d6a28bfa 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturesRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -210,7 +214,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -231,7 +235,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -290,7 +296,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -393,11 +401,11 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } public static final int LATEST_STATS_COUNT_FIELD_NUMBER = 7; - private int latestStatsCount_; + private int latestStatsCount_ = 0; /** * * @@ -676,24 +684,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - orderBy_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } latestStatsCount_ = 0; - return this; } @@ -721,21 +723,38 @@ public com.google.cloud.aiplatform.v1.ListFeaturesRequest build() { public com.google.cloud.aiplatform.v1.ListFeaturesRequest buildPartial() { com.google.cloud.aiplatform.v1.ListFeaturesRequest result = new com.google.cloud.aiplatform.v1.ListFeaturesRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.orderBy_ = orderBy_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.latestStatsCount_ = latestStatsCount_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListFeaturesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.latestStatsCount_ = latestStatsCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -784,10 +803,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListFeaturesRequest othe return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -795,10 +816,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListFeaturesRequest othe } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasReadMask()) { @@ -836,43 +859,43 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 case 56: { latestStatsCount_ = input.readInt32(); - + bitField0_ |= 0x00000040; break; } // case 56 default: @@ -892,6 +915,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -965,8 +990,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -986,8 +1011,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1012,8 +1037,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1127,8 +1152,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1160,8 +1185,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1198,8 +1223,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1241,6 +1266,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1259,7 +1285,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1341,8 +1367,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1363,8 +1389,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1390,8 +1416,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1475,8 +1501,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1498,8 +1524,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1526,8 +1552,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1550,7 +1576,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1585,11 +1611,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1604,11 +1630,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1622,17 +1648,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1645,14 +1672,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 6; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1665,7 +1691,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 6; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } @@ -1752,6 +1778,7 @@ public int getLatestStatsCount() { public Builder setLatestStatsCount(int value) { latestStatsCount_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1772,7 +1799,7 @@ public Builder setLatestStatsCount(int value) { * @return This builder for chaining. */ public Builder clearLatestStatsCount() { - + bitField0_ = (bitField0_ & ~0x00000040); latestStatsCount_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturesResponse.java index 6e2e9c2b0aa4..1e9507de68d4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturesResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int FEATURES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List features_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1.FeatureOrBuilder getFeaturesOrBuilder(int } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -402,6 +406,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (featuresBuilder_ == null) { features_ = java.util.Collections.emptyList(); } else { @@ -410,7 +415,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -438,7 +442,16 @@ public com.google.cloud.aiplatform.v1.ListFeaturesResponse build() { public com.google.cloud.aiplatform.v1.ListFeaturesResponse buildPartial() { com.google.cloud.aiplatform.v1.ListFeaturesResponse result = new com.google.cloud.aiplatform.v1.ListFeaturesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListFeaturesResponse result) { if (featuresBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); @@ -448,9 +461,13 @@ public com.google.cloud.aiplatform.v1.ListFeaturesResponse buildPartial() { } else { result.features_ = featuresBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListFeaturesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -528,6 +545,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListFeaturesResponse oth } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -572,7 +590,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1012,8 +1030,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1032,8 +1050,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1057,8 +1075,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturestoresRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturestoresRequest.java index 5729c6d2f57d..bfdcde360718 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturestoresRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturestoresRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -208,7 +212,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -229,7 +233,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -288,7 +294,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -389,7 +397,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -641,20 +649,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - orderBy_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -684,20 +687,35 @@ public com.google.cloud.aiplatform.v1.ListFeaturestoresRequest build() { public com.google.cloud.aiplatform.v1.ListFeaturestoresRequest buildPartial() { com.google.cloud.aiplatform.v1.ListFeaturestoresRequest result = new com.google.cloud.aiplatform.v1.ListFeaturestoresRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.orderBy_ = orderBy_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListFeaturestoresRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -746,10 +764,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListFeaturestoresRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -757,10 +777,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListFeaturestoresRequest } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasReadMask()) { @@ -795,37 +817,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -845,6 +867,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -918,8 +942,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -939,8 +963,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -965,8 +989,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1077,8 +1101,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1109,8 +1133,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1146,8 +1170,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1189,6 +1213,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1207,7 +1232,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1289,8 +1314,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1311,8 +1336,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1338,8 +1363,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1420,8 +1445,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1442,8 +1467,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1469,8 +1494,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1493,7 +1518,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1528,11 +1553,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1547,11 +1572,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1565,17 +1590,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1588,14 +1614,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 6; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1608,7 +1633,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 6; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturestoresResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturestoresResponse.java index 9ef08abbe325..8ca636a2faad 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturestoresResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListFeaturestoresResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int FEATURESTORES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List featurestores_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1.FeaturestoreOrBuilder getFeaturestoresOrBu } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -403,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (featurestoresBuilder_ == null) { featurestores_ = java.util.Collections.emptyList(); } else { @@ -411,7 +416,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -439,7 +443,16 @@ public com.google.cloud.aiplatform.v1.ListFeaturestoresResponse build() { public com.google.cloud.aiplatform.v1.ListFeaturestoresResponse buildPartial() { com.google.cloud.aiplatform.v1.ListFeaturestoresResponse result = new com.google.cloud.aiplatform.v1.ListFeaturestoresResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListFeaturestoresResponse result) { if (featurestoresBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { featurestores_ = java.util.Collections.unmodifiableList(featurestores_); @@ -449,9 +462,13 @@ public com.google.cloud.aiplatform.v1.ListFeaturestoresResponse buildPartial() { } else { result.featurestores_ = featurestoresBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListFeaturestoresResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -529,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListFeaturestoresRespons } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -573,7 +591,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1020,8 +1038,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1040,8 +1058,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1065,8 +1083,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsRequest.java index de595a1ee9e1..3e3c2eb456ae 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsRequest.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -130,7 +132,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -209,7 +213,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -227,7 +231,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -328,7 +334,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -573,18 +579,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -616,19 +618,33 @@ public com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest build( public com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest result = new com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -680,10 +696,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -691,6 +709,7 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -725,31 +744,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -769,6 +788,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -842,8 +863,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -863,8 +884,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -889,8 +910,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1001,8 +1022,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1033,8 +1054,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1070,8 +1091,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1107,6 +1128,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1122,7 +1144,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1204,8 +1226,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1226,8 +1248,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1253,8 +1275,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1277,7 +1299,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1312,11 +1334,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1331,11 +1353,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1349,17 +1371,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1372,14 +1395,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1392,7 +1414,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsResponse.java index 68b5b852266b..0df9f5c463ab 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsResponse.java @@ -72,6 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int HYPERPARAMETER_TUNING_JOBS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List hyperparameterTuningJobs_; /** @@ -165,7 +167,9 @@ public com.google.cloud.aiplatform.v1.HyperparameterTuningJob getHyperparameterT } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -434,6 +438,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (hyperparameterTuningJobsBuilder_ == null) { hyperparameterTuningJobs_ = java.util.Collections.emptyList(); } else { @@ -442,7 +447,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -472,7 +476,16 @@ public com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse build public com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse result = new com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse result) { if (hyperparameterTuningJobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { hyperparameterTuningJobs_ = @@ -483,9 +496,14 @@ public com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse build } else { result.hyperparameterTuningJobs_ = hyperparameterTuningJobsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -566,6 +584,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -611,7 +630,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1141,8 +1160,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1161,8 +1180,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1186,8 +1205,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexEndpointsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexEndpointsRequest.java index 7edca8e83ad2..e7ff29a77e15 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexEndpointsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexEndpointsRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -126,7 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -205,7 +209,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -223,7 +227,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -327,7 +333,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -570,18 +576,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -611,19 +613,32 @@ public com.google.cloud.aiplatform.v1.ListIndexEndpointsRequest build() { public com.google.cloud.aiplatform.v1.ListIndexEndpointsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListIndexEndpointsRequest result = new com.google.cloud.aiplatform.v1.ListIndexEndpointsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListIndexEndpointsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -672,10 +687,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListIndexEndpointsReques return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -683,6 +700,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListIndexEndpointsReques } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -717,31 +735,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -761,6 +779,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -831,8 +851,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -851,8 +871,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -876,8 +896,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -988,8 +1008,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1020,8 +1040,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1057,8 +1077,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1094,6 +1114,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1109,7 +1130,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1191,8 +1212,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1213,8 +1234,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1240,8 +1261,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1265,7 +1286,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1302,11 +1323,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1322,11 +1343,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1341,17 +1362,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1365,14 +1387,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1386,7 +1407,7 @@ public Builder clearReadMask() { * */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexEndpointsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexEndpointsResponse.java index 20201284db59..d5a06fe47bd2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexEndpointsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexEndpointsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INDEX_ENDPOINTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List indexEndpoints_; /** * @@ -140,7 +142,9 @@ public com.google.cloud.aiplatform.v1.IndexEndpointOrBuilder getIndexEndpointsOr } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -404,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (indexEndpointsBuilder_ == null) { indexEndpoints_ = java.util.Collections.emptyList(); } else { @@ -412,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -440,7 +444,16 @@ public com.google.cloud.aiplatform.v1.ListIndexEndpointsResponse build() { public com.google.cloud.aiplatform.v1.ListIndexEndpointsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListIndexEndpointsResponse result = new com.google.cloud.aiplatform.v1.ListIndexEndpointsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListIndexEndpointsResponse result) { if (indexEndpointsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { indexEndpoints_ = java.util.Collections.unmodifiableList(indexEndpoints_); @@ -450,9 +463,13 @@ public com.google.cloud.aiplatform.v1.ListIndexEndpointsResponse buildPartial() } else { result.indexEndpoints_ = indexEndpointsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListIndexEndpointsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -530,6 +547,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListIndexEndpointsRespon } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -574,7 +592,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1025,8 +1043,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1045,8 +1063,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1070,8 +1088,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexesRequest.java index 1bc0465f02e2..15b8b8ecaaf2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexesRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -126,7 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -175,7 +179,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -193,7 +197,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -294,7 +300,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -536,18 +542,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -577,19 +579,32 @@ public com.google.cloud.aiplatform.v1.ListIndexesRequest build() { public com.google.cloud.aiplatform.v1.ListIndexesRequest buildPartial() { com.google.cloud.aiplatform.v1.ListIndexesRequest result = new com.google.cloud.aiplatform.v1.ListIndexesRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListIndexesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -638,10 +653,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListIndexesRequest other return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -649,6 +666,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListIndexesRequest other } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -683,31 +701,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -727,6 +745,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -797,8 +817,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -817,8 +837,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -842,8 +862,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -909,8 +929,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -926,8 +946,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -948,8 +968,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -985,6 +1005,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1000,7 +1021,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1082,8 +1103,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1104,8 +1125,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1131,8 +1152,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1155,7 +1176,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1190,11 +1211,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1209,11 +1230,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1227,17 +1248,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1250,14 +1272,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1270,7 +1291,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexesResponse.java index 05dacb1e438b..118955fc632e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListIndexesResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INDEXES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List indexes_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1.IndexOrBuilder getIndexesOrBuilder(int ind } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -402,6 +406,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (indexesBuilder_ == null) { indexes_ = java.util.Collections.emptyList(); } else { @@ -410,7 +415,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -438,7 +442,16 @@ public com.google.cloud.aiplatform.v1.ListIndexesResponse build() { public com.google.cloud.aiplatform.v1.ListIndexesResponse buildPartial() { com.google.cloud.aiplatform.v1.ListIndexesResponse result = new com.google.cloud.aiplatform.v1.ListIndexesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListIndexesResponse result) { if (indexesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { indexes_ = java.util.Collections.unmodifiableList(indexes_); @@ -448,9 +461,13 @@ public com.google.cloud.aiplatform.v1.ListIndexesResponse buildPartial() { } else { result.indexes_ = indexesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListIndexesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -528,6 +545,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListIndexesResponse othe } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -572,7 +590,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1012,8 +1030,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1032,8 +1050,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1057,8 +1075,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataSchemasRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataSchemasRequest.java index 9fea373a9ca6..4321f5b7bb7f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataSchemasRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataSchemasRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -128,7 +130,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -148,7 +150,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -207,7 +211,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -481,14 +487,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - filter_ = ""; - return this; } @@ -516,14 +519,29 @@ public com.google.cloud.aiplatform.v1.ListMetadataSchemasRequest build() { public com.google.cloud.aiplatform.v1.ListMetadataSchemasRequest buildPartial() { com.google.cloud.aiplatform.v1.ListMetadataSchemasRequest result = new com.google.cloud.aiplatform.v1.ListMetadataSchemasRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListMetadataSchemasRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -572,6 +590,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListMetadataSchemasReque return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -579,10 +598,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListMetadataSchemasReque } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -614,25 +635,25 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -652,6 +673,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -725,8 +748,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -746,8 +769,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -772,8 +795,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -813,6 +836,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -830,7 +854,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -912,8 +936,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -934,8 +958,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -961,8 +985,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1028,8 +1052,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1045,8 +1069,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1067,8 +1091,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataSchemasResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataSchemasResponse.java index 4b365d377423..68127c671d10 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataSchemasResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataSchemasResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int METADATA_SCHEMAS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List metadataSchemas_; /** * @@ -140,7 +142,9 @@ public com.google.cloud.aiplatform.v1.MetadataSchemaOrBuilder getMetadataSchemas } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -404,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (metadataSchemasBuilder_ == null) { metadataSchemas_ = java.util.Collections.emptyList(); } else { @@ -412,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -440,7 +444,16 @@ public com.google.cloud.aiplatform.v1.ListMetadataSchemasResponse build() { public com.google.cloud.aiplatform.v1.ListMetadataSchemasResponse buildPartial() { com.google.cloud.aiplatform.v1.ListMetadataSchemasResponse result = new com.google.cloud.aiplatform.v1.ListMetadataSchemasResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListMetadataSchemasResponse result) { if (metadataSchemasBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { metadataSchemas_ = java.util.Collections.unmodifiableList(metadataSchemas_); @@ -450,9 +463,13 @@ public com.google.cloud.aiplatform.v1.ListMetadataSchemasResponse buildPartial() } else { result.metadataSchemas_ = metadataSchemasBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListMetadataSchemasResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -530,6 +547,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListMetadataSchemasRespo } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -574,7 +592,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1026,8 +1044,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1046,8 +1064,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1071,8 +1089,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataStoresRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataStoresRequest.java index 362b66f7cd97..abda4e63e7bb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataStoresRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataStoresRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -147,7 +149,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -422,12 +426,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -455,13 +457,26 @@ public com.google.cloud.aiplatform.v1.ListMetadataStoresRequest build() { public com.google.cloud.aiplatform.v1.ListMetadataStoresRequest buildPartial() { com.google.cloud.aiplatform.v1.ListMetadataStoresRequest result = new com.google.cloud.aiplatform.v1.ListMetadataStoresRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListMetadataStoresRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -510,6 +525,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListMetadataStoresReques return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -517,6 +533,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListMetadataStoresReques } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -548,19 +565,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -580,6 +597,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -653,8 +672,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -674,8 +693,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -700,8 +719,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -741,6 +760,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -758,7 +778,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -840,8 +860,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -862,8 +882,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -889,8 +909,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataStoresResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataStoresResponse.java index 136a52ce6fb5..79275adfd0d9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataStoresResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListMetadataStoresResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int METADATA_STORES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List metadataStores_; /** * @@ -140,7 +142,9 @@ public com.google.cloud.aiplatform.v1.MetadataStoreOrBuilder getMetadataStoresOr } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -404,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (metadataStoresBuilder_ == null) { metadataStores_ = java.util.Collections.emptyList(); } else { @@ -412,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -440,7 +444,16 @@ public com.google.cloud.aiplatform.v1.ListMetadataStoresResponse build() { public com.google.cloud.aiplatform.v1.ListMetadataStoresResponse buildPartial() { com.google.cloud.aiplatform.v1.ListMetadataStoresResponse result = new com.google.cloud.aiplatform.v1.ListMetadataStoresResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListMetadataStoresResponse result) { if (metadataStoresBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { metadataStores_ = java.util.Collections.unmodifiableList(metadataStores_); @@ -450,9 +463,13 @@ public com.google.cloud.aiplatform.v1.ListMetadataStoresResponse buildPartial() } else { result.metadataStores_ = metadataStoresBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListMetadataStoresResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -530,6 +547,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListMetadataStoresRespon } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -574,7 +592,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1025,8 +1043,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1045,8 +1063,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1070,8 +1088,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsRequest.java index 5c0091ce658e..355f3ea27503 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsRequest.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -128,7 +130,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -207,7 +211,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -225,7 +229,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -316,7 +322,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -562,18 +568,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -606,19 +608,33 @@ public com.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest b public com.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest result = new com.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -671,10 +687,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -682,6 +700,7 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -716,31 +735,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -760,6 +779,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -830,8 +851,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -850,8 +871,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -875,8 +896,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -987,8 +1008,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1019,8 +1040,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1056,8 +1077,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1093,6 +1114,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1108,7 +1130,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1175,8 +1197,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1192,8 +1214,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1214,8 +1236,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1238,7 +1260,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1273,11 +1295,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1292,11 +1314,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1310,17 +1332,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1333,14 +1356,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1353,7 +1375,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsResponse.java index 6ebfea7e2fad..679f69f1287a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsResponse.java @@ -72,6 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MODEL_DEPLOYMENT_MONITORING_JOBS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List modelDeploymentMonitoringJobs_; /** @@ -161,7 +163,9 @@ public int getModelDeploymentMonitoringJobsCount() { } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -426,6 +430,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (modelDeploymentMonitoringJobsBuilder_ == null) { modelDeploymentMonitoringJobs_ = java.util.Collections.emptyList(); } else { @@ -434,7 +439,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -465,7 +469,16 @@ public com.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse public com.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse result = new com.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse result) { if (modelDeploymentMonitoringJobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { modelDeploymentMonitoringJobs_ = @@ -476,9 +489,14 @@ public com.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse } else { result.modelDeploymentMonitoringJobs_ = modelDeploymentMonitoringJobsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -561,6 +579,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -606,7 +625,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1115,8 +1134,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1132,8 +1151,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1154,8 +1173,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationSlicesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationSlicesRequest.java index 41ac62b04628..d55db2d47d8c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationSlicesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationSlicesRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -180,7 +184,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -198,7 +202,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -299,7 +305,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -542,18 +548,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -584,19 +586,33 @@ public com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest build() { public com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest buildPartial() { com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest result = new com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -647,10 +663,12 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -658,6 +676,7 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -692,31 +711,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -736,6 +755,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -809,8 +830,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -830,8 +851,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -856,8 +877,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -926,8 +947,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -944,8 +965,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -967,8 +988,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1004,6 +1025,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1019,7 +1041,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1101,8 +1123,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1123,8 +1145,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1150,8 +1172,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1174,7 +1196,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1209,11 +1231,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1228,11 +1250,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1246,17 +1268,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1269,14 +1292,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1289,7 +1311,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationSlicesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationSlicesResponse.java index 5ada8485cc6b..1fcb5c523531 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationSlicesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationSlicesResponse.java @@ -71,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MODEL_EVALUATION_SLICES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List modelEvaluationSlices_; /** @@ -148,7 +150,9 @@ public com.google.cloud.aiplatform.v1.ModelEvaluationSlice getModelEvaluationSli } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -414,6 +418,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (modelEvaluationSlicesBuilder_ == null) { modelEvaluationSlices_ = java.util.Collections.emptyList(); } else { @@ -422,7 +427,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -451,7 +455,16 @@ public com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse build() public com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse buildPartial() { com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse result = new com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse result) { if (modelEvaluationSlicesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { modelEvaluationSlices_ = java.util.Collections.unmodifiableList(modelEvaluationSlices_); @@ -461,9 +474,14 @@ public com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse buildPar } else { result.modelEvaluationSlices_ = modelEvaluationSlicesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -543,6 +561,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -588,7 +607,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1062,8 +1081,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1082,8 +1101,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1107,8 +1126,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationsRequest.java index 1f9b86d9d612..796a662a4c24 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationsRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -126,7 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -175,7 +179,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -193,7 +197,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -294,7 +300,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -537,18 +543,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -578,19 +580,32 @@ public com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest build() { public com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest result = new com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -639,10 +654,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListModelEvaluationsRequ return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -650,6 +667,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListModelEvaluationsRequ } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -684,31 +702,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -728,6 +746,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -798,8 +818,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -818,8 +838,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -843,8 +863,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -910,8 +930,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -927,8 +947,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -949,8 +969,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -986,6 +1006,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1001,7 +1022,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1083,8 +1104,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1105,8 +1126,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1132,8 +1153,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1156,7 +1177,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1191,11 +1212,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1210,11 +1231,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1228,17 +1249,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1251,14 +1273,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1271,7 +1292,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationsResponse.java index 0d9ae027c3ac..475118b0b41b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelEvaluationsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MODEL_EVALUATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List modelEvaluations_; /** * @@ -140,7 +142,9 @@ public com.google.cloud.aiplatform.v1.ModelEvaluationOrBuilder getModelEvaluatio } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -404,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (modelEvaluationsBuilder_ == null) { modelEvaluations_ = java.util.Collections.emptyList(); } else { @@ -412,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -440,7 +444,16 @@ public com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse build() { public com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse result = new com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse result) { if (modelEvaluationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { modelEvaluations_ = java.util.Collections.unmodifiableList(modelEvaluations_); @@ -450,9 +463,13 @@ public com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse buildPartial( } else { result.modelEvaluations_ = modelEvaluationsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -530,6 +547,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListModelEvaluationsResp } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -574,7 +592,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1027,8 +1045,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1047,8 +1065,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1072,8 +1090,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsRequest.java index 157a33d2542d..782c217a5fa4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -125,7 +127,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -143,7 +145,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -198,7 +202,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -303,11 +309,13 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } public static final int ORDER_BY_FIELD_NUMBER = 6; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -614,22 +622,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - pageSize_ = 0; - pageToken_ = ""; - filter_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } orderBy_ = ""; - return this; } @@ -657,20 +660,35 @@ public com.google.cloud.aiplatform.v1.ListModelVersionsRequest build() { public com.google.cloud.aiplatform.v1.ListModelVersionsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListModelVersionsRequest result = new com.google.cloud.aiplatform.v1.ListModelVersionsRequest(this); - result.name_ = name_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.orderBy_ = orderBy_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListModelVersionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -719,6 +737,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListModelVersionsRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -726,10 +745,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListModelVersionsRequest } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -737,6 +758,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListModelVersionsRequest } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -768,37 +790,37 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -818,6 +840,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -885,8 +909,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -904,8 +928,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -928,8 +952,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -965,6 +989,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -980,7 +1005,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -1056,8 +1081,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1076,8 +1101,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1101,8 +1126,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1189,8 +1214,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1213,8 +1238,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1242,8 +1267,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1266,7 +1291,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1301,11 +1326,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1320,11 +1345,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1338,17 +1363,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1361,14 +1387,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1381,7 +1406,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } @@ -1503,8 +1528,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1525,8 +1550,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1552,8 +1577,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsResponse.java index 66e9f556f147..1da70c428876 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MODELS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List models_; /** * @@ -149,7 +151,9 @@ public com.google.cloud.aiplatform.v1.ModelOrBuilder getModelsOrBuilder(int inde } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -413,6 +417,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (modelsBuilder_ == null) { models_ = java.util.Collections.emptyList(); } else { @@ -421,7 +426,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -449,7 +453,16 @@ public com.google.cloud.aiplatform.v1.ListModelVersionsResponse build() { public com.google.cloud.aiplatform.v1.ListModelVersionsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListModelVersionsResponse result = new com.google.cloud.aiplatform.v1.ListModelVersionsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListModelVersionsResponse result) { if (modelsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { models_ = java.util.Collections.unmodifiableList(models_); @@ -459,9 +472,13 @@ public com.google.cloud.aiplatform.v1.ListModelVersionsResponse buildPartial() { } else { result.models_ = modelsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListModelVersionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -539,6 +556,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListModelVersionsRespons } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -583,7 +601,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1059,8 +1077,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1079,8 +1097,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1104,8 +1122,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsRequest.java index 21931b158ccc..fb0956fcb4a4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -202,7 +206,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -220,7 +224,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -321,11 +327,13 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } public static final int ORDER_BY_FIELD_NUMBER = 6; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -633,22 +641,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } orderBy_ = ""; - return this; } @@ -676,20 +679,35 @@ public com.google.cloud.aiplatform.v1.ListModelsRequest build() { public com.google.cloud.aiplatform.v1.ListModelsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListModelsRequest result = new com.google.cloud.aiplatform.v1.ListModelsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.orderBy_ = orderBy_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListModelsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -738,10 +756,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListModelsRequest other) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -749,6 +769,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListModelsRequest other) } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -756,6 +777,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListModelsRequest other) } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -787,37 +809,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -837,6 +859,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -907,8 +931,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -927,8 +951,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -952,8 +976,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1058,8 +1082,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1088,8 +1112,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1123,8 +1147,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1160,6 +1184,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1175,7 +1200,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1257,8 +1282,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1279,8 +1304,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1306,8 +1331,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1330,7 +1355,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1365,11 +1390,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1384,11 +1409,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1402,17 +1427,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1425,14 +1451,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1445,7 +1470,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } @@ -1570,8 +1595,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1593,8 +1618,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1621,8 +1646,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsResponse.java index 67ad0236ecf1..be27fc77227c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MODELS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List models_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1.ModelOrBuilder getModelsOrBuilder(int inde } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -402,6 +406,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (modelsBuilder_ == null) { models_ = java.util.Collections.emptyList(); } else { @@ -410,7 +415,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -438,7 +442,16 @@ public com.google.cloud.aiplatform.v1.ListModelsResponse build() { public com.google.cloud.aiplatform.v1.ListModelsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListModelsResponse result = new com.google.cloud.aiplatform.v1.ListModelsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListModelsResponse result) { if (modelsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { models_ = java.util.Collections.unmodifiableList(models_); @@ -448,9 +461,13 @@ public com.google.cloud.aiplatform.v1.ListModelsResponse buildPartial() { } else { result.models_ = modelsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListModelsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -528,6 +545,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListModelsResponse other } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -572,7 +590,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1012,8 +1030,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1032,8 +1050,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1057,8 +1075,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListOptimalTrialsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListOptimalTrialsRequest.java index 11547276bc81..b0fb35997ebd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListOptimalTrialsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListOptimalTrialsRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -320,8 +322,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - return this; } @@ -349,11 +351,20 @@ public com.google.cloud.aiplatform.v1.ListOptimalTrialsRequest build() { public com.google.cloud.aiplatform.v1.ListOptimalTrialsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListOptimalTrialsRequest result = new com.google.cloud.aiplatform.v1.ListOptimalTrialsRequest(this); - result.parent_ = parent_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListOptimalTrialsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -402,6 +413,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListOptimalTrialsRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -433,7 +445,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -453,6 +465,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -520,8 +534,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -539,8 +553,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -563,8 +577,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListOptimalTrialsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListOptimalTrialsResponse.java index 88ff36abc42c..e1f4dbe007ad 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListOptimalTrialsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListOptimalTrialsResponse.java @@ -69,6 +69,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int OPTIMAL_TRIALS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List optimalTrials_; /** * @@ -353,6 +355,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (optimalTrialsBuilder_ == null) { optimalTrials_ = java.util.Collections.emptyList(); } else { @@ -387,7 +390,16 @@ public com.google.cloud.aiplatform.v1.ListOptimalTrialsResponse build() { public com.google.cloud.aiplatform.v1.ListOptimalTrialsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListOptimalTrialsResponse result = new com.google.cloud.aiplatform.v1.ListOptimalTrialsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListOptimalTrialsResponse result) { if (optimalTrialsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { optimalTrials_ = java.util.Collections.unmodifiableList(optimalTrials_); @@ -397,8 +409,10 @@ public com.google.cloud.aiplatform.v1.ListOptimalTrialsResponse buildPartial() { } else { result.optimalTrials_ = optimalTrialsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListOptimalTrialsResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequest.java index a8f11704d6d6..000861bd9a13 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -232,7 +236,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -250,7 +254,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -309,7 +315,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 6; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -422,7 +430,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -674,20 +682,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - orderBy_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -717,20 +720,35 @@ public com.google.cloud.aiplatform.v1.ListPipelineJobsRequest build() { public com.google.cloud.aiplatform.v1.ListPipelineJobsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListPipelineJobsRequest result = new com.google.cloud.aiplatform.v1.ListPipelineJobsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.orderBy_ = orderBy_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListPipelineJobsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -779,10 +797,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListPipelineJobsRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -790,10 +810,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListPipelineJobsRequest } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasReadMask()) { @@ -828,37 +850,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 50: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 50 case 58: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 58 default: @@ -878,6 +900,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -948,8 +972,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -968,8 +992,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -993,8 +1017,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1144,8 +1168,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1189,8 +1213,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1239,8 +1263,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1276,6 +1300,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1291,7 +1316,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1373,8 +1398,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1395,8 +1420,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1422,8 +1447,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1522,8 +1547,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1550,8 +1575,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1583,8 +1608,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1607,7 +1632,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1642,11 +1667,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1661,11 +1686,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1679,17 +1704,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1702,14 +1728,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 7; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1722,7 +1747,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 7; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsResponse.java index c893755a9629..78a5375ddb12 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PIPELINE_JOBS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List pipelineJobs_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1.PipelineJobOrBuilder getPipelineJobsOrBuil } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -403,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (pipelineJobsBuilder_ == null) { pipelineJobs_ = java.util.Collections.emptyList(); } else { @@ -411,7 +416,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -439,7 +443,16 @@ public com.google.cloud.aiplatform.v1.ListPipelineJobsResponse build() { public com.google.cloud.aiplatform.v1.ListPipelineJobsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListPipelineJobsResponse result = new com.google.cloud.aiplatform.v1.ListPipelineJobsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListPipelineJobsResponse result) { if (pipelineJobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { pipelineJobs_ = java.util.Collections.unmodifiableList(pipelineJobs_); @@ -449,9 +462,13 @@ public com.google.cloud.aiplatform.v1.ListPipelineJobsResponse buildPartial() { } else { result.pipelineJobs_ = pipelineJobsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListPipelineJobsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -529,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListPipelineJobsResponse } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -573,7 +591,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1016,8 +1034,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1036,8 +1054,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1061,8 +1079,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesRequest.java index 43ff29e1a096..a9a46224aeb0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -178,7 +182,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -196,7 +200,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -287,11 +293,13 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } public static final int ORDER_BY_FIELD_NUMBER = 6; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -590,22 +598,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } orderBy_ = ""; - return this; } @@ -633,20 +636,35 @@ public com.google.cloud.aiplatform.v1.ListSavedQueriesRequest build() { public com.google.cloud.aiplatform.v1.ListSavedQueriesRequest buildPartial() { com.google.cloud.aiplatform.v1.ListSavedQueriesRequest result = new com.google.cloud.aiplatform.v1.ListSavedQueriesRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.orderBy_ = orderBy_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListSavedQueriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -695,10 +713,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListSavedQueriesRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -706,6 +726,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListSavedQueriesRequest } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -713,6 +734,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListSavedQueriesRequest } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -744,37 +766,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -794,6 +816,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -867,8 +891,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -888,8 +912,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -914,8 +938,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -981,8 +1005,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -998,8 +1022,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1020,8 +1044,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1057,6 +1081,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1072,7 +1097,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1139,8 +1164,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1156,8 +1181,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1178,8 +1203,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1202,7 +1227,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1237,11 +1262,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1256,11 +1281,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1274,17 +1299,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1297,14 +1323,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1317,7 +1342,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } @@ -1427,8 +1452,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1445,8 +1470,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1468,8 +1493,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponse.java index 0e610449c0ce..ed61497ce26a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SAVED_QUERIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List savedQueries_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1.SavedQueryOrBuilder getSavedQueriesOrBuild } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -397,6 +401,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (savedQueriesBuilder_ == null) { savedQueries_ = java.util.Collections.emptyList(); } else { @@ -405,7 +410,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -433,7 +437,16 @@ public com.google.cloud.aiplatform.v1.ListSavedQueriesResponse build() { public com.google.cloud.aiplatform.v1.ListSavedQueriesResponse buildPartial() { com.google.cloud.aiplatform.v1.ListSavedQueriesResponse result = new com.google.cloud.aiplatform.v1.ListSavedQueriesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListSavedQueriesResponse result) { if (savedQueriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { savedQueries_ = java.util.Collections.unmodifiableList(savedQueries_); @@ -443,9 +456,13 @@ public com.google.cloud.aiplatform.v1.ListSavedQueriesResponse buildPartial() { } else { result.savedQueries_ = savedQueriesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListSavedQueriesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -523,6 +540,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListSavedQueriesResponse } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -567,7 +585,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1001,8 +1019,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1018,8 +1036,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1040,8 +1058,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSpecialistPoolsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSpecialistPoolsRequest.java index aa30bb941398..31fbf2d025a4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSpecialistPoolsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSpecialistPoolsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -125,7 +127,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -143,7 +145,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -244,7 +248,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -478,16 +482,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -517,18 +518,29 @@ public com.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest build() { public com.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest result = new com.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListSpecialistPoolsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -577,6 +589,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListSpecialistPoolsReque return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -584,6 +597,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListSpecialistPoolsReque } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasReadMask()) { @@ -618,25 +632,25 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -656,6 +670,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -726,8 +742,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -746,8 +762,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -771,8 +787,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -808,6 +824,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -823,7 +840,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -905,8 +922,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -927,8 +944,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -954,8 +971,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -978,7 +995,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1013,11 +1030,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1032,11 +1049,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1050,17 +1067,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1073,14 +1091,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 4; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1093,7 +1110,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 4; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSpecialistPoolsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSpecialistPoolsResponse.java index b97c020855f8..cc226cbac0f4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSpecialistPoolsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSpecialistPoolsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SPECIALIST_POOLS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List specialistPools_; /** * @@ -140,7 +142,9 @@ public com.google.cloud.aiplatform.v1.SpecialistPoolOrBuilder getSpecialistPools } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -398,6 +402,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (specialistPoolsBuilder_ == null) { specialistPools_ = java.util.Collections.emptyList(); } else { @@ -406,7 +411,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -434,7 +438,16 @@ public com.google.cloud.aiplatform.v1.ListSpecialistPoolsResponse build() { public com.google.cloud.aiplatform.v1.ListSpecialistPoolsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListSpecialistPoolsResponse result = new com.google.cloud.aiplatform.v1.ListSpecialistPoolsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListSpecialistPoolsResponse result) { if (specialistPoolsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { specialistPools_ = java.util.Collections.unmodifiableList(specialistPools_); @@ -444,9 +457,13 @@ public com.google.cloud.aiplatform.v1.ListSpecialistPoolsResponse buildPartial() } else { result.specialistPools_ = specialistPoolsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListSpecialistPoolsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -524,6 +541,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListSpecialistPoolsRespo } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -568,7 +586,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1011,8 +1029,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1028,8 +1046,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1050,8 +1068,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListStudiesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListStudiesRequest.java index 8e39934fa156..c69be2bf749d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListStudiesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListStudiesRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -125,7 +127,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -176,7 +180,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -410,12 +414,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageToken_ = ""; - pageSize_ = 0; - return this; } @@ -443,13 +445,26 @@ public com.google.cloud.aiplatform.v1.ListStudiesRequest build() { public com.google.cloud.aiplatform.v1.ListStudiesRequest buildPartial() { com.google.cloud.aiplatform.v1.ListStudiesRequest result = new com.google.cloud.aiplatform.v1.ListStudiesRequest(this); - result.parent_ = parent_; - result.pageToken_ = pageToken_; - result.pageSize_ = pageSize_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListStudiesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -498,10 +513,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListStudiesRequest other return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -536,19 +553,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -568,6 +585,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -638,8 +657,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -658,8 +677,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -683,8 +702,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -753,8 +772,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -771,8 +790,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -794,8 +813,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -833,6 +852,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -849,7 +869,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListStudiesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListStudiesResponse.java index 12f2f5ae0c5a..60423124aa73 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListStudiesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListStudiesResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int STUDIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List studies_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1.StudyOrBuilder getStudiesOrBuilder(int ind } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -400,6 +404,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (studiesBuilder_ == null) { studies_ = java.util.Collections.emptyList(); } else { @@ -408,7 +413,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -436,7 +440,16 @@ public com.google.cloud.aiplatform.v1.ListStudiesResponse build() { public com.google.cloud.aiplatform.v1.ListStudiesResponse buildPartial() { com.google.cloud.aiplatform.v1.ListStudiesResponse result = new com.google.cloud.aiplatform.v1.ListStudiesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListStudiesResponse result) { if (studiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { studies_ = java.util.Collections.unmodifiableList(studies_); @@ -446,9 +459,13 @@ public com.google.cloud.aiplatform.v1.ListStudiesResponse buildPartial() { } else { result.studies_ = studiesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListStudiesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -526,6 +543,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListStudiesResponse othe } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -570,7 +588,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1007,8 +1025,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1026,8 +1044,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1050,8 +1068,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardExperimentsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardExperimentsRequest.java index bbf4be8bcc03..0cf8a92b4494 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardExperimentsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardExperimentsRequest.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -130,7 +132,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -179,7 +183,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -200,7 +204,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -259,7 +265,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -350,7 +358,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -602,20 +610,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - orderBy_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -646,20 +649,36 @@ public com.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest build() public com.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest result = new com.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.orderBy_ = orderBy_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -710,10 +729,12 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -721,10 +742,12 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasReadMask()) { @@ -759,37 +782,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -809,6 +832,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -882,8 +907,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -903,8 +928,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -929,8 +954,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -996,8 +1021,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1013,8 +1038,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1035,8 +1060,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1078,6 +1103,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1096,7 +1122,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1178,8 +1204,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1200,8 +1226,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1227,8 +1253,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1294,8 +1320,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1311,8 +1337,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1333,8 +1359,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1357,7 +1383,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1392,11 +1418,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1411,11 +1437,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1429,17 +1455,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1452,14 +1479,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 6; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1472,7 +1498,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 6; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardExperimentsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardExperimentsResponse.java index 76c8655daef9..cf0fb63dd0e4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardExperimentsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardExperimentsResponse.java @@ -71,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_EXPERIMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List tensorboardExperiments_; /** @@ -148,7 +150,9 @@ public com.google.cloud.aiplatform.v1.TensorboardExperiment getTensorboardExperi } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -417,6 +421,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (tensorboardExperimentsBuilder_ == null) { tensorboardExperiments_ = java.util.Collections.emptyList(); } else { @@ -425,7 +430,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -454,7 +458,16 @@ public com.google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse build() public com.google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse result = new com.google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse result) { if (tensorboardExperimentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { tensorboardExperiments_ = java.util.Collections.unmodifiableList(tensorboardExperiments_); @@ -464,9 +477,14 @@ public com.google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse buildPa } else { result.tensorboardExperiments_ = tensorboardExperimentsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -546,6 +564,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -591,7 +610,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1066,8 +1085,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1086,8 +1105,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1111,8 +1130,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardRunsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardRunsRequest.java index 718fa410e531..4ea802a8b5d9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardRunsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardRunsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -178,7 +182,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -199,7 +203,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -258,7 +264,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -349,7 +357,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -601,20 +609,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - orderBy_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -644,20 +647,35 @@ public com.google.cloud.aiplatform.v1.ListTensorboardRunsRequest build() { public com.google.cloud.aiplatform.v1.ListTensorboardRunsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListTensorboardRunsRequest result = new com.google.cloud.aiplatform.v1.ListTensorboardRunsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.orderBy_ = orderBy_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListTensorboardRunsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -706,10 +724,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListTensorboardRunsReque return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -717,10 +737,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListTensorboardRunsReque } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasReadMask()) { @@ -755,37 +777,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -805,6 +827,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -878,8 +902,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -899,8 +923,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -925,8 +949,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -992,8 +1016,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1009,8 +1033,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1031,8 +1055,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1074,6 +1098,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1092,7 +1117,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1174,8 +1199,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1196,8 +1221,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1223,8 +1248,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1290,8 +1315,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1307,8 +1332,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1329,8 +1354,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1353,7 +1378,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1388,11 +1413,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1407,11 +1432,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1425,17 +1450,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1448,14 +1474,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 6; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1468,7 +1493,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 6; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardRunsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardRunsResponse.java index a847a480cb08..ffaf5ff755b0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardRunsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardRunsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_RUNS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List tensorboardRuns_; /** * @@ -140,7 +142,9 @@ public com.google.cloud.aiplatform.v1.TensorboardRunOrBuilder getTensorboardRuns } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -404,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (tensorboardRunsBuilder_ == null) { tensorboardRuns_ = java.util.Collections.emptyList(); } else { @@ -412,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -440,7 +444,16 @@ public com.google.cloud.aiplatform.v1.ListTensorboardRunsResponse build() { public com.google.cloud.aiplatform.v1.ListTensorboardRunsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListTensorboardRunsResponse result = new com.google.cloud.aiplatform.v1.ListTensorboardRunsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListTensorboardRunsResponse result) { if (tensorboardRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { tensorboardRuns_ = java.util.Collections.unmodifiableList(tensorboardRuns_); @@ -450,9 +463,13 @@ public com.google.cloud.aiplatform.v1.ListTensorboardRunsResponse buildPartial() } else { result.tensorboardRuns_ = tensorboardRunsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListTensorboardRunsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -530,6 +547,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListTensorboardRunsRespo } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -574,7 +592,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1026,8 +1044,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1046,8 +1064,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1071,8 +1089,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardTimeSeriesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardTimeSeriesRequest.java index c75de8d62f92..e61e69aaa0e2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardTimeSeriesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardTimeSeriesRequest.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -130,7 +132,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -179,7 +183,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -200,7 +204,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -259,7 +265,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -350,7 +358,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -602,20 +610,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - orderBy_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -646,20 +649,36 @@ public com.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest build() { public com.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest buildPartial() { com.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest result = new com.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.orderBy_ = orderBy_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -710,10 +729,12 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -721,10 +742,12 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasReadMask()) { @@ -759,37 +782,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -809,6 +832,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -882,8 +907,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -903,8 +928,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -929,8 +954,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -996,8 +1021,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1013,8 +1038,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1035,8 +1060,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1078,6 +1103,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1096,7 +1122,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1178,8 +1204,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1200,8 +1226,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1227,8 +1253,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1294,8 +1320,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1311,8 +1337,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1333,8 +1359,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1357,7 +1383,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1392,11 +1418,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1411,11 +1437,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1429,17 +1455,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1452,14 +1479,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 6; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1472,7 +1498,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 6; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardTimeSeriesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardTimeSeriesResponse.java index f5bf880a6f42..1af4e219f653 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardTimeSeriesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardTimeSeriesResponse.java @@ -71,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_TIME_SERIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List tensorboardTimeSeries_; /** @@ -148,7 +150,9 @@ public com.google.cloud.aiplatform.v1.TensorboardTimeSeries getTensorboardTimeSe } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -414,6 +418,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (tensorboardTimeSeriesBuilder_ == null) { tensorboardTimeSeries_ = java.util.Collections.emptyList(); } else { @@ -422,7 +427,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -451,7 +455,16 @@ public com.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse build() public com.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse buildPartial() { com.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse result = new com.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse result) { if (tensorboardTimeSeriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { tensorboardTimeSeries_ = java.util.Collections.unmodifiableList(tensorboardTimeSeries_); @@ -461,9 +474,14 @@ public com.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse buildPar } else { result.tensorboardTimeSeries_ = tensorboardTimeSeriesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -543,6 +561,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -588,7 +607,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1063,8 +1082,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1083,8 +1102,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1108,8 +1127,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardsRequest.java index ac961cb5ec32..b7c491d302ca 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -178,7 +182,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -199,7 +203,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -258,7 +264,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -349,7 +357,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -601,20 +609,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - orderBy_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -644,20 +647,35 @@ public com.google.cloud.aiplatform.v1.ListTensorboardsRequest build() { public com.google.cloud.aiplatform.v1.ListTensorboardsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListTensorboardsRequest result = new com.google.cloud.aiplatform.v1.ListTensorboardsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.orderBy_ = orderBy_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListTensorboardsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -706,10 +724,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListTensorboardsRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -717,10 +737,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListTensorboardsRequest } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasReadMask()) { @@ -755,37 +777,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -805,6 +827,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -878,8 +902,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -899,8 +923,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -925,8 +949,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -992,8 +1016,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1009,8 +1033,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1031,8 +1055,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1074,6 +1098,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1092,7 +1117,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1174,8 +1199,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1196,8 +1221,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1223,8 +1248,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1290,8 +1315,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1307,8 +1332,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1329,8 +1354,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1353,7 +1378,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1388,11 +1413,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1407,11 +1432,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1425,17 +1450,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1448,14 +1474,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 6; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1468,7 +1493,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 6; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardsResponse.java index d409c05a3b2e..8a5e5fea6143 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTensorboardsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List tensorboards_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1.TensorboardOrBuilder getTensorboardsOrBuil } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -403,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (tensorboardsBuilder_ == null) { tensorboards_ = java.util.Collections.emptyList(); } else { @@ -411,7 +416,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -439,7 +443,16 @@ public com.google.cloud.aiplatform.v1.ListTensorboardsResponse build() { public com.google.cloud.aiplatform.v1.ListTensorboardsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListTensorboardsResponse result = new com.google.cloud.aiplatform.v1.ListTensorboardsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListTensorboardsResponse result) { if (tensorboardsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { tensorboards_ = java.util.Collections.unmodifiableList(tensorboards_); @@ -449,9 +462,13 @@ public com.google.cloud.aiplatform.v1.ListTensorboardsResponse buildPartial() { } else { result.tensorboards_ = tensorboardsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListTensorboardsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -529,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListTensorboardsResponse } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -573,7 +591,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1016,8 +1034,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1036,8 +1054,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1061,8 +1079,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequest.java index 62a74cb72cd6..e9b1db6aa2e5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -126,7 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -205,7 +209,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -223,7 +227,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -324,7 +330,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -567,18 +573,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -608,19 +610,32 @@ public com.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest build() { public com.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest buildPartial() { com.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest result = new com.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -669,10 +684,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListTrainingPipelinesReq return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -680,6 +697,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListTrainingPipelinesReq } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -714,31 +732,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -758,6 +776,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -828,8 +848,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -848,8 +868,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -873,8 +893,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -985,8 +1005,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1017,8 +1037,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1054,8 +1074,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1091,6 +1111,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1106,7 +1127,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1188,8 +1209,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1210,8 +1231,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1237,8 +1258,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1261,7 +1282,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1296,11 +1317,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1315,11 +1336,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1333,17 +1354,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1356,14 +1378,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1376,7 +1397,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesResponse.java index 825ba3d90e61..56767dc2e53f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRAINING_PIPELINES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List trainingPipelines_; /** * @@ -141,7 +143,9 @@ public com.google.cloud.aiplatform.v1.TrainingPipelineOrBuilder getTrainingPipel } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -406,6 +410,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (trainingPipelinesBuilder_ == null) { trainingPipelines_ = java.util.Collections.emptyList(); } else { @@ -414,7 +419,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -443,7 +447,16 @@ public com.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse build() { public com.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse buildPartial() { com.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse result = new com.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse result) { if (trainingPipelinesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { trainingPipelines_ = java.util.Collections.unmodifiableList(trainingPipelines_); @@ -453,9 +466,14 @@ public com.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse buildPartial } else { result.trainingPipelines_ = trainingPipelinesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -534,6 +552,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListTrainingPipelinesRes } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -579,7 +598,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1032,8 +1051,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1052,8 +1071,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1077,8 +1096,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrialsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrialsRequest.java index b14c52c8c808..8432435062c6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrialsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrialsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -125,7 +127,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -176,7 +180,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -410,12 +414,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageToken_ = ""; - pageSize_ = 0; - return this; } @@ -443,13 +445,26 @@ public com.google.cloud.aiplatform.v1.ListTrialsRequest build() { public com.google.cloud.aiplatform.v1.ListTrialsRequest buildPartial() { com.google.cloud.aiplatform.v1.ListTrialsRequest result = new com.google.cloud.aiplatform.v1.ListTrialsRequest(this); - result.parent_ = parent_; - result.pageToken_ = pageToken_; - result.pageSize_ = pageSize_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ListTrialsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -498,10 +513,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListTrialsRequest other) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -536,19 +553,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -568,6 +585,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -638,8 +657,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -658,8 +677,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -683,8 +702,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -753,8 +772,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -771,8 +790,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -794,8 +813,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -833,6 +852,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -849,7 +869,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrialsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrialsResponse.java index a2eca5de5f7c..5d9b27ea0c29 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrialsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrialsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRIALS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List trials_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1.TrialOrBuilder getTrialsOrBuilder(int inde } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -400,6 +404,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (trialsBuilder_ == null) { trials_ = java.util.Collections.emptyList(); } else { @@ -408,7 +413,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -436,7 +440,16 @@ public com.google.cloud.aiplatform.v1.ListTrialsResponse build() { public com.google.cloud.aiplatform.v1.ListTrialsResponse buildPartial() { com.google.cloud.aiplatform.v1.ListTrialsResponse result = new com.google.cloud.aiplatform.v1.ListTrialsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListTrialsResponse result) { if (trialsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { trials_ = java.util.Collections.unmodifiableList(trials_); @@ -446,9 +459,13 @@ public com.google.cloud.aiplatform.v1.ListTrialsResponse buildPartial() { } else { result.trials_ = trialsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListTrialsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -526,6 +543,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListTrialsResponse other } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -570,7 +588,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1007,8 +1025,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1026,8 +1044,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1050,8 +1068,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LookupStudyRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LookupStudyRequest.java index 1671dbd024eb..1db552d2ad86 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LookupStudyRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LookupStudyRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -125,7 +127,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -380,10 +384,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - displayName_ = ""; - return this; } @@ -411,12 +414,23 @@ public com.google.cloud.aiplatform.v1.LookupStudyRequest build() { public com.google.cloud.aiplatform.v1.LookupStudyRequest buildPartial() { com.google.cloud.aiplatform.v1.LookupStudyRequest result = new com.google.cloud.aiplatform.v1.LookupStudyRequest(this); - result.parent_ = parent_; - result.displayName_ = displayName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.LookupStudyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -465,10 +479,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.LookupStudyRequest other return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -500,13 +516,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -526,6 +542,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -596,8 +614,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -616,8 +634,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -641,8 +659,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -708,8 +726,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -725,8 +743,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -747,8 +765,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpec.java index 17e0325a35b7..119c74eaafaa 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpec.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MACHINE_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object machineType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object machineType_ = ""; /** * * @@ -136,7 +138,7 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { } public static final int ACCELERATOR_TYPE_FIELD_NUMBER = 2; - private int acceleratorType_; + private int acceleratorType_ = 0; /** * * @@ -173,14 +175,13 @@ public int getAcceleratorTypeValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.AcceleratorType getAcceleratorType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.AcceleratorType result = - com.google.cloud.aiplatform.v1.AcceleratorType.valueOf(acceleratorType_); + com.google.cloud.aiplatform.v1.AcceleratorType.forNumber(acceleratorType_); return result == null ? com.google.cloud.aiplatform.v1.AcceleratorType.UNRECOGNIZED : result; } public static final int ACCELERATOR_COUNT_FIELD_NUMBER = 3; - private int acceleratorCount_; + private int acceleratorCount_ = 0; /** * * @@ -416,12 +417,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; machineType_ = ""; - acceleratorType_ = 0; - acceleratorCount_ = 0; - return this; } @@ -449,13 +448,26 @@ public com.google.cloud.aiplatform.v1.MachineSpec build() { public com.google.cloud.aiplatform.v1.MachineSpec buildPartial() { com.google.cloud.aiplatform.v1.MachineSpec result = new com.google.cloud.aiplatform.v1.MachineSpec(this); - result.machineType_ = machineType_; - result.acceleratorType_ = acceleratorType_; - result.acceleratorCount_ = acceleratorCount_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.MachineSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.machineType_ = machineType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.acceleratorType_ = acceleratorType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.acceleratorCount_ = acceleratorCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -503,6 +515,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.MachineSpec other) { if (other == com.google.cloud.aiplatform.v1.MachineSpec.getDefaultInstance()) return this; if (!other.getMachineType().isEmpty()) { machineType_ = other.machineType_; + bitField0_ |= 0x00000001; onChanged(); } if (other.acceleratorType_ != 0) { @@ -540,19 +553,19 @@ public Builder mergeFrom( case 10: { machineType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { acceleratorType_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { acceleratorCount_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -572,6 +585,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object machineType_ = ""; /** * @@ -660,8 +675,8 @@ public Builder setMachineType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - machineType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -686,8 +701,8 @@ public Builder setMachineType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMachineType() { - machineType_ = getDefaultInstance().getMachineType(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -717,8 +732,8 @@ public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - machineType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -760,8 +775,8 @@ public int getAcceleratorTypeValue() { * @return This builder for chaining. */ public Builder setAcceleratorTypeValue(int value) { - acceleratorType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -782,9 +797,8 @@ public Builder setAcceleratorTypeValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.AcceleratorType getAcceleratorType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.AcceleratorType result = - com.google.cloud.aiplatform.v1.AcceleratorType.valueOf(acceleratorType_); + com.google.cloud.aiplatform.v1.AcceleratorType.forNumber(acceleratorType_); return result == null ? com.google.cloud.aiplatform.v1.AcceleratorType.UNRECOGNIZED : result; } /** @@ -807,7 +821,7 @@ public Builder setAcceleratorType(com.google.cloud.aiplatform.v1.AcceleratorType if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; acceleratorType_ = value.getNumber(); onChanged(); return this; @@ -828,7 +842,7 @@ public Builder setAcceleratorType(com.google.cloud.aiplatform.v1.AcceleratorType * @return This builder for chaining. */ public Builder clearAcceleratorType() { - + bitField0_ = (bitField0_ & ~0x00000002); acceleratorType_ = 0; onChanged(); return this; @@ -865,6 +879,7 @@ public int getAcceleratorCount() { public Builder setAcceleratorCount(int value) { acceleratorCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -880,7 +895,7 @@ public Builder setAcceleratorCount(int value) { * @return This builder for chaining. */ public Builder clearAcceleratorCount() { - + bitField0_ = (bitField0_ & ~0x00000004); acceleratorCount_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ManualBatchTuningParameters.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ManualBatchTuningParameters.java index 556a3c3b1bf5..e7f1ae4f5ae9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ManualBatchTuningParameters.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ManualBatchTuningParameters.java @@ -66,7 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int BATCH_SIZE_FIELD_NUMBER = 1; - private int batchSize_; + private int batchSize_ = 0; /** * * @@ -287,8 +287,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; batchSize_ = 0; - return this; } @@ -316,11 +316,20 @@ public com.google.cloud.aiplatform.v1.ManualBatchTuningParameters build() { public com.google.cloud.aiplatform.v1.ManualBatchTuningParameters buildPartial() { com.google.cloud.aiplatform.v1.ManualBatchTuningParameters result = new com.google.cloud.aiplatform.v1.ManualBatchTuningParameters(this); - result.batchSize_ = batchSize_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ManualBatchTuningParameters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.batchSize_ = batchSize_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -399,7 +408,7 @@ public Builder mergeFrom( case 8: { batchSize_ = input.readInt32(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -419,6 +428,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int batchSize_; /** * @@ -462,6 +473,7 @@ public int getBatchSize() { public Builder setBatchSize(int value) { batchSize_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -483,7 +495,7 @@ public Builder setBatchSize(int value) { * @return This builder for chaining. */ public Builder clearBatchSize() { - + bitField0_ = (bitField0_ & ~0x00000001); batchSize_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Measurement.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Measurement.java index 7cdba0405e1b..ef9c6d765cfb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Measurement.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Measurement.java @@ -164,7 +164,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int METRIC_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object metricId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metricId_ = ""; /** * * @@ -215,7 +217,7 @@ public com.google.protobuf.ByteString getMetricIdBytes() { } public static final int VALUE_FIELD_NUMBER = 2; - private double value_; + private double value_ = 0D; /** * * @@ -444,10 +446,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; metricId_ = ""; - value_ = 0D; - return this; } @@ -475,12 +476,23 @@ public com.google.cloud.aiplatform.v1.Measurement.Metric build() { public com.google.cloud.aiplatform.v1.Measurement.Metric buildPartial() { com.google.cloud.aiplatform.v1.Measurement.Metric result = new com.google.cloud.aiplatform.v1.Measurement.Metric(this); - result.metricId_ = metricId_; - result.value_ = value_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.Measurement.Metric result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricId_ = metricId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -531,6 +543,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Measurement.Metric other return this; if (!other.getMetricId().isEmpty()) { metricId_ = other.metricId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getValue() != 0D) { @@ -565,13 +578,13 @@ public Builder mergeFrom( case 10: { metricId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 17: { value_ = input.readDouble(); - + bitField0_ |= 0x00000002; break; } // case 17 default: @@ -591,6 +604,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object metricId_ = ""; /** * @@ -655,8 +670,8 @@ public Builder setMetricId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metricId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -673,8 +688,8 @@ public Builder setMetricId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetricId() { - metricId_ = getDefaultInstance().getMetricId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -696,8 +711,8 @@ public Builder setMetricIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metricId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -733,6 +748,7 @@ public double getValue() { public Builder setValue(double value) { value_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -748,7 +764,7 @@ public Builder setValue(double value) { * @return This builder for chaining. */ public Builder clearValue() { - + bitField0_ = (bitField0_ & ~0x00000002); value_ = 0D; onChanged(); return this; @@ -872,11 +888,13 @@ public com.google.protobuf.Duration getElapsedDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getElapsedDurationOrBuilder() { - return getElapsedDuration(); + return elapsedDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : elapsedDuration_; } public static final int STEP_COUNT_FIELD_NUMBER = 2; - private long stepCount_; + private long stepCount_ = 0L; /** * * @@ -895,6 +913,8 @@ public long getStepCount() { } public static final int METRICS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List metrics_; /** * @@ -1202,21 +1222,20 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (elapsedDurationBuilder_ == null) { - elapsedDuration_ = null; - } else { - elapsedDuration_ = null; + bitField0_ = 0; + elapsedDuration_ = null; + if (elapsedDurationBuilder_ != null) { + elapsedDurationBuilder_.dispose(); elapsedDurationBuilder_ = null; } stepCount_ = 0L; - if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); } else { metrics_ = null; metricsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -1244,24 +1263,35 @@ public com.google.cloud.aiplatform.v1.Measurement build() { public com.google.cloud.aiplatform.v1.Measurement buildPartial() { com.google.cloud.aiplatform.v1.Measurement result = new com.google.cloud.aiplatform.v1.Measurement(this); - int from_bitField0_ = bitField0_; - if (elapsedDurationBuilder_ == null) { - result.elapsedDuration_ = elapsedDuration_; - } else { - result.elapsedDuration_ = elapsedDurationBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.stepCount_ = stepCount_; + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.Measurement result) { if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.metrics_ = metrics_; } else { result.metrics_ = metricsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Measurement result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.elapsedDuration_ = + elapsedDurationBuilder_ == null ? elapsedDuration_ : elapsedDurationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.stepCount_ = stepCount_; + } } @java.lang.Override @@ -1319,7 +1349,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Measurement other) { if (!other.metrics_.isEmpty()) { if (metrics_.isEmpty()) { metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureMetricsIsMutable(); metrics_.addAll(other.metrics_); @@ -1332,7 +1362,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Measurement other) { metricsBuilder_.dispose(); metricsBuilder_ = null; metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); metricsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMetricsFieldBuilder() @@ -1371,13 +1401,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getElapsedDurationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { stepCount_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: @@ -1434,7 +1464,7 @@ public Builder mergeFrom( * @return Whether the elapsedDuration field is set. */ public boolean hasElapsedDuration() { - return elapsedDurationBuilder_ != null || elapsedDuration_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1477,11 +1507,11 @@ public Builder setElapsedDuration(com.google.protobuf.Duration value) { throw new NullPointerException(); } elapsedDuration_ = value; - onChanged(); } else { elapsedDurationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1499,11 +1529,11 @@ public Builder setElapsedDuration(com.google.protobuf.Duration value) { public Builder setElapsedDuration(com.google.protobuf.Duration.Builder builderForValue) { if (elapsedDurationBuilder_ == null) { elapsedDuration_ = builderForValue.build(); - onChanged(); } else { elapsedDurationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1520,19 +1550,18 @@ public Builder setElapsedDuration(com.google.protobuf.Duration.Builder builderFo */ public Builder mergeElapsedDuration(com.google.protobuf.Duration value) { if (elapsedDurationBuilder_ == null) { - if (elapsedDuration_ != null) { - elapsedDuration_ = - com.google.protobuf.Duration.newBuilder(elapsedDuration_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && elapsedDuration_ != null + && elapsedDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getElapsedDurationBuilder().mergeFrom(value); } else { elapsedDuration_ = value; } - onChanged(); } else { elapsedDurationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1548,14 +1577,13 @@ public Builder mergeElapsedDuration(com.google.protobuf.Duration value) { * */ public Builder clearElapsedDuration() { - if (elapsedDurationBuilder_ == null) { - elapsedDuration_ = null; - onChanged(); - } else { - elapsedDuration_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + elapsedDuration_ = null; + if (elapsedDurationBuilder_ != null) { + elapsedDurationBuilder_.dispose(); elapsedDurationBuilder_ = null; } - + onChanged(); return this; } /** @@ -1571,7 +1599,7 @@ public Builder clearElapsedDuration() { * */ public com.google.protobuf.Duration.Builder getElapsedDurationBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getElapsedDurationFieldBuilder().getBuilder(); } @@ -1658,6 +1686,7 @@ public long getStepCount() { public Builder setStepCount(long value) { stepCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1674,7 +1703,7 @@ public Builder setStepCount(long value) { * @return This builder for chaining. */ public Builder clearStepCount() { - + bitField0_ = (bitField0_ & ~0x00000002); stepCount_ = 0L; onChanged(); return this; @@ -1684,10 +1713,10 @@ public Builder clearStepCount() { java.util.Collections.emptyList(); private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { metrics_ = new java.util.ArrayList(metrics_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -1936,7 +1965,7 @@ public Builder addAllMetrics( public Builder clearMetrics() { if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { metricsBuilder_.clear(); @@ -2081,7 +2110,7 @@ public com.google.cloud.aiplatform.v1.Measurement.Metric.Builder addMetricsBuild com.google.cloud.aiplatform.v1.Measurement.Metric, com.google.cloud.aiplatform.v1.Measurement.Metric.Builder, com.google.cloud.aiplatform.v1.Measurement.MetricOrBuilder>( - metrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + metrics_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); metrics_ = null; } return metricsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MergeVersionAliasesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MergeVersionAliasesRequest.java index 42afad46b821..c9292b60d830 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MergeVersionAliasesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MergeVersionAliasesRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -127,6 +129,8 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int VERSION_ALIASES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList versionAliases_; /** * @@ -442,10 +446,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -473,17 +477,30 @@ public com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest build() { public com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest buildPartial() { com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest result = new com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (((bitField0_ & 0x00000001) != 0)) { - versionAliases_ = versionAliases_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.versionAliases_ = versionAliases_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest result) { + if (((bitField0_ & 0x00000002) != 0)) { + versionAliases_ = versionAliases_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.versionAliases_ = versionAliases_; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -532,12 +549,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.MergeVersionAliasesReque return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.versionAliases_.isEmpty()) { if (versionAliases_.isEmpty()) { versionAliases_ = other.versionAliases_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureVersionAliasesIsMutable(); versionAliases_.addAll(other.versionAliases_); @@ -573,7 +591,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -675,8 +693,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -696,8 +714,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -722,8 +740,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -732,9 +750,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureVersionAliasesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { versionAliases_ = new com.google.protobuf.LazyStringArrayList(versionAliases_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -949,7 +967,7 @@ public Builder addAllVersionAliases(java.lang.Iterable values) */ public Builder clearVersionAliases() { versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataSchema.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataSchema.java index f3c0a2258057..3c64f1dd45e5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataSchema.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataSchema.java @@ -254,7 +254,9 @@ private MetadataSchemaType(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -303,7 +305,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int SCHEMA_VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object schemaVersion_; + + @SuppressWarnings("serial") + private volatile java.lang.Object schemaVersion_ = ""; /** * * @@ -356,7 +360,9 @@ public com.google.protobuf.ByteString getSchemaVersionBytes() { } public static final int SCHEMA_FIELD_NUMBER = 3; - private volatile java.lang.Object schema_; + + @SuppressWarnings("serial") + private volatile java.lang.Object schema_ = ""; /** * * @@ -415,7 +421,7 @@ public com.google.protobuf.ByteString getSchemaBytes() { } public static final int SCHEMA_TYPE_FIELD_NUMBER = 4; - private int schemaType_; + private int schemaType_ = 0; /** * * @@ -446,9 +452,8 @@ public int getSchemaTypeValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType getSchemaType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType result = - com.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType.valueOf(schemaType_); + com.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType.forNumber(schemaType_); return result == null ? com.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType.UNRECOGNIZED : result; @@ -500,11 +505,13 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int DESCRIPTION_FIELD_NUMBER = 6; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -805,22 +812,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - schemaVersion_ = ""; - schema_ = ""; - schemaType_ = 0; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } description_ = ""; - return this; } @@ -848,20 +850,35 @@ public com.google.cloud.aiplatform.v1.MetadataSchema build() { public com.google.cloud.aiplatform.v1.MetadataSchema buildPartial() { com.google.cloud.aiplatform.v1.MetadataSchema result = new com.google.cloud.aiplatform.v1.MetadataSchema(this); - result.name_ = name_; - result.schemaVersion_ = schemaVersion_; - result.schema_ = schema_; - result.schemaType_ = schemaType_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.description_ = description_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.MetadataSchema result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.schemaVersion_ = schemaVersion_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.schema_ = schema_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.schemaType_ = schemaType_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.description_ = description_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -909,14 +926,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.MetadataSchema other) { if (other == com.google.cloud.aiplatform.v1.MetadataSchema.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getSchemaVersion().isEmpty()) { schemaVersion_ = other.schemaVersion_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getSchema().isEmpty()) { schema_ = other.schema_; + bitField0_ |= 0x00000004; onChanged(); } if (other.schemaType_ != 0) { @@ -927,6 +947,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.MetadataSchema other) { } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -958,37 +979,37 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { schemaVersion_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { schema_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 32: { schemaType_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -1008,6 +1029,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -1069,8 +1092,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1086,8 +1109,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1108,8 +1131,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1181,8 +1204,8 @@ public Builder setSchemaVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - schemaVersion_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1200,8 +1223,8 @@ public Builder setSchemaVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSchemaVersion() { - schemaVersion_ = getDefaultInstance().getSchemaVersion(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1224,8 +1247,8 @@ public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - schemaVersion_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1306,8 +1329,8 @@ public Builder setSchema(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - schema_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1328,8 +1351,8 @@ public Builder setSchema(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSchema() { - schema_ = getDefaultInstance().getSchema(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1355,8 +1378,8 @@ public Builder setSchemaBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - schema_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1392,8 +1415,8 @@ public int getSchemaTypeValue() { * @return This builder for chaining. */ public Builder setSchemaTypeValue(int value) { - schemaType_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1411,9 +1434,8 @@ public Builder setSchemaTypeValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType getSchemaType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType result = - com.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType.valueOf(schemaType_); + com.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType.forNumber(schemaType_); return result == null ? com.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType.UNRECOGNIZED : result; @@ -1436,7 +1458,7 @@ public Builder setSchemaType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; schemaType_ = value.getNumber(); onChanged(); return this; @@ -1454,7 +1476,7 @@ public Builder setSchemaType( * @return This builder for chaining. */ public Builder clearSchemaType() { - + bitField0_ = (bitField0_ & ~0x00000008); schemaType_ = 0; onChanged(); return this; @@ -1480,7 +1502,7 @@ public Builder clearSchemaType() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1521,11 +1543,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1542,11 +1564,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1562,17 +1584,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1587,14 +1610,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1609,7 +1631,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1722,8 +1744,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1739,8 +1761,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1761,8 +1783,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataStore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataStore.java index 23357142c9b1..5ab49f77e6a7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataStore.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataStore.java @@ -135,7 +135,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DISK_UTILIZATION_BYTES_FIELD_NUMBER = 1; - private long diskUtilizationBytes_; + private long diskUtilizationBytes_ = 0L; /** * * @@ -354,8 +354,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; diskUtilizationBytes_ = 0L; - return this; } @@ -384,11 +384,21 @@ public com.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState build() { public com.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState buildPartial() { com.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState result = new com.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState(this); - result.diskUtilizationBytes_ = diskUtilizationBytes_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.diskUtilizationBytes_ = diskUtilizationBytes_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -471,7 +481,7 @@ public Builder mergeFrom( case 8: { diskUtilizationBytes_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -491,6 +501,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long diskUtilizationBytes_; /** * @@ -522,6 +534,7 @@ public long getDiskUtilizationBytes() { public Builder setDiskUtilizationBytes(long value) { diskUtilizationBytes_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -537,7 +550,7 @@ public Builder setDiskUtilizationBytes(long value) { * @return This builder for chaining. */ public Builder clearDiskUtilizationBytes() { - + bitField0_ = (bitField0_ & ~0x00000001); diskUtilizationBytes_ = 0L; onChanged(); return this; @@ -611,7 +624,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -705,7 +720,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 4; @@ -754,7 +769,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 5; @@ -808,11 +823,15 @@ public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } public static final int DESCRIPTION_FIELD_NUMBER = 6; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -912,7 +931,9 @@ public com.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState getState( @java.lang.Override public com.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreStateOrBuilder getStateOrBuilder() { - return getState(); + return state_ == null + ? com.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.getDefaultInstance() + : state_; } private byte memoizedIsInitialized = -1; @@ -1178,32 +1199,27 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } description_ = ""; - - if (stateBuilder_ == null) { - state_ = null; - } else { - state_ = null; + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); stateBuilder_ = null; } return this; @@ -1233,30 +1249,34 @@ public com.google.cloud.aiplatform.v1.MetadataStore build() { public com.google.cloud.aiplatform.v1.MetadataStore buildPartial() { com.google.cloud.aiplatform.v1.MetadataStore result = new com.google.cloud.aiplatform.v1.MetadataStore(this); - result.name_ = name_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.MetadataStore result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } - result.description_ = description_; - if (stateBuilder_ == null) { - result.state_ = state_; - } else { - result.state_ = stateBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -1306,6 +1326,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.MetadataStore other) { if (other == com.google.cloud.aiplatform.v1.MetadataStore.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasCreateTime()) { @@ -1319,6 +1340,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.MetadataStore other) { } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasState()) { @@ -1353,37 +1375,37 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 26 case 34: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 34 case 42: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 42 case 50: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 50 case 58: { input.readMessage(getStateFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 58 default: @@ -1403,6 +1425,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -1464,8 +1488,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1481,8 +1505,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1503,8 +1527,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1529,7 +1553,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1570,11 +1594,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1591,11 +1615,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1611,17 +1635,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1636,14 +1661,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1658,7 +1682,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1730,7 +1754,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1771,11 +1795,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1792,11 +1816,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1812,17 +1836,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1837,14 +1862,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1859,7 +1883,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -1931,7 +1955,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1972,11 +1996,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec v throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1994,11 +2018,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2014,19 +2038,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2041,14 +2065,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 5; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -2063,7 +2086,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 5; */ public com.google.cloud.aiplatform.v1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -2176,8 +2199,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2193,8 +2216,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2215,8 +2238,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2241,7 +2264,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the state field is set. */ public boolean hasState() { - return stateBuilder_ != null || state_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2282,11 +2305,11 @@ public Builder setState(com.google.cloud.aiplatform.v1.MetadataStore.MetadataSto throw new NullPointerException(); } state_ = value; - onChanged(); } else { stateBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2304,11 +2327,11 @@ public Builder setState( com.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); - onChanged(); } else { stateBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2325,19 +2348,20 @@ public Builder setState( public Builder mergeState( com.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState value) { if (stateBuilder_ == null) { - if (state_ != null) { - state_ = - com.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.newBuilder(state_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && state_ != null + && state_ + != com.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState + .getDefaultInstance()) { + getStateBuilder().mergeFrom(value); } else { state_ = value; } - onChanged(); } else { stateBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2352,14 +2376,13 @@ public Builder mergeState( * */ public Builder clearState() { - if (stateBuilder_ == null) { - state_ = null; - onChanged(); - } else { - state_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); stateBuilder_ = null; } - + onChanged(); return this; } /** @@ -2375,7 +2398,7 @@ public Builder clearState() { */ public com.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.Builder getStateBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getStateFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigratableResource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigratableResource.java index b7f42f514b66..a6b5de262ce0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigratableResource.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigratableResource.java @@ -186,7 +186,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object endpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; /** * * @@ -247,7 +249,9 @@ public com.google.protobuf.ByteString getEndpointBytes() { } public static final int VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object version_; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; /** * * @@ -510,10 +514,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; endpoint_ = ""; - version_ = ""; - return this; } @@ -544,12 +547,24 @@ public com.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion bu public com.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion buildPartial() { com.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion result = new com.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion(this); - result.endpoint_ = endpoint_; - result.version_ = version_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.version_ = version_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -604,10 +619,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -639,13 +656,13 @@ public Builder mergeFrom( case 10: { endpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { version_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -665,6 +682,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object endpoint_ = ""; /** * @@ -744,8 +763,8 @@ public Builder setEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -767,8 +786,8 @@ public Builder setEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEndpoint() { - endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -795,8 +814,8 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -865,8 +884,8 @@ public Builder setVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - version_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -883,8 +902,8 @@ public Builder setVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -906,8 +925,8 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - version_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1090,7 +1109,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MODEL_FIELD_NUMBER = 1; - private volatile java.lang.Object model_; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; /** * * @@ -1143,7 +1164,9 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int MODEL_DISPLAY_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object modelDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelDisplayName_ = ""; /** * * @@ -1400,10 +1423,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; model_ = ""; - modelDisplayName_ = ""; - return this; } @@ -1432,12 +1454,24 @@ public com.google.cloud.aiplatform.v1.MigratableResource.AutomlModel build() { public com.google.cloud.aiplatform.v1.MigratableResource.AutomlModel buildPartial() { com.google.cloud.aiplatform.v1.MigratableResource.AutomlModel result = new com.google.cloud.aiplatform.v1.MigratableResource.AutomlModel(this); - result.model_ = model_; - result.modelDisplayName_ = modelDisplayName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.MigratableResource.AutomlModel result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.model_ = model_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelDisplayName_ = modelDisplayName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1490,10 +1524,12 @@ public Builder mergeFrom( return this; if (!other.getModel().isEmpty()) { model_ = other.model_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getModelDisplayName().isEmpty()) { modelDisplayName_ = other.modelDisplayName_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1525,13 +1561,13 @@ public Builder mergeFrom( case 10: { model_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: { modelDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 26 default: @@ -1551,6 +1587,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object model_ = ""; /** * @@ -1618,8 +1656,8 @@ public Builder setModel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - model_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1637,8 +1675,8 @@ public Builder setModel(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModel() { - model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1661,8 +1699,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - model_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1728,8 +1766,8 @@ public Builder setModelDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1745,8 +1783,8 @@ public Builder setModelDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelDisplayName() { - modelDisplayName_ = getDefaultInstance().getModelDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1767,8 +1805,8 @@ public Builder setModelDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1950,7 +1988,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DATASET_FIELD_NUMBER = 1; - private volatile java.lang.Object dataset_; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataset_ = ""; /** * * @@ -2003,7 +2043,9 @@ public com.google.protobuf.ByteString getDatasetBytes() { } public static final int DATASET_DISPLAY_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object datasetDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object datasetDisplayName_ = ""; /** * * @@ -2262,10 +2304,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; dataset_ = ""; - datasetDisplayName_ = ""; - return this; } @@ -2294,12 +2335,24 @@ public com.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset build() { public com.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset buildPartial() { com.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset result = new com.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset(this); - result.dataset_ = dataset_; - result.datasetDisplayName_ = datasetDisplayName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataset_ = dataset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.datasetDisplayName_ = datasetDisplayName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2352,10 +2405,12 @@ public Builder mergeFrom( return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDatasetDisplayName().isEmpty()) { datasetDisplayName_ = other.datasetDisplayName_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -2387,13 +2442,13 @@ public Builder mergeFrom( case 10: { dataset_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 34: { datasetDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 34 default: @@ -2413,6 +2468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object dataset_ = ""; /** * @@ -2480,8 +2537,8 @@ public Builder setDataset(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - dataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2499,8 +2556,8 @@ public Builder setDataset(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDataset() { - dataset_ = getDefaultInstance().getDataset(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2523,8 +2580,8 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - dataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2590,8 +2647,8 @@ public Builder setDatasetDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - datasetDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2607,8 +2664,8 @@ public Builder setDatasetDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDatasetDisplayName() { - datasetDisplayName_ = getDefaultInstance().getDatasetDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2629,8 +2686,8 @@ public Builder setDatasetDisplayNameBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - datasetDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3004,7 +3061,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ANNOTATED_DATASET_FIELD_NUMBER = 1; - private volatile java.lang.Object annotatedDataset_; + + @SuppressWarnings("serial") + private volatile java.lang.Object annotatedDataset_ = ""; /** * * @@ -3057,7 +3116,9 @@ public com.google.protobuf.ByteString getAnnotatedDatasetBytes() { } public static final int ANNOTATED_DATASET_DISPLAY_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object annotatedDatasetDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object annotatedDatasetDisplayName_ = ""; /** * * @@ -3352,10 +3413,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; annotatedDataset_ = ""; - annotatedDatasetDisplayName_ = ""; - return this; } @@ -3395,12 +3455,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset .DataLabelingAnnotatedDataset(this); - result.annotatedDataset_ = annotatedDataset_; - result.annotatedDatasetDisplayName_ = annotatedDatasetDisplayName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset + .DataLabelingAnnotatedDataset + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.annotatedDataset_ = annotatedDataset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.annotatedDatasetDisplayName_ = annotatedDatasetDisplayName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3461,10 +3535,12 @@ public Builder mergeFrom( .DataLabelingAnnotatedDataset.getDefaultInstance()) return this; if (!other.getAnnotatedDataset().isEmpty()) { annotatedDataset_ = other.annotatedDataset_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getAnnotatedDatasetDisplayName().isEmpty()) { annotatedDatasetDisplayName_ = other.annotatedDatasetDisplayName_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -3496,13 +3572,13 @@ public Builder mergeFrom( case 10: { annotatedDataset_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: { annotatedDatasetDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 26 default: @@ -3522,6 +3598,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object annotatedDataset_ = ""; /** * @@ -3589,8 +3667,8 @@ public Builder setAnnotatedDataset(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - annotatedDataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3608,8 +3686,8 @@ public Builder setAnnotatedDataset(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAnnotatedDataset() { - annotatedDataset_ = getDefaultInstance().getAnnotatedDataset(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3632,8 +3710,8 @@ public Builder setAnnotatedDatasetBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - annotatedDataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3699,8 +3777,8 @@ public Builder setAnnotatedDatasetDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - annotatedDatasetDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3716,8 +3794,8 @@ public Builder setAnnotatedDatasetDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAnnotatedDatasetDisplayName() { - annotatedDatasetDisplayName_ = getDefaultInstance().getAnnotatedDatasetDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3738,8 +3816,8 @@ public Builder setAnnotatedDatasetDisplayNameBytes(com.google.protobuf.ByteStrin throw new NullPointerException(); } checkByteStringIsUtf8(value); - annotatedDatasetDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3817,7 +3895,9 @@ public com.google.protobuf.Parser getParserForType } public static final int DATASET_FIELD_NUMBER = 1; - private volatile java.lang.Object dataset_; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataset_ = ""; /** * * @@ -3870,7 +3950,9 @@ public com.google.protobuf.ByteString getDatasetBytes() { } public static final int DATASET_DISPLAY_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object datasetDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object datasetDisplayName_ = ""; /** * * @@ -3919,6 +4001,8 @@ public com.google.protobuf.ByteString getDatasetDisplayNameBytes() { } public static final int DATA_LABELING_ANNOTATED_DATASETS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset .DataLabelingAnnotatedDataset> @@ -4241,17 +4325,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; dataset_ = ""; - datasetDisplayName_ = ""; - if (dataLabelingAnnotatedDatasetsBuilder_ == null) { dataLabelingAnnotatedDatasets_ = java.util.Collections.emptyList(); } else { dataLabelingAnnotatedDatasets_ = null; dataLabelingAnnotatedDatasetsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -4282,21 +4365,37 @@ public com.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset bui public com.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset buildPartial() { com.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset result = new com.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset(this); - int from_bitField0_ = bitField0_; - result.dataset_ = dataset_; - result.datasetDisplayName_ = datasetDisplayName_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset result) { if (dataLabelingAnnotatedDatasetsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { dataLabelingAnnotatedDatasets_ = java.util.Collections.unmodifiableList(dataLabelingAnnotatedDatasets_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.dataLabelingAnnotatedDatasets_ = dataLabelingAnnotatedDatasets_; } else { result.dataLabelingAnnotatedDatasets_ = dataLabelingAnnotatedDatasetsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataset_ = dataset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.datasetDisplayName_ = datasetDisplayName_; + } } @java.lang.Override @@ -4353,17 +4452,19 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDatasetDisplayName().isEmpty()) { datasetDisplayName_ = other.datasetDisplayName_; + bitField0_ |= 0x00000002; onChanged(); } if (dataLabelingAnnotatedDatasetsBuilder_ == null) { if (!other.dataLabelingAnnotatedDatasets_.isEmpty()) { if (dataLabelingAnnotatedDatasets_.isEmpty()) { dataLabelingAnnotatedDatasets_ = other.dataLabelingAnnotatedDatasets_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDataLabelingAnnotatedDatasetsIsMutable(); dataLabelingAnnotatedDatasets_.addAll(other.dataLabelingAnnotatedDatasets_); @@ -4376,7 +4477,7 @@ public Builder mergeFrom( dataLabelingAnnotatedDatasetsBuilder_.dispose(); dataLabelingAnnotatedDatasetsBuilder_ = null; dataLabelingAnnotatedDatasets_ = other.dataLabelingAnnotatedDatasets_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); dataLabelingAnnotatedDatasetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataLabelingAnnotatedDatasetsFieldBuilder() @@ -4416,7 +4517,7 @@ public Builder mergeFrom( case 10: { dataset_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: @@ -4439,7 +4540,7 @@ public Builder mergeFrom( case 34: { datasetDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 34 default: @@ -4528,8 +4629,8 @@ public Builder setDataset(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - dataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4547,8 +4648,8 @@ public Builder setDataset(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDataset() { - dataset_ = getDefaultInstance().getDataset(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -4571,8 +4672,8 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - dataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4638,8 +4739,8 @@ public Builder setDatasetDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - datasetDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4655,8 +4756,8 @@ public Builder setDatasetDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDatasetDisplayName() { - datasetDisplayName_ = getDefaultInstance().getDatasetDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -4677,8 +4778,8 @@ public Builder setDatasetDisplayNameBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - datasetDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4689,12 +4790,12 @@ public Builder setDatasetDisplayNameBytes(com.google.protobuf.ByteString value) dataLabelingAnnotatedDatasets_ = java.util.Collections.emptyList(); private void ensureDataLabelingAnnotatedDatasetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { dataLabelingAnnotatedDatasets_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset .DataLabelingAnnotatedDataset>(dataLabelingAnnotatedDatasets_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -4975,7 +5076,7 @@ public Builder addAllDataLabelingAnnotatedDatasets( public Builder clearDataLabelingAnnotatedDatasets() { if (dataLabelingAnnotatedDatasetsBuilder_ == null) { dataLabelingAnnotatedDatasets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { dataLabelingAnnotatedDatasetsBuilder_.clear(); @@ -5143,7 +5244,7 @@ public Builder removeDataLabelingAnnotatedDatasets(int index) { com.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset .DataLabelingAnnotatedDatasetOrBuilder>( dataLabelingAnnotatedDatasets_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); dataLabelingAnnotatedDatasets_ = null; @@ -5567,7 +5668,9 @@ public com.google.protobuf.Timestamp getLastMigrateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastMigrateTimeOrBuilder() { - return getLastMigrateTime(); + return lastMigrateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastMigrateTime_; } public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 6; @@ -5621,7 +5724,9 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - return getLastUpdateTime(); + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } private byte memoizedIsInitialized = -1; @@ -5915,6 +6020,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (mlEngineModelVersionBuilder_ != null) { mlEngineModelVersionBuilder_.clear(); } @@ -5927,16 +6033,14 @@ public Builder clear() { if (dataLabelingDatasetBuilder_ != null) { dataLabelingDatasetBuilder_.clear(); } - if (lastMigrateTimeBuilder_ == null) { - lastMigrateTime_ = null; - } else { - lastMigrateTime_ = null; + lastMigrateTime_ = null; + if (lastMigrateTimeBuilder_ != null) { + lastMigrateTimeBuilder_.dispose(); lastMigrateTimeBuilder_ = null; } - if (lastUpdateTimeBuilder_ == null) { - lastUpdateTime_ = null; - } else { - lastUpdateTime_ = null; + lastUpdateTime_ = null; + if (lastUpdateTimeBuilder_ != null) { + lastUpdateTimeBuilder_.dispose(); lastUpdateTimeBuilder_ = null; } resourceCase_ = 0; @@ -5968,47 +6072,41 @@ public com.google.cloud.aiplatform.v1.MigratableResource build() { public com.google.cloud.aiplatform.v1.MigratableResource buildPartial() { com.google.cloud.aiplatform.v1.MigratableResource result = new com.google.cloud.aiplatform.v1.MigratableResource(this); - if (resourceCase_ == 1) { - if (mlEngineModelVersionBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = mlEngineModelVersionBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (resourceCase_ == 2) { - if (automlModelBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = automlModelBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.MigratableResource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.lastMigrateTime_ = + lastMigrateTimeBuilder_ == null ? lastMigrateTime_ : lastMigrateTimeBuilder_.build(); } - if (resourceCase_ == 3) { - if (automlDatasetBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = automlDatasetBuilder_.build(); - } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.lastUpdateTime_ = + lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build(); } - if (resourceCase_ == 4) { - if (dataLabelingDatasetBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = dataLabelingDatasetBuilder_.build(); - } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.MigratableResource result) { + result.resourceCase_ = resourceCase_; + result.resource_ = this.resource_; + if (resourceCase_ == 1 && mlEngineModelVersionBuilder_ != null) { + result.resource_ = mlEngineModelVersionBuilder_.build(); } - if (lastMigrateTimeBuilder_ == null) { - result.lastMigrateTime_ = lastMigrateTime_; - } else { - result.lastMigrateTime_ = lastMigrateTimeBuilder_.build(); + if (resourceCase_ == 2 && automlModelBuilder_ != null) { + result.resource_ = automlModelBuilder_.build(); } - if (lastUpdateTimeBuilder_ == null) { - result.lastUpdateTime_ = lastUpdateTime_; - } else { - result.lastUpdateTime_ = lastUpdateTimeBuilder_.build(); + if (resourceCase_ == 3 && automlDatasetBuilder_ != null) { + result.resource_ = automlDatasetBuilder_.build(); + } + if (resourceCase_ == 4 && dataLabelingDatasetBuilder_ != null) { + result.resource_ = dataLabelingDatasetBuilder_.build(); } - result.resourceCase_ = resourceCase_; - onBuilt(); - return result; } @java.lang.Override @@ -6144,13 +6242,13 @@ public Builder mergeFrom( case 42: { input.readMessage(getLastMigrateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -6184,6 +6282,8 @@ public Builder clearResource() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion, com.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.Builder, @@ -6422,7 +6522,6 @@ public Builder clearMlEngineModelVersion() { } resourceCase_ = 1; onChanged(); - ; return mlEngineModelVersionBuilder_; } @@ -6657,7 +6756,6 @@ public Builder clearAutomlModel() { } resourceCase_ = 2; onChanged(); - ; return automlModelBuilder_; } @@ -6892,7 +6990,6 @@ public Builder clearAutomlDataset() { } resourceCase_ = 3; onChanged(); - ; return automlDatasetBuilder_; } @@ -7134,7 +7231,6 @@ public Builder clearDataLabelingDataset() { } resourceCase_ = 4; onChanged(); - ; return dataLabelingDatasetBuilder_; } @@ -7160,7 +7256,7 @@ public Builder clearDataLabelingDataset() { * @return Whether the lastMigrateTime field is set. */ public boolean hasLastMigrateTime() { - return lastMigrateTimeBuilder_ != null || lastMigrateTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -7205,11 +7301,11 @@ public Builder setLastMigrateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } lastMigrateTime_ = value; - onChanged(); } else { lastMigrateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -7228,11 +7324,11 @@ public Builder setLastMigrateTime(com.google.protobuf.Timestamp value) { public Builder setLastMigrateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastMigrateTimeBuilder_ == null) { lastMigrateTime_ = builderForValue.build(); - onChanged(); } else { lastMigrateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -7250,19 +7346,18 @@ public Builder setLastMigrateTime(com.google.protobuf.Timestamp.Builder builderF */ public Builder mergeLastMigrateTime(com.google.protobuf.Timestamp value) { if (lastMigrateTimeBuilder_ == null) { - if (lastMigrateTime_ != null) { - lastMigrateTime_ = - com.google.protobuf.Timestamp.newBuilder(lastMigrateTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && lastMigrateTime_ != null + && lastMigrateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastMigrateTimeBuilder().mergeFrom(value); } else { lastMigrateTime_ = value; } - onChanged(); } else { lastMigrateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -7279,14 +7374,13 @@ public Builder mergeLastMigrateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearLastMigrateTime() { - if (lastMigrateTimeBuilder_ == null) { - lastMigrateTime_ = null; - onChanged(); - } else { - lastMigrateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + lastMigrateTime_ = null; + if (lastMigrateTimeBuilder_ != null) { + lastMigrateTimeBuilder_.dispose(); lastMigrateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -7303,7 +7397,7 @@ public Builder clearLastMigrateTime() { * */ public com.google.protobuf.Timestamp.Builder getLastMigrateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getLastMigrateTimeFieldBuilder().getBuilder(); } @@ -7379,7 +7473,7 @@ public com.google.protobuf.TimestampOrBuilder getLastMigrateTimeOrBuilder() { * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { - return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -7420,11 +7514,11 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } lastUpdateTime_ = value; - onChanged(); } else { lastUpdateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -7441,11 +7535,11 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); - onChanged(); } else { lastUpdateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -7461,19 +7555,18 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { - if (lastUpdateTime_ != null) { - lastUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && lastUpdateTime_ != null + && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; } - onChanged(); } else { lastUpdateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -7488,14 +7581,13 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearLastUpdateTime() { - if (lastUpdateTimeBuilder_ == null) { - lastUpdateTime_ = null; - onChanged(); - } else { - lastUpdateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + lastUpdateTime_ = null; + if (lastUpdateTimeBuilder_ != null) { + lastUpdateTimeBuilder_.dispose(); lastUpdateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -7510,7 +7602,7 @@ public Builder clearLastUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceRequest.java index 629831dd5a26..55d86d835e67 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceRequest.java @@ -221,7 +221,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object endpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; /** * * @@ -280,7 +282,9 @@ public com.google.protobuf.ByteString getEndpointBytes() { } public static final int MODEL_VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object modelVersion_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelVersion_ = ""; /** * * @@ -335,7 +339,9 @@ public com.google.protobuf.ByteString getModelVersionBytes() { } public static final int MODEL_DISPLAY_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object modelDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelDisplayName_ = ""; /** * * @@ -633,12 +639,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; endpoint_ = ""; - modelVersion_ = ""; - modelDisplayName_ = ""; - return this; } @@ -673,13 +677,28 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.MigrateResourceRequest .MigrateMlEngineModelVersionConfig(this); - result.endpoint_ = endpoint_; - result.modelVersion_ = modelVersion_; - result.modelDisplayName_ = modelDisplayName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelVersion_ = modelVersion_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.modelDisplayName_ = modelDisplayName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -739,14 +758,17 @@ public Builder mergeFrom( .MigrateMlEngineModelVersionConfig.getDefaultInstance()) return this; if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getModelVersion().isEmpty()) { modelVersion_ = other.modelVersion_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getModelDisplayName().isEmpty()) { modelDisplayName_ = other.modelDisplayName_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -778,19 +800,19 @@ public Builder mergeFrom( case 10: { endpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { modelVersion_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { modelDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -810,6 +832,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object endpoint_ = ""; /** * @@ -886,8 +910,8 @@ public Builder setEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -908,8 +932,8 @@ public Builder setEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEndpoint() { - endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -935,8 +959,8 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1011,8 +1035,8 @@ public Builder setModelVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelVersion_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1031,8 +1055,8 @@ public Builder setModelVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelVersion() { - modelVersion_ = getDefaultInstance().getModelVersion(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1056,8 +1080,8 @@ public Builder setModelVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelVersion_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1126,8 +1150,8 @@ public Builder setModelDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelDisplayName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1144,8 +1168,8 @@ public Builder setModelDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelDisplayName() { - modelDisplayName_ = getDefaultInstance().getModelDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1167,8 +1191,8 @@ public Builder setModelDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelDisplayName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1362,7 +1386,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MODEL_FIELD_NUMBER = 1; - private volatile java.lang.Object model_; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; /** * * @@ -1419,7 +1445,9 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int MODEL_DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object modelDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelDisplayName_ = ""; /** * * @@ -1690,10 +1718,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; model_ = ""; - modelDisplayName_ = ""; - return this; } @@ -1727,12 +1754,24 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig result = new com.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig( this); - result.model_ = model_; - result.modelDisplayName_ = modelDisplayName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.model_ = model_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelDisplayName_ = modelDisplayName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1789,10 +1828,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getModel().isEmpty()) { model_ = other.model_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getModelDisplayName().isEmpty()) { modelDisplayName_ = other.modelDisplayName_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1824,13 +1865,13 @@ public Builder mergeFrom( case 10: { model_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { modelDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1850,6 +1891,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object model_ = ""; /** * @@ -1923,8 +1966,8 @@ public Builder setModel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - model_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1944,8 +1987,8 @@ public Builder setModel(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModel() { - model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1970,8 +2013,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - model_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2040,8 +2083,8 @@ public Builder setModelDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2058,8 +2101,8 @@ public Builder setModelDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelDisplayName() { - modelDisplayName_ = getDefaultInstance().getModelDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2081,8 +2124,8 @@ public Builder setModelDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2277,7 +2320,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DATASET_FIELD_NUMBER = 1; - private volatile java.lang.Object dataset_; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataset_ = ""; /** * * @@ -2334,7 +2379,9 @@ public com.google.protobuf.ByteString getDatasetBytes() { } public static final int DATASET_DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object datasetDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object datasetDisplayName_ = ""; /** * * @@ -2607,10 +2654,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; dataset_ = ""; - datasetDisplayName_ = ""; - return this; } @@ -2644,12 +2690,24 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig result = new com.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig( this); - result.dataset_ = dataset_; - result.datasetDisplayName_ = datasetDisplayName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataset_ = dataset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.datasetDisplayName_ = datasetDisplayName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2706,10 +2764,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDatasetDisplayName().isEmpty()) { datasetDisplayName_ = other.datasetDisplayName_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -2741,13 +2801,13 @@ public Builder mergeFrom( case 10: { dataset_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { datasetDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -2767,6 +2827,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object dataset_ = ""; /** * @@ -2840,8 +2902,8 @@ public Builder setDataset(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - dataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2861,8 +2923,8 @@ public Builder setDataset(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDataset() { - dataset_ = getDefaultInstance().getDataset(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2887,8 +2949,8 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - dataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2957,8 +3019,8 @@ public Builder setDatasetDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - datasetDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2975,8 +3037,8 @@ public Builder setDatasetDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDatasetDisplayName() { - datasetDisplayName_ = getDefaultInstance().getDatasetDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2998,8 +3060,8 @@ public Builder setDatasetDisplayNameBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - datasetDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3374,7 +3436,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ANNOTATED_DATASET_FIELD_NUMBER = 1; - private volatile java.lang.Object annotatedDataset_; + + @SuppressWarnings("serial") + private volatile java.lang.Object annotatedDataset_ = ""; /** * * @@ -3667,8 +3731,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; annotatedDataset_ = ""; - return this; } @@ -3710,11 +3774,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { new com.google.cloud.aiplatform.v1.MigrateResourceRequest .MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig( this); - result.annotatedDataset_ = annotatedDataset_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + .MigrateDataLabelingAnnotatedDatasetConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.annotatedDataset_ = annotatedDataset_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3776,6 +3852,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getAnnotatedDataset().isEmpty()) { annotatedDataset_ = other.annotatedDataset_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -3807,7 +3884,7 @@ public Builder mergeFrom( case 10: { annotatedDataset_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -3827,6 +3904,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object annotatedDataset_ = ""; /** * @@ -3900,8 +3979,8 @@ public Builder setAnnotatedDataset(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - annotatedDataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3921,8 +4000,8 @@ public Builder setAnnotatedDataset(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAnnotatedDataset() { - annotatedDataset_ = getDefaultInstance().getAnnotatedDataset(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3947,8 +4026,8 @@ public Builder setAnnotatedDatasetBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - annotatedDataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4028,7 +4107,9 @@ public static com.google.protobuf.Parser @@ -4489,17 +4574,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; dataset_ = ""; - datasetDisplayName_ = ""; - if (migrateDataLabelingAnnotatedDatasetConfigsBuilder_ == null) { migrateDataLabelingAnnotatedDatasetConfigs_ = java.util.Collections.emptyList(); } else { migrateDataLabelingAnnotatedDatasetConfigs_ = null; migrateDataLabelingAnnotatedDatasetConfigsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -4534,14 +4618,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.MigrateResourceRequest .MigrateDataLabelingDatasetConfig(this); - int from_bitField0_ = bitField0_; - result.dataset_ = dataset_; - result.datasetDisplayName_ = datasetDisplayName_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + result) { if (migrateDataLabelingAnnotatedDatasetConfigsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { migrateDataLabelingAnnotatedDatasetConfigs_ = java.util.Collections.unmodifiableList(migrateDataLabelingAnnotatedDatasetConfigs_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.migrateDataLabelingAnnotatedDatasetConfigs_ = migrateDataLabelingAnnotatedDatasetConfigs_; @@ -4549,8 +4641,18 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result.migrateDataLabelingAnnotatedDatasetConfigs_ = migrateDataLabelingAnnotatedDatasetConfigsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataset_ = dataset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.datasetDisplayName_ = datasetDisplayName_; + } } @java.lang.Override @@ -4612,10 +4714,12 @@ public Builder mergeFrom( .MigrateDataLabelingDatasetConfig.getDefaultInstance()) return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDatasetDisplayName().isEmpty()) { datasetDisplayName_ = other.datasetDisplayName_; + bitField0_ |= 0x00000002; onChanged(); } if (migrateDataLabelingAnnotatedDatasetConfigsBuilder_ == null) { @@ -4623,7 +4727,7 @@ public Builder mergeFrom( if (migrateDataLabelingAnnotatedDatasetConfigs_.isEmpty()) { migrateDataLabelingAnnotatedDatasetConfigs_ = other.migrateDataLabelingAnnotatedDatasetConfigs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureMigrateDataLabelingAnnotatedDatasetConfigsIsMutable(); migrateDataLabelingAnnotatedDatasetConfigs_.addAll( @@ -4638,7 +4742,7 @@ public Builder mergeFrom( migrateDataLabelingAnnotatedDatasetConfigsBuilder_ = null; migrateDataLabelingAnnotatedDatasetConfigs_ = other.migrateDataLabelingAnnotatedDatasetConfigs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); migrateDataLabelingAnnotatedDatasetConfigsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMigrateDataLabelingAnnotatedDatasetConfigsFieldBuilder() @@ -4678,13 +4782,13 @@ public Builder mergeFrom( case 10: { dataset_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { datasetDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -4798,8 +4902,8 @@ public Builder setDataset(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - dataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4819,8 +4923,8 @@ public Builder setDataset(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDataset() { - dataset_ = getDefaultInstance().getDataset(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -4845,8 +4949,8 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - dataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4915,8 +5019,8 @@ public Builder setDatasetDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - datasetDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4933,8 +5037,8 @@ public Builder setDatasetDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDatasetDisplayName() { - datasetDisplayName_ = getDefaultInstance().getDatasetDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -4956,8 +5060,8 @@ public Builder setDatasetDisplayNameBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - datasetDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4968,13 +5072,13 @@ public Builder setDatasetDisplayNameBytes(com.google.protobuf.ByteString value) migrateDataLabelingAnnotatedDatasetConfigs_ = java.util.Collections.emptyList(); private void ensureMigrateDataLabelingAnnotatedDatasetConfigsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { migrateDataLabelingAnnotatedDatasetConfigs_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1.MigrateResourceRequest .MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig>( migrateDataLabelingAnnotatedDatasetConfigs_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -5270,7 +5374,7 @@ public Builder addAllMigrateDataLabelingAnnotatedDatasetConfigs( public Builder clearMigrateDataLabelingAnnotatedDatasetConfigs() { if (migrateDataLabelingAnnotatedDatasetConfigsBuilder_ == null) { migrateDataLabelingAnnotatedDatasetConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { migrateDataLabelingAnnotatedDatasetConfigsBuilder_.clear(); @@ -5451,7 +5555,7 @@ public Builder removeMigrateDataLabelingAnnotatedDatasetConfigs(int index) { .MigrateDataLabelingDatasetConfig .MigrateDataLabelingAnnotatedDatasetConfigOrBuilder>( migrateDataLabelingAnnotatedDatasetConfigs_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); migrateDataLabelingAnnotatedDatasetConfigs_ = null; @@ -6135,6 +6239,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (migrateMlEngineModelVersionConfigBuilder_ != null) { migrateMlEngineModelVersionConfigBuilder_.clear(); } @@ -6176,37 +6281,33 @@ public com.google.cloud.aiplatform.v1.MigrateResourceRequest build() { public com.google.cloud.aiplatform.v1.MigrateResourceRequest buildPartial() { com.google.cloud.aiplatform.v1.MigrateResourceRequest result = new com.google.cloud.aiplatform.v1.MigrateResourceRequest(this); - if (requestCase_ == 1) { - if (migrateMlEngineModelVersionConfigBuilder_ == null) { - result.request_ = request_; - } else { - result.request_ = migrateMlEngineModelVersionConfigBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (requestCase_ == 2) { - if (migrateAutomlModelConfigBuilder_ == null) { - result.request_ = request_; - } else { - result.request_ = migrateAutomlModelConfigBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.MigrateResourceRequest result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.MigrateResourceRequest result) { + result.requestCase_ = requestCase_; + result.request_ = this.request_; + if (requestCase_ == 1 && migrateMlEngineModelVersionConfigBuilder_ != null) { + result.request_ = migrateMlEngineModelVersionConfigBuilder_.build(); } - if (requestCase_ == 3) { - if (migrateAutomlDatasetConfigBuilder_ == null) { - result.request_ = request_; - } else { - result.request_ = migrateAutomlDatasetConfigBuilder_.build(); - } + if (requestCase_ == 2 && migrateAutomlModelConfigBuilder_ != null) { + result.request_ = migrateAutomlModelConfigBuilder_.build(); } - if (requestCase_ == 4) { - if (migrateDataLabelingDatasetConfigBuilder_ == null) { - result.request_ = request_; - } else { - result.request_ = migrateDataLabelingDatasetConfigBuilder_.build(); - } + if (requestCase_ == 3 && migrateAutomlDatasetConfigBuilder_ != null) { + result.request_ = migrateAutomlDatasetConfigBuilder_.build(); + } + if (requestCase_ == 4 && migrateDataLabelingDatasetConfigBuilder_ != null) { + result.request_ = migrateDataLabelingDatasetConfigBuilder_.build(); } - result.requestCase_ = requestCase_; - onBuilt(); - return result; } @java.lang.Override @@ -6368,6 +6469,8 @@ public Builder clearRequest() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig, com.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig @@ -6626,7 +6729,6 @@ public Builder clearMigrateMlEngineModelVersionConfig() { } requestCase_ = 1; onChanged(); - ; return migrateMlEngineModelVersionConfigBuilder_; } @@ -6884,7 +6986,6 @@ public Builder clearMigrateAutomlModelConfig() { } requestCase_ = 2; onChanged(); - ; return migrateAutomlModelConfigBuilder_; } @@ -7146,7 +7247,6 @@ public Builder clearMigrateAutomlDatasetConfig() { } requestCase_ = 3; onChanged(); - ; return migrateAutomlDatasetConfigBuilder_; } @@ -7417,7 +7517,6 @@ public Builder clearMigrateDataLabelingDatasetConfig() { } requestCase_ = 4; onChanged(); - ; return migrateDataLabelingDatasetConfigBuilder_; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceResponse.java index b9324ba711c3..3a8c3a074355 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrateResourceResponse.java @@ -301,7 +301,9 @@ public com.google.cloud.aiplatform.v1.MigratableResource getMigratableResource() @java.lang.Override public com.google.cloud.aiplatform.v1.MigratableResourceOrBuilder getMigratableResourceOrBuilder() { - return getMigratableResource(); + return migratableResource_ == null + ? com.google.cloud.aiplatform.v1.MigratableResource.getDefaultInstance() + : migratableResource_; } private byte memoizedIsInitialized = -1; @@ -542,10 +544,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (migratableResourceBuilder_ == null) { - migratableResource_ = null; - } else { - migratableResource_ = null; + bitField0_ = 0; + migratableResource_ = null; + if (migratableResourceBuilder_ != null) { + migratableResourceBuilder_.dispose(); migratableResourceBuilder_ = null; } migratedResourceCase_ = 0; @@ -577,22 +579,29 @@ public com.google.cloud.aiplatform.v1.MigrateResourceResponse build() { public com.google.cloud.aiplatform.v1.MigrateResourceResponse buildPartial() { com.google.cloud.aiplatform.v1.MigrateResourceResponse result = new com.google.cloud.aiplatform.v1.MigrateResourceResponse(this); - if (migratedResourceCase_ == 1) { - result.migratedResource_ = migratedResource_; - } - if (migratedResourceCase_ == 2) { - result.migratedResource_ = migratedResource_; + if (bitField0_ != 0) { + buildPartial0(result); } - if (migratableResourceBuilder_ == null) { - result.migratableResource_ = migratableResource_; - } else { - result.migratableResource_ = migratableResourceBuilder_.build(); - } - result.migratedResourceCase_ = migratedResourceCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.MigrateResourceResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.migratableResource_ = + migratableResourceBuilder_ == null + ? migratableResource_ + : migratableResourceBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.MigrateResourceResponse result) { + result.migratedResourceCase_ = migratedResourceCase_; + result.migratedResource_ = this.migratedResource_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -706,7 +715,7 @@ public Builder mergeFrom( { input.readMessage( getMigratableResourceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -740,6 +749,8 @@ public Builder clearMigratedResource() { return this; } + private int bitField0_; + /** * * @@ -1027,7 +1038,7 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { * @return Whether the migratableResource field is set. */ public boolean hasMigratableResource() { - return migratableResourceBuilder_ != null || migratableResource_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1066,11 +1077,11 @@ public Builder setMigratableResource(com.google.cloud.aiplatform.v1.MigratableRe throw new NullPointerException(); } migratableResource_ = value; - onChanged(); } else { migratableResourceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1087,11 +1098,11 @@ public Builder setMigratableResource( com.google.cloud.aiplatform.v1.MigratableResource.Builder builderForValue) { if (migratableResourceBuilder_ == null) { migratableResource_ = builderForValue.build(); - onChanged(); } else { migratableResourceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1107,19 +1118,19 @@ public Builder setMigratableResource( public Builder mergeMigratableResource( com.google.cloud.aiplatform.v1.MigratableResource value) { if (migratableResourceBuilder_ == null) { - if (migratableResource_ != null) { - migratableResource_ = - com.google.cloud.aiplatform.v1.MigratableResource.newBuilder(migratableResource_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && migratableResource_ != null + && migratableResource_ + != com.google.cloud.aiplatform.v1.MigratableResource.getDefaultInstance()) { + getMigratableResourceBuilder().mergeFrom(value); } else { migratableResource_ = value; } - onChanged(); } else { migratableResourceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1133,14 +1144,13 @@ public Builder mergeMigratableResource( * .google.cloud.aiplatform.v1.MigratableResource migratable_resource = 3; */ public Builder clearMigratableResource() { - if (migratableResourceBuilder_ == null) { - migratableResource_ = null; - onChanged(); - } else { - migratableResource_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + migratableResource_ = null; + if (migratableResourceBuilder_ != null) { + migratableResourceBuilder_.dispose(); migratableResourceBuilder_ = null; } - + onChanged(); return this; } /** @@ -1155,7 +1165,7 @@ public Builder clearMigratableResource() { */ public com.google.cloud.aiplatform.v1.MigratableResource.Builder getMigratableResourceBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getMigratableResourceFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java index 510a8ef07673..2af897befe45 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java @@ -646,7 +646,9 @@ private ExportableContent(int value) { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -723,7 +725,10 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int EXPORTABLE_CONTENTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List exportableContents_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent> exportableContents_converter_ = @@ -732,9 +737,8 @@ public com.google.protobuf.ByteString getIdBytes() { com.google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent>() { public com.google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent convert( java.lang.Integer from) { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent result = - com.google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent.valueOf( + com.google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent.forNumber( from); return result == null ? com.google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent @@ -1063,10 +1067,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - exportableContents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -1094,17 +1098,30 @@ public com.google.cloud.aiplatform.v1.Model.ExportFormat build() { public com.google.cloud.aiplatform.v1.Model.ExportFormat buildPartial() { com.google.cloud.aiplatform.v1.Model.ExportFormat result = new com.google.cloud.aiplatform.v1.Model.ExportFormat(this); - int from_bitField0_ = bitField0_; - result.id_ = id_; - if (((bitField0_ & 0x00000001) != 0)) { - exportableContents_ = java.util.Collections.unmodifiableList(exportableContents_); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.exportableContents_ = exportableContents_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.Model.ExportFormat result) { + if (((bitField0_ & 0x00000002) != 0)) { + exportableContents_ = java.util.Collections.unmodifiableList(exportableContents_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.exportableContents_ = exportableContents_; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Model.ExportFormat result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1155,12 +1172,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model.ExportFormat other return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.exportableContents_.isEmpty()) { if (exportableContents_.isEmpty()) { exportableContents_ = other.exportableContents_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureExportableContentsIsMutable(); exportableContents_.addAll(other.exportableContents_); @@ -1196,7 +1214,7 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: @@ -1340,8 +1358,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1371,8 +1389,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1407,8 +1425,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1417,9 +1435,9 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureExportableContentsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { exportableContents_ = new java.util.ArrayList(exportableContents_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -1564,7 +1582,7 @@ public Builder addAllExportableContents( */ public Builder clearExportableContents() { exportableContents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1730,7 +1748,9 @@ public com.google.cloud.aiplatform.v1.Model.ExportFormat getDefaultInstanceForTy } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -1779,7 +1799,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int VERSION_ID_FIELD_NUMBER = 28; - private volatile java.lang.Object versionId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object versionId_ = ""; /** * * @@ -1838,6 +1860,8 @@ public com.google.protobuf.ByteString getVersionIdBytes() { } public static final int VERSION_ALIASES_FIELD_NUMBER = 29; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList versionAliases_; /** * @@ -1981,7 +2005,9 @@ public com.google.protobuf.Timestamp getVersionCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getVersionCreateTimeOrBuilder() { - return getVersionCreateTime(); + return versionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : versionCreateTime_; } public static final int VERSION_UPDATE_TIME_FIELD_NUMBER = 32; @@ -2035,11 +2061,15 @@ public com.google.protobuf.Timestamp getVersionUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getVersionUpdateTimeOrBuilder() { - return getVersionUpdateTime(); + return versionUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : versionUpdateTime_; } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -2092,7 +2122,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -2141,7 +2173,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int VERSION_DESCRIPTION_FIELD_NUMBER = 30; - private volatile java.lang.Object versionDescription_; + + @SuppressWarnings("serial") + private volatile java.lang.Object versionDescription_ = ""; /** * * @@ -2246,11 +2280,15 @@ public com.google.cloud.aiplatform.v1.PredictSchemata getPredictSchemata() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.PredictSchemataOrBuilder getPredictSchemataOrBuilder() { - return getPredictSchemata(); + return predictSchemata_ == null + ? com.google.cloud.aiplatform.v1.PredictSchemata.getDefaultInstance() + : predictSchemata_; } public static final int METADATA_SCHEMA_URI_FIELD_NUMBER = 5; - private volatile java.lang.Object metadataSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metadataSchemaUri_ = ""; /** * * @@ -2368,10 +2406,12 @@ public com.google.protobuf.Value getMetadata() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; } public static final int SUPPORTED_EXPORT_FORMATS_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") private java.util.List supportedExportFormats_; /** * @@ -2458,7 +2498,9 @@ public com.google.cloud.aiplatform.v1.Model.ExportFormat getSupportedExportForma } public static final int TRAINING_PIPELINE_FIELD_NUMBER = 7; - private volatile java.lang.Object trainingPipeline_; + + @SuppressWarnings("serial") + private volatile java.lang.Object trainingPipeline_ = ""; /** * * @@ -2575,11 +2617,15 @@ public com.google.cloud.aiplatform.v1.ModelContainerSpec getContainerSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ModelContainerSpecOrBuilder getContainerSpecOrBuilder() { - return getContainerSpec(); + return containerSpec_ == null + ? com.google.cloud.aiplatform.v1.ModelContainerSpec.getDefaultInstance() + : containerSpec_; } public static final int ARTIFACT_URI_FIELD_NUMBER = 26; - private volatile java.lang.Object artifactUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object artifactUri_ = ""; /** * * @@ -2630,7 +2676,10 @@ public com.google.protobuf.ByteString getArtifactUriBytes() { } public static final int SUPPORTED_DEPLOYMENT_RESOURCES_TYPES_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") private java.util.List supportedDeploymentResourcesTypes_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.aiplatform.v1.Model.DeploymentResourcesType> supportedDeploymentResourcesTypes_converter_ = @@ -2638,9 +2687,8 @@ public com.google.protobuf.ByteString getArtifactUriBytes() { java.lang.Integer, com.google.cloud.aiplatform.v1.Model.DeploymentResourcesType>() { public com.google.cloud.aiplatform.v1.Model.DeploymentResourcesType convert( java.lang.Integer from) { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Model.DeploymentResourcesType result = - com.google.cloud.aiplatform.v1.Model.DeploymentResourcesType.valueOf(from); + com.google.cloud.aiplatform.v1.Model.DeploymentResourcesType.forNumber(from); return result == null ? com.google.cloud.aiplatform.v1.Model.DeploymentResourcesType.UNRECOGNIZED : result; @@ -2824,6 +2872,8 @@ public int getSupportedDeploymentResourcesTypesValue(int index) { private int supportedDeploymentResourcesTypesMemoizedSerializedSize; public static final int SUPPORTED_INPUT_STORAGE_FORMATS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList supportedInputStorageFormats_; /** * @@ -3041,6 +3091,8 @@ public com.google.protobuf.ByteString getSupportedInputStorageFormatsBytes(int i } public static final int SUPPORTED_OUTPUT_STORAGE_FORMATS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList supportedOutputStorageFormats_; /** * @@ -3275,7 +3327,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 14; @@ -3324,10 +3376,12 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int DEPLOYED_MODELS_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") private java.util.List deployedModels_; /** * @@ -3523,11 +3577,15 @@ public com.google.cloud.aiplatform.v1.ExplanationSpec getExplanationSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ExplanationSpecOrBuilder getExplanationSpecOrBuilder() { - return getExplanationSpec(); + return explanationSpec_ == null + ? com.google.cloud.aiplatform.v1.ExplanationSpec.getDefaultInstance() + : explanationSpec_; } public static final int ETAG_FIELD_NUMBER = 16; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -3590,6 +3648,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -3659,7 +3718,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 17; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3739,7 +3801,9 @@ public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } public static final int MODEL_SOURCE_INFO_FIELD_NUMBER = 38; @@ -3796,11 +3860,15 @@ public com.google.cloud.aiplatform.v1.ModelSourceInfo getModelSourceInfo() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ModelSourceInfoOrBuilder getModelSourceInfoOrBuilder() { - return getModelSourceInfo(); + return modelSourceInfo_ == null + ? com.google.cloud.aiplatform.v1.ModelSourceInfo.getDefaultInstance() + : modelSourceInfo_; } public static final int METADATA_ARTIFACT_FIELD_NUMBER = 44; - private volatile java.lang.Object metadataArtifact_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metadataArtifact_ = ""; /** * * @@ -4412,42 +4480,33 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - versionId_ = ""; - versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (versionCreateTimeBuilder_ == null) { - versionCreateTime_ = null; - } else { - versionCreateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + versionCreateTime_ = null; + if (versionCreateTimeBuilder_ != null) { + versionCreateTimeBuilder_.dispose(); versionCreateTimeBuilder_ = null; } - if (versionUpdateTimeBuilder_ == null) { - versionUpdateTime_ = null; - } else { - versionUpdateTime_ = null; + versionUpdateTime_ = null; + if (versionUpdateTimeBuilder_ != null) { + versionUpdateTimeBuilder_.dispose(); versionUpdateTimeBuilder_ = null; } displayName_ = ""; - description_ = ""; - versionDescription_ = ""; - - if (predictSchemataBuilder_ == null) { - predictSchemata_ = null; - } else { - predictSchemata_ = null; + predictSchemata_ = null; + if (predictSchemataBuilder_ != null) { + predictSchemataBuilder_.dispose(); predictSchemataBuilder_ = null; } metadataSchemaUri_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } if (supportedExportFormatsBuilder_ == null) { @@ -4456,33 +4515,28 @@ public Builder clear() { supportedExportFormats_ = null; supportedExportFormatsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000800); trainingPipeline_ = ""; - - if (containerSpecBuilder_ == null) { - containerSpec_ = null; - } else { - containerSpec_ = null; + containerSpec_ = null; + if (containerSpecBuilder_ != null) { + containerSpecBuilder_.dispose(); containerSpecBuilder_ = null; } artifactUri_ = ""; - supportedDeploymentResourcesTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00008000); supportedInputStorageFormats_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00010000); supportedOutputStorageFormats_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00020000); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } if (deployedModelsBuilder_ == null) { @@ -4491,30 +4545,25 @@ public Builder clear() { deployedModels_ = null; deployedModelsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000020); - if (explanationSpecBuilder_ == null) { - explanationSpec_ = null; - } else { - explanationSpec_ = null; + bitField0_ = (bitField0_ & ~0x00100000); + explanationSpec_ = null; + if (explanationSpecBuilder_ != null) { + explanationSpecBuilder_.dispose(); explanationSpecBuilder_ = null; } etag_ = ""; - internalGetMutableLabels().clear(); - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - if (modelSourceInfoBuilder_ == null) { - modelSourceInfo_ = null; - } else { - modelSourceInfo_ = null; + modelSourceInfo_ = null; + if (modelSourceInfoBuilder_ != null) { + modelSourceInfoBuilder_.dispose(); modelSourceInfoBuilder_ = null; } metadataArtifact_ = ""; - return this; } @@ -4541,110 +4590,133 @@ public com.google.cloud.aiplatform.v1.Model build() { @java.lang.Override public com.google.cloud.aiplatform.v1.Model buildPartial() { com.google.cloud.aiplatform.v1.Model result = new com.google.cloud.aiplatform.v1.Model(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.versionId_ = versionId_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.Model result) { + if (((bitField0_ & 0x00000004) != 0)) { versionAliases_ = versionAliases_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.versionAliases_ = versionAliases_; - if (versionCreateTimeBuilder_ == null) { - result.versionCreateTime_ = versionCreateTime_; - } else { - result.versionCreateTime_ = versionCreateTimeBuilder_.build(); - } - if (versionUpdateTimeBuilder_ == null) { - result.versionUpdateTime_ = versionUpdateTime_; - } else { - result.versionUpdateTime_ = versionUpdateTimeBuilder_.build(); - } - result.displayName_ = displayName_; - result.description_ = description_; - result.versionDescription_ = versionDescription_; - if (predictSchemataBuilder_ == null) { - result.predictSchemata_ = predictSchemata_; - } else { - result.predictSchemata_ = predictSchemataBuilder_.build(); - } - result.metadataSchemaUri_ = metadataSchemaUri_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } if (supportedExportFormatsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { supportedExportFormats_ = java.util.Collections.unmodifiableList(supportedExportFormats_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000800); } result.supportedExportFormats_ = supportedExportFormats_; } else { result.supportedExportFormats_ = supportedExportFormatsBuilder_.build(); } - result.trainingPipeline_ = trainingPipeline_; - if (containerSpecBuilder_ == null) { - result.containerSpec_ = containerSpec_; - } else { - result.containerSpec_ = containerSpecBuilder_.build(); - } - result.artifactUri_ = artifactUri_; - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { supportedDeploymentResourcesTypes_ = java.util.Collections.unmodifiableList(supportedDeploymentResourcesTypes_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00008000); } result.supportedDeploymentResourcesTypes_ = supportedDeploymentResourcesTypes_; - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { supportedInputStorageFormats_ = supportedInputStorageFormats_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00010000); } result.supportedInputStorageFormats_ = supportedInputStorageFormats_; - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { supportedOutputStorageFormats_ = supportedOutputStorageFormats_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00020000); } result.supportedOutputStorageFormats_ = supportedOutputStorageFormats_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } if (deployedModelsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { deployedModels_ = java.util.Collections.unmodifiableList(deployedModels_); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00100000); } result.deployedModels_ = deployedModels_; } else { result.deployedModels_ = deployedModelsBuilder_.build(); } - if (explanationSpecBuilder_ == null) { - result.explanationSpec_ = explanationSpec_; - } else { - result.explanationSpec_ = explanationSpecBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Model result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - result.etag_ = etag_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.versionId_ = versionId_; } - if (modelSourceInfoBuilder_ == null) { - result.modelSourceInfo_ = modelSourceInfo_; - } else { - result.modelSourceInfo_ = modelSourceInfoBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.versionCreateTime_ = + versionCreateTimeBuilder_ == null + ? versionCreateTime_ + : versionCreateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.versionUpdateTime_ = + versionUpdateTimeBuilder_ == null + ? versionUpdateTime_ + : versionUpdateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.versionDescription_ = versionDescription_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.predictSchemata_ = + predictSchemataBuilder_ == null ? predictSchemata_ : predictSchemataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.metadataSchemaUri_ = metadataSchemaUri_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.trainingPipeline_ = trainingPipeline_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.containerSpec_ = + containerSpecBuilder_ == null ? containerSpec_ : containerSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.artifactUri_ = artifactUri_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.explanationSpec_ = + explanationSpecBuilder_ == null ? explanationSpec_ : explanationSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.modelSourceInfo_ = + modelSourceInfoBuilder_ == null ? modelSourceInfo_ : modelSourceInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.metadataArtifact_ = metadataArtifact_; } - result.metadataArtifact_ = metadataArtifact_; - onBuilt(); - return result; } @java.lang.Override @@ -4694,16 +4766,18 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { if (other == com.google.cloud.aiplatform.v1.Model.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getVersionId().isEmpty()) { versionId_ = other.versionId_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.versionAliases_.isEmpty()) { if (versionAliases_.isEmpty()) { versionAliases_ = other.versionAliases_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureVersionAliasesIsMutable(); versionAliases_.addAll(other.versionAliases_); @@ -4718,14 +4792,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000040; onChanged(); } if (!other.getVersionDescription().isEmpty()) { versionDescription_ = other.versionDescription_; + bitField0_ |= 0x00000080; onChanged(); } if (other.hasPredictSchemata()) { @@ -4733,6 +4810,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { } if (!other.getMetadataSchemaUri().isEmpty()) { metadataSchemaUri_ = other.metadataSchemaUri_; + bitField0_ |= 0x00000200; onChanged(); } if (other.hasMetadata()) { @@ -4742,7 +4820,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { if (!other.supportedExportFormats_.isEmpty()) { if (supportedExportFormats_.isEmpty()) { supportedExportFormats_ = other.supportedExportFormats_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000800); } else { ensureSupportedExportFormatsIsMutable(); supportedExportFormats_.addAll(other.supportedExportFormats_); @@ -4755,7 +4833,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { supportedExportFormatsBuilder_.dispose(); supportedExportFormatsBuilder_ = null; supportedExportFormats_ = other.supportedExportFormats_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000800); supportedExportFormatsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSupportedExportFormatsFieldBuilder() @@ -4767,6 +4845,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { } if (!other.getTrainingPipeline().isEmpty()) { trainingPipeline_ = other.trainingPipeline_; + bitField0_ |= 0x00001000; onChanged(); } if (other.hasContainerSpec()) { @@ -4774,12 +4853,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { } if (!other.getArtifactUri().isEmpty()) { artifactUri_ = other.artifactUri_; + bitField0_ |= 0x00004000; onChanged(); } if (!other.supportedDeploymentResourcesTypes_.isEmpty()) { if (supportedDeploymentResourcesTypes_.isEmpty()) { supportedDeploymentResourcesTypes_ = other.supportedDeploymentResourcesTypes_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00008000); } else { ensureSupportedDeploymentResourcesTypesIsMutable(); supportedDeploymentResourcesTypes_.addAll(other.supportedDeploymentResourcesTypes_); @@ -4789,7 +4869,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { if (!other.supportedInputStorageFormats_.isEmpty()) { if (supportedInputStorageFormats_.isEmpty()) { supportedInputStorageFormats_ = other.supportedInputStorageFormats_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00010000); } else { ensureSupportedInputStorageFormatsIsMutable(); supportedInputStorageFormats_.addAll(other.supportedInputStorageFormats_); @@ -4799,7 +4879,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { if (!other.supportedOutputStorageFormats_.isEmpty()) { if (supportedOutputStorageFormats_.isEmpty()) { supportedOutputStorageFormats_ = other.supportedOutputStorageFormats_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00020000); } else { ensureSupportedOutputStorageFormatsIsMutable(); supportedOutputStorageFormats_.addAll(other.supportedOutputStorageFormats_); @@ -4816,7 +4896,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { if (!other.deployedModels_.isEmpty()) { if (deployedModels_.isEmpty()) { deployedModels_ = other.deployedModels_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00100000); } else { ensureDeployedModelsIsMutable(); deployedModels_.addAll(other.deployedModels_); @@ -4829,7 +4909,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { deployedModelsBuilder_.dispose(); deployedModelsBuilder_ = null; deployedModels_ = other.deployedModels_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00100000); deployedModelsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDeployedModelsFieldBuilder() @@ -4844,9 +4924,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00400000; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00800000; if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } @@ -4855,6 +4937,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { } if (!other.getMetadataArtifact().isEmpty()) { metadataArtifact_ = other.metadataArtifact_; + bitField0_ |= 0x04000000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -4886,49 +4969,49 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 26 case 34: { input.readMessage(getPredictSchemataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 34 case 42: { metadataSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000200; break; } // case 42 case 50: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 50 case 58: { trainingPipeline_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00001000; break; } // case 58 case 74: { input.readMessage(getContainerSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00002000; break; } // case 74 case 80: @@ -4967,13 +5050,13 @@ public Builder mergeFrom( case 106: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00040000; break; } // case 106 case 114: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00080000; break; } // case 114 case 122: @@ -4993,7 +5076,7 @@ public Builder mergeFrom( case 130: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00400000; break; } // case 130 case 138: @@ -5005,6 +5088,7 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00800000; break; } // case 138 case 162: @@ -5024,25 +5108,25 @@ public Builder mergeFrom( case 186: { input.readMessage(getExplanationSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00200000; break; } // case 186 case 194: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x01000000; break; } // case 194 case 210: { artifactUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00004000; break; } // case 210 case 226: { versionId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 226 case 234: @@ -5055,33 +5139,33 @@ public Builder mergeFrom( case 242: { versionDescription_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 242 case 250: { input.readMessage( getVersionCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 250 case 258: { input.readMessage( getVersionUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 258 case 306: { input.readMessage(getModelSourceInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x02000000; break; } // case 306 case 354: { metadataArtifact_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x04000000; break; } // case 354 default: @@ -5164,8 +5248,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5181,8 +5265,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -5203,8 +5287,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5285,8 +5369,8 @@ public Builder setVersionId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - versionId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -5307,8 +5391,8 @@ public Builder setVersionId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearVersionId() { - versionId_ = getDefaultInstance().getVersionId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -5334,8 +5418,8 @@ public Builder setVersionIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - versionId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -5344,9 +5428,9 @@ public Builder setVersionIdBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureVersionAliasesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { versionAliases_ = new com.google.protobuf.LazyStringArrayList(versionAliases_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } /** @@ -5545,7 +5629,7 @@ public Builder addAllVersionAliases(java.lang.Iterable values) */ public Builder clearVersionAliases() { versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -5600,7 +5684,7 @@ public Builder addVersionAliasesBytes(com.google.protobuf.ByteString value) { * @return Whether the versionCreateTime field is set. */ public boolean hasVersionCreateTime() { - return versionCreateTimeBuilder_ != null || versionCreateTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -5641,11 +5725,11 @@ public Builder setVersionCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } versionCreateTime_ = value; - onChanged(); } else { versionCreateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -5662,11 +5746,11 @@ public Builder setVersionCreateTime(com.google.protobuf.Timestamp value) { public Builder setVersionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (versionCreateTimeBuilder_ == null) { versionCreateTime_ = builderForValue.build(); - onChanged(); } else { versionCreateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -5682,19 +5766,18 @@ public Builder setVersionCreateTime(com.google.protobuf.Timestamp.Builder builde */ public Builder mergeVersionCreateTime(com.google.protobuf.Timestamp value) { if (versionCreateTimeBuilder_ == null) { - if (versionCreateTime_ != null) { - versionCreateTime_ = - com.google.protobuf.Timestamp.newBuilder(versionCreateTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && versionCreateTime_ != null + && versionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getVersionCreateTimeBuilder().mergeFrom(value); } else { versionCreateTime_ = value; } - onChanged(); } else { versionCreateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -5709,14 +5792,13 @@ public Builder mergeVersionCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearVersionCreateTime() { - if (versionCreateTimeBuilder_ == null) { - versionCreateTime_ = null; - onChanged(); - } else { - versionCreateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + versionCreateTime_ = null; + if (versionCreateTimeBuilder_ != null) { + versionCreateTimeBuilder_.dispose(); versionCreateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -5731,7 +5813,7 @@ public Builder clearVersionCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getVersionCreateTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getVersionCreateTimeFieldBuilder().getBuilder(); } @@ -5803,7 +5885,7 @@ public com.google.protobuf.TimestampOrBuilder getVersionCreateTimeOrBuilder() { * @return Whether the versionUpdateTime field is set. */ public boolean hasVersionUpdateTime() { - return versionUpdateTimeBuilder_ != null || versionUpdateTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -5844,11 +5926,11 @@ public Builder setVersionUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } versionUpdateTime_ = value; - onChanged(); } else { versionUpdateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -5865,11 +5947,11 @@ public Builder setVersionUpdateTime(com.google.protobuf.Timestamp value) { public Builder setVersionUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (versionUpdateTimeBuilder_ == null) { versionUpdateTime_ = builderForValue.build(); - onChanged(); } else { versionUpdateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -5885,19 +5967,18 @@ public Builder setVersionUpdateTime(com.google.protobuf.Timestamp.Builder builde */ public Builder mergeVersionUpdateTime(com.google.protobuf.Timestamp value) { if (versionUpdateTimeBuilder_ == null) { - if (versionUpdateTime_ != null) { - versionUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(versionUpdateTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && versionUpdateTime_ != null + && versionUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getVersionUpdateTimeBuilder().mergeFrom(value); } else { versionUpdateTime_ = value; } - onChanged(); } else { versionUpdateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -5912,14 +5993,13 @@ public Builder mergeVersionUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearVersionUpdateTime() { - if (versionUpdateTimeBuilder_ == null) { - versionUpdateTime_ = null; - onChanged(); - } else { - versionUpdateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + versionUpdateTime_ = null; + if (versionUpdateTimeBuilder_ != null) { + versionUpdateTimeBuilder_.dispose(); versionUpdateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -5934,7 +6014,7 @@ public Builder clearVersionUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getVersionUpdateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getVersionUpdateTimeFieldBuilder().getBuilder(); } @@ -6053,8 +6133,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -6072,8 +6152,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -6096,8 +6176,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -6163,8 +6243,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -6180,8 +6260,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -6202,8 +6282,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -6269,8 +6349,8 @@ public Builder setVersionDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - versionDescription_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6286,8 +6366,8 @@ public Builder setVersionDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearVersionDescription() { - versionDescription_ = getDefaultInstance().getVersionDescription(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -6308,8 +6388,8 @@ public Builder setVersionDescriptionBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - versionDescription_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6336,7 +6416,7 @@ public Builder setVersionDescriptionBytes(com.google.protobuf.ByteString value) * @return Whether the predictSchemata field is set. */ public boolean hasPredictSchemata() { - return predictSchemataBuilder_ != null || predictSchemata_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -6381,11 +6461,11 @@ public Builder setPredictSchemata(com.google.cloud.aiplatform.v1.PredictSchemata throw new NullPointerException(); } predictSchemata_ = value; - onChanged(); } else { predictSchemataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -6405,11 +6485,11 @@ public Builder setPredictSchemata( com.google.cloud.aiplatform.v1.PredictSchemata.Builder builderForValue) { if (predictSchemataBuilder_ == null) { predictSchemata_ = builderForValue.build(); - onChanged(); } else { predictSchemataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -6427,19 +6507,19 @@ public Builder setPredictSchemata( */ public Builder mergePredictSchemata(com.google.cloud.aiplatform.v1.PredictSchemata value) { if (predictSchemataBuilder_ == null) { - if (predictSchemata_ != null) { - predictSchemata_ = - com.google.cloud.aiplatform.v1.PredictSchemata.newBuilder(predictSchemata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && predictSchemata_ != null + && predictSchemata_ + != com.google.cloud.aiplatform.v1.PredictSchemata.getDefaultInstance()) { + getPredictSchemataBuilder().mergeFrom(value); } else { predictSchemata_ = value; } - onChanged(); } else { predictSchemataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -6456,14 +6536,13 @@ public Builder mergePredictSchemata(com.google.cloud.aiplatform.v1.PredictSchema * .google.cloud.aiplatform.v1.PredictSchemata predict_schemata = 4; */ public Builder clearPredictSchemata() { - if (predictSchemataBuilder_ == null) { - predictSchemata_ = null; - onChanged(); - } else { - predictSchemata_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + predictSchemata_ = null; + if (predictSchemataBuilder_ != null) { + predictSchemataBuilder_.dispose(); predictSchemataBuilder_ = null; } - + onChanged(); return this; } /** @@ -6480,7 +6559,7 @@ public Builder clearPredictSchemata() { * .google.cloud.aiplatform.v1.PredictSchemata predict_schemata = 4; */ public com.google.cloud.aiplatform.v1.PredictSchemata.Builder getPredictSchemataBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getPredictSchemataFieldBuilder().getBuilder(); } @@ -6624,8 +6703,8 @@ public Builder setMetadataSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metadataSchemaUri_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6650,8 +6729,8 @@ public Builder setMetadataSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetadataSchemaUri() { - metadataSchemaUri_ = getDefaultInstance().getMetadataSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -6681,8 +6760,8 @@ public Builder setMetadataSchemaUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metadataSchemaUri_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6708,7 +6787,7 @@ public Builder setMetadataSchemaUriBytes(com.google.protobuf.ByteString value) { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -6749,11 +6828,11 @@ public Builder setMetadata(com.google.protobuf.Value value) { throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -6771,11 +6850,11 @@ public Builder setMetadata(com.google.protobuf.Value value) { public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -6792,17 +6871,18 @@ public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Value value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Value.newBuilder(metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Value.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -6818,14 +6898,13 @@ public Builder mergeMetadata(com.google.protobuf.Value value) { * .google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -6841,7 +6920,7 @@ public Builder clearMetadata() { * .google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.Value.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -6897,11 +6976,11 @@ public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { supportedExportFormats_ = java.util.Collections.emptyList(); private void ensureSupportedExportFormatsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000800) != 0)) { supportedExportFormats_ = new java.util.ArrayList( supportedExportFormats_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000800; } } @@ -7154,7 +7233,7 @@ public Builder addAllSupportedExportFormats( public Builder clearSupportedExportFormats() { if (supportedExportFormatsBuilder_ == null) { supportedExportFormats_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { supportedExportFormatsBuilder_.clear(); @@ -7303,7 +7382,7 @@ public Builder removeSupportedExportFormats(int index) { com.google.cloud.aiplatform.v1.Model.ExportFormat.Builder, com.google.cloud.aiplatform.v1.Model.ExportFormatOrBuilder>( supportedExportFormats_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); supportedExportFormats_ = null; @@ -7381,8 +7460,8 @@ public Builder setTrainingPipeline(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - trainingPipeline_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -7401,8 +7480,8 @@ public Builder setTrainingPipeline(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTrainingPipeline() { - trainingPipeline_ = getDefaultInstance().getTrainingPipeline(); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -7426,8 +7505,8 @@ public Builder setTrainingPipelineBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - trainingPipeline_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -7456,7 +7535,7 @@ public Builder setTrainingPipelineBytes(com.google.protobuf.ByteString value) { * @return Whether the containerSpec field is set. */ public boolean hasContainerSpec() { - return containerSpecBuilder_ != null || containerSpec_ != null; + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -7505,11 +7584,11 @@ public Builder setContainerSpec(com.google.cloud.aiplatform.v1.ModelContainerSpe throw new NullPointerException(); } containerSpec_ = value; - onChanged(); } else { containerSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -7531,11 +7610,11 @@ public Builder setContainerSpec( com.google.cloud.aiplatform.v1.ModelContainerSpec.Builder builderForValue) { if (containerSpecBuilder_ == null) { containerSpec_ = builderForValue.build(); - onChanged(); } else { containerSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -7555,19 +7634,19 @@ public Builder setContainerSpec( */ public Builder mergeContainerSpec(com.google.cloud.aiplatform.v1.ModelContainerSpec value) { if (containerSpecBuilder_ == null) { - if (containerSpec_ != null) { - containerSpec_ = - com.google.cloud.aiplatform.v1.ModelContainerSpec.newBuilder(containerSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00002000) != 0) + && containerSpec_ != null + && containerSpec_ + != com.google.cloud.aiplatform.v1.ModelContainerSpec.getDefaultInstance()) { + getContainerSpecBuilder().mergeFrom(value); } else { containerSpec_ = value; } - onChanged(); } else { containerSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -7586,14 +7665,13 @@ public Builder mergeContainerSpec(com.google.cloud.aiplatform.v1.ModelContainerS * */ public Builder clearContainerSpec() { - if (containerSpecBuilder_ == null) { - containerSpec_ = null; - onChanged(); - } else { - containerSpec_ = null; + bitField0_ = (bitField0_ & ~0x00002000); + containerSpec_ = null; + if (containerSpecBuilder_ != null) { + containerSpecBuilder_.dispose(); containerSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -7612,7 +7690,7 @@ public Builder clearContainerSpec() { * */ public com.google.cloud.aiplatform.v1.ModelContainerSpec.Builder getContainerSpecBuilder() { - + bitField0_ |= 0x00002000; onChanged(); return getContainerSpecFieldBuilder().getBuilder(); } @@ -7736,8 +7814,8 @@ public Builder setArtifactUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - artifactUri_ = value; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -7754,8 +7832,8 @@ public Builder setArtifactUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearArtifactUri() { - artifactUri_ = getDefaultInstance().getArtifactUri(); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -7777,8 +7855,8 @@ public Builder setArtifactUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - artifactUri_ = value; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -7787,10 +7865,10 @@ public Builder setArtifactUriBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureSupportedDeploymentResourcesTypesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00008000) != 0)) { supportedDeploymentResourcesTypes_ = new java.util.ArrayList(supportedDeploymentResourcesTypes_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00008000; } } /** @@ -8047,7 +8125,7 @@ public Builder addAllSupportedDeploymentResourcesTypes( */ public Builder clearSupportedDeploymentResourcesTypes() { supportedDeploymentResourcesTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -8236,10 +8314,10 @@ public Builder addAllSupportedDeploymentResourcesTypesValue( com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSupportedInputStorageFormatsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00010000) != 0)) { supportedInputStorageFormats_ = new com.google.protobuf.LazyStringArrayList(supportedInputStorageFormats_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00010000; } } /** @@ -8686,7 +8764,7 @@ public Builder addAllSupportedInputStorageFormats(java.lang.Iterable */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00040000); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -9360,7 +9438,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00040000; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -9432,7 +9510,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00080000) != 0); } /** * @@ -9473,11 +9551,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -9494,11 +9572,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -9514,17 +9592,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00080000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -9539,14 +9618,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00080000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -9561,7 +9639,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00080000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -9617,11 +9695,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { java.util.Collections.emptyList(); private void ensureDeployedModelsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!((bitField0_ & 0x00100000) != 0)) { deployedModels_ = new java.util.ArrayList( deployedModels_); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00100000; } } @@ -9872,7 +9950,7 @@ public Builder addAllDeployedModels( public Builder clearDeployedModels() { if (deployedModelsBuilder_ == null) { deployedModels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); } else { deployedModelsBuilder_.clear(); @@ -10019,7 +10097,7 @@ public com.google.cloud.aiplatform.v1.DeployedModelRef.Builder addDeployedModels com.google.cloud.aiplatform.v1.DeployedModelRef.Builder, com.google.cloud.aiplatform.v1.DeployedModelRefOrBuilder>( deployedModels_, - ((bitField0_ & 0x00000020) != 0), + ((bitField0_ & 0x00100000) != 0), getParentForChildren(), isClean()); deployedModels_ = null; @@ -10067,7 +10145,7 @@ public com.google.cloud.aiplatform.v1.DeployedModelRef.Builder addDeployedModels * @return Whether the explanationSpec field is set. */ public boolean hasExplanationSpec() { - return explanationSpecBuilder_ != null || explanationSpec_ != null; + return ((bitField0_ & 0x00200000) != 0); } /** * @@ -10148,11 +10226,11 @@ public Builder setExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSpec throw new NullPointerException(); } explanationSpec_ = value; - onChanged(); } else { explanationSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00200000; + onChanged(); return this; } /** @@ -10190,11 +10268,11 @@ public Builder setExplanationSpec( com.google.cloud.aiplatform.v1.ExplanationSpec.Builder builderForValue) { if (explanationSpecBuilder_ == null) { explanationSpec_ = builderForValue.build(); - onChanged(); } else { explanationSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00200000; + onChanged(); return this; } /** @@ -10230,19 +10308,19 @@ public Builder setExplanationSpec( */ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSpec value) { if (explanationSpecBuilder_ == null) { - if (explanationSpec_ != null) { - explanationSpec_ = - com.google.cloud.aiplatform.v1.ExplanationSpec.newBuilder(explanationSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00200000) != 0) + && explanationSpec_ != null + && explanationSpec_ + != com.google.cloud.aiplatform.v1.ExplanationSpec.getDefaultInstance()) { + getExplanationSpecBuilder().mergeFrom(value); } else { explanationSpec_ = value; } - onChanged(); } else { explanationSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00200000; + onChanged(); return this; } /** @@ -10277,14 +10355,13 @@ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSp * .google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 23; */ public Builder clearExplanationSpec() { - if (explanationSpecBuilder_ == null) { - explanationSpec_ = null; - onChanged(); - } else { - explanationSpec_ = null; + bitField0_ = (bitField0_ & ~0x00200000); + explanationSpec_ = null; + if (explanationSpecBuilder_ != null) { + explanationSpecBuilder_.dispose(); explanationSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -10319,7 +10396,7 @@ public Builder clearExplanationSpec() { * .google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 23; */ public com.google.cloud.aiplatform.v1.ExplanationSpec.Builder getExplanationSpecBuilder() { - + bitField0_ |= 0x00200000; onChanged(); return getExplanationSpecFieldBuilder().getBuilder(); } @@ -10475,8 +10552,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -10493,8 +10570,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } @@ -10516,8 +10593,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -10533,14 +10610,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00800000; + onChanged(); return labels_; } @@ -10604,8 +10681,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 17; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -10638,6 +10717,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00800000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -10664,6 +10744,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00800000; return internalGetMutableLabels().getMutableMap(); } /** @@ -10686,8 +10767,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00800000; return this; } /** @@ -10705,6 +10786,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00800000; return this; } @@ -10727,7 +10809,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x01000000) != 0); } /** * @@ -10766,11 +10848,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec v throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x01000000; + onChanged(); return this; } /** @@ -10787,11 +10869,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x01000000; + onChanged(); return this; } /** @@ -10806,19 +10888,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x01000000) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x01000000; + onChanged(); return this; } /** @@ -10832,14 +10914,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 24; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x01000000); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -10853,7 +10934,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 24; */ public com.google.cloud.aiplatform.v1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x01000000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -10924,7 +11005,7 @@ public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecO * @return Whether the modelSourceInfo field is set. */ public boolean hasModelSourceInfo() { - return modelSourceInfoBuilder_ != null || modelSourceInfo_ != null; + return ((bitField0_ & 0x02000000) != 0); } /** * @@ -10967,11 +11048,11 @@ public Builder setModelSourceInfo(com.google.cloud.aiplatform.v1.ModelSourceInfo throw new NullPointerException(); } modelSourceInfo_ = value; - onChanged(); } else { modelSourceInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x02000000; + onChanged(); return this; } /** @@ -10990,11 +11071,11 @@ public Builder setModelSourceInfo( com.google.cloud.aiplatform.v1.ModelSourceInfo.Builder builderForValue) { if (modelSourceInfoBuilder_ == null) { modelSourceInfo_ = builderForValue.build(); - onChanged(); } else { modelSourceInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x02000000; + onChanged(); return this; } /** @@ -11011,19 +11092,19 @@ public Builder setModelSourceInfo( */ public Builder mergeModelSourceInfo(com.google.cloud.aiplatform.v1.ModelSourceInfo value) { if (modelSourceInfoBuilder_ == null) { - if (modelSourceInfo_ != null) { - modelSourceInfo_ = - com.google.cloud.aiplatform.v1.ModelSourceInfo.newBuilder(modelSourceInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x02000000) != 0) + && modelSourceInfo_ != null + && modelSourceInfo_ + != com.google.cloud.aiplatform.v1.ModelSourceInfo.getDefaultInstance()) { + getModelSourceInfoBuilder().mergeFrom(value); } else { modelSourceInfo_ = value; } - onChanged(); } else { modelSourceInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x02000000; + onChanged(); return this; } /** @@ -11039,14 +11120,13 @@ public Builder mergeModelSourceInfo(com.google.cloud.aiplatform.v1.ModelSourceIn * */ public Builder clearModelSourceInfo() { - if (modelSourceInfoBuilder_ == null) { - modelSourceInfo_ = null; - onChanged(); - } else { - modelSourceInfo_ = null; + bitField0_ = (bitField0_ & ~0x02000000); + modelSourceInfo_ = null; + if (modelSourceInfoBuilder_ != null) { + modelSourceInfoBuilder_.dispose(); modelSourceInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -11062,7 +11142,7 @@ public Builder clearModelSourceInfo() { * */ public com.google.cloud.aiplatform.v1.ModelSourceInfo.Builder getModelSourceInfoBuilder() { - + bitField0_ |= 0x02000000; onChanged(); return getModelSourceInfoFieldBuilder().getBuilder(); } @@ -11186,8 +11266,8 @@ public Builder setMetadataArtifact(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metadataArtifact_ = value; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -11206,8 +11286,8 @@ public Builder setMetadataArtifact(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetadataArtifact() { - metadataArtifact_ = getDefaultInstance().getMetadataArtifact(); + bitField0_ = (bitField0_ & ~0x04000000); onChanged(); return this; } @@ -11231,8 +11311,8 @@ public Builder setMetadataArtifactBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metadataArtifact_ = value; + bitField0_ |= 0x04000000; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpec.java index bdb7feb6db95..652fee08270f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelContainerSpec.java @@ -76,7 +76,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int IMAGE_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object imageUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object imageUri_ = ""; /** * * @@ -157,6 +159,8 @@ public com.google.protobuf.ByteString getImageUriBytes() { } public static final int COMMAND_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList command_; /** * @@ -342,6 +346,8 @@ public com.google.protobuf.ByteString getCommandBytes(int index) { } public static final int ARGS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList args_; /** * @@ -523,6 +529,8 @@ public com.google.protobuf.ByteString getArgsBytes(int index) { } public static final int ENV_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List env_; /** * @@ -727,6 +735,8 @@ public com.google.cloud.aiplatform.v1.EnvVarOrBuilder getEnvOrBuilder(int index) } public static final int PORTS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private java.util.List ports_; /** * @@ -891,7 +901,9 @@ public com.google.cloud.aiplatform.v1.PortOrBuilder getPortsOrBuilder(int index) } public static final int PREDICT_ROUTE_FIELD_NUMBER = 6; - private volatile java.lang.Object predictRoute_; + + @SuppressWarnings("serial") + private volatile java.lang.Object predictRoute_ = ""; /** * * @@ -990,7 +1002,9 @@ public com.google.protobuf.ByteString getPredictRouteBytes() { } public static final int HEALTH_ROUTE_FIELD_NUMBER = 7; - private volatile java.lang.Object healthRoute_; + + @SuppressWarnings("serial") + private volatile java.lang.Object healthRoute_ = ""; /** * * @@ -1357,30 +1371,28 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; imageUri_ = ""; - command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); if (envBuilder_ == null) { env_ = java.util.Collections.emptyList(); } else { env_ = null; envBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); if (portsBuilder_ == null) { ports_ = java.util.Collections.emptyList(); } else { ports_ = null; portsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); predictRoute_ = ""; - healthRoute_ = ""; - return this; } @@ -1408,40 +1420,57 @@ public com.google.cloud.aiplatform.v1.ModelContainerSpec build() { public com.google.cloud.aiplatform.v1.ModelContainerSpec buildPartial() { com.google.cloud.aiplatform.v1.ModelContainerSpec result = new com.google.cloud.aiplatform.v1.ModelContainerSpec(this); - int from_bitField0_ = bitField0_; - result.imageUri_ = imageUri_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ModelContainerSpec result) { + if (((bitField0_ & 0x00000002) != 0)) { command_ = command_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.command_ = command_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { args_ = args_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.args_ = args_; if (envBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { env_ = java.util.Collections.unmodifiableList(env_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } result.env_ = env_; } else { result.env_ = envBuilder_.build(); } if (portsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { ports_ = java.util.Collections.unmodifiableList(ports_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } result.ports_ = ports_; } else { result.ports_ = portsBuilder_.build(); } - result.predictRoute_ = predictRoute_; - result.healthRoute_ = healthRoute_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ModelContainerSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.imageUri_ = imageUri_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.predictRoute_ = predictRoute_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.healthRoute_ = healthRoute_; + } } @java.lang.Override @@ -1492,12 +1521,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelContainerSpec other return this; if (!other.getImageUri().isEmpty()) { imageUri_ = other.imageUri_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.command_.isEmpty()) { if (command_.isEmpty()) { command_ = other.command_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCommandIsMutable(); command_.addAll(other.command_); @@ -1507,7 +1537,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelContainerSpec other if (!other.args_.isEmpty()) { if (args_.isEmpty()) { args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureArgsIsMutable(); args_.addAll(other.args_); @@ -1518,7 +1548,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelContainerSpec other if (!other.env_.isEmpty()) { if (env_.isEmpty()) { env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureEnvIsMutable(); env_.addAll(other.env_); @@ -1531,7 +1561,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelContainerSpec other envBuilder_.dispose(); envBuilder_ = null; env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); envBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEnvFieldBuilder() @@ -1545,7 +1575,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelContainerSpec other if (!other.ports_.isEmpty()) { if (ports_.isEmpty()) { ports_ = other.ports_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensurePortsIsMutable(); ports_.addAll(other.ports_); @@ -1558,7 +1588,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelContainerSpec other portsBuilder_.dispose(); portsBuilder_ = null; ports_ = other.ports_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); portsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPortsFieldBuilder() @@ -1570,10 +1600,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelContainerSpec other } if (!other.getPredictRoute().isEmpty()) { predictRoute_ = other.predictRoute_; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getHealthRoute().isEmpty()) { healthRoute_ = other.healthRoute_; + bitField0_ |= 0x00000040; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1605,7 +1637,7 @@ public Builder mergeFrom( case 10: { imageUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -1651,13 +1683,13 @@ public Builder mergeFrom( case 50: { predictRoute_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 case 58: { healthRoute_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 58 default: @@ -1788,8 +1820,8 @@ public Builder setImageUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - imageUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1821,8 +1853,8 @@ public Builder setImageUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearImageUri() { - imageUri_ = getDefaultInstance().getImageUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1859,8 +1891,8 @@ public Builder setImageUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - imageUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1869,9 +1901,9 @@ public Builder setImageUriBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCommandIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { command_ = new com.google.protobuf.LazyStringArrayList(command_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -2254,7 +2286,7 @@ public Builder addAllCommand(java.lang.Iterable values) { */ public Builder clearCommand() { command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2316,9 +2348,9 @@ public Builder addCommandBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } /** @@ -2693,7 +2725,7 @@ public Builder addAllArgs(java.lang.Iterable values) { */ public Builder clearArgs() { args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2754,9 +2786,9 @@ public Builder addArgsBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureEnvIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { env_ = new java.util.ArrayList(env_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } @@ -3268,7 +3300,7 @@ public Builder addAllEnv( public Builder clearEnv() { if (envBuilder_ == null) { env_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { envBuilder_.clear(); @@ -3578,7 +3610,7 @@ public java.util.List getEnvBuild com.google.cloud.aiplatform.v1.EnvVar, com.google.cloud.aiplatform.v1.EnvVar.Builder, com.google.cloud.aiplatform.v1.EnvVarOrBuilder>( - env_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + env_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); env_ = null; } return envBuilder_; @@ -3588,9 +3620,9 @@ public java.util.List getEnvBuild java.util.Collections.emptyList(); private void ensurePortsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { ports_ = new java.util.ArrayList(ports_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } @@ -4014,7 +4046,7 @@ public Builder addAllPorts( public Builder clearPorts() { if (portsBuilder_ == null) { ports_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { portsBuilder_.clear(); @@ -4268,7 +4300,7 @@ public java.util.List getPortsBuild com.google.cloud.aiplatform.v1.Port, com.google.cloud.aiplatform.v1.Port.Builder, com.google.cloud.aiplatform.v1.PortOrBuilder>( - ports_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + ports_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); ports_ = null; } return portsBuilder_; @@ -4410,8 +4442,8 @@ public Builder setPredictRoute(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - predictRoute_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4452,8 +4484,8 @@ public Builder setPredictRoute(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPredictRoute() { - predictRoute_ = getDefaultInstance().getPredictRoute(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -4499,8 +4531,8 @@ public Builder setPredictRouteBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - predictRoute_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4638,8 +4670,8 @@ public Builder setHealthRoute(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - healthRoute_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4679,8 +4711,8 @@ public Builder setHealthRoute(java.lang.String value) { * @return This builder for chaining. */ public Builder clearHealthRoute() { - healthRoute_ = getDefaultInstance().getHealthRoute(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -4725,8 +4757,8 @@ public Builder setHealthRouteBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - healthRoute_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringBigQueryTable.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringBigQueryTable.java index b319009bf0ec..c65be30942dc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringBigQueryTable.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringBigQueryTable.java @@ -392,7 +392,7 @@ private LogType(int value) { } public static final int LOG_SOURCE_FIELD_NUMBER = 1; - private int logSource_; + private int logSource_ = 0; /** * * @@ -426,9 +426,8 @@ public int getLogSourceValue() { @java.lang.Override public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource getLogSource() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource result = - com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource.valueOf( + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource.forNumber( logSource_); return result == null ? com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource @@ -437,7 +436,7 @@ public int getLogSourceValue() { } public static final int LOG_TYPE_FIELD_NUMBER = 2; - private int logType_; + private int logType_ = 0; /** * * @@ -469,9 +468,8 @@ public int getLogTypeValue() { @java.lang.Override public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType getLogType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType result = - com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType.valueOf( + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType.forNumber( logType_); return result == null ? com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType.UNRECOGNIZED @@ -479,7 +477,9 @@ public int getLogTypeValue() { } public static final int BIGQUERY_TABLE_PATH_FIELD_NUMBER = 3; - private volatile java.lang.Object bigqueryTablePath_; + + @SuppressWarnings("serial") + private volatile java.lang.Object bigqueryTablePath_ = ""; /** * * @@ -762,12 +762,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; logSource_ = 0; - logType_ = 0; - bigqueryTablePath_ = ""; - return this; } @@ -797,13 +795,27 @@ public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable bui public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable buildPartial() { com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable result = new com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable(this); - result.logSource_ = logSource_; - result.logType_ = logType_; - result.bigqueryTablePath_ = bigqueryTablePath_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.logSource_ = logSource_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.logType_ = logType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.bigqueryTablePath_ = bigqueryTablePath_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -861,6 +873,7 @@ public Builder mergeFrom( } if (!other.getBigqueryTablePath().isEmpty()) { bigqueryTablePath_ = other.bigqueryTablePath_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -892,19 +905,19 @@ public Builder mergeFrom( case 8: { logSource_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { logType_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { bigqueryTablePath_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -924,6 +937,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int logSource_ = 0; /** * @@ -957,8 +972,8 @@ public int getLogSourceValue() { * @return This builder for chaining. */ public Builder setLogSourceValue(int value) { - logSource_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -978,9 +993,8 @@ public Builder setLogSourceValue(int value) { @java.lang.Override public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource getLogSource() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource result = - com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource.valueOf( + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource.forNumber( logSource_); return result == null ? com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource @@ -1006,7 +1020,7 @@ public Builder setLogSource( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; logSource_ = value.getNumber(); onChanged(); return this; @@ -1025,7 +1039,7 @@ public Builder setLogSource( * @return This builder for chaining. */ public Builder clearLogSource() { - + bitField0_ = (bitField0_ & ~0x00000001); logSource_ = 0; onChanged(); return this; @@ -1064,8 +1078,8 @@ public int getLogTypeValue() { * @return This builder for chaining. */ public Builder setLogTypeValue(int value) { - logType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1085,9 +1099,8 @@ public Builder setLogTypeValue(int value) { @java.lang.Override public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType getLogType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType result = - com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType.valueOf( + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType.forNumber( logType_); return result == null ? com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType @@ -1113,7 +1126,7 @@ public Builder setLogType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; logType_ = value.getNumber(); onChanged(); return this; @@ -1132,7 +1145,7 @@ public Builder setLogType( * @return This builder for chaining. */ public Builder clearLogType() { - + bitField0_ = (bitField0_ & ~0x00000002); logType_ = 0; onChanged(); return this; @@ -1205,8 +1218,8 @@ public Builder setBigqueryTablePath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bigqueryTablePath_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1224,8 +1237,8 @@ public Builder setBigqueryTablePath(java.lang.String value) { * @return This builder for chaining. */ public Builder clearBigqueryTablePath() { - bigqueryTablePath_ = getDefaultInstance().getBigqueryTablePath(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1248,8 +1261,8 @@ public Builder setBigqueryTablePathBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - bigqueryTablePath_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJob.java index 15bc50d48f58..b46ed82235ff 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJob.java @@ -449,7 +449,7 @@ public com.google.protobuf.Timestamp getRunTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() { - return getRunTime(); + return runTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : runTime_; } public static final int STATUS_FIELD_NUMBER = 2; @@ -495,7 +495,7 @@ public com.google.rpc.Status getStatus() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - return getStatus(); + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } private byte memoizedIsInitialized = -1; @@ -747,16 +747,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (runTimeBuilder_ == null) { - runTime_ = null; - } else { - runTime_ = null; + bitField0_ = 0; + runTime_ = null; + if (runTimeBuilder_ != null) { + runTimeBuilder_.dispose(); runTimeBuilder_ = null; } - if (statusBuilder_ == null) { - status_ = null; - } else { - status_ = null; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); statusBuilder_ = null; } return this; @@ -796,20 +795,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob .LatestMonitoringPipelineMetadata(this); - if (runTimeBuilder_ == null) { - result.runTime_ = runTime_; - } else { - result.runTime_ = runTimeBuilder_.build(); - } - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.runTime_ = runTimeBuilder_ == null ? runTime_ : runTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -903,13 +908,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getRunTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -929,6 +934,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Timestamp runTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -948,7 +955,7 @@ public Builder mergeFrom( * @return Whether the runTime field is set. */ public boolean hasRunTime() { - return runTimeBuilder_ != null || runTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -985,11 +992,11 @@ public Builder setRunTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } runTime_ = value; - onChanged(); } else { runTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1005,11 +1012,11 @@ public Builder setRunTime(com.google.protobuf.Timestamp value) { public Builder setRunTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (runTimeBuilder_ == null) { runTime_ = builderForValue.build(); - onChanged(); } else { runTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1024,17 +1031,18 @@ public Builder setRunTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeRunTime(com.google.protobuf.Timestamp value) { if (runTimeBuilder_ == null) { - if (runTime_ != null) { - runTime_ = - com.google.protobuf.Timestamp.newBuilder(runTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && runTime_ != null + && runTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getRunTimeBuilder().mergeFrom(value); } else { runTime_ = value; } - onChanged(); } else { runTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1048,14 +1056,13 @@ public Builder mergeRunTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp run_time = 1; */ public Builder clearRunTime() { - if (runTimeBuilder_ == null) { - runTime_ = null; - onChanged(); - } else { - runTime_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + runTime_ = null; + if (runTimeBuilder_ != null) { + runTimeBuilder_.dispose(); runTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1069,7 +1076,7 @@ public Builder clearRunTime() { * .google.protobuf.Timestamp run_time = 1; */ public com.google.protobuf.Timestamp.Builder getRunTimeBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getRunTimeFieldBuilder().getBuilder(); } @@ -1133,7 +1140,7 @@ public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() { * @return Whether the status field is set. */ public boolean hasStatus() { - return statusBuilder_ != null || status_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1168,11 +1175,11 @@ public Builder setStatus(com.google.rpc.Status value) { throw new NullPointerException(); } status_ = value; - onChanged(); } else { statusBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1187,11 +1194,11 @@ public Builder setStatus(com.google.rpc.Status value) { public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); - onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1205,16 +1212,18 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { - if (status_ != null) { - status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && status_ != null + && status_ != com.google.rpc.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); } else { status_ = value; } - onChanged(); } else { statusBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1227,14 +1236,13 @@ public Builder mergeStatus(com.google.rpc.Status value) { * .google.rpc.Status status = 2; */ public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; - onChanged(); - } else { - status_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); statusBuilder_ = null; } - + onChanged(); return this; } /** @@ -1247,7 +1255,7 @@ public Builder clearStatus() { * .google.rpc.Status status = 2; */ public com.google.rpc.Status.Builder getStatusBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getStatusFieldBuilder().getBuilder(); } @@ -1363,7 +1371,9 @@ public com.google.protobuf.Parser getParserFor } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -1412,7 +1422,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -1467,7 +1479,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int ENDPOINT_FIELD_NUMBER = 3; - private volatile java.lang.Object endpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; /** * * @@ -1522,7 +1536,7 @@ public com.google.protobuf.ByteString getEndpointBytes() { } public static final int STATE_FIELD_NUMBER = 4; - private int state_; + private int state_ = 0; /** * * @@ -1563,14 +1577,13 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.JobState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.JobState result = - com.google.cloud.aiplatform.v1.JobState.valueOf(state_); + com.google.cloud.aiplatform.v1.JobState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.JobState.UNRECOGNIZED : result; } public static final int SCHEDULE_STATE_FIELD_NUMBER = 5; - private int scheduleState_; + private int scheduleState_ = 0; /** * * @@ -1604,10 +1617,9 @@ public int getScheduleStateValue() { @java.lang.Override public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState getScheduleState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState result = - com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState.valueOf( - scheduleState_); + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState + .forNumber(scheduleState_); return result == null ? com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState .UNRECOGNIZED @@ -1672,10 +1684,15 @@ public boolean hasLatestMonitoringPipelineMetadata() { public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob .LatestMonitoringPipelineMetadataOrBuilder getLatestMonitoringPipelineMetadataOrBuilder() { - return getLatestMonitoringPipelineMetadata(); + return latestMonitoringPipelineMetadata_ == null + ? com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.getDefaultInstance() + : latestMonitoringPipelineMetadata_; } public static final int MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_CONFIGS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") private java.util.List modelDeploymentMonitoringObjectiveConfigs_; /** @@ -1820,7 +1837,10 @@ public boolean hasModelDeploymentMonitoringScheduleConfig() { @java.lang.Override public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfigOrBuilder getModelDeploymentMonitoringScheduleConfigOrBuilder() { - return getModelDeploymentMonitoringScheduleConfig(); + return modelDeploymentMonitoringScheduleConfig_ == null + ? com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + .getDefaultInstance() + : modelDeploymentMonitoringScheduleConfig_; } public static final int LOGGING_SAMPLING_STRATEGY_FIELD_NUMBER = 8; @@ -1875,7 +1895,9 @@ public com.google.cloud.aiplatform.v1.SamplingStrategy getLoggingSamplingStrateg @java.lang.Override public com.google.cloud.aiplatform.v1.SamplingStrategyOrBuilder getLoggingSamplingStrategyOrBuilder() { - return getLoggingSamplingStrategy(); + return loggingSamplingStrategy_ == null + ? com.google.cloud.aiplatform.v1.SamplingStrategy.getDefaultInstance() + : loggingSamplingStrategy_; } public static final int MODEL_MONITORING_ALERT_CONFIG_FIELD_NUMBER = 15; @@ -1930,11 +1952,15 @@ public com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig getModelMonitor @java.lang.Override public com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfigOrBuilder getModelMonitoringAlertConfigOrBuilder() { - return getModelMonitoringAlertConfig(); + return modelMonitoringAlertConfig_ == null + ? com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.getDefaultInstance() + : modelMonitoringAlertConfig_; } public static final int PREDICT_INSTANCE_SCHEMA_URI_FIELD_NUMBER = 9; - private volatile java.lang.Object predictInstanceSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object predictInstanceSchemaUri_ = ""; /** * * @@ -2048,11 +2074,15 @@ public com.google.protobuf.Value getSamplePredictInstance() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getSamplePredictInstanceOrBuilder() { - return getSamplePredictInstance(); + return samplePredictInstance_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : samplePredictInstance_; } public static final int ANALYSIS_INSTANCE_SCHEMA_URI_FIELD_NUMBER = 16; - private volatile java.lang.Object analysisInstanceSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object analysisInstanceSchemaUri_ = ""; /** * * @@ -2119,6 +2149,8 @@ public com.google.protobuf.ByteString getAnalysisInstanceSchemaUriBytes() { } public static final int BIGQUERY_TABLES_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") private java.util.List bigqueryTables_; /** @@ -2271,7 +2303,7 @@ public com.google.protobuf.Duration getLogTtl() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getLogTtlOrBuilder() { - return getLogTtl(); + return logTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : logTtl_; } public static final int LABELS_FIELD_NUMBER = 11; @@ -2287,6 +2319,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -2359,7 +2392,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2438,7 +2474,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 13; @@ -2490,7 +2526,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int NEXT_SCHEDULE_TIME_FIELD_NUMBER = 14; @@ -2547,7 +2583,9 @@ public com.google.protobuf.Timestamp getNextScheduleTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getNextScheduleTimeOrBuilder() { - return getNextScheduleTime(); + return nextScheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextScheduleTime_; } public static final int STATS_ANOMALIES_BASE_DIRECTORY_FIELD_NUMBER = 20; @@ -2596,7 +2634,9 @@ public com.google.cloud.aiplatform.v1.GcsDestination getStatsAnomaliesBaseDirect @java.lang.Override public com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder getStatsAnomaliesBaseDirectoryOrBuilder() { - return getStatsAnomaliesBaseDirectory(); + return statsAnomaliesBaseDirectory_ == null + ? com.google.cloud.aiplatform.v1.GcsDestination.getDefaultInstance() + : statsAnomaliesBaseDirectory_; } public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 21; @@ -2650,11 +2690,13 @@ public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } public static final int ENABLE_MONITORING_PIPELINE_LOGS_FIELD_NUMBER = 22; - private boolean enableMonitoringPipelineLogs_; + private boolean enableMonitoringPipelineLogs_ = false; /** * * @@ -2720,7 +2762,7 @@ public com.google.rpc.Status getError() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return getError(); + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } private byte memoizedIsInitialized = -1; @@ -3242,20 +3284,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - endpoint_ = ""; - state_ = 0; - scheduleState_ = 0; - - if (latestMonitoringPipelineMetadataBuilder_ == null) { - latestMonitoringPipelineMetadata_ = null; - } else { - latestMonitoringPipelineMetadata_ = null; + latestMonitoringPipelineMetadata_ = null; + if (latestMonitoringPipelineMetadataBuilder_ != null) { + latestMonitoringPipelineMetadataBuilder_.dispose(); latestMonitoringPipelineMetadataBuilder_ = null; } if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { @@ -3264,85 +3301,71 @@ public Builder clear() { modelDeploymentMonitoringObjectiveConfigs_ = null; modelDeploymentMonitoringObjectiveConfigsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (modelDeploymentMonitoringScheduleConfigBuilder_ == null) { - modelDeploymentMonitoringScheduleConfig_ = null; - } else { - modelDeploymentMonitoringScheduleConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + modelDeploymentMonitoringScheduleConfig_ = null; + if (modelDeploymentMonitoringScheduleConfigBuilder_ != null) { + modelDeploymentMonitoringScheduleConfigBuilder_.dispose(); modelDeploymentMonitoringScheduleConfigBuilder_ = null; } - if (loggingSamplingStrategyBuilder_ == null) { - loggingSamplingStrategy_ = null; - } else { - loggingSamplingStrategy_ = null; + loggingSamplingStrategy_ = null; + if (loggingSamplingStrategyBuilder_ != null) { + loggingSamplingStrategyBuilder_.dispose(); loggingSamplingStrategyBuilder_ = null; } - if (modelMonitoringAlertConfigBuilder_ == null) { - modelMonitoringAlertConfig_ = null; - } else { - modelMonitoringAlertConfig_ = null; + modelMonitoringAlertConfig_ = null; + if (modelMonitoringAlertConfigBuilder_ != null) { + modelMonitoringAlertConfigBuilder_.dispose(); modelMonitoringAlertConfigBuilder_ = null; } predictInstanceSchemaUri_ = ""; - - if (samplePredictInstanceBuilder_ == null) { - samplePredictInstance_ = null; - } else { - samplePredictInstance_ = null; + samplePredictInstance_ = null; + if (samplePredictInstanceBuilder_ != null) { + samplePredictInstanceBuilder_.dispose(); samplePredictInstanceBuilder_ = null; } analysisInstanceSchemaUri_ = ""; - if (bigqueryTablesBuilder_ == null) { bigqueryTables_ = java.util.Collections.emptyList(); } else { bigqueryTables_ = null; bigqueryTablesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); - if (logTtlBuilder_ == null) { - logTtl_ = null; - } else { - logTtl_ = null; + bitField0_ = (bitField0_ & ~0x00002000); + logTtl_ = null; + if (logTtlBuilder_ != null) { + logTtlBuilder_.dispose(); logTtlBuilder_ = null; } internalGetMutableLabels().clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - if (nextScheduleTimeBuilder_ == null) { - nextScheduleTime_ = null; - } else { - nextScheduleTime_ = null; + nextScheduleTime_ = null; + if (nextScheduleTimeBuilder_ != null) { + nextScheduleTimeBuilder_.dispose(); nextScheduleTimeBuilder_ = null; } - if (statsAnomaliesBaseDirectoryBuilder_ == null) { - statsAnomaliesBaseDirectory_ = null; - } else { - statsAnomaliesBaseDirectory_ = null; + statsAnomaliesBaseDirectory_ = null; + if (statsAnomaliesBaseDirectoryBuilder_ != null) { + statsAnomaliesBaseDirectoryBuilder_.dispose(); statsAnomaliesBaseDirectoryBuilder_ = null; } - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } enableMonitoringPipelineLogs_ = false; - - if (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } return this; @@ -3372,22 +3395,21 @@ public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob build() { public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob buildPartial() { com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob result = new com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.endpoint_ = endpoint_; - result.state_ = state_; - result.scheduleState_ = scheduleState_; - if (latestMonitoringPipelineMetadataBuilder_ == null) { - result.latestMonitoringPipelineMetadata_ = latestMonitoringPipelineMetadata_; - } else { - result.latestMonitoringPipelineMetadata_ = latestMonitoringPipelineMetadataBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob result) { if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { modelDeploymentMonitoringObjectiveConfigs_ = java.util.Collections.unmodifiableList(modelDeploymentMonitoringObjectiveConfigs_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000040); } result.modelDeploymentMonitoringObjectiveConfigs_ = modelDeploymentMonitoringObjectiveConfigs_; @@ -3395,78 +3417,103 @@ public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob buildPartial( result.modelDeploymentMonitoringObjectiveConfigs_ = modelDeploymentMonitoringObjectiveConfigsBuilder_.build(); } - if (modelDeploymentMonitoringScheduleConfigBuilder_ == null) { - result.modelDeploymentMonitoringScheduleConfig_ = modelDeploymentMonitoringScheduleConfig_; - } else { - result.modelDeploymentMonitoringScheduleConfig_ = - modelDeploymentMonitoringScheduleConfigBuilder_.build(); - } - if (loggingSamplingStrategyBuilder_ == null) { - result.loggingSamplingStrategy_ = loggingSamplingStrategy_; - } else { - result.loggingSamplingStrategy_ = loggingSamplingStrategyBuilder_.build(); - } - if (modelMonitoringAlertConfigBuilder_ == null) { - result.modelMonitoringAlertConfig_ = modelMonitoringAlertConfig_; - } else { - result.modelMonitoringAlertConfig_ = modelMonitoringAlertConfigBuilder_.build(); - } - result.predictInstanceSchemaUri_ = predictInstanceSchemaUri_; - if (samplePredictInstanceBuilder_ == null) { - result.samplePredictInstance_ = samplePredictInstance_; - } else { - result.samplePredictInstance_ = samplePredictInstanceBuilder_.build(); - } - result.analysisInstanceSchemaUri_ = analysisInstanceSchemaUri_; if (bigqueryTablesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { bigqueryTables_ = java.util.Collections.unmodifiableList(bigqueryTables_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00002000); } result.bigqueryTables_ = bigqueryTables_; } else { result.bigqueryTables_ = bigqueryTablesBuilder_.build(); } - if (logTtlBuilder_ == null) { - result.logTtl_ = logTtl_; - } else { - result.logTtl_ = logTtlBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endpoint_ = endpoint_; } - if (nextScheduleTimeBuilder_ == null) { - result.nextScheduleTime_ = nextScheduleTime_; - } else { - result.nextScheduleTime_ = nextScheduleTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; } - if (statsAnomaliesBaseDirectoryBuilder_ == null) { - result.statsAnomaliesBaseDirectory_ = statsAnomaliesBaseDirectory_; - } else { - result.statsAnomaliesBaseDirectory_ = statsAnomaliesBaseDirectoryBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.scheduleState_ = scheduleState_; } - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.latestMonitoringPipelineMetadata_ = + latestMonitoringPipelineMetadataBuilder_ == null + ? latestMonitoringPipelineMetadata_ + : latestMonitoringPipelineMetadataBuilder_.build(); } - result.enableMonitoringPipelineLogs_ = enableMonitoringPipelineLogs_; - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.build(); + if (((from_bitField0_ & 0x00000080) != 0)) { + result.modelDeploymentMonitoringScheduleConfig_ = + modelDeploymentMonitoringScheduleConfigBuilder_ == null + ? modelDeploymentMonitoringScheduleConfig_ + : modelDeploymentMonitoringScheduleConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.loggingSamplingStrategy_ = + loggingSamplingStrategyBuilder_ == null + ? loggingSamplingStrategy_ + : loggingSamplingStrategyBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.modelMonitoringAlertConfig_ = + modelMonitoringAlertConfigBuilder_ == null + ? modelMonitoringAlertConfig_ + : modelMonitoringAlertConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.predictInstanceSchemaUri_ = predictInstanceSchemaUri_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.samplePredictInstance_ = + samplePredictInstanceBuilder_ == null + ? samplePredictInstance_ + : samplePredictInstanceBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.analysisInstanceSchemaUri_ = analysisInstanceSchemaUri_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.logTtl_ = logTtlBuilder_ == null ? logTtl_ : logTtlBuilder_.build(); + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.nextScheduleTime_ = + nextScheduleTimeBuilder_ == null ? nextScheduleTime_ : nextScheduleTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.statsAnomaliesBaseDirectory_ = + statsAnomaliesBaseDirectoryBuilder_ == null + ? statsAnomaliesBaseDirectory_ + : statsAnomaliesBaseDirectoryBuilder_.build(); + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.enableMonitoringPipelineLogs_ = enableMonitoringPipelineLogs_; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -3517,14 +3564,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelDeploymentMonitorin return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; + bitField0_ |= 0x00000004; onChanged(); } if (other.state_ != 0) { @@ -3541,7 +3591,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelDeploymentMonitorin if (modelDeploymentMonitoringObjectiveConfigs_.isEmpty()) { modelDeploymentMonitoringObjectiveConfigs_ = other.modelDeploymentMonitoringObjectiveConfigs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000040); } else { ensureModelDeploymentMonitoringObjectiveConfigsIsMutable(); modelDeploymentMonitoringObjectiveConfigs_.addAll( @@ -3556,7 +3606,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelDeploymentMonitorin modelDeploymentMonitoringObjectiveConfigsBuilder_ = null; modelDeploymentMonitoringObjectiveConfigs_ = other.modelDeploymentMonitoringObjectiveConfigs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000040); modelDeploymentMonitoringObjectiveConfigsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getModelDeploymentMonitoringObjectiveConfigsFieldBuilder() @@ -3579,6 +3629,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelDeploymentMonitorin } if (!other.getPredictInstanceSchemaUri().isEmpty()) { predictInstanceSchemaUri_ = other.predictInstanceSchemaUri_; + bitField0_ |= 0x00000400; onChanged(); } if (other.hasSamplePredictInstance()) { @@ -3586,13 +3637,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelDeploymentMonitorin } if (!other.getAnalysisInstanceSchemaUri().isEmpty()) { analysisInstanceSchemaUri_ = other.analysisInstanceSchemaUri_; + bitField0_ |= 0x00001000; onChanged(); } if (bigqueryTablesBuilder_ == null) { if (!other.bigqueryTables_.isEmpty()) { if (bigqueryTables_.isEmpty()) { bigqueryTables_ = other.bigqueryTables_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00002000); } else { ensureBigqueryTablesIsMutable(); bigqueryTables_.addAll(other.bigqueryTables_); @@ -3605,7 +3657,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelDeploymentMonitorin bigqueryTablesBuilder_.dispose(); bigqueryTablesBuilder_ = null; bigqueryTables_ = other.bigqueryTables_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00002000); bigqueryTablesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBigqueryTablesFieldBuilder() @@ -3619,6 +3671,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelDeploymentMonitorin mergeLogTtl(other.getLogTtl()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00008000; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -3669,31 +3722,31 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { endpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 32: { state_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 case 40: { scheduleState_ = input.readEnum(); - + bitField0_ |= 0x00000010; break; } // case 40 case 50: @@ -3716,20 +3769,20 @@ public Builder mergeFrom( input.readMessage( getModelDeploymentMonitoringScheduleConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 58 case 66: { input.readMessage( getLoggingSamplingStrategyFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 66 case 74: { predictInstanceSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000400; break; } // case 74 case 82: @@ -3756,76 +3809,77 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00008000; break; } // case 90 case 98: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00010000; break; } // case 98 case 106: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00020000; break; } // case 106 case 114: { input.readMessage( getNextScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00040000; break; } // case 114 case 122: { input.readMessage( getModelMonitoringAlertConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 122 case 130: { analysisInstanceSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00001000; break; } // case 130 case 138: { input.readMessage(getLogTtlFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00004000; break; } // case 138 case 154: { input.readMessage( getSamplePredictInstanceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000800; break; } // case 154 case 162: { input.readMessage( getStatsAnomaliesBaseDirectoryFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00080000; break; } // case 162 case 170: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00100000; break; } // case 170 case 176: { enableMonitoringPipelineLogs_ = input.readBool(); - + bitField0_ |= 0x00200000; break; } // case 176 case 186: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00400000; break; } // case 186 case 202: @@ -3833,7 +3887,7 @@ public Builder mergeFrom( input.readMessage( getLatestMonitoringPipelineMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 202 default: @@ -3916,8 +3970,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3933,8 +3987,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3955,8 +4009,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4031,8 +4085,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4051,8 +4105,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -4076,8 +4130,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4152,8 +4206,8 @@ public Builder setEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - endpoint_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4172,8 +4226,8 @@ public Builder setEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEndpoint() { - endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -4197,8 +4251,8 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - endpoint_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4244,8 +4298,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -4268,9 +4322,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.JobState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.JobState result = - com.google.cloud.aiplatform.v1.JobState.valueOf(state_); + com.google.cloud.aiplatform.v1.JobState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.JobState.UNRECOGNIZED : result; } /** @@ -4295,7 +4348,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.JobState value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; state_ = value.getNumber(); onChanged(); return this; @@ -4318,7 +4371,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.JobState value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000008); state_ = 0; onChanged(); return this; @@ -4357,8 +4410,8 @@ public int getScheduleStateValue() { * @return This builder for chaining. */ public Builder setScheduleStateValue(int value) { - scheduleState_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -4378,10 +4431,9 @@ public Builder setScheduleStateValue(int value) { @java.lang.Override public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState getScheduleState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState result = com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState - .valueOf(scheduleState_); + .forNumber(scheduleState_); return result == null ? com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState .UNRECOGNIZED @@ -4406,7 +4458,7 @@ public Builder setScheduleState( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000010; scheduleState_ = value.getNumber(); onChanged(); return this; @@ -4425,7 +4477,7 @@ public Builder setScheduleState( * @return This builder for chaining. */ public Builder clearScheduleState() { - + bitField0_ = (bitField0_ & ~0x00000010); scheduleState_ = 0; onChanged(); return this; @@ -4456,8 +4508,7 @@ public Builder clearScheduleState() { * @return Whether the latestMonitoringPipelineMetadata field is set. */ public boolean hasLatestMonitoringPipelineMetadata() { - return latestMonitoringPipelineMetadataBuilder_ != null - || latestMonitoringPipelineMetadata_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -4503,11 +4554,11 @@ public Builder setLatestMonitoringPipelineMetadata( throw new NullPointerException(); } latestMonitoringPipelineMetadata_ = value; - onChanged(); } else { latestMonitoringPipelineMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -4527,11 +4578,11 @@ public Builder setLatestMonitoringPipelineMetadata( builderForValue) { if (latestMonitoringPipelineMetadataBuilder_ == null) { latestMonitoringPipelineMetadata_ = builderForValue.build(); - onChanged(); } else { latestMonitoringPipelineMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -4549,20 +4600,20 @@ public Builder mergeLatestMonitoringPipelineMetadata( com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata value) { if (latestMonitoringPipelineMetadataBuilder_ == null) { - if (latestMonitoringPipelineMetadata_ != null) { - latestMonitoringPipelineMetadata_ = - com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - .LatestMonitoringPipelineMetadata.newBuilder(latestMonitoringPipelineMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && latestMonitoringPipelineMetadata_ != null + && latestMonitoringPipelineMetadata_ + != com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.getDefaultInstance()) { + getLatestMonitoringPipelineMetadataBuilder().mergeFrom(value); } else { latestMonitoringPipelineMetadata_ = value; } - onChanged(); } else { latestMonitoringPipelineMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -4577,14 +4628,13 @@ public Builder mergeLatestMonitoringPipelineMetadata( * */ public Builder clearLatestMonitoringPipelineMetadata() { - if (latestMonitoringPipelineMetadataBuilder_ == null) { - latestMonitoringPipelineMetadata_ = null; - onChanged(); - } else { - latestMonitoringPipelineMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + latestMonitoringPipelineMetadata_ = null; + if (latestMonitoringPipelineMetadataBuilder_ != null) { + latestMonitoringPipelineMetadataBuilder_.dispose(); latestMonitoringPipelineMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -4601,7 +4651,7 @@ public Builder clearLatestMonitoringPipelineMetadata() { public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob .LatestMonitoringPipelineMetadata.Builder getLatestMonitoringPipelineMetadataBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getLatestMonitoringPipelineMetadataFieldBuilder().getBuilder(); } @@ -4666,12 +4716,12 @@ public Builder clearLatestMonitoringPipelineMetadata() { modelDeploymentMonitoringObjectiveConfigs_ = java.util.Collections.emptyList(); private void ensureModelDeploymentMonitoringObjectiveConfigsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000040) != 0)) { modelDeploymentMonitoringObjectiveConfigs_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig>( modelDeploymentMonitoringObjectiveConfigs_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000040; } } @@ -4935,7 +4985,7 @@ public Builder addAllModelDeploymentMonitoringObjectiveConfigs( public Builder clearModelDeploymentMonitoringObjectiveConfigs() { if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { modelDeploymentMonitoringObjectiveConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { modelDeploymentMonitoringObjectiveConfigsBuilder_.clear(); @@ -5091,7 +5141,7 @@ public Builder removeModelDeploymentMonitoringObjectiveConfigs(int index) { com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.Builder, com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfigOrBuilder>( modelDeploymentMonitoringObjectiveConfigs_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); modelDeploymentMonitoringObjectiveConfigs_ = null; @@ -5120,8 +5170,7 @@ public Builder removeModelDeploymentMonitoringObjectiveConfigs(int index) { * @return Whether the modelDeploymentMonitoringScheduleConfig field is set. */ public boolean hasModelDeploymentMonitoringScheduleConfig() { - return modelDeploymentMonitoringScheduleConfigBuilder_ != null - || modelDeploymentMonitoringScheduleConfig_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -5165,11 +5214,11 @@ public Builder setModelDeploymentMonitoringScheduleConfig( throw new NullPointerException(); } modelDeploymentMonitoringScheduleConfig_ = value; - onChanged(); } else { modelDeploymentMonitoringScheduleConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -5188,11 +5237,11 @@ public Builder setModelDeploymentMonitoringScheduleConfig( builderForValue) { if (modelDeploymentMonitoringScheduleConfigBuilder_ == null) { modelDeploymentMonitoringScheduleConfig_ = builderForValue.build(); - onChanged(); } else { modelDeploymentMonitoringScheduleConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -5209,20 +5258,20 @@ public Builder setModelDeploymentMonitoringScheduleConfig( public Builder mergeModelDeploymentMonitoringScheduleConfig( com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig value) { if (modelDeploymentMonitoringScheduleConfigBuilder_ == null) { - if (modelDeploymentMonitoringScheduleConfig_ != null) { - modelDeploymentMonitoringScheduleConfig_ = - com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.newBuilder( - modelDeploymentMonitoringScheduleConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && modelDeploymentMonitoringScheduleConfig_ != null + && modelDeploymentMonitoringScheduleConfig_ + != com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + .getDefaultInstance()) { + getModelDeploymentMonitoringScheduleConfigBuilder().mergeFrom(value); } else { modelDeploymentMonitoringScheduleConfig_ = value; } - onChanged(); } else { modelDeploymentMonitoringScheduleConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -5237,14 +5286,13 @@ public Builder mergeModelDeploymentMonitoringScheduleConfig( * */ public Builder clearModelDeploymentMonitoringScheduleConfig() { - if (modelDeploymentMonitoringScheduleConfigBuilder_ == null) { - modelDeploymentMonitoringScheduleConfig_ = null; - onChanged(); - } else { - modelDeploymentMonitoringScheduleConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + modelDeploymentMonitoringScheduleConfig_ = null; + if (modelDeploymentMonitoringScheduleConfigBuilder_ != null) { + modelDeploymentMonitoringScheduleConfigBuilder_.dispose(); modelDeploymentMonitoringScheduleConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -5260,7 +5308,7 @@ public Builder clearModelDeploymentMonitoringScheduleConfig() { */ public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.Builder getModelDeploymentMonitoringScheduleConfigBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getModelDeploymentMonitoringScheduleConfigFieldBuilder().getBuilder(); } @@ -5334,7 +5382,7 @@ public Builder clearModelDeploymentMonitoringScheduleConfig() { * @return Whether the loggingSamplingStrategy field is set. */ public boolean hasLoggingSamplingStrategy() { - return loggingSamplingStrategyBuilder_ != null || loggingSamplingStrategy_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -5376,11 +5424,11 @@ public Builder setLoggingSamplingStrategy( throw new NullPointerException(); } loggingSamplingStrategy_ = value; - onChanged(); } else { loggingSamplingStrategyBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -5398,11 +5446,11 @@ public Builder setLoggingSamplingStrategy( com.google.cloud.aiplatform.v1.SamplingStrategy.Builder builderForValue) { if (loggingSamplingStrategyBuilder_ == null) { loggingSamplingStrategy_ = builderForValue.build(); - onChanged(); } else { loggingSamplingStrategyBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -5419,19 +5467,19 @@ public Builder setLoggingSamplingStrategy( public Builder mergeLoggingSamplingStrategy( com.google.cloud.aiplatform.v1.SamplingStrategy value) { if (loggingSamplingStrategyBuilder_ == null) { - if (loggingSamplingStrategy_ != null) { - loggingSamplingStrategy_ = - com.google.cloud.aiplatform.v1.SamplingStrategy.newBuilder(loggingSamplingStrategy_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && loggingSamplingStrategy_ != null + && loggingSamplingStrategy_ + != com.google.cloud.aiplatform.v1.SamplingStrategy.getDefaultInstance()) { + getLoggingSamplingStrategyBuilder().mergeFrom(value); } else { loggingSamplingStrategy_ = value; } - onChanged(); } else { loggingSamplingStrategyBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -5446,14 +5494,13 @@ public Builder mergeLoggingSamplingStrategy( * */ public Builder clearLoggingSamplingStrategy() { - if (loggingSamplingStrategyBuilder_ == null) { - loggingSamplingStrategy_ = null; - onChanged(); - } else { - loggingSamplingStrategy_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + loggingSamplingStrategy_ = null; + if (loggingSamplingStrategyBuilder_ != null) { + loggingSamplingStrategyBuilder_.dispose(); loggingSamplingStrategyBuilder_ = null; } - + onChanged(); return this; } /** @@ -5469,7 +5516,7 @@ public Builder clearLoggingSamplingStrategy() { */ public com.google.cloud.aiplatform.v1.SamplingStrategy.Builder getLoggingSamplingStrategyBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getLoggingSamplingStrategyFieldBuilder().getBuilder(); } @@ -5542,7 +5589,7 @@ public Builder clearLoggingSamplingStrategy() { * @return Whether the modelMonitoringAlertConfig field is set. */ public boolean hasModelMonitoringAlertConfig() { - return modelMonitoringAlertConfigBuilder_ != null || modelMonitoringAlertConfig_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -5585,11 +5632,11 @@ public Builder setModelMonitoringAlertConfig( throw new NullPointerException(); } modelMonitoringAlertConfig_ = value; - onChanged(); } else { modelMonitoringAlertConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -5607,11 +5654,11 @@ public Builder setModelMonitoringAlertConfig( com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.Builder builderForValue) { if (modelMonitoringAlertConfigBuilder_ == null) { modelMonitoringAlertConfig_ = builderForValue.build(); - onChanged(); } else { modelMonitoringAlertConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -5628,20 +5675,19 @@ public Builder setModelMonitoringAlertConfig( public Builder mergeModelMonitoringAlertConfig( com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig value) { if (modelMonitoringAlertConfigBuilder_ == null) { - if (modelMonitoringAlertConfig_ != null) { - modelMonitoringAlertConfig_ = - com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.newBuilder( - modelMonitoringAlertConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && modelMonitoringAlertConfig_ != null + && modelMonitoringAlertConfig_ + != com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.getDefaultInstance()) { + getModelMonitoringAlertConfigBuilder().mergeFrom(value); } else { modelMonitoringAlertConfig_ = value; } - onChanged(); } else { modelMonitoringAlertConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -5656,14 +5702,13 @@ public Builder mergeModelMonitoringAlertConfig( * */ public Builder clearModelMonitoringAlertConfig() { - if (modelMonitoringAlertConfigBuilder_ == null) { - modelMonitoringAlertConfig_ = null; - onChanged(); - } else { - modelMonitoringAlertConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + modelMonitoringAlertConfig_ = null; + if (modelMonitoringAlertConfigBuilder_ != null) { + modelMonitoringAlertConfigBuilder_.dispose(); modelMonitoringAlertConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -5679,7 +5724,7 @@ public Builder clearModelMonitoringAlertConfig() { */ public com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.Builder getModelMonitoringAlertConfigBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getModelMonitoringAlertConfigFieldBuilder().getBuilder(); } @@ -5802,8 +5847,8 @@ public Builder setPredictInstanceSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - predictInstanceSchemaUri_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5822,8 +5867,8 @@ public Builder setPredictInstanceSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPredictInstanceSchemaUri() { - predictInstanceSchemaUri_ = getDefaultInstance().getPredictInstanceSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -5847,8 +5892,8 @@ public Builder setPredictInstanceSchemaUriBytes(com.google.protobuf.ByteString v throw new NullPointerException(); } checkByteStringIsUtf8(value); - predictInstanceSchemaUri_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5876,7 +5921,7 @@ public Builder setPredictInstanceSchemaUriBytes(com.google.protobuf.ByteString v * @return Whether the samplePredictInstance field is set. */ public boolean hasSamplePredictInstance() { - return samplePredictInstanceBuilder_ != null || samplePredictInstance_ != null; + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -5923,11 +5968,11 @@ public Builder setSamplePredictInstance(com.google.protobuf.Value value) { throw new NullPointerException(); } samplePredictInstance_ = value; - onChanged(); } else { samplePredictInstanceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -5947,11 +5992,11 @@ public Builder setSamplePredictInstance(com.google.protobuf.Value value) { public Builder setSamplePredictInstance(com.google.protobuf.Value.Builder builderForValue) { if (samplePredictInstanceBuilder_ == null) { samplePredictInstance_ = builderForValue.build(); - onChanged(); } else { samplePredictInstanceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -5970,19 +6015,18 @@ public Builder setSamplePredictInstance(com.google.protobuf.Value.Builder builde */ public Builder mergeSamplePredictInstance(com.google.protobuf.Value value) { if (samplePredictInstanceBuilder_ == null) { - if (samplePredictInstance_ != null) { - samplePredictInstance_ = - com.google.protobuf.Value.newBuilder(samplePredictInstance_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000800) != 0) + && samplePredictInstance_ != null + && samplePredictInstance_ != com.google.protobuf.Value.getDefaultInstance()) { + getSamplePredictInstanceBuilder().mergeFrom(value); } else { samplePredictInstance_ = value; } - onChanged(); } else { samplePredictInstanceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -6000,14 +6044,13 @@ public Builder mergeSamplePredictInstance(com.google.protobuf.Value value) { * .google.protobuf.Value sample_predict_instance = 19; */ public Builder clearSamplePredictInstance() { - if (samplePredictInstanceBuilder_ == null) { - samplePredictInstance_ = null; - onChanged(); - } else { - samplePredictInstance_ = null; + bitField0_ = (bitField0_ & ~0x00000800); + samplePredictInstance_ = null; + if (samplePredictInstanceBuilder_ != null) { + samplePredictInstanceBuilder_.dispose(); samplePredictInstanceBuilder_ = null; } - + onChanged(); return this; } /** @@ -6025,7 +6068,7 @@ public Builder clearSamplePredictInstance() { * .google.protobuf.Value sample_predict_instance = 19; */ public com.google.protobuf.Value.Builder getSamplePredictInstanceBuilder() { - + bitField0_ |= 0x00000800; onChanged(); return getSamplePredictInstanceFieldBuilder().getBuilder(); } @@ -6171,8 +6214,8 @@ public Builder setAnalysisInstanceSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - analysisInstanceSchemaUri_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -6197,8 +6240,8 @@ public Builder setAnalysisInstanceSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAnalysisInstanceSchemaUri() { - analysisInstanceSchemaUri_ = getDefaultInstance().getAnalysisInstanceSchemaUri(); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -6228,8 +6271,8 @@ public Builder setAnalysisInstanceSchemaUriBytes(com.google.protobuf.ByteString throw new NullPointerException(); } checkByteStringIsUtf8(value); - analysisInstanceSchemaUri_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -6238,12 +6281,12 @@ public Builder setAnalysisInstanceSchemaUriBytes(com.google.protobuf.ByteString bigqueryTables_ = java.util.Collections.emptyList(); private void ensureBigqueryTablesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00002000) != 0)) { bigqueryTables_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable>( bigqueryTables_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00002000; } } @@ -6537,7 +6580,7 @@ public Builder addAllBigqueryTables( public Builder clearBigqueryTables() { if (bigqueryTablesBuilder_ == null) { bigqueryTables_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); } else { bigqueryTablesBuilder_.clear(); @@ -6714,7 +6757,7 @@ public Builder removeBigqueryTables(int index) { com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.Builder, com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTableOrBuilder>( bigqueryTables_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); bigqueryTables_ = null; @@ -6742,7 +6785,7 @@ public Builder removeBigqueryTables(int index) { * @return Whether the logTtl field is set. */ public boolean hasLogTtl() { - return logTtlBuilder_ != null || logTtl_ != null; + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -6781,11 +6824,11 @@ public Builder setLogTtl(com.google.protobuf.Duration value) { throw new NullPointerException(); } logTtl_ = value; - onChanged(); } else { logTtlBuilder_.setMessage(value); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -6802,11 +6845,11 @@ public Builder setLogTtl(com.google.protobuf.Duration value) { public Builder setLogTtl(com.google.protobuf.Duration.Builder builderForValue) { if (logTtlBuilder_ == null) { logTtl_ = builderForValue.build(); - onChanged(); } else { logTtlBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -6822,17 +6865,18 @@ public Builder setLogTtl(com.google.protobuf.Duration.Builder builderForValue) { */ public Builder mergeLogTtl(com.google.protobuf.Duration value) { if (logTtlBuilder_ == null) { - if (logTtl_ != null) { - logTtl_ = - com.google.protobuf.Duration.newBuilder(logTtl_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00004000) != 0) + && logTtl_ != null + && logTtl_ != com.google.protobuf.Duration.getDefaultInstance()) { + getLogTtlBuilder().mergeFrom(value); } else { logTtl_ = value; } - onChanged(); } else { logTtlBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -6847,14 +6891,13 @@ public Builder mergeLogTtl(com.google.protobuf.Duration value) { * .google.protobuf.Duration log_ttl = 17; */ public Builder clearLogTtl() { - if (logTtlBuilder_ == null) { - logTtl_ = null; - onChanged(); - } else { - logTtl_ = null; + bitField0_ = (bitField0_ & ~0x00004000); + logTtl_ = null; + if (logTtlBuilder_ != null) { + logTtlBuilder_.dispose(); logTtlBuilder_ = null; } - + onChanged(); return this; } /** @@ -6869,7 +6912,7 @@ public Builder clearLogTtl() { * .google.protobuf.Duration log_ttl = 17; */ public com.google.protobuf.Duration.Builder getLogTtlBuilder() { - + bitField0_ |= 0x00004000; onChanged(); return getLogTtlFieldBuilder().getBuilder(); } @@ -6930,14 +6973,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00008000; + onChanged(); return labels_; } @@ -7004,8 +7047,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -7039,6 +7084,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00008000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -7066,6 +7112,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00008000; return internalGetMutableLabels().getMutableMap(); } /** @@ -7089,8 +7136,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00008000; return this; } /** @@ -7109,6 +7156,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00008000; return this; } @@ -7132,7 +7180,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -7173,11 +7221,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -7194,11 +7242,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -7214,17 +7262,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00010000) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -7239,14 +7288,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00010000); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -7261,7 +7309,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00010000; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -7334,7 +7382,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00020000) != 0); } /** * @@ -7377,11 +7425,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00020000; + onChanged(); return this; } /** @@ -7399,11 +7447,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00020000; + onChanged(); return this; } /** @@ -7420,17 +7468,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00020000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00020000; + onChanged(); return this; } /** @@ -7446,14 +7495,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00020000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -7469,7 +7517,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00020000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -7544,7 +7592,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the nextScheduleTime field is set. */ public boolean hasNextScheduleTime() { - return nextScheduleTimeBuilder_ != null || nextScheduleTime_ != null; + return ((bitField0_ & 0x00040000) != 0); } /** * @@ -7587,11 +7635,11 @@ public Builder setNextScheduleTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } nextScheduleTime_ = value; - onChanged(); } else { nextScheduleTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00040000; + onChanged(); return this; } /** @@ -7609,11 +7657,11 @@ public Builder setNextScheduleTime(com.google.protobuf.Timestamp value) { public Builder setNextScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (nextScheduleTimeBuilder_ == null) { nextScheduleTime_ = builderForValue.build(); - onChanged(); } else { nextScheduleTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00040000; + onChanged(); return this; } /** @@ -7630,19 +7678,18 @@ public Builder setNextScheduleTime(com.google.protobuf.Timestamp.Builder builder */ public Builder mergeNextScheduleTime(com.google.protobuf.Timestamp value) { if (nextScheduleTimeBuilder_ == null) { - if (nextScheduleTime_ != null) { - nextScheduleTime_ = - com.google.protobuf.Timestamp.newBuilder(nextScheduleTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00040000) != 0) + && nextScheduleTime_ != null + && nextScheduleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getNextScheduleTimeBuilder().mergeFrom(value); } else { nextScheduleTime_ = value; } - onChanged(); } else { nextScheduleTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00040000; + onChanged(); return this; } /** @@ -7658,14 +7705,13 @@ public Builder mergeNextScheduleTime(com.google.protobuf.Timestamp value) { * */ public Builder clearNextScheduleTime() { - if (nextScheduleTimeBuilder_ == null) { - nextScheduleTime_ = null; - onChanged(); - } else { - nextScheduleTime_ = null; + bitField0_ = (bitField0_ & ~0x00040000); + nextScheduleTime_ = null; + if (nextScheduleTimeBuilder_ != null) { + nextScheduleTimeBuilder_.dispose(); nextScheduleTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -7681,7 +7727,7 @@ public Builder clearNextScheduleTime() { * */ public com.google.protobuf.Timestamp.Builder getNextScheduleTimeBuilder() { - + bitField0_ |= 0x00040000; onChanged(); return getNextScheduleTimeFieldBuilder().getBuilder(); } @@ -7753,7 +7799,7 @@ public com.google.protobuf.TimestampOrBuilder getNextScheduleTimeOrBuilder() { * @return Whether the statsAnomaliesBaseDirectory field is set. */ public boolean hasStatsAnomaliesBaseDirectory() { - return statsAnomaliesBaseDirectoryBuilder_ != null || statsAnomaliesBaseDirectory_ != null; + return ((bitField0_ & 0x00080000) != 0); } /** * @@ -7791,11 +7837,11 @@ public Builder setStatsAnomaliesBaseDirectory( throw new NullPointerException(); } statsAnomaliesBaseDirectory_ = value; - onChanged(); } else { statsAnomaliesBaseDirectoryBuilder_.setMessage(value); } - + bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -7811,11 +7857,11 @@ public Builder setStatsAnomaliesBaseDirectory( com.google.cloud.aiplatform.v1.GcsDestination.Builder builderForValue) { if (statsAnomaliesBaseDirectoryBuilder_ == null) { statsAnomaliesBaseDirectory_ = builderForValue.build(); - onChanged(); } else { statsAnomaliesBaseDirectoryBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -7830,19 +7876,19 @@ public Builder setStatsAnomaliesBaseDirectory( public Builder mergeStatsAnomaliesBaseDirectory( com.google.cloud.aiplatform.v1.GcsDestination value) { if (statsAnomaliesBaseDirectoryBuilder_ == null) { - if (statsAnomaliesBaseDirectory_ != null) { - statsAnomaliesBaseDirectory_ = - com.google.cloud.aiplatform.v1.GcsDestination.newBuilder(statsAnomaliesBaseDirectory_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00080000) != 0) + && statsAnomaliesBaseDirectory_ != null + && statsAnomaliesBaseDirectory_ + != com.google.cloud.aiplatform.v1.GcsDestination.getDefaultInstance()) { + getStatsAnomaliesBaseDirectoryBuilder().mergeFrom(value); } else { statsAnomaliesBaseDirectory_ = value; } - onChanged(); } else { statsAnomaliesBaseDirectoryBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -7855,14 +7901,13 @@ public Builder mergeStatsAnomaliesBaseDirectory( * .google.cloud.aiplatform.v1.GcsDestination stats_anomalies_base_directory = 20; */ public Builder clearStatsAnomaliesBaseDirectory() { - if (statsAnomaliesBaseDirectoryBuilder_ == null) { - statsAnomaliesBaseDirectory_ = null; - onChanged(); - } else { - statsAnomaliesBaseDirectory_ = null; + bitField0_ = (bitField0_ & ~0x00080000); + statsAnomaliesBaseDirectory_ = null; + if (statsAnomaliesBaseDirectoryBuilder_ != null) { + statsAnomaliesBaseDirectoryBuilder_.dispose(); statsAnomaliesBaseDirectoryBuilder_ = null; } - + onChanged(); return this; } /** @@ -7876,7 +7921,7 @@ public Builder clearStatsAnomaliesBaseDirectory() { */ public com.google.cloud.aiplatform.v1.GcsDestination.Builder getStatsAnomaliesBaseDirectoryBuilder() { - + bitField0_ |= 0x00080000; onChanged(); return getStatsAnomaliesBaseDirectoryFieldBuilder().getBuilder(); } @@ -7945,7 +7990,7 @@ public Builder clearStatsAnomaliesBaseDirectory() { * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00100000) != 0); } /** * @@ -7986,11 +8031,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec v throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00100000; + onChanged(); return this; } /** @@ -8008,11 +8053,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00100000; + onChanged(); return this; } /** @@ -8028,19 +8073,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00100000) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00100000; + onChanged(); return this; } /** @@ -8055,14 +8100,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 21; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00100000); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -8077,7 +8121,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 21; */ public com.google.cloud.aiplatform.v1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00100000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -8166,6 +8210,7 @@ public boolean getEnableMonitoringPipelineLogs() { public Builder setEnableMonitoringPipelineLogs(boolean value) { enableMonitoringPipelineLogs_ = value; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -8184,7 +8229,7 @@ public Builder setEnableMonitoringPipelineLogs(boolean value) { * @return This builder for chaining. */ public Builder clearEnableMonitoringPipelineLogs() { - + bitField0_ = (bitField0_ & ~0x00200000); enableMonitoringPipelineLogs_ = false; onChanged(); return this; @@ -8207,7 +8252,7 @@ public Builder clearEnableMonitoringPipelineLogs() { * @return Whether the error field is set. */ public boolean hasError() { - return errorBuilder_ != null || error_ != null; + return ((bitField0_ & 0x00400000) != 0); } /** * @@ -8244,11 +8289,11 @@ public Builder setError(com.google.rpc.Status value) { throw new NullPointerException(); } error_ = value; - onChanged(); } else { errorBuilder_.setMessage(value); } - + bitField0_ |= 0x00400000; + onChanged(); return this; } /** @@ -8264,11 +8309,11 @@ public Builder setError(com.google.rpc.Status value) { public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); - onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00400000; + onChanged(); return this; } /** @@ -8283,16 +8328,18 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (error_ != null) { - error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00400000) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); } else { error_ = value; } - onChanged(); } else { errorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00400000; + onChanged(); return this; } /** @@ -8306,14 +8353,13 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; + bitField0_ = (bitField0_ & ~0x00400000); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } - + onChanged(); return this; } /** @@ -8327,7 +8373,7 @@ public Builder clearError() { * .google.rpc.Status error = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + bitField0_ |= 0x00400000; onChanged(); return getErrorFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobOrBuilder.java index 08c95d9cfaa2..6ad4dcd35fce 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobOrBuilder.java @@ -732,7 +732,6 @@ com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable getBigquer * * map<string, string> labels = 11; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringObjectiveConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringObjectiveConfig.java index 3e751f3f2648..82868eff0587 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringObjectiveConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringObjectiveConfig.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DEPLOYED_MODEL_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object deployedModelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedModelId_ = ""; /** * * @@ -165,7 +167,9 @@ public com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig getObjectiv @java.lang.Override public com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfigOrBuilder getObjectiveConfigOrBuilder() { - return getObjectiveConfig(); + return objectiveConfig_ == null + ? com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.getDefaultInstance() + : objectiveConfig_; } private byte memoizedIsInitialized = -1; @@ -384,12 +388,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; deployedModelId_ = ""; - - if (objectiveConfigBuilder_ == null) { - objectiveConfig_ = null; - } else { - objectiveConfig_ = null; + objectiveConfig_ = null; + if (objectiveConfigBuilder_ != null) { + objectiveConfigBuilder_.dispose(); objectiveConfigBuilder_ = null; } return this; @@ -422,16 +425,25 @@ public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig b public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig buildPartial() { com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig result = new com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig(this); - result.deployedModelId_ = deployedModelId_; - if (objectiveConfigBuilder_ == null) { - result.objectiveConfig_ = objectiveConfig_; - } else { - result.objectiveConfig_ = objectiveConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deployedModelId_ = deployedModelId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.objectiveConfig_ = + objectiveConfigBuilder_ == null ? objectiveConfig_ : objectiveConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -484,6 +496,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getDeployedModelId().isEmpty()) { deployedModelId_ = other.deployedModelId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasObjectiveConfig()) { @@ -518,13 +531,13 @@ public Builder mergeFrom( case 10: { deployedModelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getObjectiveConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -544,6 +557,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object deployedModelId_ = ""; /** * @@ -605,8 +620,8 @@ public Builder setDeployedModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedModelId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -622,8 +637,8 @@ public Builder setDeployedModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedModelId() { - deployedModelId_ = getDefaultInstance().getDeployedModelId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -644,8 +659,8 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedModelId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -668,7 +683,7 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { * @return Whether the objectiveConfig field is set. */ public boolean hasObjectiveConfig() { - return objectiveConfigBuilder_ != null || objectiveConfig_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -706,11 +721,11 @@ public Builder setObjectiveConfig( throw new NullPointerException(); } objectiveConfig_ = value; - onChanged(); } else { objectiveConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -726,11 +741,11 @@ public Builder setObjectiveConfig( com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.Builder builderForValue) { if (objectiveConfigBuilder_ == null) { objectiveConfig_ = builderForValue.build(); - onChanged(); } else { objectiveConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -745,20 +760,20 @@ public Builder setObjectiveConfig( public Builder mergeObjectiveConfig( com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig value) { if (objectiveConfigBuilder_ == null) { - if (objectiveConfig_ != null) { - objectiveConfig_ = - com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.newBuilder( - objectiveConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && objectiveConfig_ != null + && objectiveConfig_ + != com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + .getDefaultInstance()) { + getObjectiveConfigBuilder().mergeFrom(value); } else { objectiveConfig_ = value; } - onChanged(); } else { objectiveConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -771,14 +786,13 @@ public Builder mergeObjectiveConfig( * .google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig objective_config = 2; */ public Builder clearObjectiveConfig() { - if (objectiveConfigBuilder_ == null) { - objectiveConfig_ = null; - onChanged(); - } else { - objectiveConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + objectiveConfig_ = null; + if (objectiveConfigBuilder_ != null) { + objectiveConfigBuilder_.dispose(); objectiveConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -792,7 +806,7 @@ public Builder clearObjectiveConfig() { */ public com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.Builder getObjectiveConfigBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getObjectiveConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringScheduleConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringScheduleConfig.java index 0f8ae1d097be..c780c30c0647 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringScheduleConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringScheduleConfig.java @@ -121,7 +121,9 @@ public com.google.protobuf.Duration getMonitorInterval() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMonitorIntervalOrBuilder() { - return getMonitorInterval(); + return monitorInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : monitorInterval_; } public static final int MONITOR_WINDOW_FIELD_NUMBER = 2; @@ -190,7 +192,9 @@ public com.google.protobuf.Duration getMonitorWindow() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMonitorWindowOrBuilder() { - return getMonitorWindow(); + return monitorWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : monitorWindow_; } private byte memoizedIsInitialized = -1; @@ -412,16 +416,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (monitorIntervalBuilder_ == null) { - monitorInterval_ = null; - } else { - monitorInterval_ = null; + bitField0_ = 0; + monitorInterval_ = null; + if (monitorIntervalBuilder_ != null) { + monitorIntervalBuilder_.dispose(); monitorIntervalBuilder_ = null; } - if (monitorWindowBuilder_ == null) { - monitorWindow_ = null; - } else { - monitorWindow_ = null; + monitorWindow_ = null; + if (monitorWindowBuilder_ != null) { + monitorWindowBuilder_.dispose(); monitorWindowBuilder_ = null; } return this; @@ -454,20 +457,26 @@ public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig bu public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig buildPartial() { com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig result = new com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig(this); - if (monitorIntervalBuilder_ == null) { - result.monitorInterval_ = monitorInterval_; - } else { - result.monitorInterval_ = monitorIntervalBuilder_.build(); - } - if (monitorWindowBuilder_ == null) { - result.monitorWindow_ = monitorWindow_; - } else { - result.monitorWindow_ = monitorWindowBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.monitorInterval_ = + monitorIntervalBuilder_ == null ? monitorInterval_ : monitorIntervalBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.monitorWindow_ = + monitorWindowBuilder_ == null ? monitorWindow_ : monitorWindowBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -552,13 +561,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getMonitorIntervalFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMonitorWindowFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -578,6 +587,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Duration monitorInterval_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -600,7 +611,7 @@ public Builder mergeFrom( * @return Whether the monitorInterval field is set. */ public boolean hasMonitorInterval() { - return monitorIntervalBuilder_ != null || monitorInterval_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -645,11 +656,11 @@ public Builder setMonitorInterval(com.google.protobuf.Duration value) { throw new NullPointerException(); } monitorInterval_ = value; - onChanged(); } else { monitorIntervalBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -668,11 +679,11 @@ public Builder setMonitorInterval(com.google.protobuf.Duration value) { public Builder setMonitorInterval(com.google.protobuf.Duration.Builder builderForValue) { if (monitorIntervalBuilder_ == null) { monitorInterval_ = builderForValue.build(); - onChanged(); } else { monitorIntervalBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -690,19 +701,18 @@ public Builder setMonitorInterval(com.google.protobuf.Duration.Builder builderFo */ public Builder mergeMonitorInterval(com.google.protobuf.Duration value) { if (monitorIntervalBuilder_ == null) { - if (monitorInterval_ != null) { - monitorInterval_ = - com.google.protobuf.Duration.newBuilder(monitorInterval_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && monitorInterval_ != null + && monitorInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMonitorIntervalBuilder().mergeFrom(value); } else { monitorInterval_ = value; } - onChanged(); } else { monitorIntervalBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -719,14 +729,13 @@ public Builder mergeMonitorInterval(com.google.protobuf.Duration value) { * */ public Builder clearMonitorInterval() { - if (monitorIntervalBuilder_ == null) { - monitorInterval_ = null; - onChanged(); - } else { - monitorInterval_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + monitorInterval_ = null; + if (monitorIntervalBuilder_ != null) { + monitorIntervalBuilder_.dispose(); monitorIntervalBuilder_ = null; } - + onChanged(); return this; } /** @@ -743,7 +752,7 @@ public Builder clearMonitorInterval() { * */ public com.google.protobuf.Duration.Builder getMonitorIntervalBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getMonitorIntervalFieldBuilder().getBuilder(); } @@ -824,7 +833,7 @@ public com.google.protobuf.DurationOrBuilder getMonitorIntervalOrBuilder() { * @return Whether the monitorWindow field is set. */ public boolean hasMonitorWindow() { - return monitorWindowBuilder_ != null || monitorWindow_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -875,11 +884,11 @@ public Builder setMonitorWindow(com.google.protobuf.Duration value) { throw new NullPointerException(); } monitorWindow_ = value; - onChanged(); } else { monitorWindowBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -901,11 +910,11 @@ public Builder setMonitorWindow(com.google.protobuf.Duration value) { public Builder setMonitorWindow(com.google.protobuf.Duration.Builder builderForValue) { if (monitorWindowBuilder_ == null) { monitorWindow_ = builderForValue.build(); - onChanged(); } else { monitorWindowBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -926,19 +935,18 @@ public Builder setMonitorWindow(com.google.protobuf.Duration.Builder builderForV */ public Builder mergeMonitorWindow(com.google.protobuf.Duration value) { if (monitorWindowBuilder_ == null) { - if (monitorWindow_ != null) { - monitorWindow_ = - com.google.protobuf.Duration.newBuilder(monitorWindow_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && monitorWindow_ != null + && monitorWindow_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMonitorWindowBuilder().mergeFrom(value); } else { monitorWindow_ = value; } - onChanged(); } else { monitorWindowBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -958,14 +966,13 @@ public Builder mergeMonitorWindow(com.google.protobuf.Duration value) { * .google.protobuf.Duration monitor_window = 2; */ public Builder clearMonitorWindow() { - if (monitorWindowBuilder_ == null) { - monitorWindow_ = null; - onChanged(); - } else { - monitorWindow_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + monitorWindow_ = null; + if (monitorWindowBuilder_ != null) { + monitorWindowBuilder_.dispose(); monitorWindowBuilder_ = null; } - + onChanged(); return this; } /** @@ -985,7 +992,7 @@ public Builder clearMonitorWindow() { * .google.protobuf.Duration monitor_window = 2; */ public com.google.protobuf.Duration.Builder getMonitorWindowBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMonitorWindowFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluation.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluation.java index 143511e7ec8c..2dd3c89bf11b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluation.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluation.java @@ -192,7 +192,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int EXPLANATION_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object explanationType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object explanationType_ = ""; /** * * @@ -291,7 +293,9 @@ public com.google.cloud.aiplatform.v1.ExplanationSpec getExplanationSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ExplanationSpecOrBuilder getExplanationSpecOrBuilder() { - return getExplanationSpec(); + return explanationSpec_ == null + ? com.google.cloud.aiplatform.v1.ExplanationSpec.getDefaultInstance() + : explanationSpec_; } private byte memoizedIsInitialized = -1; @@ -513,12 +517,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; explanationType_ = ""; - - if (explanationSpecBuilder_ == null) { - explanationSpec_ = null; - } else { - explanationSpec_ = null; + explanationSpec_ = null; + if (explanationSpecBuilder_ != null) { + explanationSpecBuilder_.dispose(); explanationSpecBuilder_ = null; } return this; @@ -552,16 +555,25 @@ public com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanation buildPartial() { com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec result = new com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec(this); - result.explanationType_ = explanationType_; - if (explanationSpecBuilder_ == null) { - result.explanationSpec_ = explanationSpec_; - } else { - result.explanationSpec_ = explanationSpecBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.explanationType_ = explanationType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.explanationSpec_ = + explanationSpecBuilder_ == null ? explanationSpec_ : explanationSpecBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -618,6 +630,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getExplanationType().isEmpty()) { explanationType_ = other.explanationType_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasExplanationSpec()) { @@ -652,14 +665,14 @@ public Builder mergeFrom( case 10: { explanationType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getExplanationSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -679,6 +692,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object explanationType_ = ""; /** * @@ -749,8 +764,8 @@ public Builder setExplanationType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - explanationType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -769,8 +784,8 @@ public Builder setExplanationType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearExplanationType() { - explanationType_ = getDefaultInstance().getExplanationType(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -794,8 +809,8 @@ public Builder setExplanationTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - explanationType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -818,7 +833,7 @@ public Builder setExplanationTypeBytes(com.google.protobuf.ByteString value) { * @return Whether the explanationSpec field is set. */ public boolean hasExplanationSpec() { - return explanationSpecBuilder_ != null || explanationSpec_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -855,11 +870,11 @@ public Builder setExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSpec throw new NullPointerException(); } explanationSpec_ = value; - onChanged(); } else { explanationSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -875,11 +890,11 @@ public Builder setExplanationSpec( com.google.cloud.aiplatform.v1.ExplanationSpec.Builder builderForValue) { if (explanationSpecBuilder_ == null) { explanationSpec_ = builderForValue.build(); - onChanged(); } else { explanationSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -893,19 +908,19 @@ public Builder setExplanationSpec( */ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSpec value) { if (explanationSpecBuilder_ == null) { - if (explanationSpec_ != null) { - explanationSpec_ = - com.google.cloud.aiplatform.v1.ExplanationSpec.newBuilder(explanationSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && explanationSpec_ != null + && explanationSpec_ + != com.google.cloud.aiplatform.v1.ExplanationSpec.getDefaultInstance()) { + getExplanationSpecBuilder().mergeFrom(value); } else { explanationSpec_ = value; } - onChanged(); } else { explanationSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -918,14 +933,13 @@ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSp * .google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 2; */ public Builder clearExplanationSpec() { - if (explanationSpecBuilder_ == null) { - explanationSpec_ = null; - onChanged(); - } else { - explanationSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + explanationSpec_ = null; + if (explanationSpecBuilder_ != null) { + explanationSpecBuilder_.dispose(); explanationSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -938,7 +952,7 @@ public Builder clearExplanationSpec() { * .google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 2; */ public com.google.cloud.aiplatform.v1.ExplanationSpec.Builder getExplanationSpecBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getExplanationSpecFieldBuilder().getBuilder(); } @@ -1056,7 +1070,9 @@ public com.google.protobuf.Parser getParserForTy } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -1105,7 +1121,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 10; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -1154,7 +1172,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int METRICS_SCHEMA_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object metricsSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metricsSchemaUri_ = ""; /** * * @@ -1254,7 +1274,7 @@ public com.google.protobuf.Value getMetrics() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getMetricsOrBuilder() { - return getMetrics(); + return metrics_ == null ? com.google.protobuf.Value.getDefaultInstance() : metrics_; } public static final int CREATE_TIME_FIELD_NUMBER = 4; @@ -1303,10 +1323,12 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int SLICE_DIMENSIONS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList sliceDimensions_; /** * @@ -1380,7 +1402,9 @@ public com.google.protobuf.ByteString getSliceDimensionsBytes(int index) { } public static final int DATA_ITEM_SCHEMA_URI_FIELD_NUMBER = 6; - private volatile java.lang.Object dataItemSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataItemSchemaUri_ = ""; /** * * @@ -1441,7 +1465,9 @@ public com.google.protobuf.ByteString getDataItemSchemaUriBytes() { } public static final int ANNOTATION_SCHEMA_URI_FIELD_NUMBER = 7; - private volatile java.lang.Object annotationSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object annotationSchemaUri_ = ""; /** * * @@ -1556,10 +1582,14 @@ public com.google.cloud.aiplatform.v1.ModelExplanation getModelExplanation() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ModelExplanationOrBuilder getModelExplanationOrBuilder() { - return getModelExplanation(); + return modelExplanation_ == null + ? com.google.cloud.aiplatform.v1.ModelExplanation.getDefaultInstance() + : modelExplanation_; } public static final int EXPLANATION_SPECS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec> explanationSpecs_; @@ -1709,7 +1739,7 @@ public com.google.protobuf.Value getMetadata() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; } private byte memoizedIsInitialized = -1; @@ -2029,34 +2059,27 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - metricsSchemaUri_ = ""; - - if (metricsBuilder_ == null) { - metrics_ = null; - } else { - metrics_ = null; + metrics_ = null; + if (metricsBuilder_ != null) { + metricsBuilder_.dispose(); metricsBuilder_ = null; } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } sliceDimensions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); dataItemSchemaUri_ = ""; - annotationSchemaUri_ = ""; - - if (modelExplanationBuilder_ == null) { - modelExplanation_ = null; - } else { - modelExplanation_ = null; + modelExplanation_ = null; + if (modelExplanationBuilder_ != null) { + modelExplanationBuilder_.dispose(); modelExplanationBuilder_ = null; } if (explanationSpecsBuilder_ == null) { @@ -2065,11 +2088,10 @@ public Builder clear() { explanationSpecs_ = null; explanationSpecsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; @@ -2099,48 +2121,61 @@ public com.google.cloud.aiplatform.v1.ModelEvaluation build() { public com.google.cloud.aiplatform.v1.ModelEvaluation buildPartial() { com.google.cloud.aiplatform.v1.ModelEvaluation result = new com.google.cloud.aiplatform.v1.ModelEvaluation(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.metricsSchemaUri_ = metricsSchemaUri_; - if (metricsBuilder_ == null) { - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.ModelEvaluation result) { + if (((bitField0_ & 0x00000020) != 0)) { sliceDimensions_ = sliceDimensions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); } result.sliceDimensions_ = sliceDimensions_; - result.dataItemSchemaUri_ = dataItemSchemaUri_; - result.annotationSchemaUri_ = annotationSchemaUri_; - if (modelExplanationBuilder_ == null) { - result.modelExplanation_ = modelExplanation_; - } else { - result.modelExplanation_ = modelExplanationBuilder_.build(); - } if (explanationSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { explanationSpecs_ = java.util.Collections.unmodifiableList(explanationSpecs_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); } result.explanationSpecs_ = explanationSpecs_; } else { result.explanationSpecs_ = explanationSpecsBuilder_.build(); } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ModelEvaluation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metricsSchemaUri_ = metricsSchemaUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.metrics_ = metricsBuilder_ == null ? metrics_ : metricsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.dataItemSchemaUri_ = dataItemSchemaUri_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.annotationSchemaUri_ = annotationSchemaUri_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.modelExplanation_ = + modelExplanationBuilder_ == null ? modelExplanation_ : modelExplanationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -2190,14 +2225,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelEvaluation other) { if (other == com.google.cloud.aiplatform.v1.ModelEvaluation.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getMetricsSchemaUri().isEmpty()) { metricsSchemaUri_ = other.metricsSchemaUri_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasMetrics()) { @@ -2209,7 +2247,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelEvaluation other) { if (!other.sliceDimensions_.isEmpty()) { if (sliceDimensions_.isEmpty()) { sliceDimensions_ = other.sliceDimensions_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureSliceDimensionsIsMutable(); sliceDimensions_.addAll(other.sliceDimensions_); @@ -2218,10 +2256,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelEvaluation other) { } if (!other.getDataItemSchemaUri().isEmpty()) { dataItemSchemaUri_ = other.dataItemSchemaUri_; + bitField0_ |= 0x00000040; onChanged(); } if (!other.getAnnotationSchemaUri().isEmpty()) { annotationSchemaUri_ = other.annotationSchemaUri_; + bitField0_ |= 0x00000080; onChanged(); } if (other.hasModelExplanation()) { @@ -2231,7 +2271,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelEvaluation other) { if (!other.explanationSpecs_.isEmpty()) { if (explanationSpecs_.isEmpty()) { explanationSpecs_ = other.explanationSpecs_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureExplanationSpecsIsMutable(); explanationSpecs_.addAll(other.explanationSpecs_); @@ -2244,7 +2284,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelEvaluation other) { explanationSpecsBuilder_.dispose(); explanationSpecsBuilder_ = null; explanationSpecs_ = other.explanationSpecs_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); explanationSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExplanationSpecsFieldBuilder() @@ -2286,25 +2326,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { metricsSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 18 case 26: { input.readMessage(getMetricsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 34 case 42: @@ -2317,20 +2357,20 @@ public Builder mergeFrom( case 50: { dataItemSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 50 case 58: { annotationSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 58 case 66: { input.readMessage( getModelExplanationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 66 case 74: @@ -2351,13 +2391,13 @@ public Builder mergeFrom( case 82: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 82 case 90: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 90 default: @@ -2440,8 +2480,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2457,8 +2497,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2479,8 +2519,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2546,8 +2586,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2563,8 +2603,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2585,8 +2625,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2661,8 +2701,8 @@ public Builder setMetricsSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metricsSchemaUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2681,8 +2721,8 @@ public Builder setMetricsSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetricsSchemaUri() { - metricsSchemaUri_ = getDefaultInstance().getMetricsSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2706,8 +2746,8 @@ public Builder setMetricsSchemaUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metricsSchemaUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2731,7 +2771,7 @@ public Builder setMetricsSchemaUriBytes(com.google.protobuf.ByteString value) { * @return Whether the metrics field is set. */ public boolean hasMetrics() { - return metricsBuilder_ != null || metrics_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -2768,11 +2808,11 @@ public Builder setMetrics(com.google.protobuf.Value value) { throw new NullPointerException(); } metrics_ = value; - onChanged(); } else { metricsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2788,11 +2828,11 @@ public Builder setMetrics(com.google.protobuf.Value value) { public Builder setMetrics(com.google.protobuf.Value.Builder builderForValue) { if (metricsBuilder_ == null) { metrics_ = builderForValue.build(); - onChanged(); } else { metricsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2807,16 +2847,18 @@ public Builder setMetrics(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeMetrics(com.google.protobuf.Value value) { if (metricsBuilder_ == null) { - if (metrics_ != null) { - metrics_ = com.google.protobuf.Value.newBuilder(metrics_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && metrics_ != null + && metrics_ != com.google.protobuf.Value.getDefaultInstance()) { + getMetricsBuilder().mergeFrom(value); } else { metrics_ = value; } - onChanged(); } else { metricsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2830,14 +2872,13 @@ public Builder mergeMetrics(com.google.protobuf.Value value) { * .google.protobuf.Value metrics = 3; */ public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = null; - onChanged(); - } else { - metrics_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + metrics_ = null; + if (metricsBuilder_ != null) { + metricsBuilder_.dispose(); metricsBuilder_ = null; } - + onChanged(); return this; } /** @@ -2851,7 +2892,7 @@ public Builder clearMetrics() { * .google.protobuf.Value metrics = 3; */ public com.google.protobuf.Value.Builder getMetricsBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getMetricsFieldBuilder().getBuilder(); } @@ -2919,7 +2960,7 @@ public com.google.protobuf.ValueOrBuilder getMetricsOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2960,11 +3001,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2981,11 +3022,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3001,17 +3042,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3026,14 +3068,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3048,7 +3089,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -3104,9 +3145,9 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSliceDimensionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { sliceDimensions_ = new com.google.protobuf.LazyStringArrayList(sliceDimensions_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000020; } } /** @@ -3265,7 +3306,7 @@ public Builder addAllSliceDimensions(java.lang.Iterable values */ public Builder clearSliceDimensions() { sliceDimensions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -3374,8 +3415,8 @@ public Builder setDataItemSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - dataItemSchemaUri_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3397,8 +3438,8 @@ public Builder setDataItemSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDataItemSchemaUri() { - dataItemSchemaUri_ = getDefaultInstance().getDataItemSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -3425,8 +3466,8 @@ public Builder setDataItemSchemaUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - dataItemSchemaUri_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3516,8 +3557,8 @@ public Builder setAnnotationSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - annotationSchemaUri_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3541,8 +3582,8 @@ public Builder setAnnotationSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAnnotationSchemaUri() { - annotationSchemaUri_ = getDefaultInstance().getAnnotationSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -3571,8 +3612,8 @@ public Builder setAnnotationSchemaUriBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - annotationSchemaUri_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3597,7 +3638,7 @@ public Builder setAnnotationSchemaUriBytes(com.google.protobuf.ByteString value) * @return Whether the modelExplanation field is set. */ public boolean hasModelExplanation() { - return modelExplanationBuilder_ != null || modelExplanation_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -3638,11 +3679,11 @@ public Builder setModelExplanation(com.google.cloud.aiplatform.v1.ModelExplanati throw new NullPointerException(); } modelExplanation_ = value; - onChanged(); } else { modelExplanationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3660,11 +3701,11 @@ public Builder setModelExplanation( com.google.cloud.aiplatform.v1.ModelExplanation.Builder builderForValue) { if (modelExplanationBuilder_ == null) { modelExplanation_ = builderForValue.build(); - onChanged(); } else { modelExplanationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3680,19 +3721,19 @@ public Builder setModelExplanation( */ public Builder mergeModelExplanation(com.google.cloud.aiplatform.v1.ModelExplanation value) { if (modelExplanationBuilder_ == null) { - if (modelExplanation_ != null) { - modelExplanation_ = - com.google.cloud.aiplatform.v1.ModelExplanation.newBuilder(modelExplanation_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && modelExplanation_ != null + && modelExplanation_ + != com.google.cloud.aiplatform.v1.ModelExplanation.getDefaultInstance()) { + getModelExplanationBuilder().mergeFrom(value); } else { modelExplanation_ = value; } - onChanged(); } else { modelExplanationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3707,14 +3748,13 @@ public Builder mergeModelExplanation(com.google.cloud.aiplatform.v1.ModelExplana * .google.cloud.aiplatform.v1.ModelExplanation model_explanation = 8; */ public Builder clearModelExplanation() { - if (modelExplanationBuilder_ == null) { - modelExplanation_ = null; - onChanged(); - } else { - modelExplanation_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + modelExplanation_ = null; + if (modelExplanationBuilder_ != null) { + modelExplanationBuilder_.dispose(); modelExplanationBuilder_ = null; } - + onChanged(); return this; } /** @@ -3729,7 +3769,7 @@ public Builder clearModelExplanation() { * .google.cloud.aiplatform.v1.ModelExplanation model_explanation = 8; */ public com.google.cloud.aiplatform.v1.ModelExplanation.Builder getModelExplanationBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getModelExplanationFieldBuilder().getBuilder(); } @@ -3786,12 +3826,12 @@ public com.google.cloud.aiplatform.v1.ModelExplanationOrBuilder getModelExplanat explanationSpecs_ = java.util.Collections.emptyList(); private void ensureExplanationSpecsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000200) != 0)) { explanationSpecs_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec>( explanationSpecs_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000200; } } @@ -4067,7 +4107,7 @@ public Builder addAllExplanationSpecs( public Builder clearExplanationSpecs() { if (explanationSpecsBuilder_ == null) { explanationSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { explanationSpecsBuilder_.clear(); @@ -4233,7 +4273,7 @@ public Builder removeExplanationSpecs(int index) { com.google.cloud.aiplatform.v1.ModelEvaluation .ModelEvaluationExplanationSpecOrBuilder>( explanationSpecs_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); explanationSpecs_ = null; @@ -4262,7 +4302,7 @@ public Builder removeExplanationSpecs(int index) { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -4303,11 +4343,11 @@ public Builder setMetadata(com.google.protobuf.Value value) { throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -4325,11 +4365,11 @@ public Builder setMetadata(com.google.protobuf.Value value) { public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -4346,17 +4386,18 @@ public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Value value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Value.newBuilder(metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Value.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -4372,14 +4413,13 @@ public Builder mergeMetadata(com.google.protobuf.Value value) { * .google.protobuf.Value metadata = 11; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -4395,7 +4435,7 @@ public Builder clearMetadata() { * .google.protobuf.Value metadata = 11; */ public com.google.protobuf.Value.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSlice.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSlice.java index 76a379915cd5..08dccf2a7a57 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSlice.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSlice.java @@ -187,7 +187,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DIMENSION_FIELD_NUMBER = 1; - private volatile java.lang.Object dimension_; + + @SuppressWarnings("serial") + private volatile java.lang.Object dimension_ = ""; /** * * @@ -248,7 +250,9 @@ public com.google.protobuf.ByteString getDimensionBytes() { } public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; /** * * @@ -505,10 +509,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; dimension_ = ""; - value_ = ""; - return this; } @@ -536,12 +539,23 @@ public com.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice build() { public com.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice buildPartial() { com.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice result = new com.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice(this); - result.dimension_ = dimension_; - result.value_ = value_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dimension_ = dimension_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -592,10 +606,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelEvaluationSlice.Sli return this; if (!other.getDimension().isEmpty()) { dimension_ = other.dimension_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getValue().isEmpty()) { value_ = other.value_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -627,13 +643,13 @@ public Builder mergeFrom( case 10: { dimension_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { value_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -653,6 +669,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object dimension_ = ""; /** * @@ -732,8 +750,8 @@ public Builder setDimension(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - dimension_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -755,8 +773,8 @@ public Builder setDimension(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDimension() { - dimension_ = getDefaultInstance().getDimension(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -783,8 +801,8 @@ public Builder setDimensionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - dimension_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -850,8 +868,8 @@ public Builder setValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - value_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -867,8 +885,8 @@ public Builder setValue(java.lang.String value) { * @return This builder for chaining. */ public Builder clearValue() { - value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -889,8 +907,8 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - value_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -960,7 +978,9 @@ public com.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice getDefaultInsta } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -1059,11 +1079,15 @@ public com.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice getSlice() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ModelEvaluationSlice.SliceOrBuilder getSliceOrBuilder() { - return getSlice(); + return slice_ == null + ? com.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.getDefaultInstance() + : slice_; } public static final int METRICS_SCHEMA_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object metricsSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metricsSchemaUri_ = ""; /** * * @@ -1168,7 +1192,7 @@ public com.google.protobuf.Value getMetrics() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getMetricsOrBuilder() { - return getMetrics(); + return metrics_ == null ? com.google.protobuf.Value.getDefaultInstance() : metrics_; } public static final int CREATE_TIME_FIELD_NUMBER = 5; @@ -1217,7 +1241,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } private byte memoizedIsInitialized = -1; @@ -1469,26 +1493,22 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - - if (sliceBuilder_ == null) { - slice_ = null; - } else { - slice_ = null; + slice_ = null; + if (sliceBuilder_ != null) { + sliceBuilder_.dispose(); sliceBuilder_ = null; } metricsSchemaUri_ = ""; - - if (metricsBuilder_ == null) { - metrics_ = null; - } else { - metrics_ = null; + metrics_ = null; + if (metricsBuilder_ != null) { + metricsBuilder_.dispose(); metricsBuilder_ = null; } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } return this; @@ -1518,27 +1538,32 @@ public com.google.cloud.aiplatform.v1.ModelEvaluationSlice build() { public com.google.cloud.aiplatform.v1.ModelEvaluationSlice buildPartial() { com.google.cloud.aiplatform.v1.ModelEvaluationSlice result = new com.google.cloud.aiplatform.v1.ModelEvaluationSlice(this); - result.name_ = name_; - if (sliceBuilder_ == null) { - result.slice_ = slice_; - } else { - result.slice_ = sliceBuilder_.build(); - } - result.metricsSchemaUri_ = metricsSchemaUri_; - if (metricsBuilder_ == null) { - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.build(); - } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ModelEvaluationSlice result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.slice_ = sliceBuilder_ == null ? slice_ : sliceBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metricsSchemaUri_ = metricsSchemaUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.metrics_ = metricsBuilder_ == null ? metrics_ : metricsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1587,6 +1612,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelEvaluationSlice oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasSlice()) { @@ -1594,6 +1620,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelEvaluationSlice oth } if (!other.getMetricsSchemaUri().isEmpty()) { metricsSchemaUri_ = other.metricsSchemaUri_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasMetrics()) { @@ -1631,31 +1658,31 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getSliceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { metricsSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getMetricsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -1675,6 +1702,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -1736,8 +1765,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1753,8 +1782,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1775,8 +1804,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1801,7 +1830,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the slice field is set. */ public boolean hasSlice() { - return sliceBuilder_ != null || slice_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1842,11 +1871,11 @@ public Builder setSlice(com.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slic throw new NullPointerException(); } slice_ = value; - onChanged(); } else { sliceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1864,11 +1893,11 @@ public Builder setSlice( com.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.Builder builderForValue) { if (sliceBuilder_ == null) { slice_ = builderForValue.build(); - onChanged(); } else { sliceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1884,19 +1913,19 @@ public Builder setSlice( */ public Builder mergeSlice(com.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice value) { if (sliceBuilder_ == null) { - if (slice_ != null) { - slice_ = - com.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.newBuilder(slice_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && slice_ != null + && slice_ + != com.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.getDefaultInstance()) { + getSliceBuilder().mergeFrom(value); } else { slice_ = value; } - onChanged(); } else { sliceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1911,14 +1940,13 @@ public Builder mergeSlice(com.google.cloud.aiplatform.v1.ModelEvaluationSlice.Sl * */ public Builder clearSlice() { - if (sliceBuilder_ == null) { - slice_ = null; - onChanged(); - } else { - slice_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + slice_ = null; + if (sliceBuilder_ != null) { + sliceBuilder_.dispose(); sliceBuilder_ = null; } - + onChanged(); return this; } /** @@ -1933,7 +1961,7 @@ public Builder clearSlice() { * */ public com.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.Builder getSliceBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getSliceFieldBuilder().getBuilder(); } @@ -2058,8 +2086,8 @@ public Builder setMetricsSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metricsSchemaUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2079,8 +2107,8 @@ public Builder setMetricsSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetricsSchemaUri() { - metricsSchemaUri_ = getDefaultInstance().getMetricsSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2105,8 +2133,8 @@ public Builder setMetricsSchemaUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metricsSchemaUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2131,7 +2159,7 @@ public Builder setMetricsSchemaUriBytes(com.google.protobuf.ByteString value) { * @return Whether the metrics field is set. */ public boolean hasMetrics() { - return metricsBuilder_ != null || metrics_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -2170,11 +2198,11 @@ public Builder setMetrics(com.google.protobuf.Value value) { throw new NullPointerException(); } metrics_ = value; - onChanged(); } else { metricsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2191,11 +2219,11 @@ public Builder setMetrics(com.google.protobuf.Value value) { public Builder setMetrics(com.google.protobuf.Value.Builder builderForValue) { if (metricsBuilder_ == null) { metrics_ = builderForValue.build(); - onChanged(); } else { metricsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2211,16 +2239,18 @@ public Builder setMetrics(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeMetrics(com.google.protobuf.Value value) { if (metricsBuilder_ == null) { - if (metrics_ != null) { - metrics_ = com.google.protobuf.Value.newBuilder(metrics_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && metrics_ != null + && metrics_ != com.google.protobuf.Value.getDefaultInstance()) { + getMetricsBuilder().mergeFrom(value); } else { metrics_ = value; } - onChanged(); } else { metricsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2235,14 +2265,13 @@ public Builder mergeMetrics(com.google.protobuf.Value value) { * .google.protobuf.Value metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = null; - onChanged(); - } else { - metrics_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + metrics_ = null; + if (metricsBuilder_ != null) { + metricsBuilder_.dispose(); metricsBuilder_ = null; } - + onChanged(); return this; } /** @@ -2257,7 +2286,7 @@ public Builder clearMetrics() { * .google.protobuf.Value metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Value.Builder getMetricsBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getMetricsFieldBuilder().getBuilder(); } @@ -2327,7 +2356,7 @@ public com.google.protobuf.ValueOrBuilder getMetricsOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2368,11 +2397,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2389,11 +2418,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2409,17 +2438,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2434,14 +2464,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2456,7 +2485,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelExplanation.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelExplanation.java index c52e301c8ad4..b37821971827 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelExplanation.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelExplanation.java @@ -68,6 +68,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MEAN_ATTRIBUTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List meanAttributions_; /** * @@ -436,6 +438,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (meanAttributionsBuilder_ == null) { meanAttributions_ = java.util.Collections.emptyList(); } else { @@ -470,7 +473,16 @@ public com.google.cloud.aiplatform.v1.ModelExplanation build() { public com.google.cloud.aiplatform.v1.ModelExplanation buildPartial() { com.google.cloud.aiplatform.v1.ModelExplanation result = new com.google.cloud.aiplatform.v1.ModelExplanation(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ModelExplanation result) { if (meanAttributionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { meanAttributions_ = java.util.Collections.unmodifiableList(meanAttributions_); @@ -480,8 +492,10 @@ public com.google.cloud.aiplatform.v1.ModelExplanation buildPartial() { } else { result.meanAttributions_ = meanAttributionsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ModelExplanation result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringAlertConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringAlertConfig.java index e359318cffe8..1ca960117f75 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringAlertConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringAlertConfig.java @@ -164,6 +164,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int USER_EMAILS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList userEmails_; /** * @@ -440,6 +442,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; userEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; @@ -473,14 +476,26 @@ public com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfi buildPartial() { com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig result = new com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig result) { if (((bitField0_ & 0x00000001) != 0)) { userEmails_ = userEmails_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.userEmails_ = userEmails_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -939,7 +954,7 @@ public boolean hasEmailAlertConfig() { } public static final int ENABLE_LOGGING_FIELD_NUMBER = 2; - private boolean enableLogging_; + private boolean enableLogging_ = false; /** * * @@ -1176,11 +1191,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (emailAlertConfigBuilder_ != null) { emailAlertConfigBuilder_.clear(); } enableLogging_ = false; - alertCase_ = 0; alert_ = null; return this; @@ -1210,19 +1225,30 @@ public com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig build() { public com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig buildPartial() { com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig result = new com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig(this); - if (alertCase_ == 1) { - if (emailAlertConfigBuilder_ == null) { - result.alert_ = alert_; - } else { - result.alert_ = emailAlertConfigBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - result.enableLogging_ = enableLogging_; - result.alertCase_ = alertCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableLogging_ = enableLogging_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig result) { + result.alertCase_ = alertCase_; + result.alert_ = this.alert_; + if (alertCase_ == 1 && emailAlertConfigBuilder_ != null) { + result.alert_ = emailAlertConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1319,7 +1345,7 @@ public Builder mergeFrom( case 16: { enableLogging_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -1353,6 +1379,8 @@ public Builder clearAlert() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig, com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.Builder, @@ -1594,7 +1622,6 @@ public Builder clearEmailAlertConfig() { } alertCase_ = 1; onChanged(); - ; return emailAlertConfigBuilder_; } @@ -1637,6 +1664,7 @@ public boolean getEnableLogging() { public Builder setEnableLogging(boolean value) { enableLogging_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1656,7 +1684,7 @@ public Builder setEnableLogging(boolean value) { * @return This builder for chaining. */ public Builder clearEnableLogging() { - + bitField0_ = (bitField0_ & ~0x00000002); enableLogging_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringObjectiveConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringObjectiveConfig.java index 2ddba9e270c4..f3448f6f71b9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringObjectiveConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringObjectiveConfig.java @@ -577,7 +577,9 @@ public com.google.cloud.aiplatform.v1.BigQuerySourceOrBuilder getBigquerySourceO } public static final int DATA_FORMAT_FIELD_NUMBER = 2; - private volatile java.lang.Object dataFormat_; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataFormat_ = ""; /** * * @@ -642,7 +644,9 @@ public com.google.protobuf.ByteString getDataFormatBytes() { } public static final int TARGET_FIELD_FIELD_NUMBER = 6; - private volatile java.lang.Object targetField_; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetField_ = ""; /** * * @@ -743,7 +747,9 @@ public com.google.cloud.aiplatform.v1.SamplingStrategy getLoggingSamplingStrateg @java.lang.Override public com.google.cloud.aiplatform.v1.SamplingStrategyOrBuilder getLoggingSamplingStrategyOrBuilder() { - return getLoggingSamplingStrategy(); + return loggingSamplingStrategy_ == null + ? com.google.cloud.aiplatform.v1.SamplingStrategy.getDefaultInstance() + : loggingSamplingStrategy_; } private byte memoizedIsInitialized = -1; @@ -1034,6 +1040,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (gcsSourceBuilder_ != null) { gcsSourceBuilder_.clear(); } @@ -1041,13 +1048,10 @@ public Builder clear() { bigquerySourceBuilder_.clear(); } dataFormat_ = ""; - targetField_ = ""; - - if (loggingSamplingStrategyBuilder_ == null) { - loggingSamplingStrategy_ = null; - } else { - loggingSamplingStrategy_ = null; + loggingSamplingStrategy_ = null; + if (loggingSamplingStrategyBuilder_ != null) { + loggingSamplingStrategyBuilder_.dispose(); loggingSamplingStrategyBuilder_ = null; } dataSourceCase_ = 0; @@ -1083,33 +1087,41 @@ public com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDat buildPartial() { com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset result = new com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset(this); - if (dataSourceCase_ == 3) { - result.dataSource_ = dataSource_; + if (bitField0_ != 0) { + buildPartial0(result); } - if (dataSourceCase_ == 4) { - if (gcsSourceBuilder_ == null) { - result.dataSource_ = dataSource_; - } else { - result.dataSource_ = gcsSourceBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.dataFormat_ = dataFormat_; } - if (dataSourceCase_ == 5) { - if (bigquerySourceBuilder_ == null) { - result.dataSource_ = dataSource_; - } else { - result.dataSource_ = bigquerySourceBuilder_.build(); - } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.targetField_ = targetField_; } - result.dataFormat_ = dataFormat_; - result.targetField_ = targetField_; - if (loggingSamplingStrategyBuilder_ == null) { - result.loggingSamplingStrategy_ = loggingSamplingStrategy_; - } else { - result.loggingSamplingStrategy_ = loggingSamplingStrategyBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.loggingSamplingStrategy_ = + loggingSamplingStrategyBuilder_ == null + ? loggingSamplingStrategy_ + : loggingSamplingStrategyBuilder_.build(); } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset result) { result.dataSourceCase_ = dataSourceCase_; - onBuilt(); - return result; + result.dataSource_ = this.dataSource_; + if (dataSourceCase_ == 4 && gcsSourceBuilder_ != null) { + result.dataSource_ = gcsSourceBuilder_.build(); + } + if (dataSourceCase_ == 5 && bigquerySourceBuilder_ != null) { + result.dataSource_ = bigquerySourceBuilder_.build(); + } } @java.lang.Override @@ -1168,10 +1180,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getDataFormat().isEmpty()) { dataFormat_ = other.dataFormat_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getTargetField().isEmpty()) { targetField_ = other.targetField_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasLoggingSamplingStrategy()) { @@ -1229,7 +1243,7 @@ public Builder mergeFrom( case 18: { dataFormat_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 18 case 26: @@ -1255,14 +1269,14 @@ public Builder mergeFrom( case 50: { targetField_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 50 case 58: { input.readMessage( getLoggingSamplingStrategyFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 58 default: @@ -1296,6 +1310,8 @@ public Builder clearDataSource() { return this; } + private int bitField0_; + /** * * @@ -1645,7 +1661,6 @@ public com.google.cloud.aiplatform.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() } dataSourceCase_ = 4; onChanged(); - ; return gcsSourceBuilder_; } @@ -1865,7 +1880,6 @@ public com.google.cloud.aiplatform.v1.BigQuerySourceOrBuilder getBigquerySourceO } dataSourceCase_ = 5; onChanged(); - ; return bigquerySourceBuilder_; } @@ -1954,8 +1968,8 @@ public Builder setDataFormat(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - dataFormat_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1979,8 +1993,8 @@ public Builder setDataFormat(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDataFormat() { - dataFormat_ = getDefaultInstance().getDataFormat(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2009,8 +2023,8 @@ public Builder setDataFormatBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - dataFormat_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2082,8 +2096,8 @@ public Builder setTargetField(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - targetField_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2101,8 +2115,8 @@ public Builder setTargetField(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTargetField() { - targetField_ = getDefaultInstance().getTargetField(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2125,8 +2139,8 @@ public Builder setTargetFieldBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - targetField_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2150,7 +2164,7 @@ public Builder setTargetFieldBytes(com.google.protobuf.ByteString value) { * @return Whether the loggingSamplingStrategy field is set. */ public boolean hasLoggingSamplingStrategy() { - return loggingSamplingStrategyBuilder_ != null || loggingSamplingStrategy_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2190,11 +2204,11 @@ public Builder setLoggingSamplingStrategy( throw new NullPointerException(); } loggingSamplingStrategy_ = value; - onChanged(); } else { loggingSamplingStrategyBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2211,11 +2225,11 @@ public Builder setLoggingSamplingStrategy( com.google.cloud.aiplatform.v1.SamplingStrategy.Builder builderForValue) { if (loggingSamplingStrategyBuilder_ == null) { loggingSamplingStrategy_ = builderForValue.build(); - onChanged(); } else { loggingSamplingStrategyBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2231,19 +2245,19 @@ public Builder setLoggingSamplingStrategy( public Builder mergeLoggingSamplingStrategy( com.google.cloud.aiplatform.v1.SamplingStrategy value) { if (loggingSamplingStrategyBuilder_ == null) { - if (loggingSamplingStrategy_ != null) { - loggingSamplingStrategy_ = - com.google.cloud.aiplatform.v1.SamplingStrategy.newBuilder(loggingSamplingStrategy_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && loggingSamplingStrategy_ != null + && loggingSamplingStrategy_ + != com.google.cloud.aiplatform.v1.SamplingStrategy.getDefaultInstance()) { + getLoggingSamplingStrategyBuilder().mergeFrom(value); } else { loggingSamplingStrategy_ = value; } - onChanged(); } else { loggingSamplingStrategyBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2257,14 +2271,13 @@ public Builder mergeLoggingSamplingStrategy( * .google.cloud.aiplatform.v1.SamplingStrategy logging_sampling_strategy = 7; */ public Builder clearLoggingSamplingStrategy() { - if (loggingSamplingStrategyBuilder_ == null) { - loggingSamplingStrategy_ = null; - onChanged(); - } else { - loggingSamplingStrategy_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + loggingSamplingStrategy_ = null; + if (loggingSamplingStrategyBuilder_ != null) { + loggingSamplingStrategyBuilder_.dispose(); loggingSamplingStrategyBuilder_ = null; } - + onChanged(); return this; } /** @@ -2279,7 +2292,7 @@ public Builder clearLoggingSamplingStrategy() { */ public com.google.cloud.aiplatform.v1.SamplingStrategy.Builder getLoggingSamplingStrategyBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getLoggingSamplingStrategyFieldBuilder().getBuilder(); } @@ -2464,7 +2477,6 @@ public interface TrainingPredictionSkewDetectionConfigOrBuilder * map<string, .google.cloud.aiplatform.v1.ThresholdConfig> skew_thresholds = 1; * */ - /* nullable */ com.google.cloud.aiplatform.v1.ThresholdConfig getSkewThresholdsOrDefault( java.lang.String key, @@ -2545,7 +2557,6 @@ com.google.cloud.aiplatform.v1.ThresholdConfig getSkewThresholdsOrDefault( * map<string, .google.cloud.aiplatform.v1.ThresholdConfig> attribution_score_skew_thresholds = 2; * */ - /* nullable */ com.google.cloud.aiplatform.v1.ThresholdConfig getAttributionScoreSkewThresholdsOrDefault( java.lang.String key, @@ -2691,6 +2702,7 @@ private static final class SkewThresholdsDefaultEntryHolder { com.google.cloud.aiplatform.v1.ThresholdConfig.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1.ThresholdConfig> skewThresholds_; @@ -2767,8 +2779,10 @@ public boolean containsSkewThresholds(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.ThresholdConfig getSkewThresholdsOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1.ThresholdConfig getSkewThresholdsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2820,6 +2834,7 @@ private static final class AttributionScoreSkewThresholdsDefaultEntryHolder { com.google.cloud.aiplatform.v1.ThresholdConfig.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1.ThresholdConfig> attributionScoreSkewThresholds_; @@ -2896,9 +2911,11 @@ public boolean containsAttributionScoreSkewThresholds(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.ThresholdConfig + public /* nullable */ com.google.cloud.aiplatform.v1.ThresholdConfig getAttributionScoreSkewThresholdsOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2985,7 +3002,9 @@ public com.google.cloud.aiplatform.v1.ThresholdConfig getDefaultSkewThreshold() @java.lang.Override public com.google.cloud.aiplatform.v1.ThresholdConfigOrBuilder getDefaultSkewThresholdOrBuilder() { - return getDefaultSkewThreshold(); + return defaultSkewThreshold_ == null + ? com.google.cloud.aiplatform.v1.ThresholdConfig.getDefaultInstance() + : defaultSkewThreshold_; } private byte memoizedIsInitialized = -1; @@ -3295,12 +3314,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; internalGetMutableSkewThresholds().clear(); internalGetMutableAttributionScoreSkewThresholds().clear(); - if (defaultSkewThresholdBuilder_ == null) { - defaultSkewThreshold_ = null; - } else { - defaultSkewThreshold_ = null; + defaultSkewThreshold_ = null; + if (defaultSkewThresholdBuilder_ != null) { + defaultSkewThresholdBuilder_.dispose(); defaultSkewThresholdBuilder_ = null; } return this; @@ -3342,20 +3361,34 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig .TrainingPredictionSkewDetectionConfig(this); - int from_bitField0_ = bitField0_; - result.skewThresholds_ = internalGetSkewThresholds(); - result.skewThresholds_.makeImmutable(); - result.attributionScoreSkewThresholds_ = internalGetAttributionScoreSkewThresholds(); - result.attributionScoreSkewThresholds_.makeImmutable(); - if (defaultSkewThresholdBuilder_ == null) { - result.defaultSkewThreshold_ = defaultSkewThreshold_; - } else { - result.defaultSkewThreshold_ = defaultSkewThresholdBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.skewThresholds_ = internalGetSkewThresholds(); + result.skewThresholds_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.attributionScoreSkewThresholds_ = internalGetAttributionScoreSkewThresholds(); + result.attributionScoreSkewThresholds_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.defaultSkewThreshold_ = + defaultSkewThresholdBuilder_ == null + ? defaultSkewThreshold_ + : defaultSkewThresholdBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3415,8 +3448,10 @@ public Builder mergeFrom( == com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig .TrainingPredictionSkewDetectionConfig.getDefaultInstance()) return this; internalGetMutableSkewThresholds().mergeFrom(other.internalGetSkewThresholds()); + bitField0_ |= 0x00000001; internalGetMutableAttributionScoreSkewThresholds() .mergeFrom(other.internalGetAttributionScoreSkewThresholds()); + bitField0_ |= 0x00000002; if (other.hasDefaultSkewThreshold()) { mergeDefaultSkewThreshold(other.getDefaultSkewThreshold()); } @@ -3457,6 +3492,7 @@ public Builder mergeFrom( internalGetMutableSkewThresholds() .getMutableMap() .put(skewThresholds__.getKey(), skewThresholds__.getValue()); + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -3473,13 +3509,14 @@ public Builder mergeFrom( .put( attributionScoreSkewThresholds__.getKey(), attributionScoreSkewThresholds__.getValue()); + bitField0_ |= 0x00000002; break; } // case 18 case 50: { input.readMessage( getDefaultSkewThresholdFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 50 default: @@ -3518,8 +3555,6 @@ public Builder mergeFrom( private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1.ThresholdConfig> internalGetMutableSkewThresholds() { - onChanged(); - ; if (skewThresholds_ == null) { skewThresholds_ = com.google.protobuf.MapField.newMapField( @@ -3528,6 +3563,8 @@ public Builder mergeFrom( if (!skewThresholds_.isMutable()) { skewThresholds_ = skewThresholds_.copy(); } + bitField0_ |= 0x00000001; + onChanged(); return skewThresholds_; } @@ -3593,8 +3630,11 @@ public boolean containsSkewThresholds(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.ThresholdConfig getSkewThresholdsOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1.ThresholdConfig + getSkewThresholdsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3630,6 +3670,7 @@ public com.google.cloud.aiplatform.v1.ThresholdConfig getSkewThresholdsOrThrow( } public Builder clearSkewThresholds() { + bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableSkewThresholds().getMutableMap().clear(); return this; } @@ -3657,6 +3698,7 @@ public Builder removeSkewThresholds(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableSkewThresholds() { + bitField0_ |= 0x00000001; return internalGetMutableSkewThresholds().getMutableMap(); } /** @@ -3680,8 +3722,8 @@ public Builder putSkewThresholds( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableSkewThresholds().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; return this; } /** @@ -3700,6 +3742,7 @@ public Builder putSkewThresholds( public Builder putAllSkewThresholds( java.util.Map values) { internalGetMutableSkewThresholds().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; return this; } @@ -3720,8 +3763,6 @@ public Builder putAllSkewThresholds( private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1.ThresholdConfig> internalGetMutableAttributionScoreSkewThresholds() { - onChanged(); - ; if (attributionScoreSkewThresholds_ == null) { attributionScoreSkewThresholds_ = com.google.protobuf.MapField.newMapField( @@ -3730,6 +3771,8 @@ public Builder putAllSkewThresholds( if (!attributionScoreSkewThresholds_.isMutable()) { attributionScoreSkewThresholds_ = attributionScoreSkewThresholds_.copy(); } + bitField0_ |= 0x00000002; + onChanged(); return attributionScoreSkewThresholds_; } @@ -3795,9 +3838,11 @@ public boolean containsAttributionScoreSkewThresholds(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.ThresholdConfig + public /* nullable */ com.google.cloud.aiplatform.v1.ThresholdConfig getAttributionScoreSkewThresholdsOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3833,6 +3878,7 @@ public boolean containsAttributionScoreSkewThresholds(java.lang.String key) { } public Builder clearAttributionScoreSkewThresholds() { + bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableAttributionScoreSkewThresholds().getMutableMap().clear(); return this; } @@ -3860,6 +3906,7 @@ public Builder removeAttributionScoreSkewThresholds(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableAttributionScoreSkewThresholds() { + bitField0_ |= 0x00000002; return internalGetMutableAttributionScoreSkewThresholds().getMutableMap(); } /** @@ -3883,8 +3930,8 @@ public Builder putAttributionScoreSkewThresholds( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAttributionScoreSkewThresholds().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; return this; } /** @@ -3903,6 +3950,7 @@ public Builder putAttributionScoreSkewThresholds( public Builder putAllAttributionScoreSkewThresholds( java.util.Map values) { internalGetMutableAttributionScoreSkewThresholds().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; return this; } @@ -3926,7 +3974,7 @@ public Builder putAllAttributionScoreSkewThresholds( * @return Whether the defaultSkewThreshold field is set. */ public boolean hasDefaultSkewThreshold() { - return defaultSkewThresholdBuilder_ != null || defaultSkewThreshold_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -3967,11 +4015,11 @@ public Builder setDefaultSkewThreshold(com.google.cloud.aiplatform.v1.ThresholdC throw new NullPointerException(); } defaultSkewThreshold_ = value; - onChanged(); } else { defaultSkewThresholdBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3989,11 +4037,11 @@ public Builder setDefaultSkewThreshold( com.google.cloud.aiplatform.v1.ThresholdConfig.Builder builderForValue) { if (defaultSkewThresholdBuilder_ == null) { defaultSkewThreshold_ = builderForValue.build(); - onChanged(); } else { defaultSkewThresholdBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4010,19 +4058,19 @@ public Builder setDefaultSkewThreshold( public Builder mergeDefaultSkewThreshold( com.google.cloud.aiplatform.v1.ThresholdConfig value) { if (defaultSkewThresholdBuilder_ == null) { - if (defaultSkewThreshold_ != null) { - defaultSkewThreshold_ = - com.google.cloud.aiplatform.v1.ThresholdConfig.newBuilder(defaultSkewThreshold_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && defaultSkewThreshold_ != null + && defaultSkewThreshold_ + != com.google.cloud.aiplatform.v1.ThresholdConfig.getDefaultInstance()) { + getDefaultSkewThresholdBuilder().mergeFrom(value); } else { defaultSkewThreshold_ = value; } - onChanged(); } else { defaultSkewThresholdBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4037,14 +4085,13 @@ public Builder mergeDefaultSkewThreshold( * .google.cloud.aiplatform.v1.ThresholdConfig default_skew_threshold = 6; */ public Builder clearDefaultSkewThreshold() { - if (defaultSkewThresholdBuilder_ == null) { - defaultSkewThreshold_ = null; - onChanged(); - } else { - defaultSkewThreshold_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + defaultSkewThreshold_ = null; + if (defaultSkewThresholdBuilder_ != null) { + defaultSkewThresholdBuilder_.dispose(); defaultSkewThresholdBuilder_ = null; } - + onChanged(); return this; } /** @@ -4060,7 +4107,7 @@ public Builder clearDefaultSkewThreshold() { */ public com.google.cloud.aiplatform.v1.ThresholdConfig.Builder getDefaultSkewThresholdBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getDefaultSkewThresholdFieldBuilder().getBuilder(); } @@ -4250,7 +4297,6 @@ public interface PredictionDriftDetectionConfigOrBuilder * map<string, .google.cloud.aiplatform.v1.ThresholdConfig> drift_thresholds = 1; * */ - /* nullable */ com.google.cloud.aiplatform.v1.ThresholdConfig getDriftThresholdsOrDefault( java.lang.String key, @@ -4327,7 +4373,6 @@ com.google.cloud.aiplatform.v1.ThresholdConfig getDriftThresholdsOrDefault( * map<string, .google.cloud.aiplatform.v1.ThresholdConfig> attribution_score_drift_thresholds = 2; * */ - /* nullable */ com.google.cloud.aiplatform.v1.ThresholdConfig getAttributionScoreDriftThresholdsOrDefault( java.lang.String key, @@ -4471,6 +4516,7 @@ private static final class DriftThresholdsDefaultEntryHolder { com.google.cloud.aiplatform.v1.ThresholdConfig.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1.ThresholdConfig> driftThresholds_; @@ -4547,8 +4593,11 @@ public boolean containsDriftThresholds(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.ThresholdConfig getDriftThresholdsOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1.ThresholdConfig + getDriftThresholdsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -4600,6 +4649,7 @@ private static final class AttributionScoreDriftThresholdsDefaultEntryHolder { com.google.cloud.aiplatform.v1.ThresholdConfig.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1.ThresholdConfig> attributionScoreDriftThresholds_; @@ -4673,9 +4723,11 @@ public boolean containsAttributionScoreDriftThresholds(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.ThresholdConfig + public /* nullable */ com.google.cloud.aiplatform.v1.ThresholdConfig getAttributionScoreDriftThresholdsOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -4761,7 +4813,9 @@ public com.google.cloud.aiplatform.v1.ThresholdConfig getDefaultDriftThreshold() @java.lang.Override public com.google.cloud.aiplatform.v1.ThresholdConfigOrBuilder getDefaultDriftThresholdOrBuilder() { - return getDefaultDriftThreshold(); + return defaultDriftThreshold_ == null + ? com.google.cloud.aiplatform.v1.ThresholdConfig.getDefaultInstance() + : defaultDriftThreshold_; } private byte memoizedIsInitialized = -1; @@ -5068,12 +5122,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; internalGetMutableDriftThresholds().clear(); internalGetMutableAttributionScoreDriftThresholds().clear(); - if (defaultDriftThresholdBuilder_ == null) { - defaultDriftThreshold_ = null; - } else { - defaultDriftThreshold_ = null; + defaultDriftThreshold_ = null; + if (defaultDriftThresholdBuilder_ != null) { + defaultDriftThresholdBuilder_.dispose(); defaultDriftThresholdBuilder_ = null; } return this; @@ -5113,20 +5167,34 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig .PredictionDriftDetectionConfig(this); - int from_bitField0_ = bitField0_; - result.driftThresholds_ = internalGetDriftThresholds(); - result.driftThresholds_.makeImmutable(); - result.attributionScoreDriftThresholds_ = internalGetAttributionScoreDriftThresholds(); - result.attributionScoreDriftThresholds_.makeImmutable(); - if (defaultDriftThresholdBuilder_ == null) { - result.defaultDriftThreshold_ = defaultDriftThreshold_; - } else { - result.defaultDriftThreshold_ = defaultDriftThresholdBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.driftThresholds_ = internalGetDriftThresholds(); + result.driftThresholds_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.attributionScoreDriftThresholds_ = internalGetAttributionScoreDriftThresholds(); + result.attributionScoreDriftThresholds_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.defaultDriftThreshold_ = + defaultDriftThresholdBuilder_ == null + ? defaultDriftThreshold_ + : defaultDriftThresholdBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -5186,8 +5254,10 @@ public Builder mergeFrom( == com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig .PredictionDriftDetectionConfig.getDefaultInstance()) return this; internalGetMutableDriftThresholds().mergeFrom(other.internalGetDriftThresholds()); + bitField0_ |= 0x00000001; internalGetMutableAttributionScoreDriftThresholds() .mergeFrom(other.internalGetAttributionScoreDriftThresholds()); + bitField0_ |= 0x00000002; if (other.hasDefaultDriftThreshold()) { mergeDefaultDriftThreshold(other.getDefaultDriftThreshold()); } @@ -5228,6 +5298,7 @@ public Builder mergeFrom( internalGetMutableDriftThresholds() .getMutableMap() .put(driftThresholds__.getKey(), driftThresholds__.getValue()); + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -5244,13 +5315,14 @@ public Builder mergeFrom( .put( attributionScoreDriftThresholds__.getKey(), attributionScoreDriftThresholds__.getValue()); + bitField0_ |= 0x00000002; break; } // case 18 case 42: { input.readMessage( getDefaultDriftThresholdFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 42 default: @@ -5289,8 +5361,6 @@ public Builder mergeFrom( private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1.ThresholdConfig> internalGetMutableDriftThresholds() { - onChanged(); - ; if (driftThresholds_ == null) { driftThresholds_ = com.google.protobuf.MapField.newMapField( @@ -5299,6 +5369,8 @@ public Builder mergeFrom( if (!driftThresholds_.isMutable()) { driftThresholds_ = driftThresholds_.copy(); } + bitField0_ |= 0x00000001; + onChanged(); return driftThresholds_; } @@ -5364,8 +5436,11 @@ public boolean containsDriftThresholds(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.ThresholdConfig getDriftThresholdsOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1.ThresholdConfig + getDriftThresholdsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -5401,6 +5476,7 @@ public com.google.cloud.aiplatform.v1.ThresholdConfig getDriftThresholdsOrThrow( } public Builder clearDriftThresholds() { + bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableDriftThresholds().getMutableMap().clear(); return this; } @@ -5428,6 +5504,7 @@ public Builder removeDriftThresholds(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableDriftThresholds() { + bitField0_ |= 0x00000001; return internalGetMutableDriftThresholds().getMutableMap(); } /** @@ -5451,8 +5528,8 @@ public Builder putDriftThresholds( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableDriftThresholds().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; return this; } /** @@ -5471,6 +5548,7 @@ public Builder putDriftThresholds( public Builder putAllDriftThresholds( java.util.Map values) { internalGetMutableDriftThresholds().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; return this; } @@ -5491,8 +5569,6 @@ public Builder putAllDriftThresholds( private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1.ThresholdConfig> internalGetMutableAttributionScoreDriftThresholds() { - onChanged(); - ; if (attributionScoreDriftThresholds_ == null) { attributionScoreDriftThresholds_ = com.google.protobuf.MapField.newMapField( @@ -5501,6 +5577,8 @@ public Builder putAllDriftThresholds( if (!attributionScoreDriftThresholds_.isMutable()) { attributionScoreDriftThresholds_ = attributionScoreDriftThresholds_.copy(); } + bitField0_ |= 0x00000002; + onChanged(); return attributionScoreDriftThresholds_; } @@ -5563,9 +5641,11 @@ public boolean containsAttributionScoreDriftThresholds(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.ThresholdConfig + public /* nullable */ com.google.cloud.aiplatform.v1.ThresholdConfig getAttributionScoreDriftThresholdsOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.ThresholdConfig defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -5600,6 +5680,7 @@ public boolean containsAttributionScoreDriftThresholds(java.lang.String key) { } public Builder clearAttributionScoreDriftThresholds() { + bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableAttributionScoreDriftThresholds().getMutableMap().clear(); return this; } @@ -5626,6 +5707,7 @@ public Builder removeAttributionScoreDriftThresholds(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableAttributionScoreDriftThresholds() { + bitField0_ |= 0x00000002; return internalGetMutableAttributionScoreDriftThresholds().getMutableMap(); } /** @@ -5648,8 +5730,8 @@ public Builder putAttributionScoreDriftThresholds( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAttributionScoreDriftThresholds().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; return this; } /** @@ -5667,6 +5749,7 @@ public Builder putAttributionScoreDriftThresholds( public Builder putAllAttributionScoreDriftThresholds( java.util.Map values) { internalGetMutableAttributionScoreDriftThresholds().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; return this; } @@ -5690,7 +5773,7 @@ public Builder putAllAttributionScoreDriftThresholds( * @return Whether the defaultDriftThreshold field is set. */ public boolean hasDefaultDriftThreshold() { - return defaultDriftThresholdBuilder_ != null || defaultDriftThreshold_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -5732,11 +5815,11 @@ public Builder setDefaultDriftThreshold( throw new NullPointerException(); } defaultDriftThreshold_ = value; - onChanged(); } else { defaultDriftThresholdBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -5754,11 +5837,11 @@ public Builder setDefaultDriftThreshold( com.google.cloud.aiplatform.v1.ThresholdConfig.Builder builderForValue) { if (defaultDriftThresholdBuilder_ == null) { defaultDriftThreshold_ = builderForValue.build(); - onChanged(); } else { defaultDriftThresholdBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -5775,19 +5858,19 @@ public Builder setDefaultDriftThreshold( public Builder mergeDefaultDriftThreshold( com.google.cloud.aiplatform.v1.ThresholdConfig value) { if (defaultDriftThresholdBuilder_ == null) { - if (defaultDriftThreshold_ != null) { - defaultDriftThreshold_ = - com.google.cloud.aiplatform.v1.ThresholdConfig.newBuilder(defaultDriftThreshold_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && defaultDriftThreshold_ != null + && defaultDriftThreshold_ + != com.google.cloud.aiplatform.v1.ThresholdConfig.getDefaultInstance()) { + getDefaultDriftThresholdBuilder().mergeFrom(value); } else { defaultDriftThreshold_ = value; } - onChanged(); } else { defaultDriftThresholdBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -5802,14 +5885,13 @@ public Builder mergeDefaultDriftThreshold( * .google.cloud.aiplatform.v1.ThresholdConfig default_drift_threshold = 5; */ public Builder clearDefaultDriftThreshold() { - if (defaultDriftThresholdBuilder_ == null) { - defaultDriftThreshold_ = null; - onChanged(); - } else { - defaultDriftThreshold_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + defaultDriftThreshold_ = null; + if (defaultDriftThresholdBuilder_ != null) { + defaultDriftThresholdBuilder_.dispose(); defaultDriftThresholdBuilder_ = null; } - + onChanged(); return this; } /** @@ -5825,7 +5907,7 @@ public Builder clearDefaultDriftThreshold() { */ public com.google.cloud.aiplatform.v1.ThresholdConfig.Builder getDefaultDriftThresholdBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getDefaultDriftThresholdFieldBuilder().getBuilder(); } @@ -6545,7 +6627,7 @@ public com.google.cloud.aiplatform.v1.BigQueryDestinationOrBuilder getBigqueryOr } public static final int PREDICTION_FORMAT_FIELD_NUMBER = 1; - private int predictionFormat_; + private int predictionFormat_ = 0; /** * * @@ -6580,12 +6662,11 @@ public int getPredictionFormatValue() { public com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig .ExplanationBaseline.PredictionFormat getPredictionFormat() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig .ExplanationBaseline.PredictionFormat result = com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig - .ExplanationBaseline.PredictionFormat.valueOf(predictionFormat_); + .ExplanationBaseline.PredictionFormat.forNumber(predictionFormat_); return result == null ? com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig .ExplanationBaseline.PredictionFormat.UNRECOGNIZED @@ -6874,6 +6955,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (gcsBuilder_ != null) { gcsBuilder_.clear(); } @@ -6881,7 +6963,6 @@ public Builder clear() { bigqueryBuilder_.clear(); } predictionFormat_ = 0; - destinationCase_ = 0; destination_ = null; return this; @@ -6923,26 +7004,38 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig .ExplanationConfig.ExplanationBaseline(this); - if (destinationCase_ == 2) { - if (gcsBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = gcsBuilder_.build(); - } - } - if (destinationCase_ == 3) { - if (bigqueryBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = bigqueryBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - result.predictionFormat_ = predictionFormat_; - result.destinationCase_ = destinationCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.predictionFormat_ = predictionFormat_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline + result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + if (destinationCase_ == 2 && gcsBuilder_ != null) { + result.destination_ = gcsBuilder_.build(); + } + if (destinationCase_ == 3 && bigqueryBuilder_ != null) { + result.destination_ = bigqueryBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -7049,7 +7142,7 @@ public Builder mergeFrom( case 8: { predictionFormat_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 8 case 18: @@ -7095,6 +7188,8 @@ public Builder clearDestination() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GcsDestination, com.google.cloud.aiplatform.v1.GcsDestination.Builder, @@ -7302,7 +7397,6 @@ public com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder getGcsOrBuilder() } destinationCase_ = 2; onChanged(); - ; return gcsBuilder_; } @@ -7514,7 +7608,6 @@ public com.google.cloud.aiplatform.v1.BigQueryDestinationOrBuilder getBigqueryOr } destinationCase_ = 3; onChanged(); - ; return bigqueryBuilder_; } @@ -7551,8 +7644,8 @@ public int getPredictionFormatValue() { * @return This builder for chaining. */ public Builder setPredictionFormatValue(int value) { - predictionFormat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -7573,12 +7666,11 @@ public Builder setPredictionFormatValue(int value) { public com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig .ExplanationBaseline.PredictionFormat getPredictionFormat() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig .ExplanationBaseline.PredictionFormat result = com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig - .ExplanationBaseline.PredictionFormat.valueOf(predictionFormat_); + .ExplanationBaseline.PredictionFormat.forNumber(predictionFormat_); return result == null ? com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig .ExplanationBaseline.PredictionFormat.UNRECOGNIZED @@ -7605,7 +7697,7 @@ public Builder setPredictionFormat( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; predictionFormat_ = value.getNumber(); onChanged(); return this; @@ -7624,7 +7716,7 @@ public Builder setPredictionFormat( * @return This builder for chaining. */ public Builder clearPredictionFormat() { - + bitField0_ = (bitField0_ & ~0x00000004); predictionFormat_ = 0; onChanged(); return this; @@ -7703,7 +7795,7 @@ public com.google.protobuf.Parser getParserForType() { } public static final int ENABLE_FEATURE_ATTRIBUTES_FIELD_NUMBER = 1; - private boolean enableFeatureAttributes_; + private boolean enableFeatureAttributes_ = false; /** * * @@ -7780,7 +7872,10 @@ public boolean hasExplanationBaseline() { public com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig .ExplanationBaselineOrBuilder getExplanationBaselineOrBuilder() { - return getExplanationBaseline(); + return explanationBaseline_ == null + ? com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.getDefaultInstance() + : explanationBaseline_; } private byte memoizedIsInitialized = -1; @@ -8011,12 +8106,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; enableFeatureAttributes_ = false; - - if (explanationBaselineBuilder_ == null) { - explanationBaseline_ = null; - } else { - explanationBaseline_ = null; + explanationBaseline_ = null; + if (explanationBaselineBuilder_ != null) { + explanationBaselineBuilder_.dispose(); explanationBaselineBuilder_ = null; } return this; @@ -8052,16 +8146,27 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig result = new com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig( this); - result.enableFeatureAttributes_ = enableFeatureAttributes_; - if (explanationBaselineBuilder_ == null) { - result.explanationBaseline_ = explanationBaseline_; - } else { - result.explanationBaseline_ = explanationBaselineBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableFeatureAttributes_ = enableFeatureAttributes_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.explanationBaseline_ = + explanationBaselineBuilder_ == null + ? explanationBaseline_ + : explanationBaselineBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -8151,14 +8256,14 @@ public Builder mergeFrom( case 8: { enableFeatureAttributes_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getExplanationBaselineFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -8178,6 +8283,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean enableFeatureAttributes_; /** * @@ -8213,6 +8320,7 @@ public boolean getEnableFeatureAttributes() { public Builder setEnableFeatureAttributes(boolean value) { enableFeatureAttributes_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -8230,7 +8338,7 @@ public Builder setEnableFeatureAttributes(boolean value) { * @return This builder for chaining. */ public Builder clearEnableFeatureAttributes() { - + bitField0_ = (bitField0_ & ~0x00000001); enableFeatureAttributes_ = false; onChanged(); return this; @@ -8261,7 +8369,7 @@ public Builder clearEnableFeatureAttributes() { * @return Whether the explanationBaseline field is set. */ public boolean hasExplanationBaseline() { - return explanationBaselineBuilder_ != null || explanationBaseline_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -8308,11 +8416,11 @@ public Builder setExplanationBaseline( throw new NullPointerException(); } explanationBaseline_ = value; - onChanged(); } else { explanationBaselineBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -8332,11 +8440,11 @@ public Builder setExplanationBaseline( builderForValue) { if (explanationBaselineBuilder_ == null) { explanationBaseline_ = builderForValue.build(); - onChanged(); } else { explanationBaselineBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -8355,20 +8463,20 @@ public Builder mergeExplanationBaseline( .ExplanationBaseline value) { if (explanationBaselineBuilder_ == null) { - if (explanationBaseline_ != null) { - explanationBaseline_ = - com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig - .ExplanationBaseline.newBuilder(explanationBaseline_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && explanationBaseline_ != null + && explanationBaseline_ + != com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.getDefaultInstance()) { + getExplanationBaselineBuilder().mergeFrom(value); } else { explanationBaseline_ = value; } - onChanged(); } else { explanationBaselineBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -8383,14 +8491,13 @@ public Builder mergeExplanationBaseline( * */ public Builder clearExplanationBaseline() { - if (explanationBaselineBuilder_ == null) { - explanationBaseline_ = null; - onChanged(); - } else { - explanationBaseline_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + explanationBaseline_ = null; + if (explanationBaselineBuilder_ != null) { + explanationBaselineBuilder_.dispose(); explanationBaselineBuilder_ = null; } - + onChanged(); return this; } /** @@ -8407,7 +8514,7 @@ public Builder clearExplanationBaseline() { public com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig .ExplanationBaseline.Builder getExplanationBaselineBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getExplanationBaselineFieldBuilder().getBuilder(); } @@ -8595,7 +8702,10 @@ public boolean hasTrainingDataset() { @java.lang.Override public com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDatasetOrBuilder getTrainingDatasetOrBuilder() { - return getTrainingDataset(); + return trainingDataset_ == null + ? com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + .getDefaultInstance() + : trainingDataset_; } public static final int TRAINING_PREDICTION_SKEW_DETECTION_CONFIG_FIELD_NUMBER = 2; @@ -8656,7 +8766,10 @@ public boolean hasTrainingPredictionSkewDetectionConfig() { public com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig .TrainingPredictionSkewDetectionConfigOrBuilder getTrainingPredictionSkewDetectionConfigOrBuilder() { - return getTrainingPredictionSkewDetectionConfig(); + return trainingPredictionSkewDetectionConfig_ == null + ? com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig.getDefaultInstance() + : trainingPredictionSkewDetectionConfig_; } public static final int PREDICTION_DRIFT_DETECTION_CONFIG_FIELD_NUMBER = 3; @@ -8717,7 +8830,10 @@ public boolean hasPredictionDriftDetectionConfig() { public com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig .PredictionDriftDetectionConfigOrBuilder getPredictionDriftDetectionConfigOrBuilder() { - return getPredictionDriftDetectionConfig(); + return predictionDriftDetectionConfig_ == null + ? com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig.getDefaultInstance() + : predictionDriftDetectionConfig_; } public static final int EXPLANATION_CONFIG_FIELD_NUMBER = 5; @@ -8775,7 +8891,10 @@ public boolean hasExplanationConfig() { @java.lang.Override public com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfigOrBuilder getExplanationConfigOrBuilder() { - return getExplanationConfig(); + return explanationConfig_ == null + ? com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + .getDefaultInstance() + : explanationConfig_; } private byte memoizedIsInitialized = -1; @@ -9032,28 +9151,25 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (trainingDatasetBuilder_ == null) { - trainingDataset_ = null; - } else { - trainingDataset_ = null; + bitField0_ = 0; + trainingDataset_ = null; + if (trainingDatasetBuilder_ != null) { + trainingDatasetBuilder_.dispose(); trainingDatasetBuilder_ = null; } - if (trainingPredictionSkewDetectionConfigBuilder_ == null) { - trainingPredictionSkewDetectionConfig_ = null; - } else { - trainingPredictionSkewDetectionConfig_ = null; + trainingPredictionSkewDetectionConfig_ = null; + if (trainingPredictionSkewDetectionConfigBuilder_ != null) { + trainingPredictionSkewDetectionConfigBuilder_.dispose(); trainingPredictionSkewDetectionConfigBuilder_ = null; } - if (predictionDriftDetectionConfigBuilder_ == null) { - predictionDriftDetectionConfig_ = null; - } else { - predictionDriftDetectionConfig_ = null; + predictionDriftDetectionConfig_ = null; + if (predictionDriftDetectionConfigBuilder_ != null) { + predictionDriftDetectionConfigBuilder_.dispose(); predictionDriftDetectionConfigBuilder_ = null; } - if (explanationConfigBuilder_ == null) { - explanationConfig_ = null; - } else { - explanationConfig_ = null; + explanationConfig_ = null; + if (explanationConfigBuilder_ != null) { + explanationConfigBuilder_.dispose(); explanationConfigBuilder_ = null; } return this; @@ -9084,29 +9200,38 @@ public com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig build() { public com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig buildPartial() { com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig result = new com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig(this); - if (trainingDatasetBuilder_ == null) { - result.trainingDataset_ = trainingDataset_; - } else { - result.trainingDataset_ = trainingDatasetBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (trainingPredictionSkewDetectionConfigBuilder_ == null) { - result.trainingPredictionSkewDetectionConfig_ = trainingPredictionSkewDetectionConfig_; - } else { + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trainingDataset_ = + trainingDatasetBuilder_ == null ? trainingDataset_ : trainingDatasetBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { result.trainingPredictionSkewDetectionConfig_ = - trainingPredictionSkewDetectionConfigBuilder_.build(); + trainingPredictionSkewDetectionConfigBuilder_ == null + ? trainingPredictionSkewDetectionConfig_ + : trainingPredictionSkewDetectionConfigBuilder_.build(); } - if (predictionDriftDetectionConfigBuilder_ == null) { - result.predictionDriftDetectionConfig_ = predictionDriftDetectionConfig_; - } else { - result.predictionDriftDetectionConfig_ = predictionDriftDetectionConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.predictionDriftDetectionConfig_ = + predictionDriftDetectionConfigBuilder_ == null + ? predictionDriftDetectionConfig_ + : predictionDriftDetectionConfigBuilder_.build(); } - if (explanationConfigBuilder_ == null) { - result.explanationConfig_ = explanationConfig_; - } else { - result.explanationConfig_ = explanationConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.explanationConfig_ = + explanationConfigBuilder_ == null + ? explanationConfig_ + : explanationConfigBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -9198,7 +9323,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getTrainingDatasetFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -9206,7 +9331,7 @@ public Builder mergeFrom( input.readMessage( getTrainingPredictionSkewDetectionConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -9214,14 +9339,14 @@ public Builder mergeFrom( input.readMessage( getPredictionDriftDetectionConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 42: { input.readMessage( getExplanationConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 42 default: @@ -9241,6 +9366,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset trainingDataset_; private com.google.protobuf.SingleFieldBuilderV3< @@ -9263,7 +9390,7 @@ public Builder mergeFrom( * @return Whether the trainingDataset field is set. */ public boolean hasTrainingDataset() { - return trainingDatasetBuilder_ != null || trainingDataset_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -9309,11 +9436,11 @@ public Builder setTrainingDataset( throw new NullPointerException(); } trainingDataset_ = value; - onChanged(); } else { trainingDatasetBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -9333,11 +9460,11 @@ public Builder setTrainingDataset( builderForValue) { if (trainingDatasetBuilder_ == null) { trainingDataset_ = builderForValue.build(); - onChanged(); } else { trainingDatasetBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -9355,20 +9482,20 @@ public Builder setTrainingDataset( public Builder mergeTrainingDataset( com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset value) { if (trainingDatasetBuilder_ == null) { - if (trainingDataset_ != null) { - trainingDataset_ = - com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - .newBuilder(trainingDataset_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && trainingDataset_ != null + && trainingDataset_ + != com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + .getDefaultInstance()) { + getTrainingDatasetBuilder().mergeFrom(value); } else { trainingDataset_ = value; } - onChanged(); } else { trainingDatasetBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -9384,14 +9511,13 @@ public Builder mergeTrainingDataset( * */ public Builder clearTrainingDataset() { - if (trainingDatasetBuilder_ == null) { - trainingDataset_ = null; - onChanged(); - } else { - trainingDataset_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + trainingDataset_ = null; + if (trainingDatasetBuilder_ != null) { + trainingDatasetBuilder_.dispose(); trainingDatasetBuilder_ = null; } - + onChanged(); return this; } /** @@ -9408,7 +9534,7 @@ public Builder clearTrainingDataset() { */ public com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.Builder getTrainingDatasetBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getTrainingDatasetFieldBuilder().getBuilder(); } @@ -9491,8 +9617,7 @@ public Builder clearTrainingDataset() { * @return Whether the trainingPredictionSkewDetectionConfig field is set. */ public boolean hasTrainingPredictionSkewDetectionConfig() { - return trainingPredictionSkewDetectionConfigBuilder_ != null - || trainingPredictionSkewDetectionConfig_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -9539,11 +9664,11 @@ public Builder setTrainingPredictionSkewDetectionConfig( throw new NullPointerException(); } trainingPredictionSkewDetectionConfig_ = value; - onChanged(); } else { trainingPredictionSkewDetectionConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -9563,11 +9688,11 @@ public Builder setTrainingPredictionSkewDetectionConfig( builderForValue) { if (trainingPredictionSkewDetectionConfigBuilder_ == null) { trainingPredictionSkewDetectionConfig_ = builderForValue.build(); - onChanged(); } else { trainingPredictionSkewDetectionConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -9586,21 +9711,20 @@ public Builder mergeTrainingPredictionSkewDetectionConfig( .TrainingPredictionSkewDetectionConfig value) { if (trainingPredictionSkewDetectionConfigBuilder_ == null) { - if (trainingPredictionSkewDetectionConfig_ != null) { - trainingPredictionSkewDetectionConfig_ = - com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - .TrainingPredictionSkewDetectionConfig.newBuilder( - trainingPredictionSkewDetectionConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && trainingPredictionSkewDetectionConfig_ != null + && trainingPredictionSkewDetectionConfig_ + != com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig.getDefaultInstance()) { + getTrainingPredictionSkewDetectionConfigBuilder().mergeFrom(value); } else { trainingPredictionSkewDetectionConfig_ = value; } - onChanged(); } else { trainingPredictionSkewDetectionConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -9615,14 +9739,13 @@ public Builder mergeTrainingPredictionSkewDetectionConfig( * */ public Builder clearTrainingPredictionSkewDetectionConfig() { - if (trainingPredictionSkewDetectionConfigBuilder_ == null) { - trainingPredictionSkewDetectionConfig_ = null; - onChanged(); - } else { - trainingPredictionSkewDetectionConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + trainingPredictionSkewDetectionConfig_ = null; + if (trainingPredictionSkewDetectionConfigBuilder_ != null) { + trainingPredictionSkewDetectionConfigBuilder_.dispose(); trainingPredictionSkewDetectionConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -9639,7 +9762,7 @@ public Builder clearTrainingPredictionSkewDetectionConfig() { public com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig .TrainingPredictionSkewDetectionConfig.Builder getTrainingPredictionSkewDetectionConfigBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTrainingPredictionSkewDetectionConfigFieldBuilder().getBuilder(); } @@ -9725,8 +9848,7 @@ public Builder clearTrainingPredictionSkewDetectionConfig() { * @return Whether the predictionDriftDetectionConfig field is set. */ public boolean hasPredictionDriftDetectionConfig() { - return predictionDriftDetectionConfigBuilder_ != null - || predictionDriftDetectionConfig_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -9772,11 +9894,11 @@ public Builder setPredictionDriftDetectionConfig( throw new NullPointerException(); } predictionDriftDetectionConfig_ = value; - onChanged(); } else { predictionDriftDetectionConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -9796,11 +9918,11 @@ public Builder setPredictionDriftDetectionConfig( builderForValue) { if (predictionDriftDetectionConfigBuilder_ == null) { predictionDriftDetectionConfig_ = builderForValue.build(); - onChanged(); } else { predictionDriftDetectionConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -9818,20 +9940,20 @@ public Builder mergePredictionDriftDetectionConfig( com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig value) { if (predictionDriftDetectionConfigBuilder_ == null) { - if (predictionDriftDetectionConfig_ != null) { - predictionDriftDetectionConfig_ = - com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig.newBuilder(predictionDriftDetectionConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && predictionDriftDetectionConfig_ != null + && predictionDriftDetectionConfig_ + != com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig.getDefaultInstance()) { + getPredictionDriftDetectionConfigBuilder().mergeFrom(value); } else { predictionDriftDetectionConfig_ = value; } - onChanged(); } else { predictionDriftDetectionConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -9846,14 +9968,13 @@ public Builder mergePredictionDriftDetectionConfig( * */ public Builder clearPredictionDriftDetectionConfig() { - if (predictionDriftDetectionConfigBuilder_ == null) { - predictionDriftDetectionConfig_ = null; - onChanged(); - } else { - predictionDriftDetectionConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + predictionDriftDetectionConfig_ = null; + if (predictionDriftDetectionConfigBuilder_ != null) { + predictionDriftDetectionConfigBuilder_.dispose(); predictionDriftDetectionConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -9870,7 +9991,7 @@ public Builder clearPredictionDriftDetectionConfig() { public com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig .PredictionDriftDetectionConfig.Builder getPredictionDriftDetectionConfigBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getPredictionDriftDetectionConfigFieldBuilder().getBuilder(); } @@ -9953,7 +10074,7 @@ public Builder clearPredictionDriftDetectionConfig() { * @return Whether the explanationConfig field is set. */ public boolean hasExplanationConfig() { - return explanationConfigBuilder_ != null || explanationConfig_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -9997,11 +10118,11 @@ public Builder setExplanationConfig( throw new NullPointerException(); } explanationConfig_ = value; - onChanged(); } else { explanationConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -10020,11 +10141,11 @@ public Builder setExplanationConfig( builderForValue) { if (explanationConfigBuilder_ == null) { explanationConfig_ = builderForValue.build(); - onChanged(); } else { explanationConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -10041,20 +10162,20 @@ public Builder setExplanationConfig( public Builder mergeExplanationConfig( com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig value) { if (explanationConfigBuilder_ == null) { - if (explanationConfig_ != null) { - explanationConfig_ = - com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig - .newBuilder(explanationConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && explanationConfig_ != null + && explanationConfig_ + != com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + .getDefaultInstance()) { + getExplanationConfigBuilder().mergeFrom(value); } else { explanationConfig_ = value; } - onChanged(); } else { explanationConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -10069,14 +10190,13 @@ public Builder mergeExplanationConfig( * */ public Builder clearExplanationConfig() { - if (explanationConfigBuilder_ == null) { - explanationConfig_ = null; - onChanged(); - } else { - explanationConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + explanationConfig_ = null; + if (explanationConfigBuilder_ != null) { + explanationConfigBuilder_.dispose(); explanationConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -10092,7 +10212,7 @@ public Builder clearExplanationConfig() { */ public com.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.Builder getExplanationConfigBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getExplanationConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringStatsAnomalies.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringStatsAnomalies.java index 5621e8c69cd9..58eba1515678 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringStatsAnomalies.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringStatsAnomalies.java @@ -283,7 +283,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int FEATURE_DISPLAY_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object featureDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object featureDisplayName_ = ""; /** * * @@ -376,7 +378,9 @@ public com.google.cloud.aiplatform.v1.ThresholdConfig getThreshold() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ThresholdConfigOrBuilder getThresholdOrBuilder() { - return getThreshold(); + return threshold_ == null + ? com.google.cloud.aiplatform.v1.ThresholdConfig.getDefaultInstance() + : threshold_; } public static final int TRAINING_STATS_FIELD_NUMBER = 4; @@ -424,10 +428,14 @@ public com.google.cloud.aiplatform.v1.FeatureStatsAnomaly getTrainingStats() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.FeatureStatsAnomalyOrBuilder getTrainingStatsOrBuilder() { - return getTrainingStats(); + return trainingStats_ == null + ? com.google.cloud.aiplatform.v1.FeatureStatsAnomaly.getDefaultInstance() + : trainingStats_; } public static final int PREDICTION_STATS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private java.util.List predictionStats_; /** * @@ -773,18 +781,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; featureDisplayName_ = ""; - - if (thresholdBuilder_ == null) { - threshold_ = null; - } else { - threshold_ = null; + threshold_ = null; + if (thresholdBuilder_ != null) { + thresholdBuilder_.dispose(); thresholdBuilder_ = null; } - if (trainingStatsBuilder_ == null) { - trainingStats_ = null; - } else { - trainingStats_ = null; + trainingStats_ = null; + if (trainingStatsBuilder_ != null) { + trainingStatsBuilder_.dispose(); trainingStatsBuilder_ = null; } if (predictionStatsBuilder_ == null) { @@ -793,7 +799,7 @@ public Builder clear() { predictionStats_ = null; predictionStatsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -831,29 +837,42 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies .FeatureHistoricStatsAnomalies(this); - int from_bitField0_ = bitField0_; - result.featureDisplayName_ = featureDisplayName_; - if (thresholdBuilder_ == null) { - result.threshold_ = threshold_; - } else { - result.threshold_ = thresholdBuilder_.build(); - } - if (trainingStatsBuilder_ == null) { - result.trainingStats_ = trainingStats_; - } else { - result.trainingStats_ = trainingStatsBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + result) { if (predictionStatsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { predictionStats_ = java.util.Collections.unmodifiableList(predictionStats_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.predictionStats_ = predictionStats_; } else { result.predictionStats_ = predictionStatsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.featureDisplayName_ = featureDisplayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.threshold_ = thresholdBuilder_ == null ? threshold_ : thresholdBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.trainingStats_ = + trainingStatsBuilder_ == null ? trainingStats_ : trainingStatsBuilder_.build(); + } } @java.lang.Override @@ -915,6 +934,7 @@ public Builder mergeFrom( .FeatureHistoricStatsAnomalies.getDefaultInstance()) return this; if (!other.getFeatureDisplayName().isEmpty()) { featureDisplayName_ = other.featureDisplayName_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasThreshold()) { @@ -927,7 +947,7 @@ public Builder mergeFrom( if (!other.predictionStats_.isEmpty()) { if (predictionStats_.isEmpty()) { predictionStats_ = other.predictionStats_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePredictionStatsIsMutable(); predictionStats_.addAll(other.predictionStats_); @@ -940,7 +960,7 @@ public Builder mergeFrom( predictionStatsBuilder_.dispose(); predictionStatsBuilder_ = null; predictionStats_ = other.predictionStats_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); predictionStatsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPredictionStatsFieldBuilder() @@ -979,19 +999,19 @@ public Builder mergeFrom( case 10: { featureDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: { input.readMessage(getThresholdFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 26 case 34: { input.readMessage(getTrainingStatsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 34 case 42: @@ -1088,8 +1108,8 @@ public Builder setFeatureDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - featureDisplayName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1105,8 +1125,8 @@ public Builder setFeatureDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFeatureDisplayName() { - featureDisplayName_ = getDefaultInstance().getFeatureDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1127,8 +1147,8 @@ public Builder setFeatureDisplayNameBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - featureDisplayName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1151,7 +1171,7 @@ public Builder setFeatureDisplayNameBytes(com.google.protobuf.ByteString value) * @return Whether the threshold field is set. */ public boolean hasThreshold() { - return thresholdBuilder_ != null || threshold_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1188,11 +1208,11 @@ public Builder setThreshold(com.google.cloud.aiplatform.v1.ThresholdConfig value throw new NullPointerException(); } threshold_ = value; - onChanged(); } else { thresholdBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1208,11 +1228,11 @@ public Builder setThreshold( com.google.cloud.aiplatform.v1.ThresholdConfig.Builder builderForValue) { if (thresholdBuilder_ == null) { threshold_ = builderForValue.build(); - onChanged(); } else { thresholdBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1226,19 +1246,19 @@ public Builder setThreshold( */ public Builder mergeThreshold(com.google.cloud.aiplatform.v1.ThresholdConfig value) { if (thresholdBuilder_ == null) { - if (threshold_ != null) { - threshold_ = - com.google.cloud.aiplatform.v1.ThresholdConfig.newBuilder(threshold_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && threshold_ != null + && threshold_ + != com.google.cloud.aiplatform.v1.ThresholdConfig.getDefaultInstance()) { + getThresholdBuilder().mergeFrom(value); } else { threshold_ = value; } - onChanged(); } else { thresholdBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1251,14 +1271,13 @@ public Builder mergeThreshold(com.google.cloud.aiplatform.v1.ThresholdConfig val * .google.cloud.aiplatform.v1.ThresholdConfig threshold = 3; */ public Builder clearThreshold() { - if (thresholdBuilder_ == null) { - threshold_ = null; - onChanged(); - } else { - threshold_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + threshold_ = null; + if (thresholdBuilder_ != null) { + thresholdBuilder_.dispose(); thresholdBuilder_ = null; } - + onChanged(); return this; } /** @@ -1271,7 +1290,7 @@ public Builder clearThreshold() { * .google.cloud.aiplatform.v1.ThresholdConfig threshold = 3; */ public com.google.cloud.aiplatform.v1.ThresholdConfig.Builder getThresholdBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getThresholdFieldBuilder().getBuilder(); } @@ -1337,7 +1356,7 @@ public com.google.cloud.aiplatform.v1.ThresholdConfigOrBuilder getThresholdOrBui * @return Whether the trainingStats field is set. */ public boolean hasTrainingStats() { - return trainingStatsBuilder_ != null || trainingStats_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1374,11 +1393,11 @@ public Builder setTrainingStats(com.google.cloud.aiplatform.v1.FeatureStatsAnoma throw new NullPointerException(); } trainingStats_ = value; - onChanged(); } else { trainingStatsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1394,11 +1413,11 @@ public Builder setTrainingStats( com.google.cloud.aiplatform.v1.FeatureStatsAnomaly.Builder builderForValue) { if (trainingStatsBuilder_ == null) { trainingStats_ = builderForValue.build(); - onChanged(); } else { trainingStatsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1412,19 +1431,19 @@ public Builder setTrainingStats( */ public Builder mergeTrainingStats(com.google.cloud.aiplatform.v1.FeatureStatsAnomaly value) { if (trainingStatsBuilder_ == null) { - if (trainingStats_ != null) { - trainingStats_ = - com.google.cloud.aiplatform.v1.FeatureStatsAnomaly.newBuilder(trainingStats_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && trainingStats_ != null + && trainingStats_ + != com.google.cloud.aiplatform.v1.FeatureStatsAnomaly.getDefaultInstance()) { + getTrainingStatsBuilder().mergeFrom(value); } else { trainingStats_ = value; } - onChanged(); } else { trainingStatsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1437,14 +1456,13 @@ public Builder mergeTrainingStats(com.google.cloud.aiplatform.v1.FeatureStatsAno * .google.cloud.aiplatform.v1.FeatureStatsAnomaly training_stats = 4; */ public Builder clearTrainingStats() { - if (trainingStatsBuilder_ == null) { - trainingStats_ = null; - onChanged(); - } else { - trainingStats_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + trainingStats_ = null; + if (trainingStatsBuilder_ != null) { + trainingStatsBuilder_.dispose(); trainingStatsBuilder_ = null; } - + onChanged(); return this; } /** @@ -1457,7 +1475,7 @@ public Builder clearTrainingStats() { * .google.cloud.aiplatform.v1.FeatureStatsAnomaly training_stats = 4; */ public com.google.cloud.aiplatform.v1.FeatureStatsAnomaly.Builder getTrainingStatsBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getTrainingStatsFieldBuilder().getBuilder(); } @@ -1510,11 +1528,11 @@ public com.google.cloud.aiplatform.v1.FeatureStatsAnomaly.Builder getTrainingSta java.util.Collections.emptyList(); private void ensurePredictionStatsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { predictionStats_ = new java.util.ArrayList( predictionStats_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -1744,7 +1762,7 @@ public Builder addAllPredictionStats( public Builder clearPredictionStats() { if (predictionStatsBuilder_ == null) { predictionStats_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { predictionStatsBuilder_.clear(); @@ -1879,7 +1897,7 @@ public com.google.cloud.aiplatform.v1.FeatureStatsAnomaly.Builder addPredictionS com.google.cloud.aiplatform.v1.FeatureStatsAnomaly.Builder, com.google.cloud.aiplatform.v1.FeatureStatsAnomalyOrBuilder>( predictionStats_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); predictionStats_ = null; @@ -1960,7 +1978,7 @@ public com.google.protobuf.Parser getParserForTyp } public static final int OBJECTIVE_FIELD_NUMBER = 1; - private int objective_; + private int objective_ = 0; /** * * @@ -1989,16 +2007,17 @@ public int getObjectiveValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType getObjective() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType result = - com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.valueOf(objective_); + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.forNumber(objective_); return result == null ? com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.UNRECOGNIZED : result; } public static final int DEPLOYED_MODEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deployedModelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedModelId_ = ""; /** * * @@ -2047,7 +2066,7 @@ public com.google.protobuf.ByteString getDeployedModelIdBytes() { } public static final int ANOMALY_COUNT_FIELD_NUMBER = 3; - private int anomalyCount_; + private int anomalyCount_ = 0; /** * * @@ -2065,6 +2084,8 @@ public int getAnomalyCount() { } public static final int FEATURE_STATS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies .FeatureHistoricStatsAnomalies> @@ -2388,19 +2409,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; objective_ = 0; - deployedModelId_ = ""; - anomalyCount_ = 0; - if (featureStatsBuilder_ == null) { featureStats_ = java.util.Collections.emptyList(); } else { featureStats_ = null; featureStatsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -2429,21 +2448,39 @@ public com.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies build() { public com.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies buildPartial() { com.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies result = new com.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies(this); - int from_bitField0_ = bitField0_; - result.objective_ = objective_; - result.deployedModelId_ = deployedModelId_; - result.anomalyCount_ = anomalyCount_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies result) { if (featureStatsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { featureStats_ = java.util.Collections.unmodifiableList(featureStats_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.featureStats_ = featureStats_; } else { result.featureStats_ = featureStatsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.objective_ = objective_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedModelId_ = deployedModelId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.anomalyCount_ = anomalyCount_; + } } @java.lang.Override @@ -2498,6 +2535,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelMonitoringStatsAnom } if (!other.getDeployedModelId().isEmpty()) { deployedModelId_ = other.deployedModelId_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getAnomalyCount() != 0) { @@ -2507,7 +2545,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelMonitoringStatsAnom if (!other.featureStats_.isEmpty()) { if (featureStats_.isEmpty()) { featureStats_ = other.featureStats_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureFeatureStatsIsMutable(); featureStats_.addAll(other.featureStats_); @@ -2520,7 +2558,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelMonitoringStatsAnom featureStatsBuilder_.dispose(); featureStatsBuilder_ = null; featureStats_ = other.featureStats_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); featureStatsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFeatureStatsFieldBuilder() @@ -2559,19 +2597,19 @@ public Builder mergeFrom( case 8: { objective_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { deployedModelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { anomalyCount_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: @@ -2641,8 +2679,8 @@ public int getObjectiveValue() { * @return This builder for chaining. */ public Builder setObjectiveValue(int value) { - objective_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2660,9 +2698,9 @@ public Builder setObjectiveValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType getObjective() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType result = - com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.valueOf(objective_); + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.forNumber( + objective_); return result == null ? com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.UNRECOGNIZED : result; @@ -2685,7 +2723,7 @@ public Builder setObjective( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; objective_ = value.getNumber(); onChanged(); return this; @@ -2703,7 +2741,7 @@ public Builder setObjective( * @return This builder for chaining. */ public Builder clearObjective() { - + bitField0_ = (bitField0_ & ~0x00000001); objective_ = 0; onChanged(); return this; @@ -2770,8 +2808,8 @@ public Builder setDeployedModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2787,8 +2825,8 @@ public Builder setDeployedModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedModelId() { - deployedModelId_ = getDefaultInstance().getDeployedModelId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2809,8 +2847,8 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2846,6 +2884,7 @@ public int getAnomalyCount() { public Builder setAnomalyCount(int value) { anomalyCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2861,7 +2900,7 @@ public Builder setAnomalyCount(int value) { * @return This builder for chaining. */ public Builder clearAnomalyCount() { - + bitField0_ = (bitField0_ & ~0x00000004); anomalyCount_ = 0; onChanged(); return this; @@ -2873,12 +2912,12 @@ public Builder clearAnomalyCount() { featureStats_ = java.util.Collections.emptyList(); private void ensureFeatureStatsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { featureStats_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies .FeatureHistoricStatsAnomalies>(featureStats_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -3144,7 +3183,7 @@ public Builder addAllFeatureStats( public Builder clearFeatureStats() { if (featureStatsBuilder_ == null) { featureStats_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { featureStatsBuilder_.clear(); @@ -3304,7 +3343,7 @@ public Builder removeFeatureStats(int index) { .FeatureHistoricStatsAnomalies.Builder, com.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies .FeatureHistoricStatsAnomaliesOrBuilder>( - featureStats_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + featureStats_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); featureStats_ = null; } return featureStatsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java index ace28cfc1b8a..03ba567425e0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java @@ -1512,7 +1512,6 @@ com.google.cloud.aiplatform.v1.Model.DeploymentResourcesType getSupportedDeploym * * map<string, string> labels = 17; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelSourceInfo.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelSourceInfo.java index 96f3aad76856..71190307662b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelSourceInfo.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelSourceInfo.java @@ -249,7 +249,7 @@ private ModelSourceType(int value) { } public static final int SOURCE_TYPE_FIELD_NUMBER = 1; - private int sourceType_; + private int sourceType_ = 0; /** * * @@ -278,9 +278,8 @@ public int getSourceTypeValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ModelSourceInfo.ModelSourceType getSourceType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ModelSourceInfo.ModelSourceType result = - com.google.cloud.aiplatform.v1.ModelSourceInfo.ModelSourceType.valueOf(sourceType_); + com.google.cloud.aiplatform.v1.ModelSourceInfo.ModelSourceType.forNumber(sourceType_); return result == null ? com.google.cloud.aiplatform.v1.ModelSourceInfo.ModelSourceType.UNRECOGNIZED : result; @@ -489,8 +488,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; sourceType_ = 0; - return this; } @@ -518,11 +517,20 @@ public com.google.cloud.aiplatform.v1.ModelSourceInfo build() { public com.google.cloud.aiplatform.v1.ModelSourceInfo buildPartial() { com.google.cloud.aiplatform.v1.ModelSourceInfo result = new com.google.cloud.aiplatform.v1.ModelSourceInfo(this); - result.sourceType_ = sourceType_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ModelSourceInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceType_ = sourceType_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -600,7 +608,7 @@ public Builder mergeFrom( case 8: { sourceType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -620,6 +628,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int sourceType_ = 0; /** * @@ -649,8 +659,8 @@ public int getSourceTypeValue() { * @return This builder for chaining. */ public Builder setSourceTypeValue(int value) { - sourceType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -667,9 +677,8 @@ public Builder setSourceTypeValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ModelSourceInfo.ModelSourceType getSourceType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ModelSourceInfo.ModelSourceType result = - com.google.cloud.aiplatform.v1.ModelSourceInfo.ModelSourceType.valueOf(sourceType_); + com.google.cloud.aiplatform.v1.ModelSourceInfo.ModelSourceType.forNumber(sourceType_); return result == null ? com.google.cloud.aiplatform.v1.ModelSourceInfo.ModelSourceType.UNRECOGNIZED : result; @@ -691,7 +700,7 @@ public Builder setSourceType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; sourceType_ = value.getNumber(); onChanged(); return this; @@ -708,7 +717,7 @@ public Builder setSourceType( * @return This builder for chaining. */ public Builder clearSourceType() { - + bitField0_ = (bitField0_ & ~0x00000001); sourceType_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexOperationMetadata.java index 2501e4e0295f..3258f85b0a93 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexOperationMetadata.java @@ -116,11 +116,15 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } public static final int DEPLOYED_INDEX_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deployedIndexId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedIndexId_ = ""; /** * * @@ -383,14 +387,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } deployedIndexId_ = ""; - return this; } @@ -420,16 +423,25 @@ public com.google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata build public com.google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata result = new com.google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.deployedIndexId_ = deployedIndexId_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedIndexId_ = deployedIndexId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -484,6 +496,7 @@ public Builder mergeFrom( } if (!other.getDeployedIndexId().isEmpty()) { deployedIndexId_ = other.deployedIndexId_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -515,13 +528,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { deployedIndexId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -541,6 +554,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -559,7 +574,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -597,11 +612,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -617,11 +632,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -636,19 +651,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -661,14 +676,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -682,7 +696,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } @@ -792,8 +806,8 @@ public Builder setDeployedIndexId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedIndexId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -809,8 +823,8 @@ public Builder setDeployedIndexId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedIndexId() { - deployedIndexId_ = getDefaultInstance().getDeployedIndexId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -831,8 +845,8 @@ public Builder setDeployedIndexIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedIndexId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexRequest.java index 9f5f7296c9a2..1f404e6a8cf7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INDEX_ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object indexEndpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object indexEndpoint_ = ""; /** * * @@ -182,7 +184,9 @@ public com.google.cloud.aiplatform.v1.DeployedIndex getDeployedIndex() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.DeployedIndexOrBuilder getDeployedIndexOrBuilder() { - return getDeployedIndex(); + return deployedIndex_ == null + ? com.google.cloud.aiplatform.v1.DeployedIndex.getDefaultInstance() + : deployedIndex_; } private byte memoizedIsInitialized = -1; @@ -398,12 +402,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; indexEndpoint_ = ""; - - if (deployedIndexBuilder_ == null) { - deployedIndex_ = null; - } else { - deployedIndex_ = null; + deployedIndex_ = null; + if (deployedIndexBuilder_ != null) { + deployedIndexBuilder_.dispose(); deployedIndexBuilder_ = null; } return this; @@ -433,16 +436,24 @@ public com.google.cloud.aiplatform.v1.MutateDeployedIndexRequest build() { public com.google.cloud.aiplatform.v1.MutateDeployedIndexRequest buildPartial() { com.google.cloud.aiplatform.v1.MutateDeployedIndexRequest result = new com.google.cloud.aiplatform.v1.MutateDeployedIndexRequest(this); - result.indexEndpoint_ = indexEndpoint_; - if (deployedIndexBuilder_ == null) { - result.deployedIndex_ = deployedIndex_; - } else { - result.deployedIndex_ = deployedIndexBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.MutateDeployedIndexRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.indexEndpoint_ = indexEndpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedIndex_ = + deployedIndexBuilder_ == null ? deployedIndex_ : deployedIndexBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -491,6 +502,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.MutateDeployedIndexReque return this; if (!other.getIndexEndpoint().isEmpty()) { indexEndpoint_ = other.indexEndpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasDeployedIndex()) { @@ -525,13 +537,13 @@ public Builder mergeFrom( case 10: { indexEndpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getDeployedIndexFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -551,6 +563,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object indexEndpoint_ = ""; /** * @@ -624,8 +638,8 @@ public Builder setIndexEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - indexEndpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -645,8 +659,8 @@ public Builder setIndexEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearIndexEndpoint() { - indexEndpoint_ = getDefaultInstance().getIndexEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -671,8 +685,8 @@ public Builder setIndexEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - indexEndpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -699,7 +713,7 @@ public Builder setIndexEndpointBytes(com.google.protobuf.ByteString value) { * @return Whether the deployedIndex field is set. */ public boolean hasDeployedIndex() { - return deployedIndexBuilder_ != null || deployedIndex_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -744,11 +758,11 @@ public Builder setDeployedIndex(com.google.cloud.aiplatform.v1.DeployedIndex val throw new NullPointerException(); } deployedIndex_ = value; - onChanged(); } else { deployedIndexBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -768,11 +782,11 @@ public Builder setDeployedIndex( com.google.cloud.aiplatform.v1.DeployedIndex.Builder builderForValue) { if (deployedIndexBuilder_ == null) { deployedIndex_ = builderForValue.build(); - onChanged(); } else { deployedIndexBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -790,19 +804,19 @@ public Builder setDeployedIndex( */ public Builder mergeDeployedIndex(com.google.cloud.aiplatform.v1.DeployedIndex value) { if (deployedIndexBuilder_ == null) { - if (deployedIndex_ != null) { - deployedIndex_ = - com.google.cloud.aiplatform.v1.DeployedIndex.newBuilder(deployedIndex_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && deployedIndex_ != null + && deployedIndex_ + != com.google.cloud.aiplatform.v1.DeployedIndex.getDefaultInstance()) { + getDeployedIndexBuilder().mergeFrom(value); } else { deployedIndex_ = value; } - onChanged(); } else { deployedIndexBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -819,14 +833,13 @@ public Builder mergeDeployedIndex(com.google.cloud.aiplatform.v1.DeployedIndex v * */ public Builder clearDeployedIndex() { - if (deployedIndexBuilder_ == null) { - deployedIndex_ = null; - onChanged(); - } else { - deployedIndex_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + deployedIndex_ = null; + if (deployedIndexBuilder_ != null) { + deployedIndexBuilder_.dispose(); deployedIndexBuilder_ = null; } - + onChanged(); return this; } /** @@ -843,7 +856,7 @@ public Builder clearDeployedIndex() { * */ public com.google.cloud.aiplatform.v1.DeployedIndex.Builder getDeployedIndexBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getDeployedIndexFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexResponse.java index 0caf773583e7..fcf5754ce378 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MutateDeployedIndexResponse.java @@ -111,7 +111,9 @@ public com.google.cloud.aiplatform.v1.DeployedIndex getDeployedIndex() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.DeployedIndexOrBuilder getDeployedIndexOrBuilder() { - return getDeployedIndex(); + return deployedIndex_ == null + ? com.google.cloud.aiplatform.v1.DeployedIndex.getDefaultInstance() + : deployedIndex_; } private byte memoizedIsInitialized = -1; @@ -318,10 +320,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (deployedIndexBuilder_ == null) { - deployedIndex_ = null; - } else { - deployedIndex_ = null; + bitField0_ = 0; + deployedIndex_ = null; + if (deployedIndexBuilder_ != null) { + deployedIndexBuilder_.dispose(); deployedIndexBuilder_ = null; } return this; @@ -351,15 +353,21 @@ public com.google.cloud.aiplatform.v1.MutateDeployedIndexResponse build() { public com.google.cloud.aiplatform.v1.MutateDeployedIndexResponse buildPartial() { com.google.cloud.aiplatform.v1.MutateDeployedIndexResponse result = new com.google.cloud.aiplatform.v1.MutateDeployedIndexResponse(this); - if (deployedIndexBuilder_ == null) { - result.deployedIndex_ = deployedIndex_; - } else { - result.deployedIndex_ = deployedIndexBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.MutateDeployedIndexResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deployedIndex_ = + deployedIndexBuilder_ == null ? deployedIndex_ : deployedIndexBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -438,7 +446,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getDeployedIndexFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -458,6 +466,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.DeployedIndex deployedIndex_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.DeployedIndex, @@ -476,7 +486,7 @@ public Builder mergeFrom( * @return Whether the deployedIndex field is set. */ public boolean hasDeployedIndex() { - return deployedIndexBuilder_ != null || deployedIndex_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -513,11 +523,11 @@ public Builder setDeployedIndex(com.google.cloud.aiplatform.v1.DeployedIndex val throw new NullPointerException(); } deployedIndex_ = value; - onChanged(); } else { deployedIndexBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -533,11 +543,11 @@ public Builder setDeployedIndex( com.google.cloud.aiplatform.v1.DeployedIndex.Builder builderForValue) { if (deployedIndexBuilder_ == null) { deployedIndex_ = builderForValue.build(); - onChanged(); } else { deployedIndexBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -551,19 +561,19 @@ public Builder setDeployedIndex( */ public Builder mergeDeployedIndex(com.google.cloud.aiplatform.v1.DeployedIndex value) { if (deployedIndexBuilder_ == null) { - if (deployedIndex_ != null) { - deployedIndex_ = - com.google.cloud.aiplatform.v1.DeployedIndex.newBuilder(deployedIndex_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && deployedIndex_ != null + && deployedIndex_ + != com.google.cloud.aiplatform.v1.DeployedIndex.getDefaultInstance()) { + getDeployedIndexBuilder().mergeFrom(value); } else { deployedIndex_ = value; } - onChanged(); } else { deployedIndexBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -576,14 +586,13 @@ public Builder mergeDeployedIndex(com.google.cloud.aiplatform.v1.DeployedIndex v * .google.cloud.aiplatform.v1.DeployedIndex deployed_index = 1; */ public Builder clearDeployedIndex() { - if (deployedIndexBuilder_ == null) { - deployedIndex_ = null; - onChanged(); - } else { - deployedIndex_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + deployedIndex_ = null; + if (deployedIndexBuilder_ != null) { + deployedIndexBuilder_.dispose(); deployedIndexBuilder_ = null; } - + onChanged(); return this; } /** @@ -596,7 +605,7 @@ public Builder clearDeployedIndex() { * .google.cloud.aiplatform.v1.DeployedIndex deployed_index = 1; */ public com.google.cloud.aiplatform.v1.DeployedIndex.Builder getDeployedIndexBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getDeployedIndexFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborSearchOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborSearchOperationMetadata.java index e529de97b38b..10b13f42c74e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborSearchOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborSearchOperationMetadata.java @@ -530,7 +530,7 @@ private RecordErrorType(int value) { } public static final int ERROR_TYPE_FIELD_NUMBER = 1; - private int errorType_; + private int errorType_ = 0; /** * * @@ -565,12 +565,11 @@ public int getErrorTypeValue() { public com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError .RecordErrorType getErrorType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError .RecordErrorType result = com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError - .RecordErrorType.valueOf(errorType_); + .RecordErrorType.forNumber(errorType_); return result == null ? com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError .RecordErrorType.UNRECOGNIZED @@ -578,7 +577,9 @@ public int getErrorTypeValue() { } public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object errorMessage_; + + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; /** * * @@ -631,7 +632,9 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } public static final int SOURCE_GCS_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object sourceGcsUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceGcsUri_ = ""; /** * * @@ -680,7 +683,9 @@ public com.google.protobuf.ByteString getSourceGcsUriBytes() { } public static final int EMBEDDING_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object embeddingId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object embeddingId_ = ""; /** * * @@ -729,7 +734,9 @@ public com.google.protobuf.ByteString getEmbeddingIdBytes() { } public static final int RAW_RECORD_FIELD_NUMBER = 5; - private volatile java.lang.Object rawRecord_; + + @SuppressWarnings("serial") + private volatile java.lang.Object rawRecord_ = ""; /** * * @@ -1026,16 +1033,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; errorType_ = 0; - errorMessage_ = ""; - sourceGcsUri_ = ""; - embeddingId_ = ""; - rawRecord_ = ""; - return this; } @@ -1069,15 +1072,34 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError result = new com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError( this); - result.errorType_ = errorType_; - result.errorMessage_ = errorMessage_; - result.sourceGcsUri_ = sourceGcsUri_; - result.embeddingId_ = embeddingId_; - result.rawRecord_ = rawRecord_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.errorType_ = errorType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorMessage_ = errorMessage_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sourceGcsUri_ = sourceGcsUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.embeddingId_ = embeddingId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.rawRecord_ = rawRecord_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1137,18 +1159,22 @@ public Builder mergeFrom( } if (!other.getErrorMessage().isEmpty()) { errorMessage_ = other.errorMessage_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getSourceGcsUri().isEmpty()) { sourceGcsUri_ = other.sourceGcsUri_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getEmbeddingId().isEmpty()) { embeddingId_ = other.embeddingId_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getRawRecord().isEmpty()) { rawRecord_ = other.rawRecord_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1180,31 +1206,31 @@ public Builder mergeFrom( case 8: { errorType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { errorMessage_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { sourceGcsUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { embeddingId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { rawRecord_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -1224,6 +1250,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int errorType_ = 0; /** * @@ -1257,8 +1285,8 @@ public int getErrorTypeValue() { * @return This builder for chaining. */ public Builder setErrorTypeValue(int value) { - errorType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1279,12 +1307,11 @@ public Builder setErrorTypeValue(int value) { public com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError .RecordErrorType getErrorType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError .RecordErrorType result = com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError - .RecordErrorType.valueOf(errorType_); + .RecordErrorType.forNumber(errorType_); return result == null ? com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError .RecordErrorType.UNRECOGNIZED @@ -1311,7 +1338,7 @@ public Builder setErrorType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; errorType_ = value.getNumber(); onChanged(); return this; @@ -1330,7 +1357,7 @@ public Builder setErrorType( * @return This builder for chaining. */ public Builder clearErrorType() { - + bitField0_ = (bitField0_ & ~0x00000001); errorType_ = 0; onChanged(); return this; @@ -1403,8 +1430,8 @@ public Builder setErrorMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - errorMessage_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1422,8 +1449,8 @@ public Builder setErrorMessage(java.lang.String value) { * @return This builder for chaining. */ public Builder clearErrorMessage() { - errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1446,8 +1473,8 @@ public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - errorMessage_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1513,8 +1540,8 @@ public Builder setSourceGcsUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - sourceGcsUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1530,8 +1557,8 @@ public Builder setSourceGcsUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSourceGcsUri() { - sourceGcsUri_ = getDefaultInstance().getSourceGcsUri(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1552,8 +1579,8 @@ public Builder setSourceGcsUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - sourceGcsUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1619,8 +1646,8 @@ public Builder setEmbeddingId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - embeddingId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1636,8 +1663,8 @@ public Builder setEmbeddingId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEmbeddingId() { - embeddingId_ = getDefaultInstance().getEmbeddingId(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1658,8 +1685,8 @@ public Builder setEmbeddingIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - embeddingId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1725,8 +1752,8 @@ public Builder setRawRecord(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - rawRecord_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1742,8 +1769,8 @@ public Builder setRawRecord(java.lang.String value) { * @return This builder for chaining. */ public Builder clearRawRecord() { - rawRecord_ = getDefaultInstance().getRawRecord(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1764,8 +1791,8 @@ public Builder setRawRecordBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - rawRecord_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2022,7 +2049,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SOURCE_GCS_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object sourceGcsUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceGcsUri_ = ""; /** * * @@ -2071,7 +2100,7 @@ public com.google.protobuf.ByteString getSourceGcsUriBytes() { } public static final int VALID_RECORD_COUNT_FIELD_NUMBER = 2; - private long validRecordCount_; + private long validRecordCount_ = 0L; /** * * @@ -2089,7 +2118,7 @@ public long getValidRecordCount() { } public static final int INVALID_RECORD_COUNT_FIELD_NUMBER = 3; - private long invalidRecordCount_; + private long invalidRecordCount_ = 0L; /** * * @@ -2107,6 +2136,8 @@ public long getInvalidRecordCount() { } public static final int PARTIAL_ERRORS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError> partialErrors_; @@ -2458,19 +2489,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; sourceGcsUri_ = ""; - validRecordCount_ = 0L; - invalidRecordCount_ = 0L; - if (partialErrorsBuilder_ == null) { partialErrors_ = java.util.Collections.emptyList(); } else { partialErrors_ = null; partialErrorsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -2508,21 +2537,43 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata .ContentValidationStats(this); - int from_bitField0_ = bitField0_; - result.sourceGcsUri_ = sourceGcsUri_; - result.validRecordCount_ = validRecordCount_; - result.invalidRecordCount_ = invalidRecordCount_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + result) { if (partialErrorsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { partialErrors_ = java.util.Collections.unmodifiableList(partialErrors_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.partialErrors_ = partialErrors_; } else { result.partialErrors_ = partialErrorsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceGcsUri_ = sourceGcsUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validRecordCount_ = validRecordCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.invalidRecordCount_ = invalidRecordCount_; + } } @java.lang.Override @@ -2585,6 +2636,7 @@ public Builder mergeFrom( .ContentValidationStats.getDefaultInstance()) return this; if (!other.getSourceGcsUri().isEmpty()) { sourceGcsUri_ = other.sourceGcsUri_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getValidRecordCount() != 0L) { @@ -2597,7 +2649,7 @@ public Builder mergeFrom( if (!other.partialErrors_.isEmpty()) { if (partialErrors_.isEmpty()) { partialErrors_ = other.partialErrors_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePartialErrorsIsMutable(); partialErrors_.addAll(other.partialErrors_); @@ -2610,7 +2662,7 @@ public Builder mergeFrom( partialErrorsBuilder_.dispose(); partialErrorsBuilder_ = null; partialErrors_ = other.partialErrors_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); partialErrorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPartialErrorsFieldBuilder() @@ -2649,19 +2701,19 @@ public Builder mergeFrom( case 10: { sourceGcsUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { validRecordCount_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { invalidRecordCount_ = input.readInt64(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: @@ -2760,8 +2812,8 @@ public Builder setSourceGcsUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - sourceGcsUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2777,8 +2829,8 @@ public Builder setSourceGcsUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSourceGcsUri() { - sourceGcsUri_ = getDefaultInstance().getSourceGcsUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2799,8 +2851,8 @@ public Builder setSourceGcsUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - sourceGcsUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2836,6 +2888,7 @@ public long getValidRecordCount() { public Builder setValidRecordCount(long value) { validRecordCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2851,7 +2904,7 @@ public Builder setValidRecordCount(long value) { * @return This builder for chaining. */ public Builder clearValidRecordCount() { - + bitField0_ = (bitField0_ & ~0x00000002); validRecordCount_ = 0L; onChanged(); return this; @@ -2888,6 +2941,7 @@ public long getInvalidRecordCount() { public Builder setInvalidRecordCount(long value) { invalidRecordCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2903,7 +2957,7 @@ public Builder setInvalidRecordCount(long value) { * @return This builder for chaining. */ public Builder clearInvalidRecordCount() { - + bitField0_ = (bitField0_ & ~0x00000004); invalidRecordCount_ = 0L; onChanged(); return this; @@ -2914,12 +2968,12 @@ public Builder clearInvalidRecordCount() { partialErrors_ = java.util.Collections.emptyList(); private void ensurePartialErrorsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { partialErrors_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata .RecordError>(partialErrors_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -3198,7 +3252,7 @@ public Builder addAllPartialErrors( public Builder clearPartialErrors() { if (partialErrorsBuilder_ == null) { partialErrors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { partialErrorsBuilder_.clear(); @@ -3371,7 +3425,7 @@ public Builder removePartialErrors(int index) { com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata .RecordErrorOrBuilder>( partialErrors_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); partialErrors_ = null; @@ -3452,6 +3506,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int CONTENT_VALIDATION_STATS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata .ContentValidationStats> @@ -3569,7 +3625,7 @@ public int getContentValidationStatsCount() { } public static final int DATA_BYTES_COUNT_FIELD_NUMBER = 2; - private long dataBytesCount_; + private long dataBytesCount_ = 0L; /** * * @@ -3800,6 +3856,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (contentValidationStatsBuilder_ == null) { contentValidationStats_ = java.util.Collections.emptyList(); } else { @@ -3808,7 +3865,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); dataBytesCount_ = 0L; - return this; } @@ -3838,7 +3894,16 @@ public com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata bui public com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata result = new com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata result) { if (contentValidationStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { contentValidationStats_ = java.util.Collections.unmodifiableList(contentValidationStats_); @@ -3848,9 +3913,14 @@ public com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata bui } else { result.contentValidationStats_ = contentValidationStatsBuilder_.build(); } - result.dataBytesCount_ = dataBytesCount_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataBytesCount_ = dataBytesCount_; + } } @java.lang.Override @@ -3978,7 +4048,7 @@ public Builder mergeFrom( case 16: { dataBytesCount_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -4567,6 +4637,7 @@ public long getDataBytesCount() { public Builder setDataBytesCount(long value) { dataBytesCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4582,7 +4653,7 @@ public Builder setDataBytesCount(long value) { * @return This builder for chaining. */ public Builder clearDataBytesCount() { - + bitField0_ = (bitField0_ & ~0x00000002); dataBytesCount_ = 0L; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Neighbor.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Neighbor.java index 797a565ddc1f..ee2530e758c9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Neighbor.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Neighbor.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NEIGHBOR_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object neighborId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object neighborId_ = ""; /** * * @@ -117,7 +119,7 @@ public com.google.protobuf.ByteString getNeighborIdBytes() { } public static final int NEIGHBOR_DISTANCE_FIELD_NUMBER = 2; - private double neighborDistance_; + private double neighborDistance_ = 0D; /** * * @@ -343,10 +345,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; neighborId_ = ""; - neighborDistance_ = 0D; - return this; } @@ -374,12 +375,23 @@ public com.google.cloud.aiplatform.v1.Neighbor build() { public com.google.cloud.aiplatform.v1.Neighbor buildPartial() { com.google.cloud.aiplatform.v1.Neighbor result = new com.google.cloud.aiplatform.v1.Neighbor(this); - result.neighborId_ = neighborId_; - result.neighborDistance_ = neighborDistance_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.Neighbor result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.neighborId_ = neighborId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.neighborDistance_ = neighborDistance_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -427,6 +439,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Neighbor other) { if (other == com.google.cloud.aiplatform.v1.Neighbor.getDefaultInstance()) return this; if (!other.getNeighborId().isEmpty()) { neighborId_ = other.neighborId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getNeighborDistance() != 0D) { @@ -461,13 +474,13 @@ public Builder mergeFrom( case 10: { neighborId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 17: { neighborDistance_ = input.readDouble(); - + bitField0_ |= 0x00000002; break; } // case 17 default: @@ -487,6 +500,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object neighborId_ = ""; /** * @@ -548,8 +563,8 @@ public Builder setNeighborId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - neighborId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -565,8 +580,8 @@ public Builder setNeighborId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNeighborId() { - neighborId_ = getDefaultInstance().getNeighborId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -587,8 +602,8 @@ public Builder setNeighborIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - neighborId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -624,6 +639,7 @@ public double getNeighborDistance() { public Builder setNeighborDistance(double value) { neighborDistance_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -639,7 +655,7 @@ public Builder setNeighborDistance(double value) { * @return This builder for chaining. */ public Builder clearNeighborDistance() { - + bitField0_ = (bitField0_ & ~0x00000002); neighborDistance_ = 0D; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NfsMount.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NfsMount.java index fa07c44c51f5..9aa4c3898760 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NfsMount.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NfsMount.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SERVER_FIELD_NUMBER = 1; - private volatile java.lang.Object server_; + + @SuppressWarnings("serial") + private volatile java.lang.Object server_ = ""; /** * * @@ -119,7 +121,9 @@ public com.google.protobuf.ByteString getServerBytes() { } public static final int PATH_FIELD_NUMBER = 2; - private volatile java.lang.Object path_; + + @SuppressWarnings("serial") + private volatile java.lang.Object path_ = ""; /** * * @@ -172,7 +176,9 @@ public com.google.protobuf.ByteString getPathBytes() { } public static final int MOUNT_POINT_FIELD_NUMBER = 3; - private volatile java.lang.Object mountPoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mountPoint_ = ""; /** * * @@ -436,12 +442,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; server_ = ""; - path_ = ""; - mountPoint_ = ""; - return this; } @@ -469,13 +473,26 @@ public com.google.cloud.aiplatform.v1.NfsMount build() { public com.google.cloud.aiplatform.v1.NfsMount buildPartial() { com.google.cloud.aiplatform.v1.NfsMount result = new com.google.cloud.aiplatform.v1.NfsMount(this); - result.server_ = server_; - result.path_ = path_; - result.mountPoint_ = mountPoint_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.NfsMount result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.server_ = server_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.path_ = path_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.mountPoint_ = mountPoint_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -523,14 +540,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.NfsMount other) { if (other == com.google.cloud.aiplatform.v1.NfsMount.getDefaultInstance()) return this; if (!other.getServer().isEmpty()) { server_ = other.server_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getPath().isEmpty()) { path_ = other.path_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getMountPoint().isEmpty()) { mountPoint_ = other.mountPoint_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -562,19 +582,19 @@ public Builder mergeFrom( case 10: { server_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { path_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { mountPoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -594,6 +614,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object server_ = ""; /** * @@ -655,8 +677,8 @@ public Builder setServer(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - server_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -672,8 +694,8 @@ public Builder setServer(java.lang.String value) { * @return This builder for chaining. */ public Builder clearServer() { - server_ = getDefaultInstance().getServer(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -694,8 +716,8 @@ public Builder setServerBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - server_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -767,8 +789,8 @@ public Builder setPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - path_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -786,8 +808,8 @@ public Builder setPath(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPath() { - path_ = getDefaultInstance().getPath(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -810,8 +832,8 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - path_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -880,8 +902,8 @@ public Builder setMountPoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mountPoint_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -898,8 +920,8 @@ public Builder setMountPoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMountPoint() { - mountPoint_ = getDefaultInstance().getMountPoint(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -921,8 +943,8 @@ public Builder setMountPointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mountPoint_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PauseModelDeploymentMonitoringJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PauseModelDeploymentMonitoringJobRequest.java index 2b4dcabebaf4..2501db086d54 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PauseModelDeploymentMonitoringJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PauseModelDeploymentMonitoringJobRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -329,8 +331,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -361,11 +363,21 @@ public com.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest b public com.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest buildPartial() { com.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest result = new com.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -418,6 +430,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -449,7 +462,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -469,6 +482,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -542,8 +557,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -563,8 +578,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -589,8 +604,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java index ac2857124676..cb1da14508ee 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java @@ -169,8 +169,7 @@ public interface RuntimeConfigOrBuilder * map<string, .google.cloud.aiplatform.v1.Value> parameters = 1 [deprecated = true]; * */ - @java.lang.Deprecated - /* nullable */ + @java.lang.Deprecated /* nullable */ com.google.cloud.aiplatform.v1.Value getParametersOrDefault( java.lang.String key, /* nullable */ @@ -299,7 +298,6 @@ com.google.cloud.aiplatform.v1.Value getParametersOrDefault( * * map<string, .google.protobuf.Value> parameter_values = 3; */ - /* nullable */ com.google.protobuf.Value getParameterValuesOrDefault( java.lang.String key, @@ -417,7 +415,6 @@ com.google.protobuf.Value getParameterValuesOrDefault( * map<string, .google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact> input_artifacts = 5; * */ - /* nullable */ com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact getInputArtifactsOrDefault( @@ -959,6 +956,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; kindCase_ = 0; kind_ = null; return this; @@ -992,14 +990,25 @@ public com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact bu buildPartial() { com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact result = new com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact(this); - if (kindCase_ == 1) { - result.kind_ = kind_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.kindCase_ = kindCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact result) { + result.kindCase_ = kindCase_; + result.kind_ = this.kind_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1129,6 +1138,8 @@ public Builder clearKind() { return this; } + private int bitField0_; + /** * * @@ -1371,6 +1382,7 @@ private static final class ParametersDefaultEntryHolder { com.google.cloud.aiplatform.v1.Value.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField parameters_; @@ -1405,8 +1417,8 @@ public int getParametersCount() { * map<string, .google.cloud.aiplatform.v1.Value> parameters = 1 [deprecated = true]; * */ - @java.lang.Deprecated @java.lang.Override + @java.lang.Deprecated public boolean containsParameters(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); @@ -1463,8 +1475,10 @@ public java.util.Map get */ @java.lang.Override @java.lang.Deprecated - public com.google.cloud.aiplatform.v1.Value getParametersOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1.Value defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1.Value getParametersOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1505,7 +1519,9 @@ public com.google.cloud.aiplatform.v1.Value getParametersOrThrow(java.lang.Strin } public static final int GCS_OUTPUT_DIRECTORY_FIELD_NUMBER = 2; - private volatile java.lang.Object gcsOutputDirectory_; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsOutputDirectory_ = ""; /** * * @@ -1580,6 +1596,7 @@ private static final class ParameterValuesDefaultEntryHolder { com.google.protobuf.Value.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField parameterValues_; @@ -1658,8 +1675,10 @@ public java.util.Map getParameterVa * map<string, .google.protobuf.Value> parameter_values = 3; */ @java.lang.Override - public com.google.protobuf.Value getParameterValuesOrDefault( - java.lang.String key, com.google.protobuf.Value defaultValue) { + public /* nullable */ com.google.protobuf.Value getParameterValuesOrDefault( + java.lang.String key, + /* nullable */ + com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1696,7 +1715,7 @@ public com.google.protobuf.Value getParameterValuesOrThrow(java.lang.String key) } public static final int FAILURE_POLICY_FIELD_NUMBER = 4; - private int failurePolicy_; + private int failurePolicy_ = 0; /** * * @@ -1735,9 +1754,8 @@ public int getFailurePolicyValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.PipelineFailurePolicy getFailurePolicy() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.PipelineFailurePolicy result = - com.google.cloud.aiplatform.v1.PipelineFailurePolicy.valueOf(failurePolicy_); + com.google.cloud.aiplatform.v1.PipelineFailurePolicy.forNumber(failurePolicy_); return result == null ? com.google.cloud.aiplatform.v1.PipelineFailurePolicy.UNRECOGNIZED : result; @@ -1763,6 +1781,7 @@ private static final class InputArtifactsDefaultEntryHolder { .getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact> @@ -1842,9 +1861,10 @@ public boolean containsInputArtifacts(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + public /* nullable */ com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact getInputArtifactsOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact defaultValue) { if (key == null) { throw new NullPointerException("map key"); @@ -2184,12 +2204,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; internalGetMutableParameters().clear(); gcsOutputDirectory_ = ""; - internalGetMutableParameterValues().clear(); failurePolicy_ = 0; - internalGetMutableInputArtifacts().clear(); return this; } @@ -2218,19 +2237,35 @@ public com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig build() { public com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig buildPartial() { com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig result = new com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig(this); - int from_bitField0_ = bitField0_; - result.parameters_ = internalGetParameters(); - result.parameters_.makeImmutable(); - result.gcsOutputDirectory_ = gcsOutputDirectory_; - result.parameterValues_ = internalGetParameterValues(); - result.parameterValues_.makeImmutable(); - result.failurePolicy_ = failurePolicy_; - result.inputArtifacts_ = internalGetInputArtifacts(); - result.inputArtifacts_.makeImmutable(); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parameters_ = internalGetParameters(); + result.parameters_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gcsOutputDirectory_ = gcsOutputDirectory_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parameterValues_ = internalGetParameterValues(); + result.parameterValues_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.failurePolicy_ = failurePolicy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.inputArtifacts_ = internalGetInputArtifacts(); + result.inputArtifacts_.makeImmutable(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2280,15 +2315,19 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfi if (other == com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.getDefaultInstance()) return this; internalGetMutableParameters().mergeFrom(other.internalGetParameters()); + bitField0_ |= 0x00000001; if (!other.getGcsOutputDirectory().isEmpty()) { gcsOutputDirectory_ = other.gcsOutputDirectory_; + bitField0_ |= 0x00000002; onChanged(); } internalGetMutableParameterValues().mergeFrom(other.internalGetParameterValues()); + bitField0_ |= 0x00000004; if (other.failurePolicy_ != 0) { setFailurePolicyValue(other.getFailurePolicyValue()); } internalGetMutableInputArtifacts().mergeFrom(other.internalGetInputArtifacts()); + bitField0_ |= 0x00000010; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2326,12 +2365,13 @@ public Builder mergeFrom( internalGetMutableParameters() .getMutableMap() .put(parameters__.getKey(), parameters__.getValue()); + bitField0_ |= 0x00000001; break; } // case 10 case 18: { gcsOutputDirectory_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -2344,12 +2384,13 @@ public Builder mergeFrom( internalGetMutableParameterValues() .getMutableMap() .put(parameterValues__.getKey(), parameterValues__.getValue()); + bitField0_ |= 0x00000004; break; } // case 26 case 32: { failurePolicy_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 case 42: @@ -2364,6 +2405,7 @@ public Builder mergeFrom( internalGetMutableInputArtifacts() .getMutableMap() .put(inputArtifacts__.getKey(), inputArtifacts__.getValue()); + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -2388,6 +2430,7 @@ public Builder mergeFrom( private com.google.protobuf.MapField parameters_; + @java.lang.Deprecated private com.google.protobuf.MapField internalGetParameters() { if (parameters_ == null) { @@ -2397,10 +2440,9 @@ public Builder mergeFrom( return parameters_; } + @java.lang.Deprecated private com.google.protobuf.MapField internalGetMutableParameters() { - onChanged(); - ; if (parameters_ == null) { parameters_ = com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry); @@ -2408,6 +2450,8 @@ public Builder mergeFrom( if (!parameters_.isMutable()) { parameters_ = parameters_.copy(); } + bitField0_ |= 0x00000001; + onChanged(); return parameters_; } @@ -2433,8 +2477,8 @@ public int getParametersCount() { * map<string, .google.cloud.aiplatform.v1.Value> parameters = 1 [deprecated = true]; * */ - @java.lang.Deprecated @java.lang.Override + @java.lang.Deprecated public boolean containsParameters(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); @@ -2491,8 +2535,10 @@ public java.util.Map get */ @java.lang.Override @java.lang.Deprecated - public com.google.cloud.aiplatform.v1.Value getParametersOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1.Value defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1.Value getParametersOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2534,6 +2580,7 @@ public com.google.cloud.aiplatform.v1.Value getParametersOrThrow(java.lang.Strin @java.lang.Deprecated public Builder clearParameters() { + bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableParameters().getMutableMap().clear(); return this; } @@ -2567,6 +2614,7 @@ public Builder removeParameters(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableParameters() { + bitField0_ |= 0x00000001; return internalGetMutableParameters().getMutableMap(); } /** @@ -2596,8 +2644,8 @@ public Builder putParameters( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableParameters().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; return this; } /** @@ -2622,6 +2670,7 @@ public Builder putParameters( public Builder putAllParameters( java.util.Map values) { internalGetMutableParameters().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; return this; } @@ -2704,8 +2753,8 @@ public Builder setGcsOutputDirectory(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - gcsOutputDirectory_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2727,8 +2776,8 @@ public Builder setGcsOutputDirectory(java.lang.String value) { * @return This builder for chaining. */ public Builder clearGcsOutputDirectory() { - gcsOutputDirectory_ = getDefaultInstance().getGcsOutputDirectory(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2755,8 +2804,8 @@ public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - gcsOutputDirectory_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2775,8 +2824,6 @@ public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) private com.google.protobuf.MapField internalGetMutableParameterValues() { - onChanged(); - ; if (parameterValues_ == null) { parameterValues_ = com.google.protobuf.MapField.newMapField( @@ -2785,6 +2832,8 @@ public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) if (!parameterValues_.isMutable()) { parameterValues_ = parameterValues_.copy(); } + bitField0_ |= 0x00000004; + onChanged(); return parameterValues_; } @@ -2854,8 +2903,10 @@ public java.util.Map getParameterVa * map<string, .google.protobuf.Value> parameter_values = 3; */ @java.lang.Override - public com.google.protobuf.Value getParameterValuesOrDefault( - java.lang.String key, com.google.protobuf.Value defaultValue) { + public /* nullable */ com.google.protobuf.Value getParameterValuesOrDefault( + java.lang.String key, + /* nullable */ + com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2892,6 +2943,7 @@ public com.google.protobuf.Value getParameterValuesOrThrow(java.lang.String key) } public Builder clearParameterValues() { + bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableParameterValues().getMutableMap().clear(); return this; } @@ -2921,6 +2973,7 @@ public Builder removeParameterValues(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableParameterValues() { + bitField0_ |= 0x00000004; return internalGetMutableParameterValues().getMutableMap(); } /** @@ -2945,8 +2998,8 @@ public Builder putParameterValues(java.lang.String key, com.google.protobuf.Valu if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableParameterValues().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; return this; } /** @@ -2967,6 +3020,7 @@ public Builder putParameterValues(java.lang.String key, com.google.protobuf.Valu public Builder putAllParameterValues( java.util.Map values) { internalGetMutableParameterValues().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; return this; } @@ -3009,8 +3063,8 @@ public int getFailurePolicyValue() { * @return This builder for chaining. */ public Builder setFailurePolicyValue(int value) { - failurePolicy_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3032,9 +3086,8 @@ public Builder setFailurePolicyValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.PipelineFailurePolicy getFailurePolicy() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.PipelineFailurePolicy result = - com.google.cloud.aiplatform.v1.PipelineFailurePolicy.valueOf(failurePolicy_); + com.google.cloud.aiplatform.v1.PipelineFailurePolicy.forNumber(failurePolicy_); return result == null ? com.google.cloud.aiplatform.v1.PipelineFailurePolicy.UNRECOGNIZED : result; @@ -3060,7 +3113,7 @@ public Builder setFailurePolicy(com.google.cloud.aiplatform.v1.PipelineFailurePo if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; failurePolicy_ = value.getNumber(); onChanged(); return this; @@ -3082,7 +3135,7 @@ public Builder setFailurePolicy(com.google.cloud.aiplatform.v1.PipelineFailurePo * @return This builder for chaining. */ public Builder clearFailurePolicy() { - + bitField0_ = (bitField0_ & ~0x00000008); failurePolicy_ = 0; onChanged(); return this; @@ -3108,8 +3161,6 @@ public Builder clearFailurePolicy() { java.lang.String, com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact> internalGetMutableInputArtifacts() { - onChanged(); - ; if (inputArtifacts_ == null) { inputArtifacts_ = com.google.protobuf.MapField.newMapField( @@ -3118,6 +3169,8 @@ public Builder clearFailurePolicy() { if (!inputArtifacts_.isMutable()) { inputArtifacts_ = inputArtifacts_.copy(); } + bitField0_ |= 0x00000010; + onChanged(); return inputArtifacts_; } @@ -3184,9 +3237,10 @@ public boolean containsInputArtifacts(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + public /* nullable */ com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact getInputArtifactsOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact defaultValue) { if (key == null) { throw new NullPointerException("map key"); @@ -3226,6 +3280,7 @@ public boolean containsInputArtifacts(java.lang.String key) { } public Builder clearInputArtifacts() { + bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableInputArtifacts().getMutableMap().clear(); return this; } @@ -3254,6 +3309,7 @@ public Builder removeInputArtifacts(java.lang.String key) { java.lang.String, com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact> getMutableInputArtifacts() { + bitField0_ |= 0x00000010; return internalGetMutableInputArtifacts().getMutableMap(); } /** @@ -3277,8 +3333,8 @@ public Builder putInputArtifacts( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableInputArtifacts().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; return this; } /** @@ -3299,6 +3355,7 @@ public Builder putAllInputArtifacts( com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact> values) { internalGetMutableInputArtifacts().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; return this; } @@ -3367,7 +3424,9 @@ public com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig getDefaultInstan } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -3416,7 +3475,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -3514,7 +3575,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int START_TIME_FIELD_NUMBER = 4; @@ -3563,7 +3624,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 5; @@ -3612,7 +3673,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 6; @@ -3661,7 +3722,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int PIPELINE_SPEC_FIELD_NUMBER = 7; @@ -3707,11 +3768,11 @@ public com.google.protobuf.Struct getPipelineSpec() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getPipelineSpecOrBuilder() { - return getPipelineSpec(); + return pipelineSpec_ == null ? com.google.protobuf.Struct.getDefaultInstance() : pipelineSpec_; } public static final int STATE_FIELD_NUMBER = 8; - private int state_; + private int state_ = 0; /** * * @@ -3744,9 +3805,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.PipelineState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.PipelineState result = - com.google.cloud.aiplatform.v1.PipelineState.valueOf(state_); + com.google.cloud.aiplatform.v1.PipelineState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.PipelineState.UNRECOGNIZED : result; } @@ -3801,7 +3861,9 @@ public com.google.cloud.aiplatform.v1.PipelineJobDetail getJobDetail() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.PipelineJobDetailOrBuilder getJobDetailOrBuilder() { - return getJobDetail(); + return jobDetail_ == null + ? com.google.cloud.aiplatform.v1.PipelineJobDetail.getDefaultInstance() + : jobDetail_; } public static final int ERROR_FIELD_NUMBER = 10; @@ -3850,7 +3912,7 @@ public com.google.rpc.Status getError() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return getError(); + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } public static final int LABELS_FIELD_NUMBER = 11; @@ -3866,6 +3928,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -3935,7 +3998,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -4013,7 +4079,9 @@ public com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig getRuntimeConfig @java.lang.Override public com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfigOrBuilder getRuntimeConfigOrBuilder() { - return getRuntimeConfig(); + return runtimeConfig_ == null + ? com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.getDefaultInstance() + : runtimeConfig_; } public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 16; @@ -4064,11 +4132,15 @@ public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 17; - private volatile java.lang.Object serviceAccount_; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; /** * * @@ -4129,7 +4201,9 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } public static final int NETWORK_FIELD_NUMBER = 18; - private volatile java.lang.Object network_; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; /** * * @@ -4202,7 +4276,9 @@ public com.google.protobuf.ByteString getNetworkBytes() { } public static final int TEMPLATE_URI_FIELD_NUMBER = 19; - private volatile java.lang.Object templateUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object templateUri_ = ""; /** * * @@ -4312,7 +4388,9 @@ public com.google.cloud.aiplatform.v1.PipelineTemplateMetadata getTemplateMetada @java.lang.Override public com.google.cloud.aiplatform.v1.PipelineTemplateMetadataOrBuilder getTemplateMetadataOrBuilder() { - return getTemplateMetadata(); + return templateMetadata_ == null + ? com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.getDefaultInstance() + : templateMetadata_; } private byte memoizedIsInitialized = -1; @@ -4736,77 +4814,62 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - if (pipelineSpecBuilder_ == null) { - pipelineSpec_ = null; - } else { - pipelineSpec_ = null; + pipelineSpec_ = null; + if (pipelineSpecBuilder_ != null) { + pipelineSpecBuilder_.dispose(); pipelineSpecBuilder_ = null; } state_ = 0; - - if (jobDetailBuilder_ == null) { - jobDetail_ = null; - } else { - jobDetail_ = null; + jobDetail_ = null; + if (jobDetailBuilder_ != null) { + jobDetailBuilder_.dispose(); jobDetailBuilder_ = null; } - if (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } internalGetMutableLabels().clear(); - if (runtimeConfigBuilder_ == null) { - runtimeConfig_ = null; - } else { - runtimeConfig_ = null; + runtimeConfig_ = null; + if (runtimeConfigBuilder_ != null) { + runtimeConfigBuilder_.dispose(); runtimeConfigBuilder_ = null; } - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } serviceAccount_ = ""; - network_ = ""; - templateUri_ = ""; - - if (templateMetadataBuilder_ == null) { - templateMetadata_ = null; - } else { - templateMetadata_ = null; + templateMetadata_ = null; + if (templateMetadataBuilder_ != null) { + templateMetadataBuilder_.dispose(); templateMetadataBuilder_ = null; } return this; @@ -4836,67 +4899,71 @@ public com.google.cloud.aiplatform.v1.PipelineJob build() { public com.google.cloud.aiplatform.v1.PipelineJob buildPartial() { com.google.cloud.aiplatform.v1.PipelineJob result = new com.google.cloud.aiplatform.v1.PipelineJob(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.PipelineJob result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } - if (pipelineSpecBuilder_ == null) { - result.pipelineSpec_ = pipelineSpec_; - } else { - result.pipelineSpec_ = pipelineSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } - result.state_ = state_; - if (jobDetailBuilder_ == null) { - result.jobDetail_ = jobDetail_; - } else { - result.jobDetail_ = jobDetailBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.build(); + if (((from_bitField0_ & 0x00000040) != 0)) { + result.pipelineSpec_ = + pipelineSpecBuilder_ == null ? pipelineSpec_ : pipelineSpecBuilder_.build(); } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (runtimeConfigBuilder_ == null) { - result.runtimeConfig_ = runtimeConfig_; - } else { - result.runtimeConfig_ = runtimeConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = state_; } - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000100) != 0)) { + result.jobDetail_ = jobDetailBuilder_ == null ? jobDetail_ : jobDetailBuilder_.build(); } - result.serviceAccount_ = serviceAccount_; - result.network_ = network_; - result.templateUri_ = templateUri_; - if (templateMetadataBuilder_ == null) { - result.templateMetadata_ = templateMetadata_; - } else { - result.templateMetadata_ = templateMetadataBuilder_.build(); + if (((from_bitField0_ & 0x00000200) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.runtimeConfig_ = + runtimeConfigBuilder_ == null ? runtimeConfig_ : runtimeConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.templateUri_ = templateUri_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.templateMetadata_ = + templateMetadataBuilder_ == null ? templateMetadata_ : templateMetadataBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -4946,10 +5013,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PipelineJob other) { if (other == com.google.cloud.aiplatform.v1.PipelineJob.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasCreateTime()) { @@ -4977,6 +5046,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PipelineJob other) { mergeError(other.getError()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000400; if (other.hasRuntimeConfig()) { mergeRuntimeConfig(other.getRuntimeConfig()); } @@ -4985,14 +5055,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PipelineJob other) { } if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00002000; onChanged(); } if (!other.getNetwork().isEmpty()) { network_ = other.network_; + bitField0_ |= 0x00004000; onChanged(); } if (!other.getTemplateUri().isEmpty()) { templateUri_ = other.templateUri_; + bitField0_ |= 0x00008000; onChanged(); } if (other.hasTemplateMetadata()) { @@ -5027,61 +5100,61 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage(getPipelineSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 58 case 64: { state_ = input.readEnum(); - + bitField0_ |= 0x00000080; break; } // case 64 case 74: { input.readMessage(getJobDetailFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 74 case 82: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 82 case 90: @@ -5093,43 +5166,44 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000400; break; } // case 90 case 98: { input.readMessage(getRuntimeConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000800; break; } // case 98 case 130: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00001000; break; } // case 130 case 138: { serviceAccount_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00002000; break; } // case 138 case 146: { network_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00004000; break; } // case 146 case 154: { templateUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00008000; break; } // case 154 case 162: { input.readMessage( getTemplateMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00010000; break; } // case 162 default: @@ -5212,8 +5286,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5229,8 +5303,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -5251,8 +5325,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5324,8 +5398,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -5343,8 +5417,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -5367,8 +5441,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -5393,7 +5467,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -5434,11 +5508,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -5455,11 +5529,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -5475,17 +5549,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -5500,14 +5575,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -5522,7 +5596,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -5593,7 +5667,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -5630,11 +5704,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -5650,11 +5724,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -5669,17 +5743,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -5693,14 +5768,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -5714,7 +5788,7 @@ public Builder clearStartTime() { * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -5781,7 +5855,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -5818,11 +5892,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -5838,11 +5912,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -5857,17 +5931,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -5881,14 +5956,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -5902,7 +5976,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -5970,7 +6044,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -6011,11 +6085,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -6032,11 +6106,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -6052,17 +6126,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -6077,14 +6152,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -6099,7 +6173,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -6169,7 +6243,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the pipelineSpec field is set. */ public boolean hasPipelineSpec() { - return pipelineSpecBuilder_ != null || pipelineSpec_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -6206,11 +6280,11 @@ public Builder setPipelineSpec(com.google.protobuf.Struct value) { throw new NullPointerException(); } pipelineSpec_ = value; - onChanged(); } else { pipelineSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -6225,11 +6299,11 @@ public Builder setPipelineSpec(com.google.protobuf.Struct value) { public Builder setPipelineSpec(com.google.protobuf.Struct.Builder builderForValue) { if (pipelineSpecBuilder_ == null) { pipelineSpec_ = builderForValue.build(); - onChanged(); } else { pipelineSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -6243,17 +6317,18 @@ public Builder setPipelineSpec(com.google.protobuf.Struct.Builder builderForValu */ public Builder mergePipelineSpec(com.google.protobuf.Struct value) { if (pipelineSpecBuilder_ == null) { - if (pipelineSpec_ != null) { - pipelineSpec_ = - com.google.protobuf.Struct.newBuilder(pipelineSpec_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && pipelineSpec_ != null + && pipelineSpec_ != com.google.protobuf.Struct.getDefaultInstance()) { + getPipelineSpecBuilder().mergeFrom(value); } else { pipelineSpec_ = value; } - onChanged(); } else { pipelineSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -6266,14 +6341,13 @@ public Builder mergePipelineSpec(com.google.protobuf.Struct value) { * .google.protobuf.Struct pipeline_spec = 7; */ public Builder clearPipelineSpec() { - if (pipelineSpecBuilder_ == null) { - pipelineSpec_ = null; - onChanged(); - } else { - pipelineSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + pipelineSpec_ = null; + if (pipelineSpecBuilder_ != null) { + pipelineSpecBuilder_.dispose(); pipelineSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -6286,7 +6360,7 @@ public Builder clearPipelineSpec() { * .google.protobuf.Struct pipeline_spec = 7; */ public com.google.protobuf.Struct.Builder getPipelineSpecBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getPipelineSpecFieldBuilder().getBuilder(); } @@ -6367,8 +6441,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6387,9 +6461,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.PipelineState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.PipelineState result = - com.google.cloud.aiplatform.v1.PipelineState.valueOf(state_); + com.google.cloud.aiplatform.v1.PipelineState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.PipelineState.UNRECOGNIZED : result; } /** @@ -6410,7 +6483,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.PipelineState value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000080; state_ = value.getNumber(); onChanged(); return this; @@ -6429,7 +6502,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.PipelineState value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000080); state_ = 0; onChanged(); return this; @@ -6455,7 +6528,7 @@ public Builder clearState() { * @return Whether the jobDetail field is set. */ public boolean hasJobDetail() { - return jobDetailBuilder_ != null || jobDetail_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -6496,11 +6569,11 @@ public Builder setJobDetail(com.google.cloud.aiplatform.v1.PipelineJobDetail val throw new NullPointerException(); } jobDetail_ = value; - onChanged(); } else { jobDetailBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -6518,11 +6591,11 @@ public Builder setJobDetail( com.google.cloud.aiplatform.v1.PipelineJobDetail.Builder builderForValue) { if (jobDetailBuilder_ == null) { jobDetail_ = builderForValue.build(); - onChanged(); } else { jobDetailBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -6538,19 +6611,19 @@ public Builder setJobDetail( */ public Builder mergeJobDetail(com.google.cloud.aiplatform.v1.PipelineJobDetail value) { if (jobDetailBuilder_ == null) { - if (jobDetail_ != null) { - jobDetail_ = - com.google.cloud.aiplatform.v1.PipelineJobDetail.newBuilder(jobDetail_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && jobDetail_ != null + && jobDetail_ + != com.google.cloud.aiplatform.v1.PipelineJobDetail.getDefaultInstance()) { + getJobDetailBuilder().mergeFrom(value); } else { jobDetail_ = value; } - onChanged(); } else { jobDetailBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -6565,14 +6638,13 @@ public Builder mergeJobDetail(com.google.cloud.aiplatform.v1.PipelineJobDetail v * */ public Builder clearJobDetail() { - if (jobDetailBuilder_ == null) { - jobDetail_ = null; - onChanged(); - } else { - jobDetail_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + jobDetail_ = null; + if (jobDetailBuilder_ != null) { + jobDetailBuilder_.dispose(); jobDetailBuilder_ = null; } - + onChanged(); return this; } /** @@ -6587,7 +6659,7 @@ public Builder clearJobDetail() { * */ public com.google.cloud.aiplatform.v1.PipelineJobDetail.Builder getJobDetailBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getJobDetailFieldBuilder().getBuilder(); } @@ -6656,7 +6728,7 @@ public com.google.cloud.aiplatform.v1.PipelineJobDetailOrBuilder getJobDetailOrB * @return Whether the error field is set. */ public boolean hasError() { - return errorBuilder_ != null || error_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -6693,11 +6765,11 @@ public Builder setError(com.google.rpc.Status value) { throw new NullPointerException(); } error_ = value; - onChanged(); } else { errorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -6713,11 +6785,11 @@ public Builder setError(com.google.rpc.Status value) { public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); - onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -6732,16 +6804,18 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (error_ != null) { - error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); } else { error_ = value; } - onChanged(); } else { errorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -6755,14 +6829,13 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } - + onChanged(); return this; } /** @@ -6776,7 +6849,7 @@ public Builder clearError() { * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getErrorFieldBuilder().getBuilder(); } @@ -6832,14 +6905,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000400; + onChanged(); return labels_; } @@ -6903,8 +6976,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -6937,6 +7012,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000400); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -6963,6 +7039,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000400; return internalGetMutableLabels().getMutableMap(); } /** @@ -6985,8 +7062,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000400; return this; } /** @@ -7004,6 +7081,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000400; return this; } @@ -7025,7 +7103,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the runtimeConfig field is set. */ public boolean hasRuntimeConfig() { - return runtimeConfigBuilder_ != null || runtimeConfig_ != null; + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -7063,11 +7141,11 @@ public Builder setRuntimeConfig( throw new NullPointerException(); } runtimeConfig_ = value; - onChanged(); } else { runtimeConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -7083,11 +7161,11 @@ public Builder setRuntimeConfig( com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.Builder builderForValue) { if (runtimeConfigBuilder_ == null) { runtimeConfig_ = builderForValue.build(); - onChanged(); } else { runtimeConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -7102,19 +7180,19 @@ public Builder setRuntimeConfig( public Builder mergeRuntimeConfig( com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig value) { if (runtimeConfigBuilder_ == null) { - if (runtimeConfig_ != null) { - runtimeConfig_ = - com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.newBuilder(runtimeConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000800) != 0) + && runtimeConfig_ != null + && runtimeConfig_ + != com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.getDefaultInstance()) { + getRuntimeConfigBuilder().mergeFrom(value); } else { runtimeConfig_ = value; } - onChanged(); } else { runtimeConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -7127,14 +7205,13 @@ public Builder mergeRuntimeConfig( * .google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig runtime_config = 12; */ public Builder clearRuntimeConfig() { - if (runtimeConfigBuilder_ == null) { - runtimeConfig_ = null; - onChanged(); - } else { - runtimeConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000800); + runtimeConfig_ = null; + if (runtimeConfigBuilder_ != null) { + runtimeConfigBuilder_.dispose(); runtimeConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -7148,7 +7225,7 @@ public Builder clearRuntimeConfig() { */ public com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.Builder getRuntimeConfigBuilder() { - + bitField0_ |= 0x00000800; onChanged(); return getRuntimeConfigFieldBuilder().getBuilder(); } @@ -7216,7 +7293,7 @@ public Builder clearRuntimeConfig() { * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -7255,11 +7332,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec v throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -7276,11 +7353,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -7295,19 +7372,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00001000) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -7321,14 +7398,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00001000); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -7342,7 +7418,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; */ public com.google.cloud.aiplatform.v1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00001000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -7471,8 +7547,8 @@ public Builder setServiceAccount(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - serviceAccount_ = value; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -7494,8 +7570,8 @@ public Builder setServiceAccount(java.lang.String value) { * @return This builder for chaining. */ public Builder clearServiceAccount() { - serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -7522,8 +7598,8 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - serviceAccount_ = value; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -7625,8 +7701,8 @@ public Builder setNetwork(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - network_ = value; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -7654,8 +7730,8 @@ public Builder setNetwork(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNetwork() { - network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -7688,8 +7764,8 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - network_ = value; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -7761,8 +7837,8 @@ public Builder setTemplateUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - templateUri_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -7780,8 +7856,8 @@ public Builder setTemplateUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTemplateUri() { - templateUri_ = getDefaultInstance().getTemplateUri(); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -7804,8 +7880,8 @@ public Builder setTemplateUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - templateUri_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -7832,7 +7908,7 @@ public Builder setTemplateUriBytes(com.google.protobuf.ByteString value) { * @return Whether the templateMetadata field is set. */ public boolean hasTemplateMetadata() { - return templateMetadataBuilder_ != null || templateMetadata_ != null; + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -7878,11 +7954,11 @@ public Builder setTemplateMetadata( throw new NullPointerException(); } templateMetadata_ = value; - onChanged(); } else { templateMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -7902,11 +7978,11 @@ public Builder setTemplateMetadata( com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.Builder builderForValue) { if (templateMetadataBuilder_ == null) { templateMetadata_ = builderForValue.build(); - onChanged(); } else { templateMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -7925,19 +8001,19 @@ public Builder setTemplateMetadata( public Builder mergeTemplateMetadata( com.google.cloud.aiplatform.v1.PipelineTemplateMetadata value) { if (templateMetadataBuilder_ == null) { - if (templateMetadata_ != null) { - templateMetadata_ = - com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.newBuilder(templateMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00010000) != 0) + && templateMetadata_ != null + && templateMetadata_ + != com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.getDefaultInstance()) { + getTemplateMetadataBuilder().mergeFrom(value); } else { templateMetadata_ = value; } - onChanged(); } else { templateMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -7954,14 +8030,13 @@ public Builder mergeTemplateMetadata( * */ public Builder clearTemplateMetadata() { - if (templateMetadataBuilder_ == null) { - templateMetadata_ = null; - onChanged(); - } else { - templateMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00010000); + templateMetadata_ = null; + if (templateMetadataBuilder_ != null) { + templateMetadataBuilder_.dispose(); templateMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -7979,7 +8054,7 @@ public Builder clearTemplateMetadata() { */ public com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.Builder getTemplateMetadataBuilder() { - + bitField0_ |= 0x00010000; onChanged(); return getTemplateMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobDetail.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobDetail.java index 74d49aad057d..7c99ade0f6a2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobDetail.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobDetail.java @@ -118,7 +118,9 @@ public com.google.cloud.aiplatform.v1.Context getPipelineContext() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ContextOrBuilder getPipelineContextOrBuilder() { - return getPipelineContext(); + return pipelineContext_ == null + ? com.google.cloud.aiplatform.v1.Context.getDefaultInstance() + : pipelineContext_; } public static final int PIPELINE_RUN_CONTEXT_FIELD_NUMBER = 2; @@ -172,10 +174,14 @@ public com.google.cloud.aiplatform.v1.Context getPipelineRunContext() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ContextOrBuilder getPipelineRunContextOrBuilder() { - return getPipelineRunContext(); + return pipelineRunContext_ == null + ? com.google.cloud.aiplatform.v1.Context.getDefaultInstance() + : pipelineRunContext_; } public static final int TASK_DETAILS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List taskDetails_; /** * @@ -482,16 +488,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (pipelineContextBuilder_ == null) { - pipelineContext_ = null; - } else { - pipelineContext_ = null; + bitField0_ = 0; + pipelineContext_ = null; + if (pipelineContextBuilder_ != null) { + pipelineContextBuilder_.dispose(); pipelineContextBuilder_ = null; } - if (pipelineRunContextBuilder_ == null) { - pipelineRunContext_ = null; - } else { - pipelineRunContext_ = null; + pipelineRunContext_ = null; + if (pipelineRunContextBuilder_ != null) { + pipelineRunContextBuilder_.dispose(); pipelineRunContextBuilder_ = null; } if (taskDetailsBuilder_ == null) { @@ -500,7 +505,7 @@ public Builder clear() { taskDetails_ = null; taskDetailsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -528,28 +533,39 @@ public com.google.cloud.aiplatform.v1.PipelineJobDetail build() { public com.google.cloud.aiplatform.v1.PipelineJobDetail buildPartial() { com.google.cloud.aiplatform.v1.PipelineJobDetail result = new com.google.cloud.aiplatform.v1.PipelineJobDetail(this); - int from_bitField0_ = bitField0_; - if (pipelineContextBuilder_ == null) { - result.pipelineContext_ = pipelineContext_; - } else { - result.pipelineContext_ = pipelineContextBuilder_.build(); - } - if (pipelineRunContextBuilder_ == null) { - result.pipelineRunContext_ = pipelineRunContext_; - } else { - result.pipelineRunContext_ = pipelineRunContextBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.PipelineJobDetail result) { if (taskDetailsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { taskDetails_ = java.util.Collections.unmodifiableList(taskDetails_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.taskDetails_ = taskDetails_; } else { result.taskDetails_ = taskDetailsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.PipelineJobDetail result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pipelineContext_ = + pipelineContextBuilder_ == null ? pipelineContext_ : pipelineContextBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pipelineRunContext_ = + pipelineRunContextBuilder_ == null + ? pipelineRunContext_ + : pipelineRunContextBuilder_.build(); + } } @java.lang.Override @@ -608,7 +624,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PipelineJobDetail other) if (!other.taskDetails_.isEmpty()) { if (taskDetails_.isEmpty()) { taskDetails_ = other.taskDetails_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTaskDetailsIsMutable(); taskDetails_.addAll(other.taskDetails_); @@ -621,7 +637,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PipelineJobDetail other) taskDetailsBuilder_.dispose(); taskDetailsBuilder_ = null; taskDetails_ = other.taskDetails_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); taskDetailsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTaskDetailsFieldBuilder() @@ -660,14 +676,14 @@ public Builder mergeFrom( case 10: { input.readMessage(getPipelineContextFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getPipelineRunContextFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -723,7 +739,7 @@ public Builder mergeFrom( * @return Whether the pipelineContext field is set. */ public boolean hasPipelineContext() { - return pipelineContextBuilder_ != null || pipelineContext_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -764,11 +780,11 @@ public Builder setPipelineContext(com.google.cloud.aiplatform.v1.Context value) throw new NullPointerException(); } pipelineContext_ = value; - onChanged(); } else { pipelineContextBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -786,11 +802,11 @@ public Builder setPipelineContext( com.google.cloud.aiplatform.v1.Context.Builder builderForValue) { if (pipelineContextBuilder_ == null) { pipelineContext_ = builderForValue.build(); - onChanged(); } else { pipelineContextBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -806,19 +822,18 @@ public Builder setPipelineContext( */ public Builder mergePipelineContext(com.google.cloud.aiplatform.v1.Context value) { if (pipelineContextBuilder_ == null) { - if (pipelineContext_ != null) { - pipelineContext_ = - com.google.cloud.aiplatform.v1.Context.newBuilder(pipelineContext_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && pipelineContext_ != null + && pipelineContext_ != com.google.cloud.aiplatform.v1.Context.getDefaultInstance()) { + getPipelineContextBuilder().mergeFrom(value); } else { pipelineContext_ = value; } - onChanged(); } else { pipelineContextBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -833,14 +848,13 @@ public Builder mergePipelineContext(com.google.cloud.aiplatform.v1.Context value * */ public Builder clearPipelineContext() { - if (pipelineContextBuilder_ == null) { - pipelineContext_ = null; - onChanged(); - } else { - pipelineContext_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + pipelineContext_ = null; + if (pipelineContextBuilder_ != null) { + pipelineContextBuilder_.dispose(); pipelineContextBuilder_ = null; } - + onChanged(); return this; } /** @@ -855,7 +869,7 @@ public Builder clearPipelineContext() { * */ public com.google.cloud.aiplatform.v1.Context.Builder getPipelineContextBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getPipelineContextFieldBuilder().getBuilder(); } @@ -927,7 +941,7 @@ public com.google.cloud.aiplatform.v1.ContextOrBuilder getPipelineContextOrBuild * @return Whether the pipelineRunContext field is set. */ public boolean hasPipelineRunContext() { - return pipelineRunContextBuilder_ != null || pipelineRunContext_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -968,11 +982,11 @@ public Builder setPipelineRunContext(com.google.cloud.aiplatform.v1.Context valu throw new NullPointerException(); } pipelineRunContext_ = value; - onChanged(); } else { pipelineRunContextBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -990,11 +1004,11 @@ public Builder setPipelineRunContext( com.google.cloud.aiplatform.v1.Context.Builder builderForValue) { if (pipelineRunContextBuilder_ == null) { pipelineRunContext_ = builderForValue.build(); - onChanged(); } else { pipelineRunContextBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1010,19 +1024,18 @@ public Builder setPipelineRunContext( */ public Builder mergePipelineRunContext(com.google.cloud.aiplatform.v1.Context value) { if (pipelineRunContextBuilder_ == null) { - if (pipelineRunContext_ != null) { - pipelineRunContext_ = - com.google.cloud.aiplatform.v1.Context.newBuilder(pipelineRunContext_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && pipelineRunContext_ != null + && pipelineRunContext_ != com.google.cloud.aiplatform.v1.Context.getDefaultInstance()) { + getPipelineRunContextBuilder().mergeFrom(value); } else { pipelineRunContext_ = value; } - onChanged(); } else { pipelineRunContextBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1037,14 +1050,13 @@ public Builder mergePipelineRunContext(com.google.cloud.aiplatform.v1.Context va * */ public Builder clearPipelineRunContext() { - if (pipelineRunContextBuilder_ == null) { - pipelineRunContext_ = null; - onChanged(); - } else { - pipelineRunContext_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + pipelineRunContext_ = null; + if (pipelineRunContextBuilder_ != null) { + pipelineRunContextBuilder_.dispose(); pipelineRunContextBuilder_ = null; } - + onChanged(); return this; } /** @@ -1059,7 +1071,7 @@ public Builder clearPipelineRunContext() { * */ public com.google.cloud.aiplatform.v1.Context.Builder getPipelineRunContextBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getPipelineRunContextFieldBuilder().getBuilder(); } @@ -1115,11 +1127,11 @@ public com.google.cloud.aiplatform.v1.ContextOrBuilder getPipelineRunContextOrBu java.util.Collections.emptyList(); private void ensureTaskDetailsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { taskDetails_ = new java.util.ArrayList( taskDetails_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -1359,7 +1371,7 @@ public Builder addAllTaskDetails( public Builder clearTaskDetails() { if (taskDetailsBuilder_ == null) { taskDetails_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { taskDetailsBuilder_.clear(); @@ -1499,7 +1511,7 @@ public com.google.cloud.aiplatform.v1.PipelineTaskDetail.Builder addTaskDetailsB com.google.cloud.aiplatform.v1.PipelineTaskDetail, com.google.cloud.aiplatform.v1.PipelineTaskDetail.Builder, com.google.cloud.aiplatform.v1.PipelineTaskDetailOrBuilder>( - taskDetails_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + taskDetails_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); taskDetails_ = null; } return taskDetailsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java index ee0b99b1d673..1df6c98798aa 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java @@ -430,7 +430,6 @@ public interface PipelineJobOrBuilder * * map<string, string> labels = 11; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetail.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetail.java index a8fbd1ac0b9b..80bf805304ad 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetail.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetail.java @@ -621,11 +621,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int STATE_FIELD_NUMBER = 2; - private int state_; + private int state_ = 0; /** * * @@ -658,9 +658,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.PipelineTaskDetail.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.PipelineTaskDetail.State result = - com.google.cloud.aiplatform.v1.PipelineTaskDetail.State.valueOf(state_); + com.google.cloud.aiplatform.v1.PipelineTaskDetail.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.PipelineTaskDetail.State.UNRECOGNIZED : result; @@ -721,7 +720,7 @@ public com.google.rpc.Status getError() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return getError(); + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } private byte memoizedIsInitialized = -1; @@ -958,18 +957,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + bitField0_ = 0; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } state_ = 0; - - if (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } return this; @@ -1002,21 +999,28 @@ public com.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus buil public com.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus buildPartial() { com.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus result = new com.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus(this); - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.state_ = state_; - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateTime_ = + updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1106,19 +1110,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { state_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -1138,6 +1142,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1158,7 +1164,7 @@ public Builder mergeFrom( * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1199,11 +1205,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1220,11 +1226,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1240,19 +1246,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1267,14 +1272,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1289,7 +1293,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -1374,8 +1378,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1394,9 +1398,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.PipelineTaskDetail.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.PipelineTaskDetail.State result = - com.google.cloud.aiplatform.v1.PipelineTaskDetail.State.valueOf(state_); + com.google.cloud.aiplatform.v1.PipelineTaskDetail.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.PipelineTaskDetail.State.UNRECOGNIZED : result; @@ -1419,7 +1422,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.PipelineTaskDetail.State if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; state_ = value.getNumber(); onChanged(); return this; @@ -1438,7 +1441,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.PipelineTaskDetail.State * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000002); state_ = 0; onChanged(); return this; @@ -1464,7 +1467,7 @@ public Builder clearState() { * @return Whether the error field is set. */ public boolean hasError() { - return errorBuilder_ != null || error_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1507,11 +1510,11 @@ public Builder setError(com.google.rpc.Status value) { throw new NullPointerException(); } error_ = value; - onChanged(); } else { errorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1530,11 +1533,11 @@ public Builder setError(com.google.rpc.Status value) { public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); - onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1552,16 +1555,18 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (error_ != null) { - error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); } else { error_ = value; } - onChanged(); } else { errorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1578,14 +1583,13 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } - + onChanged(); return this; } /** @@ -1602,7 +1606,7 @@ public Builder clearError() { * .google.rpc.Status error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getErrorFieldBuilder().getBuilder(); } @@ -1837,6 +1841,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ARTIFACTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List artifacts_; /** * @@ -2117,6 +2123,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (artifactsBuilder_ == null) { artifacts_ = java.util.Collections.emptyList(); } else { @@ -2152,7 +2159,16 @@ public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList build() { public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList buildPartial() { com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList result = new com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList result) { if (artifactsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { artifacts_ = java.util.Collections.unmodifiableList(artifacts_); @@ -2162,8 +2178,11 @@ public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList buildParti } else { result.artifacts_ = artifactsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -2754,7 +2773,7 @@ public com.google.protobuf.Parser getParserForType() { } public static final int TASK_ID_FIELD_NUMBER = 1; - private long taskId_; + private long taskId_ = 0L; /** * * @@ -2772,7 +2791,7 @@ public long getTaskId() { } public static final int PARENT_TASK_ID_FIELD_NUMBER = 12; - private long parentTaskId_; + private long parentTaskId_ = 0L; /** * * @@ -2791,7 +2810,9 @@ public long getParentTaskId() { } public static final int TASK_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object taskName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object taskName_ = ""; /** * * @@ -2887,7 +2908,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int START_TIME_FIELD_NUMBER = 4; @@ -2936,7 +2957,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 5; @@ -2985,7 +3006,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } public static final int EXECUTOR_DETAIL_FIELD_NUMBER = 6; @@ -3040,11 +3061,13 @@ public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail getExecutorDeta @java.lang.Override public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetailOrBuilder getExecutorDetailOrBuilder() { - return getExecutorDetail(); + return executorDetail_ == null + ? com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.getDefaultInstance() + : executorDetail_; } public static final int STATE_FIELD_NUMBER = 7; - private int state_; + private int state_ = 0; /** * * @@ -3077,9 +3100,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.PipelineTaskDetail.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.PipelineTaskDetail.State result = - com.google.cloud.aiplatform.v1.PipelineTaskDetail.State.valueOf(state_); + com.google.cloud.aiplatform.v1.PipelineTaskDetail.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.PipelineTaskDetail.State.UNRECOGNIZED : result; @@ -3136,7 +3158,9 @@ public com.google.cloud.aiplatform.v1.Execution getExecution() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ExecutionOrBuilder getExecutionOrBuilder() { - return getExecution(); + return execution_ == null + ? com.google.cloud.aiplatform.v1.Execution.getDefaultInstance() + : execution_; } public static final int ERROR_FIELD_NUMBER = 9; @@ -3185,10 +3209,12 @@ public com.google.rpc.Status getError() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return getError(); + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } public static final int PIPELINE_TASK_STATUS_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") private java.util.List pipelineTaskStatus_; /** @@ -3295,6 +3321,7 @@ private static final class InputsDefaultEntryHolder { .getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> inputs_; @@ -3366,9 +3393,11 @@ public boolean containsInputs(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getInputsOrDefault( - java.lang.String key, - com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + getInputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3419,6 +3448,7 @@ private static final class OutputsDefaultEntryHolder { .getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> outputs_; @@ -3490,9 +3520,11 @@ public boolean containsOutputs(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getOutputsOrDefault( - java.lang.String key, - com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + getOutputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3911,48 +3943,39 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; taskId_ = 0L; - parentTaskId_ = 0L; - taskName_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - if (executorDetailBuilder_ == null) { - executorDetail_ = null; - } else { - executorDetail_ = null; + executorDetail_ = null; + if (executorDetailBuilder_ != null) { + executorDetailBuilder_.dispose(); executorDetailBuilder_ = null; } state_ = 0; - - if (executionBuilder_ == null) { - execution_ = null; - } else { - execution_ = null; + execution_ = null; + if (executionBuilder_ != null) { + executionBuilder_.dispose(); executionBuilder_ = null; } - if (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } if (pipelineTaskStatusBuilder_ == null) { @@ -3961,7 +3984,7 @@ public Builder clear() { pipelineTaskStatus_ = null; pipelineTaskStatusBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); internalGetMutableInputs().clear(); internalGetMutableOutputs().clear(); return this; @@ -3991,56 +4014,68 @@ public com.google.cloud.aiplatform.v1.PipelineTaskDetail build() { public com.google.cloud.aiplatform.v1.PipelineTaskDetail buildPartial() { com.google.cloud.aiplatform.v1.PipelineTaskDetail result = new com.google.cloud.aiplatform.v1.PipelineTaskDetail(this); - int from_bitField0_ = bitField0_; - result.taskId_ = taskId_; - result.parentTaskId_ = parentTaskId_; - result.taskName_ = taskName_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); - } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); - } - if (executorDetailBuilder_ == null) { - result.executorDetail_ = executorDetail_; - } else { - result.executorDetail_ = executorDetailBuilder_.build(); - } - result.state_ = state_; - if (executionBuilder_ == null) { - result.execution_ = execution_; - } else { - result.execution_ = executionBuilder_.build(); - } - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.PipelineTaskDetail result) { if (pipelineTaskStatusBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { pipelineTaskStatus_ = java.util.Collections.unmodifiableList(pipelineTaskStatus_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); } result.pipelineTaskStatus_ = pipelineTaskStatus_; } else { result.pipelineTaskStatus_ = pipelineTaskStatusBuilder_.build(); } - result.inputs_ = internalGetInputs(); - result.inputs_.makeImmutable(); - result.outputs_ = internalGetOutputs(); - result.outputs_.makeImmutable(); - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.PipelineTaskDetail result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.taskId_ = taskId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parentTaskId_ = parentTaskId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.taskName_ = taskName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.executorDetail_ = + executorDetailBuilder_ == null ? executorDetail_ : executorDetailBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.execution_ = executionBuilder_ == null ? execution_ : executionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.inputs_ = internalGetInputs(); + result.inputs_.makeImmutable(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.outputs_ = internalGetOutputs(); + result.outputs_.makeImmutable(); + } } @java.lang.Override @@ -4097,6 +4132,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PipelineTaskDetail other } if (!other.getTaskName().isEmpty()) { taskName_ = other.taskName_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasCreateTime()) { @@ -4124,7 +4160,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PipelineTaskDetail other if (!other.pipelineTaskStatus_.isEmpty()) { if (pipelineTaskStatus_.isEmpty()) { pipelineTaskStatus_ = other.pipelineTaskStatus_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); } else { ensurePipelineTaskStatusIsMutable(); pipelineTaskStatus_.addAll(other.pipelineTaskStatus_); @@ -4137,7 +4173,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PipelineTaskDetail other pipelineTaskStatusBuilder_.dispose(); pipelineTaskStatusBuilder_ = null; pipelineTaskStatus_ = other.pipelineTaskStatus_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); pipelineTaskStatusBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPipelineTaskStatusFieldBuilder() @@ -4148,7 +4184,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PipelineTaskDetail other } } internalGetMutableInputs().mergeFrom(other.internalGetInputs()); + bitField0_ |= 0x00000800; internalGetMutableOutputs().mergeFrom(other.internalGetOutputs()); + bitField0_ |= 0x00001000; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4178,55 +4216,55 @@ public Builder mergeFrom( case 8: { taskId_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { taskName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 18 case 26: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 34 case 42: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 42 case 50: { input.readMessage(getExecutorDetailFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 50 case 56: { state_ = input.readEnum(); - + bitField0_ |= 0x00000080; break; } // case 56 case 66: { input.readMessage(getExecutionFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 66 case 74: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 74 case 82: @@ -4241,6 +4279,7 @@ public Builder mergeFrom( internalGetMutableInputs() .getMutableMap() .put(inputs__.getKey(), inputs__.getValue()); + bitField0_ |= 0x00000800; break; } // case 82 case 90: @@ -4255,12 +4294,13 @@ public Builder mergeFrom( internalGetMutableOutputs() .getMutableMap() .put(outputs__.getKey(), outputs__.getValue()); + bitField0_ |= 0x00001000; break; } // case 90 case 96: { parentTaskId_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 96 case 106: @@ -4328,6 +4368,7 @@ public long getTaskId() { public Builder setTaskId(long value) { taskId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4343,7 +4384,7 @@ public Builder setTaskId(long value) { * @return This builder for chaining. */ public Builder clearTaskId() { - + bitField0_ = (bitField0_ & ~0x00000001); taskId_ = 0L; onChanged(); return this; @@ -4382,6 +4423,7 @@ public long getParentTaskId() { public Builder setParentTaskId(long value) { parentTaskId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4398,7 +4440,7 @@ public Builder setParentTaskId(long value) { * @return This builder for chaining. */ public Builder clearParentTaskId() { - + bitField0_ = (bitField0_ & ~0x00000002); parentTaskId_ = 0L; onChanged(); return this; @@ -4468,8 +4510,8 @@ public Builder setTaskName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - taskName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4486,8 +4528,8 @@ public Builder setTaskName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTaskName() { - taskName_ = getDefaultInstance().getTaskName(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -4509,8 +4551,8 @@ public Builder setTaskNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - taskName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4535,7 +4577,7 @@ public Builder setTaskNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -4576,11 +4618,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4597,11 +4639,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4617,17 +4659,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4642,14 +4685,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -4664,7 +4706,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -4735,7 +4777,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -4772,11 +4814,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4792,11 +4834,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4811,17 +4853,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4835,14 +4878,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -4856,7 +4898,7 @@ public Builder clearStartTime() { * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -4923,7 +4965,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -4960,11 +5002,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -4980,11 +5022,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -4999,17 +5041,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -5023,14 +5066,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -5044,7 +5086,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -5112,7 +5154,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * @return Whether the executorDetail field is set. */ public boolean hasExecutorDetail() { - return executorDetailBuilder_ != null || executorDetail_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -5154,11 +5196,11 @@ public Builder setExecutorDetail( throw new NullPointerException(); } executorDetail_ = value; - onChanged(); } else { executorDetailBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -5176,11 +5218,11 @@ public Builder setExecutorDetail( com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.Builder builderForValue) { if (executorDetailBuilder_ == null) { executorDetail_ = builderForValue.build(); - onChanged(); } else { executorDetailBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -5197,19 +5239,19 @@ public Builder setExecutorDetail( public Builder mergeExecutorDetail( com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail value) { if (executorDetailBuilder_ == null) { - if (executorDetail_ != null) { - executorDetail_ = - com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.newBuilder(executorDetail_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && executorDetail_ != null + && executorDetail_ + != com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.getDefaultInstance()) { + getExecutorDetailBuilder().mergeFrom(value); } else { executorDetail_ = value; } - onChanged(); } else { executorDetailBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -5224,14 +5266,13 @@ public Builder mergeExecutorDetail( * */ public Builder clearExecutorDetail() { - if (executorDetailBuilder_ == null) { - executorDetail_ = null; - onChanged(); - } else { - executorDetail_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + executorDetail_ = null; + if (executorDetailBuilder_ != null) { + executorDetailBuilder_.dispose(); executorDetailBuilder_ = null; } - + onChanged(); return this; } /** @@ -5247,7 +5288,7 @@ public Builder clearExecutorDetail() { */ public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.Builder getExecutorDetailBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getExecutorDetailFieldBuilder().getBuilder(); } @@ -5333,8 +5374,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -5353,9 +5394,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.PipelineTaskDetail.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.PipelineTaskDetail.State result = - com.google.cloud.aiplatform.v1.PipelineTaskDetail.State.valueOf(state_); + com.google.cloud.aiplatform.v1.PipelineTaskDetail.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.PipelineTaskDetail.State.UNRECOGNIZED : result; @@ -5378,7 +5418,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.PipelineTaskDetail.State if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000080; state_ = value.getNumber(); onChanged(); return this; @@ -5397,7 +5437,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.PipelineTaskDetail.State * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000080); state_ = 0; onChanged(); return this; @@ -5423,7 +5463,7 @@ public Builder clearState() { * @return Whether the execution field is set. */ public boolean hasExecution() { - return executionBuilder_ != null || execution_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -5464,11 +5504,11 @@ public Builder setExecution(com.google.cloud.aiplatform.v1.Execution value) { throw new NullPointerException(); } execution_ = value; - onChanged(); } else { executionBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -5485,11 +5525,11 @@ public Builder setExecution(com.google.cloud.aiplatform.v1.Execution value) { public Builder setExecution(com.google.cloud.aiplatform.v1.Execution.Builder builderForValue) { if (executionBuilder_ == null) { execution_ = builderForValue.build(); - onChanged(); } else { executionBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -5505,19 +5545,18 @@ public Builder setExecution(com.google.cloud.aiplatform.v1.Execution.Builder bui */ public Builder mergeExecution(com.google.cloud.aiplatform.v1.Execution value) { if (executionBuilder_ == null) { - if (execution_ != null) { - execution_ = - com.google.cloud.aiplatform.v1.Execution.newBuilder(execution_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && execution_ != null + && execution_ != com.google.cloud.aiplatform.v1.Execution.getDefaultInstance()) { + getExecutionBuilder().mergeFrom(value); } else { execution_ = value; } - onChanged(); } else { executionBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -5532,14 +5571,13 @@ public Builder mergeExecution(com.google.cloud.aiplatform.v1.Execution value) { * */ public Builder clearExecution() { - if (executionBuilder_ == null) { - execution_ = null; - onChanged(); - } else { - execution_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + execution_ = null; + if (executionBuilder_ != null) { + executionBuilder_.dispose(); executionBuilder_ = null; } - + onChanged(); return this; } /** @@ -5554,7 +5592,7 @@ public Builder clearExecution() { * */ public com.google.cloud.aiplatform.v1.Execution.Builder getExecutionBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getExecutionFieldBuilder().getBuilder(); } @@ -5623,7 +5661,7 @@ public com.google.cloud.aiplatform.v1.ExecutionOrBuilder getExecutionOrBuilder() * @return Whether the error field is set. */ public boolean hasError() { - return errorBuilder_ != null || error_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -5660,11 +5698,11 @@ public Builder setError(com.google.rpc.Status value) { throw new NullPointerException(); } error_ = value; - onChanged(); } else { errorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -5680,11 +5718,11 @@ public Builder setError(com.google.rpc.Status value) { public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); - onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -5699,16 +5737,18 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (error_ != null) { - error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); } else { error_ = value; } - onChanged(); } else { errorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -5722,14 +5762,13 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } - + onChanged(); return this; } /** @@ -5743,7 +5782,7 @@ public Builder clearError() { * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getErrorFieldBuilder().getBuilder(); } @@ -5792,12 +5831,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { pipelineTaskStatus_ = java.util.Collections.emptyList(); private void ensurePipelineTaskStatusIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000400) != 0)) { pipelineTaskStatus_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus>( pipelineTaskStatus_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000400; } } @@ -6058,7 +6097,7 @@ public Builder addAllPipelineTaskStatus( public Builder clearPipelineTaskStatus() { if (pipelineTaskStatusBuilder_ == null) { pipelineTaskStatus_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { pipelineTaskStatusBuilder_.clear(); @@ -6213,7 +6252,7 @@ public Builder removePipelineTaskStatus(int index) { com.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.Builder, com.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatusOrBuilder>( pipelineTaskStatus_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); pipelineTaskStatus_ = null; @@ -6237,14 +6276,14 @@ public Builder removePipelineTaskStatus(int index) { private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> internalGetMutableInputs() { - onChanged(); - ; if (inputs_ == null) { inputs_ = com.google.protobuf.MapField.newMapField(InputsDefaultEntryHolder.defaultEntry); } if (!inputs_.isMutable()) { inputs_ = inputs_.copy(); } + bitField0_ |= 0x00000800; + onChanged(); return inputs_; } @@ -6306,9 +6345,11 @@ public boolean containsInputs(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getInputsOrDefault( - java.lang.String key, - com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + getInputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -6344,6 +6385,7 @@ public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getInputsO } public Builder clearInputs() { + bitField0_ = (bitField0_ & ~0x00000800); internalGetMutableInputs().getMutableMap().clear(); return this; } @@ -6370,6 +6412,7 @@ public Builder removeInputs(java.lang.String key) { public java.util.Map< java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> getMutableInputs() { + bitField0_ |= 0x00000800; return internalGetMutableInputs().getMutableMap(); } /** @@ -6392,8 +6435,8 @@ public Builder putInputs( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableInputs().getMutableMap().put(key, value); + bitField0_ |= 0x00000800; return this; } /** @@ -6412,6 +6455,7 @@ public Builder putAllInputs( java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> values) { internalGetMutableInputs().getMutableMap().putAll(values); + bitField0_ |= 0x00000800; return this; } @@ -6431,14 +6475,14 @@ public Builder putAllInputs( private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> internalGetMutableOutputs() { - onChanged(); - ; if (outputs_ == null) { outputs_ = com.google.protobuf.MapField.newMapField(OutputsDefaultEntryHolder.defaultEntry); } if (!outputs_.isMutable()) { outputs_ = outputs_.copy(); } + bitField0_ |= 0x00001000; + onChanged(); return outputs_; } @@ -6500,9 +6544,11 @@ public boolean containsOutputs(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getOutputsOrDefault( - java.lang.String key, - com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + getOutputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -6538,6 +6584,7 @@ public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getOutputs } public Builder clearOutputs() { + bitField0_ = (bitField0_ & ~0x00001000); internalGetMutableOutputs().getMutableMap().clear(); return this; } @@ -6564,6 +6611,7 @@ public Builder removeOutputs(java.lang.String key) { public java.util.Map< java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> getMutableOutputs() { + bitField0_ |= 0x00001000; return internalGetMutableOutputs().getMutableMap(); } /** @@ -6586,8 +6634,8 @@ public Builder putOutputs( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableOutputs().getMutableMap().put(key, value); + bitField0_ |= 0x00001000; return this; } /** @@ -6606,6 +6654,7 @@ public Builder putAllOutputs( java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> values) { internalGetMutableOutputs().getMutableMap().putAll(values); + bitField0_ |= 0x00001000; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetailOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetailOrBuilder.java index 67eb0d5a3994..98860d6a5e03 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetailOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetailOrBuilder.java @@ -463,7 +463,6 @@ com.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus getPipeline * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - /* nullable */ com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getInputsOrDefault( java.lang.String key, @@ -535,7 +534,6 @@ com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getInputsOrThrow( * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - /* nullable */ com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getOutputsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetail.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetail.java index 85e3924f6c70..f18a68d0f2f3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetail.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetail.java @@ -337,7 +337,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MAIN_JOB_FIELD_NUMBER = 1; - private volatile java.lang.Object mainJob_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mainJob_ = ""; /** * * @@ -394,7 +396,9 @@ public com.google.protobuf.ByteString getMainJobBytes() { } public static final int PRE_CACHING_CHECK_JOB_FIELD_NUMBER = 2; - private volatile java.lang.Object preCachingCheckJob_; + + @SuppressWarnings("serial") + private volatile java.lang.Object preCachingCheckJob_ = ""; /** * * @@ -455,6 +459,8 @@ public com.google.protobuf.ByteString getPreCachingCheckJobBytes() { } public static final int FAILED_MAIN_JOBS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList failedMainJobs_; /** * @@ -528,6 +534,8 @@ public com.google.protobuf.ByteString getFailedMainJobsBytes(int index) { } public static final int FAILED_PRE_CACHING_CHECK_JOBS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList failedPreCachingCheckJobs_; /** * @@ -869,14 +877,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; mainJob_ = ""; - preCachingCheckJob_ = ""; - failedMainJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); failedPreCachingCheckJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -908,21 +915,37 @@ public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail buildPartial() { com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail result = new com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail(this); - int from_bitField0_ = bitField0_; - result.mainJob_ = mainJob_; - result.preCachingCheckJob_ = preCachingCheckJob_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail result) { + if (((bitField0_ & 0x00000004) != 0)) { failedMainJobs_ = failedMainJobs_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.failedMainJobs_ = failedMainJobs_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { failedPreCachingCheckJobs_ = failedPreCachingCheckJobs_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); } result.failedPreCachingCheckJobs_ = failedPreCachingCheckJobs_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mainJob_ = mainJob_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.preCachingCheckJob_ = preCachingCheckJob_; + } } @java.lang.Override @@ -979,16 +1002,18 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getMainJob().isEmpty()) { mainJob_ = other.mainJob_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getPreCachingCheckJob().isEmpty()) { preCachingCheckJob_ = other.preCachingCheckJob_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.failedMainJobs_.isEmpty()) { if (failedMainJobs_.isEmpty()) { failedMainJobs_ = other.failedMainJobs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFailedMainJobsIsMutable(); failedMainJobs_.addAll(other.failedMainJobs_); @@ -998,7 +1023,7 @@ public Builder mergeFrom( if (!other.failedPreCachingCheckJobs_.isEmpty()) { if (failedPreCachingCheckJobs_.isEmpty()) { failedPreCachingCheckJobs_ = other.failedPreCachingCheckJobs_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureFailedPreCachingCheckJobsIsMutable(); failedPreCachingCheckJobs_.addAll(other.failedPreCachingCheckJobs_); @@ -1034,13 +1059,13 @@ public Builder mergeFrom( case 10: { mainJob_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { preCachingCheckJob_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -1149,8 +1174,8 @@ public Builder setMainJob(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mainJob_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1170,8 +1195,8 @@ public Builder setMainJob(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMainJob() { - mainJob_ = getDefaultInstance().getMainJob(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1196,8 +1221,8 @@ public Builder setMainJobBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mainJob_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1281,8 +1306,8 @@ public Builder setPreCachingCheckJob(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - preCachingCheckJob_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1304,8 +1329,8 @@ public Builder setPreCachingCheckJob(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPreCachingCheckJob() { - preCachingCheckJob_ = getDefaultInstance().getPreCachingCheckJob(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1332,8 +1357,8 @@ public Builder setPreCachingCheckJobBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - preCachingCheckJob_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1342,9 +1367,9 @@ public Builder setPreCachingCheckJobBytes(com.google.protobuf.ByteString value) com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFailedMainJobsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { failedMainJobs_ = new com.google.protobuf.LazyStringArrayList(failedMainJobs_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } /** @@ -1503,7 +1528,7 @@ public Builder addAllFailedMainJobs(java.lang.Iterable values) */ public Builder clearFailedMainJobs() { failedMainJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1537,10 +1562,10 @@ public Builder addFailedMainJobsBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFailedPreCachingCheckJobsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { failedPreCachingCheckJobs_ = new com.google.protobuf.LazyStringArrayList(failedPreCachingCheckJobs_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; } } /** @@ -1731,7 +1756,7 @@ public Builder addAllFailedPreCachingCheckJobs(java.lang.Iterable instances_; /** * @@ -294,7 +298,7 @@ public com.google.protobuf.Value getParameters() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getParametersOrBuilder() { - return getParameters(); + return parameters_ == null ? com.google.protobuf.Value.getDefaultInstance() : parameters_; } private byte memoizedIsInitialized = -1; @@ -520,19 +524,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; endpoint_ = ""; - if (instancesBuilder_ == null) { instances_ = java.util.Collections.emptyList(); } else { instances_ = null; instancesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (parametersBuilder_ == null) { - parameters_ = null; - } else { - parameters_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } return this; @@ -562,24 +565,34 @@ public com.google.cloud.aiplatform.v1.PredictRequest build() { public com.google.cloud.aiplatform.v1.PredictRequest buildPartial() { com.google.cloud.aiplatform.v1.PredictRequest result = new com.google.cloud.aiplatform.v1.PredictRequest(this); - int from_bitField0_ = bitField0_; - result.endpoint_ = endpoint_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.PredictRequest result) { if (instancesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { instances_ = java.util.Collections.unmodifiableList(instances_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.instances_ = instances_; } else { result.instances_ = instancesBuilder_.build(); } - if (parametersBuilder_ == null) { - result.parameters_ = parameters_; - } else { - result.parameters_ = parametersBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.PredictRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpoint_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -629,13 +642,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PredictRequest other) { if (other == com.google.cloud.aiplatform.v1.PredictRequest.getDefaultInstance()) return this; if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { instances_ = other.instances_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureInstancesIsMutable(); instances_.addAll(other.instances_); @@ -648,7 +662,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PredictRequest other) { instancesBuilder_.dispose(); instancesBuilder_ = null; instances_ = other.instances_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); instancesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInstancesFieldBuilder() @@ -690,7 +704,7 @@ public Builder mergeFrom( case 10: { endpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -708,7 +722,7 @@ public Builder mergeFrom( case 26: { input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -803,8 +817,8 @@ public Builder setEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -824,8 +838,8 @@ public Builder setEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEndpoint() { - endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -850,8 +864,8 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -860,9 +874,9 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureInstancesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { instances_ = new java.util.ArrayList(instances_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1184,7 +1198,7 @@ public Builder addAllInstances(java.lang.Iterable getInstancesBuilderList com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( - instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + instances_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); instances_ = null; } return instancesBuilder_; @@ -1402,7 +1416,7 @@ public java.util.List getInstancesBuilderList * @return Whether the parameters field is set. */ public boolean hasParameters() { - return parametersBuilder_ != null || parameters_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1445,11 +1459,11 @@ public Builder setParameters(com.google.protobuf.Value value) { throw new NullPointerException(); } parameters_ = value; - onChanged(); } else { parametersBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1468,11 +1482,11 @@ public Builder setParameters(com.google.protobuf.Value value) { public Builder setParameters(com.google.protobuf.Value.Builder builderForValue) { if (parametersBuilder_ == null) { parameters_ = builderForValue.build(); - onChanged(); } else { parametersBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1490,17 +1504,18 @@ public Builder setParameters(com.google.protobuf.Value.Builder builderForValue) */ public Builder mergeParameters(com.google.protobuf.Value value) { if (parametersBuilder_ == null) { - if (parameters_ != null) { - parameters_ = - com.google.protobuf.Value.newBuilder(parameters_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && parameters_ != null + && parameters_ != com.google.protobuf.Value.getDefaultInstance()) { + getParametersBuilder().mergeFrom(value); } else { parameters_ = value; } - onChanged(); } else { parametersBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1517,14 +1532,13 @@ public Builder mergeParameters(com.google.protobuf.Value value) { * .google.protobuf.Value parameters = 3; */ public Builder clearParameters() { - if (parametersBuilder_ == null) { - parameters_ = null; - onChanged(); - } else { - parameters_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } - + onChanged(); return this; } /** @@ -1541,7 +1555,7 @@ public Builder clearParameters() { * .google.protobuf.Value parameters = 3; */ public com.google.protobuf.Value.Builder getParametersBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getParametersFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictRequestResponseLoggingConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictRequestResponseLoggingConfig.java index 3b5fb596689b..ff2106774426 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictRequestResponseLoggingConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictRequestResponseLoggingConfig.java @@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; + private boolean enabled_ = false; /** * * @@ -86,7 +86,7 @@ public boolean getEnabled() { } public static final int SAMPLING_RATE_FIELD_NUMBER = 2; - private double samplingRate_; + private double samplingRate_ = 0D; /** * * @@ -165,7 +165,9 @@ public com.google.cloud.aiplatform.v1.BigQueryDestination getBigqueryDestination @java.lang.Override public com.google.cloud.aiplatform.v1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { - return getBigqueryDestination(); + return bigqueryDestination_ == null + ? com.google.cloud.aiplatform.v1.BigQueryDestination.getDefaultInstance() + : bigqueryDestination_; } private byte memoizedIsInitialized = -1; @@ -395,14 +397,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; enabled_ = false; - samplingRate_ = 0D; - - if (bigqueryDestinationBuilder_ == null) { - bigqueryDestination_ = null; - } else { - bigqueryDestination_ = null; + bigqueryDestination_ = null; + if (bigqueryDestinationBuilder_ != null) { + bigqueryDestinationBuilder_.dispose(); bigqueryDestinationBuilder_ = null; } return this; @@ -434,17 +434,30 @@ public com.google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfig build( public com.google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfig buildPartial() { com.google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfig result = new com.google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfig(this); - result.enabled_ = enabled_; - result.samplingRate_ = samplingRate_; - if (bigqueryDestinationBuilder_ == null) { - result.bigqueryDestination_ = bigqueryDestination_; - } else { - result.bigqueryDestination_ = bigqueryDestinationBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.samplingRate_ = samplingRate_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.bigqueryDestination_ = + bigqueryDestinationBuilder_ == null + ? bigqueryDestination_ + : bigqueryDestinationBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -532,20 +545,20 @@ public Builder mergeFrom( case 8: { enabled_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 case 17: { samplingRate_ = input.readDouble(); - + bitField0_ |= 0x00000002; break; } // case 17 case 26: { input.readMessage( getBigqueryDestinationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -565,6 +578,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean enabled_; /** * @@ -596,6 +611,7 @@ public boolean getEnabled() { public Builder setEnabled(boolean value) { enabled_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -611,7 +627,7 @@ public Builder setEnabled(boolean value) { * @return This builder for chaining. */ public Builder clearEnabled() { - + bitField0_ = (bitField0_ & ~0x00000001); enabled_ = false; onChanged(); return this; @@ -650,6 +666,7 @@ public double getSamplingRate() { public Builder setSamplingRate(double value) { samplingRate_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -666,7 +683,7 @@ public Builder setSamplingRate(double value) { * @return This builder for chaining. */ public Builder clearSamplingRate() { - + bitField0_ = (bitField0_ & ~0x00000002); samplingRate_ = 0D; onChanged(); return this; @@ -695,7 +712,7 @@ public Builder clearSamplingRate() { * @return Whether the bigqueryDestination field is set. */ public boolean hasBigqueryDestination() { - return bigqueryDestinationBuilder_ != null || bigqueryDestination_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -743,11 +760,11 @@ public Builder setBigqueryDestination( throw new NullPointerException(); } bigqueryDestination_ = value; - onChanged(); } else { bigqueryDestinationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -768,11 +785,11 @@ public Builder setBigqueryDestination( com.google.cloud.aiplatform.v1.BigQueryDestination.Builder builderForValue) { if (bigqueryDestinationBuilder_ == null) { bigqueryDestination_ = builderForValue.build(); - onChanged(); } else { bigqueryDestinationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -792,19 +809,19 @@ public Builder setBigqueryDestination( public Builder mergeBigqueryDestination( com.google.cloud.aiplatform.v1.BigQueryDestination value) { if (bigqueryDestinationBuilder_ == null) { - if (bigqueryDestination_ != null) { - bigqueryDestination_ = - com.google.cloud.aiplatform.v1.BigQueryDestination.newBuilder(bigqueryDestination_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && bigqueryDestination_ != null + && bigqueryDestination_ + != com.google.cloud.aiplatform.v1.BigQueryDestination.getDefaultInstance()) { + getBigqueryDestinationBuilder().mergeFrom(value); } else { bigqueryDestination_ = value; } - onChanged(); } else { bigqueryDestinationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -822,14 +839,13 @@ public Builder mergeBigqueryDestination( * .google.cloud.aiplatform.v1.BigQueryDestination bigquery_destination = 3; */ public Builder clearBigqueryDestination() { - if (bigqueryDestinationBuilder_ == null) { - bigqueryDestination_ = null; - onChanged(); - } else { - bigqueryDestination_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + bigqueryDestination_ = null; + if (bigqueryDestinationBuilder_ != null) { + bigqueryDestinationBuilder_.dispose(); bigqueryDestinationBuilder_ = null; } - + onChanged(); return this; } /** @@ -848,7 +864,7 @@ public Builder clearBigqueryDestination() { */ public com.google.cloud.aiplatform.v1.BigQueryDestination.Builder getBigqueryDestinationBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getBigqueryDestinationFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictResponse.java index 5dd22502b122..25ca6a98f206 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictResponse.java @@ -73,6 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PREDICTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List predictions_; /** * @@ -162,7 +164,9 @@ public com.google.protobuf.ValueOrBuilder getPredictionsOrBuilder(int index) { } public static final int DEPLOYED_MODEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deployedModelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedModelId_ = ""; /** * * @@ -211,7 +215,9 @@ public com.google.protobuf.ByteString getDeployedModelIdBytes() { } public static final int MODEL_FIELD_NUMBER = 3; - private volatile java.lang.Object model_; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; /** * * @@ -266,7 +272,9 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int MODEL_VERSION_ID_FIELD_NUMBER = 5; - private volatile java.lang.Object modelVersionId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelVersionId_ = ""; /** * * @@ -317,7 +325,9 @@ public com.google.protobuf.ByteString getModelVersionIdBytes() { } public static final int MODEL_DISPLAY_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object modelDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelDisplayName_ = ""; /** * * @@ -605,6 +615,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (predictionsBuilder_ == null) { predictions_ = java.util.Collections.emptyList(); } else { @@ -613,13 +624,9 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); deployedModelId_ = ""; - model_ = ""; - modelVersionId_ = ""; - modelDisplayName_ = ""; - return this; } @@ -647,7 +654,15 @@ public com.google.cloud.aiplatform.v1.PredictResponse build() { public com.google.cloud.aiplatform.v1.PredictResponse buildPartial() { com.google.cloud.aiplatform.v1.PredictResponse result = new com.google.cloud.aiplatform.v1.PredictResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.PredictResponse result) { if (predictionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { predictions_ = java.util.Collections.unmodifiableList(predictions_); @@ -657,12 +672,22 @@ public com.google.cloud.aiplatform.v1.PredictResponse buildPartial() { } else { result.predictions_ = predictionsBuilder_.build(); } - result.deployedModelId_ = deployedModelId_; - result.model_ = model_; - result.modelVersionId_ = modelVersionId_; - result.modelDisplayName_ = modelDisplayName_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.PredictResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedModelId_ = deployedModelId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.model_ = model_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.modelVersionId_ = modelVersionId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.modelDisplayName_ = modelDisplayName_; + } } @java.lang.Override @@ -739,18 +764,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PredictResponse other) { } if (!other.getDeployedModelId().isEmpty()) { deployedModelId_ = other.deployedModelId_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getModel().isEmpty()) { model_ = other.model_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getModelVersionId().isEmpty()) { modelVersionId_ = other.modelVersionId_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getModelDisplayName().isEmpty()) { modelDisplayName_ = other.modelDisplayName_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -794,25 +823,25 @@ public Builder mergeFrom( case 18: { deployedModelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { model_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { modelDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 34 case 42: { modelVersionId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 42 default: @@ -1313,8 +1342,8 @@ public Builder setDeployedModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1330,8 +1359,8 @@ public Builder setDeployedModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedModelId() { - deployedModelId_ = getDefaultInstance().getDeployedModelId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1352,8 +1381,8 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1428,8 +1457,8 @@ public Builder setModel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - model_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1448,8 +1477,8 @@ public Builder setModel(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModel() { - model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1473,8 +1502,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - model_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1543,8 +1572,8 @@ public Builder setModelVersionId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelVersionId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1561,8 +1590,8 @@ public Builder setModelVersionId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelVersionId() { - modelVersionId_ = getDefaultInstance().getModelVersionId(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1584,8 +1613,8 @@ public Builder setModelVersionIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelVersionId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1657,8 +1686,8 @@ public Builder setModelDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelDisplayName_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1676,8 +1705,8 @@ public Builder setModelDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelDisplayName() { - modelDisplayName_ = getDefaultInstance().getModelDisplayName(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1700,8 +1729,8 @@ public Builder setModelDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelDisplayName_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictSchemata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictSchemata.java index 719d89058d03..96b6c4664ac7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictSchemata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictSchemata.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INSTANCE_SCHEMA_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object instanceSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceSchemaUri_ = ""; /** * * @@ -144,7 +146,9 @@ public com.google.protobuf.ByteString getInstanceSchemaUriBytes() { } public static final int PARAMETERS_SCHEMA_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object parametersSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parametersSchemaUri_ = ""; /** * * @@ -217,7 +221,9 @@ public com.google.protobuf.ByteString getParametersSchemaUriBytes() { } public static final int PREDICTION_SCHEMA_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object predictionSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object predictionSchemaUri_ = ""; /** * * @@ -507,12 +513,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; instanceSchemaUri_ = ""; - parametersSchemaUri_ = ""; - predictionSchemaUri_ = ""; - return this; } @@ -540,13 +544,26 @@ public com.google.cloud.aiplatform.v1.PredictSchemata build() { public com.google.cloud.aiplatform.v1.PredictSchemata buildPartial() { com.google.cloud.aiplatform.v1.PredictSchemata result = new com.google.cloud.aiplatform.v1.PredictSchemata(this); - result.instanceSchemaUri_ = instanceSchemaUri_; - result.parametersSchemaUri_ = parametersSchemaUri_; - result.predictionSchemaUri_ = predictionSchemaUri_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.PredictSchemata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceSchemaUri_ = instanceSchemaUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parametersSchemaUri_ = parametersSchemaUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.predictionSchemaUri_ = predictionSchemaUri_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -594,14 +611,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PredictSchemata other) { if (other == com.google.cloud.aiplatform.v1.PredictSchemata.getDefaultInstance()) return this; if (!other.getInstanceSchemaUri().isEmpty()) { instanceSchemaUri_ = other.instanceSchemaUri_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getParametersSchemaUri().isEmpty()) { parametersSchemaUri_ = other.parametersSchemaUri_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getPredictionSchemaUri().isEmpty()) { predictionSchemaUri_ = other.predictionSchemaUri_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -633,19 +653,19 @@ public Builder mergeFrom( case 10: { instanceSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { parametersSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { predictionSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -665,6 +685,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object instanceSchemaUri_ = ""; /** * @@ -759,8 +781,8 @@ public Builder setInstanceSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - instanceSchemaUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -787,8 +809,8 @@ public Builder setInstanceSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInstanceSchemaUri() { - instanceSchemaUri_ = getDefaultInstance().getInstanceSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -820,8 +842,8 @@ public Builder setInstanceSchemaUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - instanceSchemaUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -923,8 +945,8 @@ public Builder setParametersSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parametersSchemaUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -952,8 +974,8 @@ public Builder setParametersSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParametersSchemaUri() { - parametersSchemaUri_ = getDefaultInstance().getParametersSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -986,8 +1008,8 @@ public Builder setParametersSchemaUriBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - parametersSchemaUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1089,8 +1111,8 @@ public Builder setPredictionSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - predictionSchemaUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1118,8 +1140,8 @@ public Builder setPredictionSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPredictionSchemaUri() { - predictionSchemaUri_ = getDefaultInstance().getPredictionSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1152,8 +1174,8 @@ public Builder setPredictionSchemaUriBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - predictionSchemaUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PrivateEndpoints.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PrivateEndpoints.java index 32035eb6335d..7cbc506ee5ec 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PrivateEndpoints.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PrivateEndpoints.java @@ -75,7 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PREDICT_HTTP_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object predictHttpUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object predictHttpUri_ = ""; /** * * @@ -124,7 +126,9 @@ public com.google.protobuf.ByteString getPredictHttpUriBytes() { } public static final int EXPLAIN_HTTP_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object explainHttpUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object explainHttpUri_ = ""; /** * * @@ -173,7 +177,9 @@ public com.google.protobuf.ByteString getExplainHttpUriBytes() { } public static final int HEALTH_HTTP_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object healthHttpUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object healthHttpUri_ = ""; /** * * @@ -222,7 +228,9 @@ public com.google.protobuf.ByteString getHealthHttpUriBytes() { } public static final int SERVICE_ATTACHMENT_FIELD_NUMBER = 4; - private volatile java.lang.Object serviceAttachment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAttachment_ = ""; /** * * @@ -500,14 +508,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; predictHttpUri_ = ""; - explainHttpUri_ = ""; - healthHttpUri_ = ""; - serviceAttachment_ = ""; - return this; } @@ -535,14 +540,29 @@ public com.google.cloud.aiplatform.v1.PrivateEndpoints build() { public com.google.cloud.aiplatform.v1.PrivateEndpoints buildPartial() { com.google.cloud.aiplatform.v1.PrivateEndpoints result = new com.google.cloud.aiplatform.v1.PrivateEndpoints(this); - result.predictHttpUri_ = predictHttpUri_; - result.explainHttpUri_ = explainHttpUri_; - result.healthHttpUri_ = healthHttpUri_; - result.serviceAttachment_ = serviceAttachment_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.PrivateEndpoints result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.predictHttpUri_ = predictHttpUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.explainHttpUri_ = explainHttpUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.healthHttpUri_ = healthHttpUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceAttachment_ = serviceAttachment_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -591,18 +611,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PrivateEndpoints other) return this; if (!other.getPredictHttpUri().isEmpty()) { predictHttpUri_ = other.predictHttpUri_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getExplainHttpUri().isEmpty()) { explainHttpUri_ = other.explainHttpUri_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getHealthHttpUri().isEmpty()) { healthHttpUri_ = other.healthHttpUri_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getServiceAttachment().isEmpty()) { serviceAttachment_ = other.serviceAttachment_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -634,25 +658,25 @@ public Builder mergeFrom( case 10: { predictHttpUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { explainHttpUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { healthHttpUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { serviceAttachment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -672,6 +696,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object predictHttpUri_ = ""; /** * @@ -733,8 +759,8 @@ public Builder setPredictHttpUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - predictHttpUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -750,8 +776,8 @@ public Builder setPredictHttpUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPredictHttpUri() { - predictHttpUri_ = getDefaultInstance().getPredictHttpUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -772,8 +798,8 @@ public Builder setPredictHttpUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - predictHttpUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -839,8 +865,8 @@ public Builder setExplainHttpUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - explainHttpUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -856,8 +882,8 @@ public Builder setExplainHttpUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearExplainHttpUri() { - explainHttpUri_ = getDefaultInstance().getExplainHttpUri(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -878,8 +904,8 @@ public Builder setExplainHttpUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - explainHttpUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -945,8 +971,8 @@ public Builder setHealthHttpUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - healthHttpUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -962,8 +988,8 @@ public Builder setHealthHttpUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearHealthHttpUri() { - healthHttpUri_ = getDefaultInstance().getHealthHttpUri(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -984,8 +1010,8 @@ public Builder setHealthHttpUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - healthHttpUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1054,8 +1080,8 @@ public Builder setServiceAttachment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - serviceAttachment_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1072,8 +1098,8 @@ public Builder setServiceAttachment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearServiceAttachment() { - serviceAttachment_ = getDefaultInstance().getServiceAttachment(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1095,8 +1121,8 @@ public Builder setServiceAttachmentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - serviceAttachment_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsMetadata.java index de5cccc8c5c8..eb5b8cde4d29 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -319,10 +321,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -352,15 +354,21 @@ public com.google.cloud.aiplatform.v1.PurgeArtifactsMetadata build() { public com.google.cloud.aiplatform.v1.PurgeArtifactsMetadata buildPartial() { com.google.cloud.aiplatform.v1.PurgeArtifactsMetadata result = new com.google.cloud.aiplatform.v1.PurgeArtifactsMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.PurgeArtifactsMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -439,7 +447,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +467,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -477,7 +487,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -515,11 +525,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -535,11 +545,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -554,19 +564,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -579,14 +589,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -600,7 +609,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsRequest.java index f1d7319caa64..2670fbcbcefe 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -178,7 +182,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int FORCE_FIELD_NUMBER = 3; - private boolean force_; + private boolean force_ = false; /** * * @@ -413,12 +417,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - force_ = false; - return this; } @@ -446,13 +448,26 @@ public com.google.cloud.aiplatform.v1.PurgeArtifactsRequest build() { public com.google.cloud.aiplatform.v1.PurgeArtifactsRequest buildPartial() { com.google.cloud.aiplatform.v1.PurgeArtifactsRequest result = new com.google.cloud.aiplatform.v1.PurgeArtifactsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.PurgeArtifactsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -501,10 +516,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PurgeArtifactsRequest ot return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getForce() != false) { @@ -539,19 +556,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { force_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -571,6 +588,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -644,8 +663,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -665,8 +684,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -691,8 +710,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -761,8 +780,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -779,8 +798,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -802,8 +821,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -843,6 +862,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -860,7 +880,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000004); force_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsResponse.java index ce497d99d3ab..3eede0d08ac3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeArtifactsResponse.java @@ -69,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PURGE_COUNT_FIELD_NUMBER = 1; - private long purgeCount_; + private long purgeCount_ = 0L; /** * * @@ -88,6 +88,8 @@ public long getPurgeCount() { } public static final int PURGE_SAMPLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList purgeSample_; /** * @@ -371,10 +373,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; purgeCount_ = 0L; - purgeSample_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -402,17 +404,30 @@ public com.google.cloud.aiplatform.v1.PurgeArtifactsResponse build() { public com.google.cloud.aiplatform.v1.PurgeArtifactsResponse buildPartial() { com.google.cloud.aiplatform.v1.PurgeArtifactsResponse result = new com.google.cloud.aiplatform.v1.PurgeArtifactsResponse(this); - int from_bitField0_ = bitField0_; - result.purgeCount_ = purgeCount_; - if (((bitField0_ & 0x00000001) != 0)) { - purgeSample_ = purgeSample_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.purgeSample_ = purgeSample_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.PurgeArtifactsResponse result) { + if (((bitField0_ & 0x00000002) != 0)) { + purgeSample_ = purgeSample_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.purgeSample_ = purgeSample_; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.PurgeArtifactsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.purgeCount_ = purgeCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -465,7 +480,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PurgeArtifactsResponse o if (!other.purgeSample_.isEmpty()) { if (purgeSample_.isEmpty()) { purgeSample_ = other.purgeSample_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePurgeSampleIsMutable(); purgeSample_.addAll(other.purgeSample_); @@ -501,7 +516,7 @@ public Builder mergeFrom( case 8: { purgeCount_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: @@ -563,6 +578,7 @@ public long getPurgeCount() { public Builder setPurgeCount(long value) { purgeCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -579,7 +595,7 @@ public Builder setPurgeCount(long value) { * @return This builder for chaining. */ public Builder clearPurgeCount() { - + bitField0_ = (bitField0_ & ~0x00000001); purgeCount_ = 0L; onChanged(); return this; @@ -589,9 +605,9 @@ public Builder clearPurgeCount() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePurgeSampleIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { purgeSample_ = new com.google.protobuf.LazyStringArrayList(purgeSample_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -742,7 +758,7 @@ public Builder addAllPurgeSample(java.lang.Iterable values) { */ public Builder clearPurgeSample() { purgeSample_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsMetadata.java index c84521628b8a..1e9404f9100e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -318,10 +320,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -351,15 +353,21 @@ public com.google.cloud.aiplatform.v1.PurgeContextsMetadata build() { public com.google.cloud.aiplatform.v1.PurgeContextsMetadata buildPartial() { com.google.cloud.aiplatform.v1.PurgeContextsMetadata result = new com.google.cloud.aiplatform.v1.PurgeContextsMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.PurgeContextsMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -438,7 +446,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -458,6 +466,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -476,7 +486,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -514,11 +524,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -534,11 +544,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -553,19 +563,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -578,14 +588,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -599,7 +608,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsRequest.java index 1e8ad5b29311..1a487bc77849 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -178,7 +182,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int FORCE_FIELD_NUMBER = 3; - private boolean force_; + private boolean force_ = false; /** * * @@ -413,12 +417,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - force_ = false; - return this; } @@ -446,13 +448,26 @@ public com.google.cloud.aiplatform.v1.PurgeContextsRequest build() { public com.google.cloud.aiplatform.v1.PurgeContextsRequest buildPartial() { com.google.cloud.aiplatform.v1.PurgeContextsRequest result = new com.google.cloud.aiplatform.v1.PurgeContextsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.PurgeContextsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -501,10 +516,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PurgeContextsRequest oth return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getForce() != false) { @@ -539,19 +556,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { force_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -571,6 +588,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -644,8 +663,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -665,8 +684,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -691,8 +710,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -761,8 +780,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -779,8 +798,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -802,8 +821,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -843,6 +862,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -860,7 +880,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000004); force_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsResponse.java index 8f62a2e78ea3..868e62d4d98b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeContextsResponse.java @@ -69,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PURGE_COUNT_FIELD_NUMBER = 1; - private long purgeCount_; + private long purgeCount_ = 0L; /** * * @@ -88,6 +88,8 @@ public long getPurgeCount() { } public static final int PURGE_SAMPLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList purgeSample_; /** * @@ -370,10 +372,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; purgeCount_ = 0L; - purgeSample_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -401,17 +403,30 @@ public com.google.cloud.aiplatform.v1.PurgeContextsResponse build() { public com.google.cloud.aiplatform.v1.PurgeContextsResponse buildPartial() { com.google.cloud.aiplatform.v1.PurgeContextsResponse result = new com.google.cloud.aiplatform.v1.PurgeContextsResponse(this); - int from_bitField0_ = bitField0_; - result.purgeCount_ = purgeCount_; - if (((bitField0_ & 0x00000001) != 0)) { - purgeSample_ = purgeSample_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.purgeSample_ = purgeSample_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.PurgeContextsResponse result) { + if (((bitField0_ & 0x00000002) != 0)) { + purgeSample_ = purgeSample_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.purgeSample_ = purgeSample_; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.PurgeContextsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.purgeCount_ = purgeCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -464,7 +479,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PurgeContextsResponse ot if (!other.purgeSample_.isEmpty()) { if (purgeSample_.isEmpty()) { purgeSample_ = other.purgeSample_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePurgeSampleIsMutable(); purgeSample_.addAll(other.purgeSample_); @@ -500,7 +515,7 @@ public Builder mergeFrom( case 8: { purgeCount_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: @@ -562,6 +577,7 @@ public long getPurgeCount() { public Builder setPurgeCount(long value) { purgeCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -578,7 +594,7 @@ public Builder setPurgeCount(long value) { * @return This builder for chaining. */ public Builder clearPurgeCount() { - + bitField0_ = (bitField0_ & ~0x00000001); purgeCount_ = 0L; onChanged(); return this; @@ -588,9 +604,9 @@ public Builder clearPurgeCount() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePurgeSampleIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { purgeSample_ = new com.google.protobuf.LazyStringArrayList(purgeSample_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -741,7 +757,7 @@ public Builder addAllPurgeSample(java.lang.Iterable values) { */ public Builder clearPurgeSample() { purgeSample_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsMetadata.java index 61ea808a32b5..d38c3715d82a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -319,10 +321,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -352,15 +354,21 @@ public com.google.cloud.aiplatform.v1.PurgeExecutionsMetadata build() { public com.google.cloud.aiplatform.v1.PurgeExecutionsMetadata buildPartial() { com.google.cloud.aiplatform.v1.PurgeExecutionsMetadata result = new com.google.cloud.aiplatform.v1.PurgeExecutionsMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.PurgeExecutionsMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -439,7 +447,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +467,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -477,7 +487,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -515,11 +525,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -535,11 +545,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -554,19 +564,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -579,14 +589,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -600,7 +609,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsRequest.java index b7d6444da37b..338712c498c3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -178,7 +182,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int FORCE_FIELD_NUMBER = 3; - private boolean force_; + private boolean force_ = false; /** * * @@ -414,12 +418,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - force_ = false; - return this; } @@ -447,13 +449,26 @@ public com.google.cloud.aiplatform.v1.PurgeExecutionsRequest build() { public com.google.cloud.aiplatform.v1.PurgeExecutionsRequest buildPartial() { com.google.cloud.aiplatform.v1.PurgeExecutionsRequest result = new com.google.cloud.aiplatform.v1.PurgeExecutionsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.PurgeExecutionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -502,10 +517,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PurgeExecutionsRequest o return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getForce() != false) { @@ -540,19 +557,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { force_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -572,6 +589,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -645,8 +664,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -666,8 +685,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -692,8 +711,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -762,8 +781,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -780,8 +799,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -803,8 +822,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -844,6 +863,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -861,7 +881,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000004); force_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsResponse.java index b500020d0622..24acaf7f6057 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsResponse.java @@ -69,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PURGE_COUNT_FIELD_NUMBER = 1; - private long purgeCount_; + private long purgeCount_ = 0L; /** * * @@ -89,6 +89,8 @@ public long getPurgeCount() { } public static final int PURGE_SAMPLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList purgeSample_; /** * @@ -372,10 +374,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; purgeCount_ = 0L; - purgeSample_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -403,17 +405,30 @@ public com.google.cloud.aiplatform.v1.PurgeExecutionsResponse build() { public com.google.cloud.aiplatform.v1.PurgeExecutionsResponse buildPartial() { com.google.cloud.aiplatform.v1.PurgeExecutionsResponse result = new com.google.cloud.aiplatform.v1.PurgeExecutionsResponse(this); - int from_bitField0_ = bitField0_; - result.purgeCount_ = purgeCount_; - if (((bitField0_ & 0x00000001) != 0)) { - purgeSample_ = purgeSample_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.purgeSample_ = purgeSample_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.PurgeExecutionsResponse result) { + if (((bitField0_ & 0x00000002) != 0)) { + purgeSample_ = purgeSample_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.purgeSample_ = purgeSample_; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.PurgeExecutionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.purgeCount_ = purgeCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -466,7 +481,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PurgeExecutionsResponse if (!other.purgeSample_.isEmpty()) { if (purgeSample_.isEmpty()) { purgeSample_ = other.purgeSample_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePurgeSampleIsMutable(); purgeSample_.addAll(other.purgeSample_); @@ -502,7 +517,7 @@ public Builder mergeFrom( case 8: { purgeCount_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: @@ -566,6 +581,7 @@ public long getPurgeCount() { public Builder setPurgeCount(long value) { purgeCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -583,7 +599,7 @@ public Builder setPurgeCount(long value) { * @return This builder for chaining. */ public Builder clearPurgeCount() { - + bitField0_ = (bitField0_ & ~0x00000001); purgeCount_ = 0L; onChanged(); return this; @@ -593,9 +609,9 @@ public Builder clearPurgeCount() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePurgeSampleIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { purgeSample_ = new com.google.protobuf.LazyStringArrayList(purgeSample_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -746,7 +762,7 @@ public Builder addAllPurgeSample(java.lang.Iterable values) { */ public Builder clearPurgeSample() { purgeSample_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PythonPackageSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PythonPackageSpec.java index a9cbe6e8629a..e39f293b8eb9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PythonPackageSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PythonPackageSpec.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int EXECUTOR_IMAGE_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object executorImageUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object executorImageUri_ = ""; /** * * @@ -131,6 +133,8 @@ public com.google.protobuf.ByteString getExecutorImageUriBytes() { } public static final int PACKAGE_URIS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList packageUris_; /** * @@ -200,7 +204,9 @@ public com.google.protobuf.ByteString getPackageUrisBytes(int index) { } public static final int PYTHON_MODULE_FIELD_NUMBER = 3; - private volatile java.lang.Object pythonModule_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pythonModule_ = ""; /** * * @@ -249,6 +255,8 @@ public com.google.protobuf.ByteString getPythonModuleBytes() { } public static final int ARGS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList args_; /** * @@ -310,6 +318,8 @@ public com.google.protobuf.ByteString getArgsBytes(int index) { } public static final int ENV_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private java.util.List env_; /** * @@ -632,21 +642,20 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; executorImageUri_ = ""; - packageUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); pythonModule_ = ""; - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); if (envBuilder_ == null) { env_ = java.util.Collections.emptyList(); } else { env_ = null; envBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); return this; } @@ -674,30 +683,45 @@ public com.google.cloud.aiplatform.v1.PythonPackageSpec build() { public com.google.cloud.aiplatform.v1.PythonPackageSpec buildPartial() { com.google.cloud.aiplatform.v1.PythonPackageSpec result = new com.google.cloud.aiplatform.v1.PythonPackageSpec(this); - int from_bitField0_ = bitField0_; - result.executorImageUri_ = executorImageUri_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.PythonPackageSpec result) { + if (((bitField0_ & 0x00000002) != 0)) { packageUris_ = packageUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.packageUris_ = packageUris_; - result.pythonModule_ = pythonModule_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { args_ = args_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); } result.args_ = args_; if (envBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { env_ = java.util.Collections.unmodifiableList(env_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); } result.env_ = env_; } else { result.env_ = envBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.PythonPackageSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.executorImageUri_ = executorImageUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pythonModule_ = pythonModule_; + } } @java.lang.Override @@ -748,12 +772,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PythonPackageSpec other) return this; if (!other.getExecutorImageUri().isEmpty()) { executorImageUri_ = other.executorImageUri_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.packageUris_.isEmpty()) { if (packageUris_.isEmpty()) { packageUris_ = other.packageUris_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePackageUrisIsMutable(); packageUris_.addAll(other.packageUris_); @@ -762,12 +787,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PythonPackageSpec other) } if (!other.getPythonModule().isEmpty()) { pythonModule_ = other.pythonModule_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.args_.isEmpty()) { if (args_.isEmpty()) { args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureArgsIsMutable(); args_.addAll(other.args_); @@ -778,7 +804,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PythonPackageSpec other) if (!other.env_.isEmpty()) { if (env_.isEmpty()) { env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureEnvIsMutable(); env_.addAll(other.env_); @@ -791,7 +817,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PythonPackageSpec other) envBuilder_.dispose(); envBuilder_ = null; env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); envBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEnvFieldBuilder() @@ -830,7 +856,7 @@ public Builder mergeFrom( case 10: { executorImageUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -843,7 +869,7 @@ public Builder mergeFrom( case 26: { pythonModule_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: @@ -961,8 +987,8 @@ public Builder setExecutorImageUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - executorImageUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -983,8 +1009,8 @@ public Builder setExecutorImageUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearExecutorImageUri() { - executorImageUri_ = getDefaultInstance().getExecutorImageUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1010,8 +1036,8 @@ public Builder setExecutorImageUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - executorImageUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1020,9 +1046,9 @@ public Builder setExecutorImageUriBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePackageUrisIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { packageUris_ = new com.google.protobuf.LazyStringArrayList(packageUris_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -1173,7 +1199,7 @@ public Builder addAllPackageUris(java.lang.Iterable values) { */ public Builder clearPackageUris() { packageUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1263,8 +1289,8 @@ public Builder setPythonModule(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pythonModule_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1280,8 +1306,8 @@ public Builder setPythonModule(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPythonModule() { - pythonModule_ = getDefaultInstance().getPythonModule(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1302,8 +1328,8 @@ public Builder setPythonModuleBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pythonModule_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1312,9 +1338,9 @@ public Builder setPythonModuleBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; } } /** @@ -1449,7 +1475,7 @@ public Builder addAllArgs(java.lang.Iterable values) { */ public Builder clearArgs() { args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1480,9 +1506,9 @@ public Builder addArgsBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureEnvIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { env_ = new java.util.ArrayList(env_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; } } @@ -1708,7 +1734,7 @@ public Builder addAllEnv( public Builder clearEnv() { if (envBuilder_ == null) { env_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { envBuilder_.clear(); @@ -1836,7 +1862,7 @@ public java.util.List getEnvBuild com.google.cloud.aiplatform.v1.EnvVar, com.google.cloud.aiplatform.v1.EnvVar.Builder, com.google.cloud.aiplatform.v1.EnvVarOrBuilder>( - env_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + env_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); env_ = null; } return envBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryArtifactLineageSubgraphRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryArtifactLineageSubgraphRequest.java index 27473664ca1e..da671bb8c3fb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryArtifactLineageSubgraphRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryArtifactLineageSubgraphRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ARTIFACT_FIELD_NUMBER = 1; - private volatile java.lang.Object artifact_; + + @SuppressWarnings("serial") + private volatile java.lang.Object artifact_ = ""; /** * * @@ -135,7 +137,7 @@ public com.google.protobuf.ByteString getArtifactBytes() { } public static final int MAX_HOPS_FIELD_NUMBER = 2; - private int maxHops_; + private int maxHops_ = 0; /** * * @@ -157,7 +159,9 @@ public int getMaxHops() { } public static final int FILTER_FIELD_NUMBER = 3; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -460,12 +464,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; artifact_ = ""; - maxHops_ = 0; - filter_ = ""; - return this; } @@ -495,13 +497,27 @@ public com.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest build( public com.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest buildPartial() { com.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest result = new com.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest(this); - result.artifact_ = artifact_; - result.maxHops_ = maxHops_; - result.filter_ = filter_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.artifact_ = artifact_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxHops_ = maxHops_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.filter_ = filter_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -553,6 +569,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getArtifact().isEmpty()) { artifact_ = other.artifact_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getMaxHops() != 0) { @@ -560,6 +577,7 @@ public Builder mergeFrom( } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -591,19 +609,19 @@ public Builder mergeFrom( case 10: { artifact_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { maxHops_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -623,6 +641,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object artifact_ = ""; /** * @@ -705,8 +725,8 @@ public Builder setArtifact(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - artifact_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -729,8 +749,8 @@ public Builder setArtifact(java.lang.String value) { * @return This builder for chaining. */ public Builder clearArtifact() { - artifact_ = getDefaultInstance().getArtifact(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -758,8 +778,8 @@ public Builder setArtifactBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - artifact_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -803,6 +823,7 @@ public int getMaxHops() { public Builder setMaxHops(int value) { maxHops_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -822,7 +843,7 @@ public Builder setMaxHops(int value) { * @return This builder for chaining. */ public Builder clearMaxHops() { - + bitField0_ = (bitField0_ & ~0x00000002); maxHops_ = 0; onChanged(); return this; @@ -943,8 +964,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -978,8 +999,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1018,8 +1039,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryContextLineageSubgraphRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryContextLineageSubgraphRequest.java index 0ae28edf7011..081209131b5e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryContextLineageSubgraphRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryContextLineageSubgraphRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTEXT_FIELD_NUMBER = 1; - private volatile java.lang.Object context_; + + @SuppressWarnings("serial") + private volatile java.lang.Object context_ = ""; /** * * @@ -335,8 +337,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; context_ = ""; - return this; } @@ -365,11 +367,21 @@ public com.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest build() public com.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest buildPartial() { com.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest result = new com.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest(this); - result.context_ = context_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.context_ = context_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -420,6 +432,7 @@ public Builder mergeFrom( return this; if (!other.getContext().isEmpty()) { context_ = other.context_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -451,7 +464,7 @@ public Builder mergeFrom( case 10: { context_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -471,6 +484,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object context_ = ""; /** * @@ -556,8 +571,8 @@ public Builder setContext(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - context_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -581,8 +596,8 @@ public Builder setContext(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContext() { - context_ = getDefaultInstance().getContext(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -611,8 +626,8 @@ public Builder setContextBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - context_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryExecutionInputsAndOutputsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryExecutionInputsAndOutputsRequest.java index 7f26b3538295..65d2b477ab88 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryExecutionInputsAndOutputsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryExecutionInputsAndOutputsRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int EXECUTION_FIELD_NUMBER = 1; - private volatile java.lang.Object execution_; + + @SuppressWarnings("serial") + private volatile java.lang.Object execution_ = ""; /** * * @@ -328,8 +330,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; execution_ = ""; - return this; } @@ -359,11 +361,21 @@ public com.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest buil public com.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest buildPartial() { com.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest result = new com.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest(this); - result.execution_ = execution_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.execution_ = execution_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -415,6 +427,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getExecution().isEmpty()) { execution_ = other.execution_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -446,7 +459,7 @@ public Builder mergeFrom( case 10: { execution_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -466,6 +479,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object execution_ = ""; /** * @@ -539,8 +554,8 @@ public Builder setExecution(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - execution_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -560,8 +575,8 @@ public Builder setExecution(java.lang.String value) { * @return This builder for chaining. */ public Builder clearExecution() { - execution_ = getDefaultInstance().getExecution(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -586,8 +601,8 @@ public Builder setExecutionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - execution_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RawPredictRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RawPredictRequest.java index 7d117b08dd25..fd1607cc46e2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RawPredictRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RawPredictRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object endpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; /** * * @@ -204,7 +206,7 @@ public com.google.api.HttpBody getHttpBody() { */ @java.lang.Override public com.google.api.HttpBodyOrBuilder getHttpBodyOrBuilder() { - return getHttpBody(); + return httpBody_ == null ? com.google.api.HttpBody.getDefaultInstance() : httpBody_; } private byte memoizedIsInitialized = -1; @@ -419,12 +421,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; endpoint_ = ""; - - if (httpBodyBuilder_ == null) { - httpBody_ = null; - } else { - httpBody_ = null; + httpBody_ = null; + if (httpBodyBuilder_ != null) { + httpBodyBuilder_.dispose(); httpBodyBuilder_ = null; } return this; @@ -454,16 +455,23 @@ public com.google.cloud.aiplatform.v1.RawPredictRequest build() { public com.google.cloud.aiplatform.v1.RawPredictRequest buildPartial() { com.google.cloud.aiplatform.v1.RawPredictRequest result = new com.google.cloud.aiplatform.v1.RawPredictRequest(this); - result.endpoint_ = endpoint_; - if (httpBodyBuilder_ == null) { - result.httpBody_ = httpBody_; - } else { - result.httpBody_ = httpBodyBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.RawPredictRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.httpBody_ = httpBodyBuilder_ == null ? httpBody_ : httpBodyBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -512,6 +520,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.RawPredictRequest other) return this; if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasHttpBody()) { @@ -546,13 +555,13 @@ public Builder mergeFrom( case 10: { endpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getHttpBodyFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -572,6 +581,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object endpoint_ = ""; /** * @@ -645,8 +656,8 @@ public Builder setEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -666,8 +677,8 @@ public Builder setEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEndpoint() { - endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -692,8 +703,8 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -728,7 +739,7 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { * @return Whether the httpBody field is set. */ public boolean hasHttpBody() { - return httpBodyBuilder_ != null || httpBody_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -787,11 +798,11 @@ public Builder setHttpBody(com.google.api.HttpBody value) { throw new NullPointerException(); } httpBody_ = value; - onChanged(); } else { httpBodyBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -818,11 +829,11 @@ public Builder setHttpBody(com.google.api.HttpBody value) { public Builder setHttpBody(com.google.api.HttpBody.Builder builderForValue) { if (httpBodyBuilder_ == null) { httpBody_ = builderForValue.build(); - onChanged(); } else { httpBodyBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -848,16 +859,18 @@ public Builder setHttpBody(com.google.api.HttpBody.Builder builderForValue) { */ public Builder mergeHttpBody(com.google.api.HttpBody value) { if (httpBodyBuilder_ == null) { - if (httpBody_ != null) { - httpBody_ = com.google.api.HttpBody.newBuilder(httpBody_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && httpBody_ != null + && httpBody_ != com.google.api.HttpBody.getDefaultInstance()) { + getHttpBodyBuilder().mergeFrom(value); } else { httpBody_ = value; } - onChanged(); } else { httpBodyBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -882,14 +895,13 @@ public Builder mergeHttpBody(com.google.api.HttpBody value) { * .google.api.HttpBody http_body = 2; */ public Builder clearHttpBody() { - if (httpBodyBuilder_ == null) { - httpBody_ = null; - onChanged(); - } else { - httpBody_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + httpBody_ = null; + if (httpBodyBuilder_ != null) { + httpBodyBuilder_.dispose(); httpBodyBuilder_ = null; } - + onChanged(); return this; } /** @@ -914,7 +926,7 @@ public Builder clearHttpBody() { * .google.api.HttpBody http_body = 2; */ public com.google.api.HttpBody.Builder getHttpBodyBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getHttpBodyFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadFeatureValuesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadFeatureValuesRequest.java index 9aef84bca773..219e25b697a4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadFeatureValuesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadFeatureValuesRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENTITY_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object entityType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityType_ = ""; /** * * @@ -131,7 +133,9 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { } public static final int ENTITY_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object entityId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityId_ = ""; /** * * @@ -234,7 +238,9 @@ public com.google.cloud.aiplatform.v1.FeatureSelector getFeatureSelector() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.FeatureSelectorOrBuilder getFeatureSelectorOrBuilder() { - return getFeatureSelector(); + return featureSelector_ == null + ? com.google.cloud.aiplatform.v1.FeatureSelector.getDefaultInstance() + : featureSelector_; } private byte memoizedIsInitialized = -1; @@ -459,14 +465,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; entityType_ = ""; - entityId_ = ""; - - if (featureSelectorBuilder_ == null) { - featureSelector_ = null; - } else { - featureSelector_ = null; + featureSelector_ = null; + if (featureSelectorBuilder_ != null) { + featureSelectorBuilder_.dispose(); featureSelectorBuilder_ = null; } return this; @@ -496,17 +500,27 @@ public com.google.cloud.aiplatform.v1.ReadFeatureValuesRequest build() { public com.google.cloud.aiplatform.v1.ReadFeatureValuesRequest buildPartial() { com.google.cloud.aiplatform.v1.ReadFeatureValuesRequest result = new com.google.cloud.aiplatform.v1.ReadFeatureValuesRequest(this); - result.entityType_ = entityType_; - result.entityId_ = entityId_; - if (featureSelectorBuilder_ == null) { - result.featureSelector_ = featureSelector_; - } else { - result.featureSelector_ = featureSelectorBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ReadFeatureValuesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityType_ = entityType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.entityId_ = entityId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.featureSelector_ = + featureSelectorBuilder_ == null ? featureSelector_ : featureSelectorBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -555,10 +569,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ReadFeatureValuesRequest return this; if (!other.getEntityType().isEmpty()) { entityType_ = other.entityType_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getEntityId().isEmpty()) { entityId_ = other.entityId_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasFeatureSelector()) { @@ -593,19 +609,19 @@ public Builder mergeFrom( case 10: { entityType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { entityId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getFeatureSelectorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -625,6 +641,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object entityType_ = ""; /** * @@ -704,8 +722,8 @@ public Builder setEntityType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -727,8 +745,8 @@ public Builder setEntityType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityType() { - entityType_ = getDefaultInstance().getEntityType(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -755,8 +773,8 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -828,8 +846,8 @@ public Builder setEntityId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -847,8 +865,8 @@ public Builder setEntityId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityId() { - entityId_ = getDefaultInstance().getEntityId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -871,8 +889,8 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -897,7 +915,7 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { * @return Whether the featureSelector field is set. */ public boolean hasFeatureSelector() { - return featureSelectorBuilder_ != null || featureSelector_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -938,11 +956,11 @@ public Builder setFeatureSelector(com.google.cloud.aiplatform.v1.FeatureSelector throw new NullPointerException(); } featureSelector_ = value; - onChanged(); } else { featureSelectorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -960,11 +978,11 @@ public Builder setFeatureSelector( com.google.cloud.aiplatform.v1.FeatureSelector.Builder builderForValue) { if (featureSelectorBuilder_ == null) { featureSelector_ = builderForValue.build(); - onChanged(); } else { featureSelectorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -980,19 +998,19 @@ public Builder setFeatureSelector( */ public Builder mergeFeatureSelector(com.google.cloud.aiplatform.v1.FeatureSelector value) { if (featureSelectorBuilder_ == null) { - if (featureSelector_ != null) { - featureSelector_ = - com.google.cloud.aiplatform.v1.FeatureSelector.newBuilder(featureSelector_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && featureSelector_ != null + && featureSelector_ + != com.google.cloud.aiplatform.v1.FeatureSelector.getDefaultInstance()) { + getFeatureSelectorBuilder().mergeFrom(value); } else { featureSelector_ = value; } - onChanged(); } else { featureSelectorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1007,14 +1025,13 @@ public Builder mergeFeatureSelector(com.google.cloud.aiplatform.v1.FeatureSelect * */ public Builder clearFeatureSelector() { - if (featureSelectorBuilder_ == null) { - featureSelector_ = null; - onChanged(); - } else { - featureSelector_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + featureSelector_ = null; + if (featureSelectorBuilder_ != null) { + featureSelectorBuilder_.dispose(); featureSelectorBuilder_ = null; } - + onChanged(); return this; } /** @@ -1029,7 +1046,7 @@ public Builder clearFeatureSelector() { * */ public com.google.cloud.aiplatform.v1.FeatureSelector.Builder getFeatureSelectorBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getFeatureSelectorFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadFeatureValuesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadFeatureValuesResponse.java index 68b0d8e0cb60..3d9ba851cc3a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadFeatureValuesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadFeatureValuesResponse.java @@ -147,7 +147,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -404,8 +406,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - return this; } @@ -437,11 +439,21 @@ public com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescripto buildPartial() { com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor result = new com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor(this); - result.id_ = id_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -496,6 +508,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -527,7 +540,7 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -547,6 +560,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object id_ = ""; /** * @@ -608,8 +623,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -625,8 +640,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -647,8 +662,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -882,7 +897,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENTITY_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object entityType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityType_ = ""; /** * * @@ -937,6 +954,8 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { } public static final int FEATURE_DESCRIPTORS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor> featureDescriptors_; @@ -1244,15 +1263,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; entityType_ = ""; - if (featureDescriptorsBuilder_ == null) { featureDescriptors_ = java.util.Collections.emptyList(); } else { featureDescriptors_ = null; featureDescriptorsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -1281,19 +1300,33 @@ public com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header build() { public com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header buildPartial() { com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header result = new com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header(this); - int from_bitField0_ = bitField0_; - result.entityType_ = entityType_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header result) { if (featureDescriptorsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { featureDescriptors_ = java.util.Collections.unmodifiableList(featureDescriptors_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.featureDescriptors_ = featureDescriptors_; } else { result.featureDescriptors_ = featureDescriptorsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityType_ = entityType_; + } } @java.lang.Override @@ -1348,13 +1381,14 @@ public Builder mergeFrom( return this; if (!other.getEntityType().isEmpty()) { entityType_ = other.entityType_; + bitField0_ |= 0x00000001; onChanged(); } if (featureDescriptorsBuilder_ == null) { if (!other.featureDescriptors_.isEmpty()) { if (featureDescriptors_.isEmpty()) { featureDescriptors_ = other.featureDescriptors_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFeatureDescriptorsIsMutable(); featureDescriptors_.addAll(other.featureDescriptors_); @@ -1367,7 +1401,7 @@ public Builder mergeFrom( featureDescriptorsBuilder_.dispose(); featureDescriptorsBuilder_ = null; featureDescriptors_ = other.featureDescriptors_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); featureDescriptorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFeatureDescriptorsFieldBuilder() @@ -1406,7 +1440,7 @@ public Builder mergeFrom( case 10: { entityType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -1513,8 +1547,8 @@ public Builder setEntityType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1533,8 +1567,8 @@ public Builder setEntityType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityType() { - entityType_ = getDefaultInstance().getEntityType(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1558,8 +1592,8 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1569,12 +1603,12 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { featureDescriptors_ = java.util.Collections.emptyList(); private void ensureFeatureDescriptorsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { featureDescriptors_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor>( featureDescriptors_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1839,7 +1873,7 @@ public Builder addAllFeatureDescriptors( public Builder clearFeatureDescriptors() { if (featureDescriptorsBuilder_ == null) { featureDescriptors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { featureDescriptorsBuilder_.clear(); @@ -1998,7 +2032,7 @@ public Builder removeFeatureDescriptors(int index) { com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse .FeatureDescriptorOrBuilder>( featureDescriptors_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); featureDescriptors_ = null; @@ -2780,6 +2814,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (valueBuilder_ != null) { valueBuilder_.clear(); } @@ -2819,25 +2854,31 @@ public com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data buildPartial() { com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data result = new com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data(this); - if (dataCase_ == 1) { - if (valueBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = valueBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (dataCase_ == 2) { - if (valuesBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = valuesBuilder_.build(); - } - } - result.dataCase_ = dataCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data result) { + result.dataCase_ = dataCase_; + result.data_ = this.data_; + if (dataCase_ == 1 && valueBuilder_ != null) { + result.data_ = valueBuilder_.build(); + } + if (dataCase_ == 2 && valuesBuilder_ != null) { + result.data_ = valuesBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2975,6 +3016,8 @@ public Builder clearData() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.FeatureValue, com.google.cloud.aiplatform.v1.FeatureValue.Builder, @@ -3181,7 +3224,6 @@ public com.google.cloud.aiplatform.v1.FeatureValueOrBuilder getValueOrBuilder() } dataCase_ = 1; onChanged(); - ; return valueBuilder_; } @@ -3418,7 +3460,6 @@ public com.google.cloud.aiplatform.v1.FeatureValueListOrBuilder getValuesOrBuild } dataCase_ = 2; onChanged(); - ; return valuesBuilder_; } @@ -3491,7 +3532,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int ENTITY_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object entityId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityId_ = ""; /** * * @@ -3540,6 +3583,8 @@ public com.google.protobuf.ByteString getEntityIdBytes() { } public static final int DATA_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List data_; /** @@ -3862,15 +3907,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; entityId_ = ""; - if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); } else { data_ = null; dataBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -3900,19 +3945,33 @@ public com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView build public com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView buildPartial() { com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView result = new com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView(this); - int from_bitField0_ = bitField0_; - result.entityId_ = entityId_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView result) { if (dataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { data_ = java.util.Collections.unmodifiableList(data_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.data_ = data_; } else { result.data_ = dataBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityId_ = entityId_; + } } @java.lang.Override @@ -3968,13 +4027,14 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getEntityId().isEmpty()) { entityId_ = other.entityId_; + bitField0_ |= 0x00000001; onChanged(); } if (dataBuilder_ == null) { if (!other.data_.isEmpty()) { if (data_.isEmpty()) { data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDataIsMutable(); data_.addAll(other.data_); @@ -3987,7 +4047,7 @@ public Builder mergeFrom( dataBuilder_.dispose(); dataBuilder_ = null; data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); dataBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataFieldBuilder() @@ -4026,7 +4086,7 @@ public Builder mergeFrom( case 10: { entityId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -4124,8 +4184,8 @@ public Builder setEntityId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4141,8 +4201,8 @@ public Builder setEntityId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityId() { - entityId_ = getDefaultInstance().getEntityId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -4163,8 +4223,8 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4174,11 +4234,11 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { data_ = java.util.Collections.emptyList(); private void ensureDataIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { data_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data>(data_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -4487,7 +4547,7 @@ public Builder addAllData( public Builder clearData() { if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { dataBuilder_.clear(); @@ -4671,7 +4731,7 @@ public Builder removeData(int index) { com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.Builder, com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView .DataOrBuilder>( - data_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + data_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); data_ = null; } return dataBuilder_; @@ -4790,7 +4850,9 @@ public com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header getHeader @java.lang.Override public com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.HeaderOrBuilder getHeaderOrBuilder() { - return getHeader(); + return header_ == null + ? com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.getDefaultInstance() + : header_; } public static final int ENTITY_VIEW_FIELD_NUMBER = 2; @@ -4848,7 +4910,9 @@ public com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView getEn @java.lang.Override public com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityViewOrBuilder getEntityViewOrBuilder() { - return getEntityView(); + return entityView_ == null + ? com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.getDefaultInstance() + : entityView_; } private byte memoizedIsInitialized = -1; @@ -5069,16 +5133,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (headerBuilder_ == null) { - header_ = null; - } else { - header_ = null; + bitField0_ = 0; + header_ = null; + if (headerBuilder_ != null) { + headerBuilder_.dispose(); headerBuilder_ = null; } - if (entityViewBuilder_ == null) { - entityView_ = null; - } else { - entityView_ = null; + entityView_ = null; + if (entityViewBuilder_ != null) { + entityViewBuilder_.dispose(); entityViewBuilder_ = null; } return this; @@ -5108,20 +5171,23 @@ public com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse build() { public com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse buildPartial() { com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse result = new com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse(this); - if (headerBuilder_ == null) { - result.header_ = header_; - } else { - result.header_ = headerBuilder_.build(); - } - if (entityViewBuilder_ == null) { - result.entityView_ = entityView_; - } else { - result.entityView_ = entityViewBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.header_ = headerBuilder_ == null ? header_ : headerBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.entityView_ = entityViewBuilder_ == null ? entityView_ : entityViewBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -5203,13 +5269,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getHeaderFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getEntityViewFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -5229,6 +5295,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header header_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header, @@ -5247,7 +5315,7 @@ public Builder mergeFrom( * @return Whether the header field is set. */ public boolean hasHeader() { - return headerBuilder_ != null || header_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -5285,11 +5353,11 @@ public Builder setHeader( throw new NullPointerException(); } header_ = value; - onChanged(); } else { headerBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -5305,11 +5373,11 @@ public Builder setHeader( com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); - onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -5324,19 +5392,20 @@ public Builder setHeader( public Builder mergeHeader( com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header value) { if (headerBuilder_ == null) { - if (header_ != null) { - header_ = - com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.newBuilder(header_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && header_ != null + && header_ + != com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header + .getDefaultInstance()) { + getHeaderBuilder().mergeFrom(value); } else { header_ = value; } - onChanged(); } else { headerBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -5349,14 +5418,13 @@ public Builder mergeHeader( * .google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header header = 1; */ public Builder clearHeader() { - if (headerBuilder_ == null) { - header_ = null; - onChanged(); - } else { - header_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + header_ = null; + if (headerBuilder_ != null) { + headerBuilder_.dispose(); headerBuilder_ = null; } - + onChanged(); return this; } /** @@ -5370,7 +5438,7 @@ public Builder clearHeader() { */ public com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.Builder getHeaderBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getHeaderFieldBuilder().getBuilder(); } @@ -5441,7 +5509,7 @@ public Builder clearHeader() { * @return Whether the entityView field is set. */ public boolean hasEntityView() { - return entityViewBuilder_ != null || entityView_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -5488,11 +5556,11 @@ public Builder setEntityView( throw new NullPointerException(); } entityView_ = value; - onChanged(); } else { entityViewBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -5513,11 +5581,11 @@ public Builder setEntityView( builderForValue) { if (entityViewBuilder_ == null) { entityView_ = builderForValue.build(); - onChanged(); } else { entityViewBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -5536,20 +5604,20 @@ public Builder setEntityView( public Builder mergeEntityView( com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView value) { if (entityViewBuilder_ == null) { - if (entityView_ != null) { - entityView_ = - com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.newBuilder( - entityView_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && entityView_ != null + && entityView_ + != com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView + .getDefaultInstance()) { + getEntityViewBuilder().mergeFrom(value); } else { entityView_ = value; } - onChanged(); } else { entityViewBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -5566,14 +5634,13 @@ public Builder mergeEntityView( * */ public Builder clearEntityView() { - if (entityViewBuilder_ == null) { - entityView_ = null; - onChanged(); - } else { - entityView_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + entityView_ = null; + if (entityViewBuilder_ != null) { + entityViewBuilder_.dispose(); entityViewBuilder_ = null; } - + onChanged(); return this; } /** @@ -5591,7 +5658,7 @@ public Builder clearEntityView() { */ public com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Builder getEntityViewBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getEntityViewFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardBlobDataRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardBlobDataRequest.java index 2db868defea6..c47271f5d355 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardBlobDataRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardBlobDataRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TIME_SERIES_FIELD_NUMBER = 1; - private volatile java.lang.Object timeSeries_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeSeries_ = ""; /** * * @@ -128,6 +130,8 @@ public com.google.protobuf.ByteString getTimeSeriesBytes() { } public static final int BLOB_IDS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList blobIds_; /** * @@ -403,10 +407,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; timeSeries_ = ""; - blobIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -435,17 +439,31 @@ public com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest build() { public com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest buildPartial() { com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest result = new com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest(this); - int from_bitField0_ = bitField0_; - result.timeSeries_ = timeSeries_; - if (((bitField0_ & 0x00000001) != 0)) { - blobIds_ = blobIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.blobIds_ = blobIds_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest result) { + if (((bitField0_ & 0x00000002) != 0)) { + blobIds_ = blobIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.blobIds_ = blobIds_; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timeSeries_ = timeSeries_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -495,12 +513,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataR return this; if (!other.getTimeSeries().isEmpty()) { timeSeries_ = other.timeSeries_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.blobIds_.isEmpty()) { if (blobIds_.isEmpty()) { blobIds_ = other.blobIds_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureBlobIdsIsMutable(); blobIds_.addAll(other.blobIds_); @@ -536,7 +555,7 @@ public Builder mergeFrom( case 10: { timeSeries_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -638,8 +657,8 @@ public Builder setTimeSeries(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeSeries_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -659,8 +678,8 @@ public Builder setTimeSeries(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeSeries() { - timeSeries_ = getDefaultInstance().getTimeSeries(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -685,8 +704,8 @@ public Builder setTimeSeriesBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeSeries_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -695,9 +714,9 @@ public Builder setTimeSeriesBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureBlobIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { blobIds_ = new com.google.protobuf.LazyStringArrayList(blobIds_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -832,7 +851,7 @@ public Builder addAllBlobIds(java.lang.Iterable values) { */ public Builder clearBlobIds() { blobIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardBlobDataResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardBlobDataResponse.java index 2efae50306b3..00bee10e6a76 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardBlobDataResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardBlobDataResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int BLOBS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List blobs_; /** * @@ -339,6 +341,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (blobsBuilder_ == null) { blobs_ = java.util.Collections.emptyList(); } else { @@ -374,7 +377,16 @@ public com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse build() { public com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse buildPartial() { com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse result = new com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse result) { if (blobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { blobs_ = java.util.Collections.unmodifiableList(blobs_); @@ -384,8 +396,11 @@ public com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse buildParti } else { result.blobs_ = blobsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardTimeSeriesDataRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardTimeSeriesDataRequest.java index b4fee6d2018c..adb06b735627 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardTimeSeriesDataRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardTimeSeriesDataRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_TIME_SERIES_FIELD_NUMBER = 1; - private volatile java.lang.Object tensorboardTimeSeries_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboardTimeSeries_ = ""; /** * * @@ -129,7 +131,7 @@ public com.google.protobuf.ByteString getTensorboardTimeSeriesBytes() { } public static final int MAX_DATA_POINTS_FIELD_NUMBER = 2; - private int maxDataPoints_; + private int maxDataPoints_ = 0; /** * * @@ -149,7 +151,9 @@ public int getMaxDataPoints() { } public static final int FILTER_FIELD_NUMBER = 3; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -416,12 +420,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; tensorboardTimeSeries_ = ""; - maxDataPoints_ = 0; - filter_ = ""; - return this; } @@ -451,13 +453,27 @@ public com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest build public com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest buildPartial() { com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest result = new com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest(this); - result.tensorboardTimeSeries_ = tensorboardTimeSeries_; - result.maxDataPoints_ = maxDataPoints_; - result.filter_ = filter_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tensorboardTimeSeries_ = tensorboardTimeSeries_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxDataPoints_ = maxDataPoints_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.filter_ = filter_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -509,6 +525,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getTensorboardTimeSeries().isEmpty()) { tensorboardTimeSeries_ = other.tensorboardTimeSeries_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getMaxDataPoints() != 0) { @@ -516,6 +533,7 @@ public Builder mergeFrom( } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -547,19 +565,19 @@ public Builder mergeFrom( case 10: { tensorboardTimeSeries_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { maxDataPoints_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -579,6 +597,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object tensorboardTimeSeries_ = ""; /** * @@ -652,8 +672,8 @@ public Builder setTensorboardTimeSeries(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboardTimeSeries_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -673,8 +693,8 @@ public Builder setTensorboardTimeSeries(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboardTimeSeries() { - tensorboardTimeSeries_ = getDefaultInstance().getTensorboardTimeSeries(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -699,8 +719,8 @@ public Builder setTensorboardTimeSeriesBytes(com.google.protobuf.ByteString valu throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboardTimeSeries_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -740,6 +760,7 @@ public int getMaxDataPoints() { public Builder setMaxDataPoints(int value) { maxDataPoints_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -757,7 +778,7 @@ public Builder setMaxDataPoints(int value) { * @return This builder for chaining. */ public Builder clearMaxDataPoints() { - + bitField0_ = (bitField0_ & ~0x00000002); maxDataPoints_ = 0; onChanged(); return this; @@ -824,8 +845,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -841,8 +862,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -863,8 +884,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardTimeSeriesDataResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardTimeSeriesDataResponse.java index 90c45c69efd1..d4cbfabbbbf1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardTimeSeriesDataResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardTimeSeriesDataResponse.java @@ -113,7 +113,9 @@ public com.google.cloud.aiplatform.v1.TimeSeriesData getTimeSeriesData() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder() { - return getTimeSeriesData(); + return timeSeriesData_ == null + ? com.google.cloud.aiplatform.v1.TimeSeriesData.getDefaultInstance() + : timeSeriesData_; } private byte memoizedIsInitialized = -1; @@ -322,10 +324,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (timeSeriesDataBuilder_ == null) { - timeSeriesData_ = null; - } else { - timeSeriesData_ = null; + bitField0_ = 0; + timeSeriesData_ = null; + if (timeSeriesDataBuilder_ != null) { + timeSeriesDataBuilder_.dispose(); timeSeriesDataBuilder_ = null; } return this; @@ -357,15 +359,22 @@ public com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse buil public com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse buildPartial() { com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse result = new com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse(this); - if (timeSeriesDataBuilder_ == null) { - result.timeSeriesData_ = timeSeriesData_; - } else { - result.timeSeriesData_ = timeSeriesDataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timeSeriesData_ = + timeSeriesDataBuilder_ == null ? timeSeriesData_ : timeSeriesDataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -447,7 +456,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getTimeSeriesDataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -467,6 +476,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.TimeSeriesData timeSeriesData_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.TimeSeriesData, @@ -485,7 +496,7 @@ public Builder mergeFrom( * @return Whether the timeSeriesData field is set. */ public boolean hasTimeSeriesData() { - return timeSeriesDataBuilder_ != null || timeSeriesData_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -522,11 +533,11 @@ public Builder setTimeSeriesData(com.google.cloud.aiplatform.v1.TimeSeriesData v throw new NullPointerException(); } timeSeriesData_ = value; - onChanged(); } else { timeSeriesDataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -542,11 +553,11 @@ public Builder setTimeSeriesData( com.google.cloud.aiplatform.v1.TimeSeriesData.Builder builderForValue) { if (timeSeriesDataBuilder_ == null) { timeSeriesData_ = builderForValue.build(); - onChanged(); } else { timeSeriesDataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -560,19 +571,19 @@ public Builder setTimeSeriesData( */ public Builder mergeTimeSeriesData(com.google.cloud.aiplatform.v1.TimeSeriesData value) { if (timeSeriesDataBuilder_ == null) { - if (timeSeriesData_ != null) { - timeSeriesData_ = - com.google.cloud.aiplatform.v1.TimeSeriesData.newBuilder(timeSeriesData_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && timeSeriesData_ != null + && timeSeriesData_ + != com.google.cloud.aiplatform.v1.TimeSeriesData.getDefaultInstance()) { + getTimeSeriesDataBuilder().mergeFrom(value); } else { timeSeriesData_ = value; } - onChanged(); } else { timeSeriesDataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -585,14 +596,13 @@ public Builder mergeTimeSeriesData(com.google.cloud.aiplatform.v1.TimeSeriesData * .google.cloud.aiplatform.v1.TimeSeriesData time_series_data = 1; */ public Builder clearTimeSeriesData() { - if (timeSeriesDataBuilder_ == null) { - timeSeriesData_ = null; - onChanged(); - } else { - timeSeriesData_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + timeSeriesData_ = null; + if (timeSeriesDataBuilder_ != null) { + timeSeriesDataBuilder_.dispose(); timeSeriesDataBuilder_ = null; } - + onChanged(); return this; } /** @@ -605,7 +615,7 @@ public Builder clearTimeSeriesData() { * .google.cloud.aiplatform.v1.TimeSeriesData time_series_data = 1; */ public com.google.cloud.aiplatform.v1.TimeSeriesData.Builder getTimeSeriesDataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getTimeSeriesDataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardUsageRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardUsageRequest.java index aa0fd121f893..9eef9d469d95 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardUsageRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardUsageRequest.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_FIELD_NUMBER = 1; - private volatile java.lang.Object tensorboard_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboard_ = ""; /** * * @@ -322,8 +324,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; tensorboard_ = ""; - return this; } @@ -351,11 +353,20 @@ public com.google.cloud.aiplatform.v1.ReadTensorboardUsageRequest build() { public com.google.cloud.aiplatform.v1.ReadTensorboardUsageRequest buildPartial() { com.google.cloud.aiplatform.v1.ReadTensorboardUsageRequest result = new com.google.cloud.aiplatform.v1.ReadTensorboardUsageRequest(this); - result.tensorboard_ = tensorboard_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ReadTensorboardUsageRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tensorboard_ = tensorboard_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,6 +415,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ReadTensorboardUsageRequ return this; if (!other.getTensorboard().isEmpty()) { tensorboard_ = other.tensorboard_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -435,7 +447,7 @@ public Builder mergeFrom( case 10: { tensorboard_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -455,6 +467,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object tensorboard_ = ""; /** * @@ -528,8 +542,8 @@ public Builder setTensorboard(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboard_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -549,8 +563,8 @@ public Builder setTensorboard(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboard() { - tensorboard_ = getDefaultInstance().getTensorboard(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -575,8 +589,8 @@ public Builder setTensorboardBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboard_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardUsageResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardUsageResponse.java index 7863644ff218..ef2d31670d8e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardUsageResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardUsageResponse.java @@ -170,7 +170,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int USERNAME_FIELD_NUMBER = 1; - private volatile java.lang.Object username_; + + @SuppressWarnings("serial") + private volatile java.lang.Object username_ = ""; /** * * @@ -219,7 +221,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { } public static final int VIEW_COUNT_FIELD_NUMBER = 2; - private long viewCount_; + private long viewCount_ = 0L; /** * * @@ -456,10 +458,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; username_ = ""; - viewCount_ = 0L; - return this; } @@ -491,12 +492,24 @@ public com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageD buildPartial() { com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData result = new com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData(this); - result.username_ = username_; - result.viewCount_ = viewCount_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.username_ = username_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.viewCount_ = viewCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -552,6 +565,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getViewCount() != 0L) { @@ -586,13 +600,13 @@ public Builder mergeFrom( case 10: { username_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { viewCount_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -612,6 +626,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object username_ = ""; /** * @@ -673,8 +689,8 @@ public Builder setUsername(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - username_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -690,8 +706,8 @@ public Builder setUsername(java.lang.String value) { * @return This builder for chaining. */ public Builder clearUsername() { - username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -712,8 +728,8 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - username_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -749,6 +765,7 @@ public long getViewCount() { public Builder setViewCount(long value) { viewCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -764,7 +781,7 @@ public Builder setViewCount(long value) { * @return This builder for chaining. */ public Builder clearViewCount() { - + bitField0_ = (bitField0_ & ~0x00000002); viewCount_ = 0L; onChanged(); return this; @@ -963,6 +980,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int USER_USAGE_DATA_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData> userUsageData_; @@ -1263,6 +1282,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (userUsageDataBuilder_ == null) { userUsageData_ = java.util.Collections.emptyList(); } else { @@ -1301,7 +1321,16 @@ public com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsage buildPartial() { com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData result = new com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData result) { if (userUsageDataBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { userUsageData_ = java.util.Collections.unmodifiableList(userUsageData_); @@ -1311,8 +1340,11 @@ public com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsage } else { result.userUsageData_ = userUsageDataBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -1969,6 +2001,7 @@ private static final class MonthlyUsageDataDefaultEntryHolder { .PerMonthUsageData.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData> @@ -2045,9 +2078,11 @@ public boolean containsMonthlyUsageData(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData + public /* nullable */ com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse + .PerMonthUsageData getMonthlyUsageDataOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData defaultValue) { if (key == null) { @@ -2317,6 +2352,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; internalGetMutableMonthlyUsageData().clear(); return this; } @@ -2345,13 +2381,21 @@ public com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse build() { public com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse buildPartial() { com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse result = new com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse(this); - int from_bitField0_ = bitField0_; - result.monthlyUsageData_ = internalGetMonthlyUsageData(); - result.monthlyUsageData_.makeImmutable(); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.monthlyUsageData_ = internalGetMonthlyUsageData(); + result.monthlyUsageData_.makeImmutable(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2399,6 +2443,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ReadTensorboardUsageResp if (other == com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.getDefaultInstance()) return this; internalGetMutableMonthlyUsageData().mergeFrom(other.internalGetMonthlyUsageData()); + bitField0_ |= 0x00000001; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2438,6 +2483,7 @@ public Builder mergeFrom( internalGetMutableMonthlyUsageData() .getMutableMap() .put(monthlyUsageData__.getKey(), monthlyUsageData__.getValue()); + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -2479,8 +2525,6 @@ public Builder mergeFrom( java.lang.String, com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData> internalGetMutableMonthlyUsageData() { - onChanged(); - ; if (monthlyUsageData_ == null) { monthlyUsageData_ = com.google.protobuf.MapField.newMapField( @@ -2489,6 +2533,8 @@ public Builder mergeFrom( if (!monthlyUsageData_.isMutable()) { monthlyUsageData_ = monthlyUsageData_.copy(); } + bitField0_ |= 0x00000001; + onChanged(); return monthlyUsageData_; } @@ -2552,9 +2598,11 @@ public boolean containsMonthlyUsageData(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData + public /* nullable */ com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse + .PerMonthUsageData getMonthlyUsageDataOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData defaultValue) { if (key == null) { @@ -2594,6 +2642,7 @@ public boolean containsMonthlyUsageData(java.lang.String key) { } public Builder clearMonthlyUsageData() { + bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableMonthlyUsageData().getMutableMap().clear(); return this; } @@ -2621,6 +2670,7 @@ public Builder removeMonthlyUsageData(java.lang.String key) { java.lang.String, com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData> getMutableMonthlyUsageData() { + bitField0_ |= 0x00000001; return internalGetMutableMonthlyUsageData().getMutableMap(); } /** @@ -2643,8 +2693,8 @@ public Builder putMonthlyUsageData( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableMonthlyUsageData().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; return this; } /** @@ -2664,6 +2714,7 @@ public Builder putAllMonthlyUsageData( com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData> values) { internalGetMutableMonthlyUsageData().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardUsageResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardUsageResponseOrBuilder.java index d950ca21a4bf..65d3136f6dba 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardUsageResponseOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardUsageResponseOrBuilder.java @@ -79,7 +79,6 @@ public interface ReadTensorboardUsageResponseOrBuilder * map<string, .google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData> monthly_usage_data = 1; * */ - /* nullable */ com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData getMonthlyUsageDataOrDefault( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RemoveContextChildrenRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RemoveContextChildrenRequest.java index f78273457bce..6d649173a50a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RemoveContextChildrenRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RemoveContextChildrenRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTEXT_FIELD_NUMBER = 1; - private volatile java.lang.Object context_; + + @SuppressWarnings("serial") + private volatile java.lang.Object context_ = ""; /** * * @@ -127,6 +129,8 @@ public com.google.protobuf.ByteString getContextBytes() { } public static final int CHILD_CONTEXTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList childContexts_; /** * @@ -402,10 +406,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; context_ = ""; - childContexts_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -433,17 +437,30 @@ public com.google.cloud.aiplatform.v1.RemoveContextChildrenRequest build() { public com.google.cloud.aiplatform.v1.RemoveContextChildrenRequest buildPartial() { com.google.cloud.aiplatform.v1.RemoveContextChildrenRequest result = new com.google.cloud.aiplatform.v1.RemoveContextChildrenRequest(this); - int from_bitField0_ = bitField0_; - result.context_ = context_; - if (((bitField0_ & 0x00000001) != 0)) { - childContexts_ = childContexts_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.childContexts_ = childContexts_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.RemoveContextChildrenRequest result) { + if (((bitField0_ & 0x00000002) != 0)) { + childContexts_ = childContexts_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.childContexts_ = childContexts_; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.RemoveContextChildrenRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.context_ = context_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -492,12 +509,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.RemoveContextChildrenReq return this; if (!other.getContext().isEmpty()) { context_ = other.context_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.childContexts_.isEmpty()) { if (childContexts_.isEmpty()) { childContexts_ = other.childContexts_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureChildContextsIsMutable(); childContexts_.addAll(other.childContexts_); @@ -533,7 +551,7 @@ public Builder mergeFrom( case 10: { context_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -635,8 +653,8 @@ public Builder setContext(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - context_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -656,8 +674,8 @@ public Builder setContext(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContext() { - context_ = getDefaultInstance().getContext(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -682,8 +700,8 @@ public Builder setContextBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - context_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -692,9 +710,9 @@ public Builder setContextBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureChildContextsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { childContexts_ = new com.google.protobuf.LazyStringArrayList(childContexts_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -829,7 +847,7 @@ public Builder addAllChildContexts(java.lang.Iterable values) */ public Builder clearChildContexts() { childContexts_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RemoveDatapointsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RemoveDatapointsRequest.java index ec50dea7bf90..64c923859880 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RemoveDatapointsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RemoveDatapointsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INDEX_FIELD_NUMBER = 1; - private volatile java.lang.Object index_; + + @SuppressWarnings("serial") + private volatile java.lang.Object index_ = ""; /** * * @@ -127,6 +129,8 @@ public com.google.protobuf.ByteString getIndexBytes() { } public static final int DATAPOINT_IDS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList datapointIds_; /** * @@ -402,10 +406,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; index_ = ""; - datapointIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -433,17 +437,30 @@ public com.google.cloud.aiplatform.v1.RemoveDatapointsRequest build() { public com.google.cloud.aiplatform.v1.RemoveDatapointsRequest buildPartial() { com.google.cloud.aiplatform.v1.RemoveDatapointsRequest result = new com.google.cloud.aiplatform.v1.RemoveDatapointsRequest(this); - int from_bitField0_ = bitField0_; - result.index_ = index_; - if (((bitField0_ & 0x00000001) != 0)) { - datapointIds_ = datapointIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.datapointIds_ = datapointIds_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.RemoveDatapointsRequest result) { + if (((bitField0_ & 0x00000002) != 0)) { + datapointIds_ = datapointIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.datapointIds_ = datapointIds_; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.RemoveDatapointsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.index_ = index_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -492,12 +509,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.RemoveDatapointsRequest return this; if (!other.getIndex().isEmpty()) { index_ = other.index_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.datapointIds_.isEmpty()) { if (datapointIds_.isEmpty()) { datapointIds_ = other.datapointIds_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDatapointIdsIsMutable(); datapointIds_.addAll(other.datapointIds_); @@ -533,7 +551,7 @@ public Builder mergeFrom( case 10: { index_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -635,8 +653,8 @@ public Builder setIndex(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - index_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -656,8 +674,8 @@ public Builder setIndex(java.lang.String value) { * @return This builder for chaining. */ public Builder clearIndex() { - index_ = getDefaultInstance().getIndex(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -682,8 +700,8 @@ public Builder setIndexBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - index_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -692,9 +710,9 @@ public Builder setIndexBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDatapointIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { datapointIds_ = new com.google.protobuf.LazyStringArrayList(datapointIds_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -829,7 +847,7 @@ public Builder addAllDatapointIds(java.lang.Iterable values) { */ public Builder clearDatapointIds() { datapointIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ResourcesConsumed.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ResourcesConsumed.java index f8c358392963..70a22fbf6aae 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ResourcesConsumed.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ResourcesConsumed.java @@ -66,7 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int REPLICA_HOURS_FIELD_NUMBER = 1; - private double replicaHours_; + private double replicaHours_ = 0D; /** * * @@ -286,8 +286,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; replicaHours_ = 0D; - return this; } @@ -315,11 +315,20 @@ public com.google.cloud.aiplatform.v1.ResourcesConsumed build() { public com.google.cloud.aiplatform.v1.ResourcesConsumed buildPartial() { com.google.cloud.aiplatform.v1.ResourcesConsumed result = new com.google.cloud.aiplatform.v1.ResourcesConsumed(this); - result.replicaHours_ = replicaHours_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ResourcesConsumed result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.replicaHours_ = replicaHours_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -398,7 +407,7 @@ public Builder mergeFrom( case 9: { replicaHours_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 default: @@ -418,6 +427,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private double replicaHours_; /** * @@ -453,6 +464,7 @@ public double getReplicaHours() { public Builder setReplicaHours(double value) { replicaHours_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -470,7 +482,7 @@ public Builder setReplicaHours(double value) { * @return This builder for chaining. */ public Builder clearReplicaHours() { - + bitField0_ = (bitField0_ & ~0x00000001); replicaHours_ = 0D; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ResumeModelDeploymentMonitoringJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ResumeModelDeploymentMonitoringJobRequest.java index 761507c70544..66fd904281b3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ResumeModelDeploymentMonitoringJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ResumeModelDeploymentMonitoringJobRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -330,8 +332,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -362,11 +364,21 @@ public com.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest public com.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest buildPartial() { com.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest result = new com.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -419,6 +431,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -450,7 +463,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -470,6 +483,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -543,8 +558,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -564,8 +579,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -590,8 +605,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SampleConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SampleConfig.java index 77e51f45011a..3fa28fa235b7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SampleConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SampleConfig.java @@ -365,7 +365,7 @@ public int getFollowingBatchSamplePercentage() { } public static final int SAMPLE_STRATEGY_FIELD_NUMBER = 5; - private int sampleStrategy_; + private int sampleStrategy_ = 0; /** * * @@ -396,9 +396,8 @@ public int getSampleStrategyValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.SampleConfig.SampleStrategy getSampleStrategy() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.SampleConfig.SampleStrategy result = - com.google.cloud.aiplatform.v1.SampleConfig.SampleStrategy.valueOf(sampleStrategy_); + com.google.cloud.aiplatform.v1.SampleConfig.SampleStrategy.forNumber(sampleStrategy_); return result == null ? com.google.cloud.aiplatform.v1.SampleConfig.SampleStrategy.UNRECOGNIZED : result; @@ -658,8 +657,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; sampleStrategy_ = 0; - initialBatchSampleSizeCase_ = 0; initialBatchSampleSize_ = null; followingBatchSampleSizeCase_ = 0; @@ -691,17 +690,26 @@ public com.google.cloud.aiplatform.v1.SampleConfig build() { public com.google.cloud.aiplatform.v1.SampleConfig buildPartial() { com.google.cloud.aiplatform.v1.SampleConfig result = new com.google.cloud.aiplatform.v1.SampleConfig(this); - if (initialBatchSampleSizeCase_ == 1) { - result.initialBatchSampleSize_ = initialBatchSampleSize_; + if (bitField0_ != 0) { + buildPartial0(result); } - if (followingBatchSampleSizeCase_ == 3) { - result.followingBatchSampleSize_ = followingBatchSampleSize_; + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.SampleConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sampleStrategy_ = sampleStrategy_; } - result.sampleStrategy_ = sampleStrategy_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.SampleConfig result) { result.initialBatchSampleSizeCase_ = initialBatchSampleSizeCase_; + result.initialBatchSampleSize_ = this.initialBatchSampleSize_; result.followingBatchSampleSizeCase_ = followingBatchSampleSizeCase_; - onBuilt(); - return result; + result.followingBatchSampleSize_ = this.followingBatchSampleSize_; } @java.lang.Override @@ -815,7 +823,7 @@ public Builder mergeFrom( case 40: { sampleStrategy_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 40 default: @@ -863,6 +871,8 @@ public Builder clearFollowingBatchSampleSize() { return this; } + private int bitField0_; + /** * * @@ -907,6 +917,7 @@ public int getInitialBatchSamplePercentage() { * @return This builder for chaining. */ public Builder setInitialBatchSamplePercentage(int value) { + initialBatchSampleSizeCase_ = 1; initialBatchSampleSize_ = value; onChanged(); @@ -979,6 +990,7 @@ public int getFollowingBatchSamplePercentage() { * @return This builder for chaining. */ public Builder setFollowingBatchSamplePercentage(int value) { + followingBatchSampleSizeCase_ = 3; followingBatchSampleSize_ = value; onChanged(); @@ -1036,8 +1048,8 @@ public int getSampleStrategyValue() { * @return This builder for chaining. */ public Builder setSampleStrategyValue(int value) { - sampleStrategy_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1055,9 +1067,8 @@ public Builder setSampleStrategyValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.SampleConfig.SampleStrategy getSampleStrategy() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.SampleConfig.SampleStrategy result = - com.google.cloud.aiplatform.v1.SampleConfig.SampleStrategy.valueOf(sampleStrategy_); + com.google.cloud.aiplatform.v1.SampleConfig.SampleStrategy.forNumber(sampleStrategy_); return result == null ? com.google.cloud.aiplatform.v1.SampleConfig.SampleStrategy.UNRECOGNIZED : result; @@ -1080,7 +1091,7 @@ public Builder setSampleStrategy( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; sampleStrategy_ = value.getNumber(); onChanged(); return this; @@ -1098,7 +1109,7 @@ public Builder setSampleStrategy( * @return This builder for chaining. */ public Builder clearSampleStrategy() { - + bitField0_ = (bitField0_ & ~0x00000004); sampleStrategy_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SampledShapleyAttribution.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SampledShapleyAttribution.java index 93099725abc5..70d7c332486f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SampledShapleyAttribution.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SampledShapleyAttribution.java @@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PATH_COUNT_FIELD_NUMBER = 1; - private int pathCount_; + private int pathCount_ = 0; /** * * @@ -287,8 +287,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; pathCount_ = 0; - return this; } @@ -316,11 +316,20 @@ public com.google.cloud.aiplatform.v1.SampledShapleyAttribution build() { public com.google.cloud.aiplatform.v1.SampledShapleyAttribution buildPartial() { com.google.cloud.aiplatform.v1.SampledShapleyAttribution result = new com.google.cloud.aiplatform.v1.SampledShapleyAttribution(this); - result.pathCount_ = pathCount_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.SampledShapleyAttribution result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pathCount_ = pathCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -399,7 +408,7 @@ public Builder mergeFrom( case 8: { pathCount_ = input.readInt32(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -419,6 +428,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int pathCount_; /** * @@ -454,6 +465,7 @@ public int getPathCount() { public Builder setPathCount(int value) { pathCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -471,7 +483,7 @@ public Builder setPathCount(int value) { * @return This builder for chaining. */ public Builder clearPathCount() { - + bitField0_ = (bitField0_ & ~0x00000001); pathCount_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SamplingStrategy.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SamplingStrategy.java index 6d6caf6a0e94..c4df0d565b97 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SamplingStrategy.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SamplingStrategy.java @@ -132,7 +132,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SAMPLE_RATE_FIELD_NUMBER = 1; - private double sampleRate_; + private double sampleRate_ = 0D; /** * * @@ -355,8 +355,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; sampleRate_ = 0D; - return this; } @@ -386,11 +386,21 @@ public com.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig build( public com.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig buildPartial() { com.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig result = new com.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig(this); - result.sampleRate_ = sampleRate_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sampleRate_ = sampleRate_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -474,7 +484,7 @@ public Builder mergeFrom( case 9: { sampleRate_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 default: @@ -494,6 +504,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private double sampleRate_; /** * @@ -525,6 +537,7 @@ public double getSampleRate() { public Builder setSampleRate(double value) { sampleRate_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -540,7 +553,7 @@ public Builder setSampleRate(double value) { * @return This builder for chaining. */ public Builder clearSampleRate() { - + bitField0_ = (bitField0_ & ~0x00000001); sampleRate_ = 0D; onChanged(); return this; @@ -663,7 +676,9 @@ public boolean hasRandomSampleConfig() { @java.lang.Override public com.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfigOrBuilder getRandomSampleConfigOrBuilder() { - return getRandomSampleConfig(); + return randomSampleConfig_ == null + ? com.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.getDefaultInstance() + : randomSampleConfig_; } private byte memoizedIsInitialized = -1; @@ -869,10 +884,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (randomSampleConfigBuilder_ == null) { - randomSampleConfig_ = null; - } else { - randomSampleConfig_ = null; + bitField0_ = 0; + randomSampleConfig_ = null; + if (randomSampleConfigBuilder_ != null) { + randomSampleConfigBuilder_.dispose(); randomSampleConfigBuilder_ = null; } return this; @@ -902,15 +917,23 @@ public com.google.cloud.aiplatform.v1.SamplingStrategy build() { public com.google.cloud.aiplatform.v1.SamplingStrategy buildPartial() { com.google.cloud.aiplatform.v1.SamplingStrategy result = new com.google.cloud.aiplatform.v1.SamplingStrategy(this); - if (randomSampleConfigBuilder_ == null) { - result.randomSampleConfig_ = randomSampleConfig_; - } else { - result.randomSampleConfig_ = randomSampleConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.SamplingStrategy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.randomSampleConfig_ = + randomSampleConfigBuilder_ == null + ? randomSampleConfig_ + : randomSampleConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -990,7 +1013,7 @@ public Builder mergeFrom( { input.readMessage( getRandomSampleConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -1010,6 +1033,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig randomSampleConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig, @@ -1030,7 +1055,7 @@ public Builder mergeFrom( * @return Whether the randomSampleConfig field is set. */ public boolean hasRandomSampleConfig() { - return randomSampleConfigBuilder_ != null || randomSampleConfig_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1074,11 +1099,11 @@ public Builder setRandomSampleConfig( throw new NullPointerException(); } randomSampleConfig_ = value; - onChanged(); } else { randomSampleConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1097,11 +1122,11 @@ public Builder setRandomSampleConfig( builderForValue) { if (randomSampleConfigBuilder_ == null) { randomSampleConfig_ = builderForValue.build(); - onChanged(); } else { randomSampleConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1118,20 +1143,20 @@ public Builder setRandomSampleConfig( public Builder mergeRandomSampleConfig( com.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig value) { if (randomSampleConfigBuilder_ == null) { - if (randomSampleConfig_ != null) { - randomSampleConfig_ = - com.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.newBuilder( - randomSampleConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && randomSampleConfig_ != null + && randomSampleConfig_ + != com.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + .getDefaultInstance()) { + getRandomSampleConfigBuilder().mergeFrom(value); } else { randomSampleConfig_ = value; } - onChanged(); } else { randomSampleConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1146,14 +1171,13 @@ public Builder mergeRandomSampleConfig( * */ public Builder clearRandomSampleConfig() { - if (randomSampleConfigBuilder_ == null) { - randomSampleConfig_ = null; - onChanged(); - } else { - randomSampleConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + randomSampleConfig_ = null; + if (randomSampleConfigBuilder_ != null) { + randomSampleConfigBuilder_.dispose(); randomSampleConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1169,7 +1193,7 @@ public Builder clearRandomSampleConfig() { */ public com.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.Builder getRandomSampleConfigBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getRandomSampleConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQuery.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQuery.java index dea6b0908423..68e82605ab75 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQuery.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQuery.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -122,7 +124,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -217,7 +221,7 @@ public com.google.protobuf.Value getMetadata() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; } public static final int CREATE_TIME_FIELD_NUMBER = 3; @@ -266,7 +270,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 4; @@ -315,11 +319,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ANNOTATION_FILTER_FIELD_NUMBER = 5; - private volatile java.lang.Object annotationFilter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object annotationFilter_ = ""; /** * * @@ -368,7 +374,9 @@ public com.google.protobuf.ByteString getAnnotationFilterBytes() { } public static final int PROBLEM_TYPE_FIELD_NUMBER = 6; - private volatile java.lang.Object problemType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object problemType_ = ""; /** * * @@ -439,7 +447,7 @@ public com.google.protobuf.ByteString getProblemTypeBytes() { } public static final int ANNOTATION_SPEC_COUNT_FIELD_NUMBER = 10; - private int annotationSpecCount_; + private int annotationSpecCount_ = 0; /** * * @@ -457,7 +465,9 @@ public int getAnnotationSpecCount() { } public static final int ETAG_FIELD_NUMBER = 8; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -508,7 +518,7 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int SUPPORT_AUTOML_TRAINING_FIELD_NUMBER = 9; - private boolean supportAutomlTraining_; + private boolean supportAutomlTraining_ = false; /** * * @@ -820,38 +830,29 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } annotationFilter_ = ""; - problemType_ = ""; - annotationSpecCount_ = 0; - etag_ = ""; - supportAutomlTraining_ = false; - return this; } @@ -879,32 +880,47 @@ public com.google.cloud.aiplatform.v1.SavedQuery build() { public com.google.cloud.aiplatform.v1.SavedQuery buildPartial() { com.google.cloud.aiplatform.v1.SavedQuery result = new com.google.cloud.aiplatform.v1.SavedQuery(this); - result.name_ = name_; - result.displayName_ = displayName_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.annotationFilter_ = annotationFilter_; - result.problemType_ = problemType_; - result.annotationSpecCount_ = annotationSpecCount_; - result.etag_ = etag_; - result.supportAutomlTraining_ = supportAutomlTraining_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.SavedQuery result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.annotationFilter_ = annotationFilter_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.problemType_ = problemType_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.annotationSpecCount_ = annotationSpecCount_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.supportAutomlTraining_ = supportAutomlTraining_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -952,10 +968,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SavedQuery other) { if (other == com.google.cloud.aiplatform.v1.SavedQuery.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasMetadata()) { @@ -969,10 +987,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SavedQuery other) { } if (!other.getAnnotationFilter().isEmpty()) { annotationFilter_ = other.annotationFilter_; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getProblemType().isEmpty()) { problemType_ = other.problemType_; + bitField0_ |= 0x00000040; onChanged(); } if (other.getAnnotationSpecCount() != 0) { @@ -980,6 +1000,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SavedQuery other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000100; onChanged(); } if (other.getSupportAutomlTraining() != false) { @@ -1014,61 +1035,61 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 34 case 42: { annotationFilter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 42 case 50: { problemType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 50 case 66: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 66 case 72: { supportAutomlTraining_ = input.readBool(); - + bitField0_ |= 0x00000200; break; } // case 72 case 80: { annotationSpecCount_ = input.readInt32(); - + bitField0_ |= 0x00000080; break; } // case 80 case 98: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 98 default: @@ -1088,6 +1109,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -1149,8 +1172,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1166,8 +1189,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1188,8 +1211,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1261,8 +1284,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1280,8 +1303,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1304,8 +1327,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1328,7 +1351,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1363,11 +1386,11 @@ public Builder setMetadata(com.google.protobuf.Value value) { throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1382,11 +1405,11 @@ public Builder setMetadata(com.google.protobuf.Value value) { public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1400,17 +1423,18 @@ public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Value value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Value.newBuilder(metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Value.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1423,14 +1447,13 @@ public Builder mergeMetadata(com.google.protobuf.Value value) { * .google.protobuf.Value metadata = 12; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -1443,7 +1466,7 @@ public Builder clearMetadata() { * .google.protobuf.Value metadata = 12; */ public com.google.protobuf.Value.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -1509,7 +1532,7 @@ public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1550,11 +1573,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1571,11 +1594,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1591,17 +1614,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1616,14 +1640,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1638,7 +1661,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1710,7 +1733,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1751,11 +1774,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1772,11 +1795,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1792,17 +1815,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1817,14 +1841,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1839,7 +1862,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -1952,8 +1975,8 @@ public Builder setAnnotationFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - annotationFilter_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1969,8 +1992,8 @@ public Builder setAnnotationFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAnnotationFilter() { - annotationFilter_ = getDefaultInstance().getAnnotationFilter(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1991,8 +2014,8 @@ public Builder setAnnotationFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - annotationFilter_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2091,8 +2114,8 @@ public Builder setProblemType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - problemType_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2119,8 +2142,8 @@ public Builder setProblemType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearProblemType() { - problemType_ = getDefaultInstance().getProblemType(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2152,8 +2175,8 @@ public Builder setProblemTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - problemType_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2189,6 +2212,7 @@ public int getAnnotationSpecCount() { public Builder setAnnotationSpecCount(int value) { annotationSpecCount_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2204,7 +2228,7 @@ public Builder setAnnotationSpecCount(int value) { * @return This builder for chaining. */ public Builder clearAnnotationSpecCount() { - + bitField0_ = (bitField0_ & ~0x00000080); annotationSpecCount_ = 0; onChanged(); return this; @@ -2274,8 +2298,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2292,8 +2316,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2315,8 +2339,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2354,6 +2378,7 @@ public boolean getSupportAutomlTraining() { public Builder setSupportAutomlTraining(boolean value) { supportAutomlTraining_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2370,7 +2395,7 @@ public Builder setSupportAutomlTraining(boolean value) { * @return This builder for chaining. */ public Builder clearSupportAutomlTraining() { - + bitField0_ = (bitField0_ & ~0x00000200); supportAutomlTraining_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scalar.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scalar.java index 94b3688a9e97..70409ed4bdf8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scalar.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scalar.java @@ -66,7 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUE_FIELD_NUMBER = 1; - private double value_; + private double value_ = 0D; /** * * @@ -281,8 +281,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; value_ = 0D; - return this; } @@ -310,11 +310,20 @@ public com.google.cloud.aiplatform.v1.Scalar build() { public com.google.cloud.aiplatform.v1.Scalar buildPartial() { com.google.cloud.aiplatform.v1.Scalar result = new com.google.cloud.aiplatform.v1.Scalar(this); - result.value_ = value_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.Scalar result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -392,7 +401,7 @@ public Builder mergeFrom( case 9: { value_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 default: @@ -412,6 +421,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private double value_; /** * @@ -443,6 +454,7 @@ public double getValue() { public Builder setValue(double value) { value_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -458,7 +470,7 @@ public Builder setValue(double value) { * @return This builder for chaining. */ public Builder clearValue() { - + bitField0_ = (bitField0_ & ~0x00000001); value_ = 0D; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scheduling.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scheduling.java index a42368fce068..7e3baacc34a0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scheduling.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scheduling.java @@ -108,11 +108,11 @@ public com.google.protobuf.Duration getTimeout() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { - return getTimeout(); + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } public static final int RESTART_JOB_ON_WORKER_RESTART_FIELD_NUMBER = 3; - private boolean restartJobOnWorkerRestart_; + private boolean restartJobOnWorkerRestart_ = false; /** * * @@ -342,14 +342,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (timeoutBuilder_ == null) { - timeout_ = null; - } else { - timeout_ = null; + bitField0_ = 0; + timeout_ = null; + if (timeoutBuilder_ != null) { + timeoutBuilder_.dispose(); timeoutBuilder_ = null; } restartJobOnWorkerRestart_ = false; - return this; } @@ -377,16 +376,23 @@ public com.google.cloud.aiplatform.v1.Scheduling build() { public com.google.cloud.aiplatform.v1.Scheduling buildPartial() { com.google.cloud.aiplatform.v1.Scheduling result = new com.google.cloud.aiplatform.v1.Scheduling(this); - if (timeoutBuilder_ == null) { - result.timeout_ = timeout_; - } else { - result.timeout_ = timeoutBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.restartJobOnWorkerRestart_ = restartJobOnWorkerRestart_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.Scheduling result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timeout_ = timeoutBuilder_ == null ? timeout_ : timeoutBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.restartJobOnWorkerRestart_ = restartJobOnWorkerRestart_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -467,13 +473,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getTimeoutFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 24: { restartJobOnWorkerRestart_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 24 default: @@ -493,6 +499,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Duration timeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -511,7 +519,7 @@ public Builder mergeFrom( * @return Whether the timeout field is set. */ public boolean hasTimeout() { - return timeoutBuilder_ != null || timeout_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -546,11 +554,11 @@ public Builder setTimeout(com.google.protobuf.Duration value) { throw new NullPointerException(); } timeout_ = value; - onChanged(); } else { timeoutBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -565,11 +573,11 @@ public Builder setTimeout(com.google.protobuf.Duration value) { public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) { if (timeoutBuilder_ == null) { timeout_ = builderForValue.build(); - onChanged(); } else { timeoutBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -583,17 +591,18 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) */ public Builder mergeTimeout(com.google.protobuf.Duration value) { if (timeoutBuilder_ == null) { - if (timeout_ != null) { - timeout_ = - com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && timeout_ != null + && timeout_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTimeoutBuilder().mergeFrom(value); } else { timeout_ = value; } - onChanged(); } else { timeoutBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -606,14 +615,13 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { * .google.protobuf.Duration timeout = 1; */ public Builder clearTimeout() { - if (timeoutBuilder_ == null) { - timeout_ = null; - onChanged(); - } else { - timeout_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + timeout_ = null; + if (timeoutBuilder_ != null) { + timeoutBuilder_.dispose(); timeoutBuilder_ = null; } - + onChanged(); return this; } /** @@ -626,7 +634,7 @@ public Builder clearTimeout() { * .google.protobuf.Duration timeout = 1; */ public com.google.protobuf.Duration.Builder getTimeoutBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getTimeoutFieldBuilder().getBuilder(); } @@ -707,6 +715,7 @@ public boolean getRestartJobOnWorkerRestart() { public Builder setRestartJobOnWorkerRestart(boolean value) { restartJobOnWorkerRestart_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -724,7 +733,7 @@ public Builder setRestartJobOnWorkerRestart(boolean value) { * @return This builder for chaining. */ public Builder clearRestartJobOnWorkerRestart() { - + bitField0_ = (bitField0_ & ~0x00000002); restartJobOnWorkerRestart_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java index 873658730ac8..08f3ac91d254 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java @@ -188,7 +188,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SAVED_QUERY_FIELD_NUMBER = 1; - private volatile java.lang.Object savedQuery_; + + @SuppressWarnings("serial") + private volatile java.lang.Object savedQuery_ = ""; /** * * @@ -239,7 +241,9 @@ public com.google.protobuf.ByteString getSavedQueryBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 2; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -504,10 +508,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; savedQuery_ = ""; - orderBy_ = ""; - return this; } @@ -539,12 +542,24 @@ public com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation b buildPartial() { com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation result = new com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation(this); - result.savedQuery_ = savedQuery_; - result.orderBy_ = orderBy_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.savedQuery_ = savedQuery_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -599,10 +614,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getSavedQuery().isEmpty()) { savedQuery_ = other.savedQuery_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -634,13 +651,13 @@ public Builder mergeFrom( case 10: { savedQuery_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -660,6 +677,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object savedQuery_ = ""; /** * @@ -724,8 +743,8 @@ public Builder setSavedQuery(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - savedQuery_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -742,8 +761,8 @@ public Builder setSavedQuery(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSavedQuery() { - savedQuery_ = getDefaultInstance().getSavedQuery(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -765,8 +784,8 @@ public Builder setSavedQueryBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - savedQuery_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -838,8 +857,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -857,8 +876,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -881,8 +900,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1137,7 +1156,9 @@ public boolean hasOrderByAnnotation() { } public static final int DATASET_FIELD_NUMBER = 1; - private volatile java.lang.Object dataset_; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataset_ = ""; /** * * @@ -1194,7 +1215,9 @@ public com.google.protobuf.ByteString getDatasetBytes() { } public static final int SAVED_QUERY_FIELD_NUMBER = 2; - private volatile java.lang.Object savedQuery_; + + @SuppressWarnings("serial") + private volatile java.lang.Object savedQuery_ = ""; /** * * @@ -1257,7 +1280,9 @@ public com.google.protobuf.ByteString getSavedQueryBytes() { } public static final int DATA_LABELING_JOB_FIELD_NUMBER = 3; - private volatile java.lang.Object dataLabelingJob_; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataLabelingJob_ = ""; /** * * @@ -1314,7 +1339,9 @@ public com.google.protobuf.ByteString getDataLabelingJobBytes() { } public static final int DATA_ITEM_FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object dataItemFilter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataItemFilter_ = ""; /** * * @@ -1379,7 +1406,9 @@ public com.google.protobuf.ByteString getDataItemFilterBytes() { } public static final int ANNOTATIONS_FILTER_FIELD_NUMBER = 5; - private volatile java.lang.Object annotationsFilter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object annotationsFilter_ = ""; /** * * @@ -1438,6 +1467,8 @@ public com.google.protobuf.ByteString getAnnotationsFilterBytes() { } public static final int ANNOTATION_FILTERS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList annotationFilters_; /** * @@ -1560,11 +1591,11 @@ public com.google.protobuf.FieldMask getFieldMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { - return getFieldMask(); + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } public static final int ANNOTATIONS_LIMIT_FIELD_NUMBER = 7; - private int annotationsLimit_; + private int annotationsLimit_ = 0; /** * * @@ -1584,7 +1615,7 @@ public int getAnnotationsLimit() { } public static final int PAGE_SIZE_FIELD_NUMBER = 8; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -1603,7 +1634,9 @@ public int getPageSize() { } public static final int ORDER_BY_FIELD_NUMBER = 9; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -1660,7 +1693,9 @@ public com.google.protobuf.ByteString getOrderByBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 10; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -2057,35 +2092,26 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (orderByAnnotationBuilder_ != null) { orderByAnnotationBuilder_.clear(); } dataset_ = ""; - savedQuery_ = ""; - dataLabelingJob_ = ""; - dataItemFilter_ = ""; - annotationsFilter_ = ""; - annotationFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (fieldMaskBuilder_ == null) { - fieldMask_ = null; - } else { - fieldMask_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + fieldMask_ = null; + if (fieldMaskBuilder_ != null) { + fieldMaskBuilder_.dispose(); fieldMaskBuilder_ = null; } annotationsLimit_ = 0; - pageSize_ = 0; - orderBy_ = ""; - pageToken_ = ""; - orderCase_ = 0; order_ = null; return this; @@ -2115,39 +2141,64 @@ public com.google.cloud.aiplatform.v1.SearchDataItemsRequest build() { public com.google.cloud.aiplatform.v1.SearchDataItemsRequest buildPartial() { com.google.cloud.aiplatform.v1.SearchDataItemsRequest result = new com.google.cloud.aiplatform.v1.SearchDataItemsRequest(this); - int from_bitField0_ = bitField0_; - if (orderCase_ == 12) { - result.order_ = order_; - } - if (orderCase_ == 13) { - if (orderByAnnotationBuilder_ == null) { - result.order_ = order_; - } else { - result.order_ = orderByAnnotationBuilder_.build(); - } + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.dataset_ = dataset_; - result.savedQuery_ = savedQuery_; - result.dataLabelingJob_ = dataLabelingJob_; - result.dataItemFilter_ = dataItemFilter_; - result.annotationsFilter_ = annotationsFilter_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.SearchDataItemsRequest result) { + if (((bitField0_ & 0x00000080) != 0)) { annotationFilters_ = annotationFilters_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); } result.annotationFilters_ = annotationFilters_; - if (fieldMaskBuilder_ == null) { - result.fieldMask_ = fieldMask_; - } else { - result.fieldMask_ = fieldMaskBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.SearchDataItemsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dataset_ = dataset_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.savedQuery_ = savedQuery_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dataLabelingJob_ = dataLabelingJob_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.dataItemFilter_ = dataItemFilter_; } - result.annotationsLimit_ = annotationsLimit_; - result.pageSize_ = pageSize_; - result.orderBy_ = orderBy_; - result.pageToken_ = pageToken_; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.annotationsFilter_ = annotationsFilter_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.fieldMask_ = fieldMaskBuilder_ == null ? fieldMask_ : fieldMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.annotationsLimit_ = annotationsLimit_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.pageToken_ = pageToken_; + } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.SearchDataItemsRequest result) { result.orderCase_ = orderCase_; - onBuilt(); - return result; + result.order_ = this.order_; + if (orderCase_ == 13 && orderByAnnotationBuilder_ != null) { + result.order_ = orderByAnnotationBuilder_.build(); + } } @java.lang.Override @@ -2198,28 +2249,33 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SearchDataItemsRequest o return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getSavedQuery().isEmpty()) { savedQuery_ = other.savedQuery_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getDataLabelingJob().isEmpty()) { dataLabelingJob_ = other.dataLabelingJob_; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getDataItemFilter().isEmpty()) { dataItemFilter_ = other.dataItemFilter_; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getAnnotationsFilter().isEmpty()) { annotationsFilter_ = other.annotationsFilter_; + bitField0_ |= 0x00000040; onChanged(); } if (!other.annotationFilters_.isEmpty()) { if (annotationFilters_.isEmpty()) { annotationFilters_ = other.annotationFilters_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureAnnotationFiltersIsMutable(); annotationFilters_.addAll(other.annotationFilters_); @@ -2237,10 +2293,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SearchDataItemsRequest o } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000800; onChanged(); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00001000; onChanged(); } switch (other.getOrderCase()) { @@ -2290,61 +2348,61 @@ public Builder mergeFrom( case 10: { dataset_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 10 case 18: { savedQuery_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 18 case 26: { dataLabelingJob_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 26 case 34: { dataItemFilter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 34 case 42: { annotationsFilter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 42 case 50: { input.readMessage(getFieldMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 50 case 56: { annotationsLimit_ = input.readInt32(); - + bitField0_ |= 0x00000200; break; } // case 56 case 64: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000400; break; } // case 64 case 74: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000800; break; } // case 74 case 82: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00001000; break; } // case 82 case 90: @@ -2779,7 +2837,6 @@ public Builder clearOrderByAnnotation() { } orderCase_ = 13; onChanged(); - ; return orderByAnnotationBuilder_; } @@ -2856,8 +2913,8 @@ public Builder setDataset(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - dataset_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2877,8 +2934,8 @@ public Builder setDataset(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDataset() { - dataset_ = getDefaultInstance().getDataset(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2903,8 +2960,8 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - dataset_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2991,8 +3048,8 @@ public Builder setSavedQuery(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - savedQuery_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3015,8 +3072,8 @@ public Builder setSavedQuery(java.lang.String value) { */ @java.lang.Deprecated public Builder clearSavedQuery() { - savedQuery_ = getDefaultInstance().getSavedQuery(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -3044,8 +3101,8 @@ public Builder setSavedQueryBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - savedQuery_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3123,8 +3180,8 @@ public Builder setDataLabelingJob(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - dataLabelingJob_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3144,8 +3201,8 @@ public Builder setDataLabelingJob(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDataLabelingJob() { - dataLabelingJob_ = getDefaultInstance().getDataLabelingJob(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -3170,8 +3227,8 @@ public Builder setDataLabelingJobBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - dataLabelingJob_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3261,8 +3318,8 @@ public Builder setDataItemFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - dataItemFilter_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3286,8 +3343,8 @@ public Builder setDataItemFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDataItemFilter() { - dataItemFilter_ = getDefaultInstance().getDataItemFilter(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -3316,8 +3373,8 @@ public Builder setDataItemFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - dataItemFilter_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3398,8 +3455,8 @@ public Builder setAnnotationsFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - annotationsFilter_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3420,8 +3477,8 @@ public Builder setAnnotationsFilter(java.lang.String value) { */ @java.lang.Deprecated public Builder clearAnnotationsFilter() { - annotationsFilter_ = getDefaultInstance().getAnnotationsFilter(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -3447,8 +3504,8 @@ public Builder setAnnotationsFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - annotationsFilter_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3457,9 +3514,9 @@ public Builder setAnnotationsFilterBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAnnotationFiltersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { annotationFilters_ = new com.google.protobuf.LazyStringArrayList(annotationFilters_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000080; } } /** @@ -3626,7 +3683,7 @@ public Builder addAllAnnotationFilters(java.lang.Iterable valu */ public Builder clearAnnotationFilters() { annotationFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -3676,7 +3733,7 @@ public Builder addAnnotationFiltersBytes(com.google.protobuf.ByteString value) { * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { - return fieldMaskBuilder_ != null || fieldMask_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -3713,11 +3770,11 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } fieldMask_ = value; - onChanged(); } else { fieldMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3733,11 +3790,11 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (fieldMaskBuilder_ == null) { fieldMask_ = builderForValue.build(); - onChanged(); } else { fieldMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3752,17 +3809,18 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu */ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { - if (fieldMask_ != null) { - fieldMask_ = - com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && fieldMask_ != null + && fieldMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getFieldMaskBuilder().mergeFrom(value); } else { fieldMask_ = value; } - onChanged(); } else { fieldMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3776,14 +3834,13 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask field_mask = 6; */ public Builder clearFieldMask() { - if (fieldMaskBuilder_ == null) { - fieldMask_ = null; - onChanged(); - } else { - fieldMask_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + fieldMask_ = null; + if (fieldMaskBuilder_ != null) { + fieldMaskBuilder_.dispose(); fieldMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -3797,7 +3854,7 @@ public Builder clearFieldMask() { * .google.protobuf.FieldMask field_mask = 6; */ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getFieldMaskFieldBuilder().getBuilder(); } @@ -3880,6 +3937,7 @@ public int getAnnotationsLimit() { public Builder setAnnotationsLimit(int value) { annotationsLimit_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3897,7 +3955,7 @@ public Builder setAnnotationsLimit(int value) { * @return This builder for chaining. */ public Builder clearAnnotationsLimit() { - + bitField0_ = (bitField0_ & ~0x00000200); annotationsLimit_ = 0; onChanged(); return this; @@ -3936,6 +3994,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3952,7 +4011,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000400); pageSize_ = 0; onChanged(); return this; @@ -4031,8 +4090,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4052,8 +4111,8 @@ public Builder setOrderBy(java.lang.String value) { */ @java.lang.Deprecated public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -4078,8 +4137,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4160,8 +4219,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4182,8 +4241,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -4209,8 +4268,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsResponse.java index 1ce6da1bc27f..037959acc55f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DATA_ITEM_VIEWS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List dataItemViews_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1.DataItemViewOrBuilder getDataItemViewsOrBu } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -403,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (dataItemViewsBuilder_ == null) { dataItemViews_ = java.util.Collections.emptyList(); } else { @@ -411,7 +416,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -439,7 +443,16 @@ public com.google.cloud.aiplatform.v1.SearchDataItemsResponse build() { public com.google.cloud.aiplatform.v1.SearchDataItemsResponse buildPartial() { com.google.cloud.aiplatform.v1.SearchDataItemsResponse result = new com.google.cloud.aiplatform.v1.SearchDataItemsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.SearchDataItemsResponse result) { if (dataItemViewsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { dataItemViews_ = java.util.Collections.unmodifiableList(dataItemViews_); @@ -449,9 +462,13 @@ public com.google.cloud.aiplatform.v1.SearchDataItemsResponse buildPartial() { } else { result.dataItemViews_ = dataItemViewsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.SearchDataItemsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -529,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SearchDataItemsResponse } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -573,7 +591,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1020,8 +1038,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1040,8 +1058,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1065,8 +1083,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchFeaturesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchFeaturesRequest.java index 8d4a816b09f3..e4a467957fea 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchFeaturesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchFeaturesRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int LOCATION_FIELD_NUMBER = 1; - private volatile java.lang.Object location_; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; /** * * @@ -128,7 +130,9 @@ public com.google.protobuf.ByteString getLocationBytes() { } public static final int QUERY_FIELD_NUMBER = 3; - private volatile java.lang.Object query_; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; /** * * @@ -271,7 +275,7 @@ public com.google.protobuf.ByteString getQueryBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 4; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -292,7 +296,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 5; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -575,14 +581,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; location_ = ""; - query_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -610,14 +613,29 @@ public com.google.cloud.aiplatform.v1.SearchFeaturesRequest build() { public com.google.cloud.aiplatform.v1.SearchFeaturesRequest buildPartial() { com.google.cloud.aiplatform.v1.SearchFeaturesRequest result = new com.google.cloud.aiplatform.v1.SearchFeaturesRequest(this); - result.location_ = location_; - result.query_ = query_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.SearchFeaturesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -666,10 +684,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SearchFeaturesRequest ot return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getQuery().isEmpty()) { query_ = other.query_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -677,6 +697,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SearchFeaturesRequest ot } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -708,25 +729,25 @@ public Builder mergeFrom( case 10: { location_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: { query_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 26 case 32: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 32 case 42: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 42 default: @@ -746,6 +767,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object location_ = ""; /** * @@ -819,8 +842,8 @@ public Builder setLocation(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - location_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -840,8 +863,8 @@ public Builder setLocation(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLocation() { - location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -866,8 +889,8 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - location_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1074,8 +1097,8 @@ public Builder setQuery(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - query_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1138,8 +1161,8 @@ public Builder setQuery(java.lang.String value) { * @return This builder for chaining. */ public Builder clearQuery() { - query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1207,8 +1230,8 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - query_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1250,6 +1273,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1268,7 +1292,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1350,8 +1374,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1372,8 +1396,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1399,8 +1423,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchFeaturesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchFeaturesResponse.java index 5a8bbc614c57..03e438bb9ad5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchFeaturesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchFeaturesResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int FEATURES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List features_; /** * @@ -169,7 +171,9 @@ public com.google.cloud.aiplatform.v1.FeatureOrBuilder getFeaturesOrBuilder(int } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -433,6 +437,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (featuresBuilder_ == null) { features_ = java.util.Collections.emptyList(); } else { @@ -441,7 +446,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -469,7 +473,16 @@ public com.google.cloud.aiplatform.v1.SearchFeaturesResponse build() { public com.google.cloud.aiplatform.v1.SearchFeaturesResponse buildPartial() { com.google.cloud.aiplatform.v1.SearchFeaturesResponse result = new com.google.cloud.aiplatform.v1.SearchFeaturesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.SearchFeaturesResponse result) { if (featuresBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); @@ -479,9 +492,13 @@ public com.google.cloud.aiplatform.v1.SearchFeaturesResponse buildPartial() { } else { result.features_ = featuresBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.SearchFeaturesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -559,6 +576,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SearchFeaturesResponse o } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -603,7 +621,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1151,8 +1169,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1171,8 +1189,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1196,8 +1214,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesRequest.java index b8c6329b34f9..275c2f654673 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -131,7 +133,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -150,7 +152,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -199,7 +203,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -493,14 +499,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - filter_ = ""; - return this; } @@ -529,14 +532,30 @@ public com.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest build() { public com.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest buildPartial() { com.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest result = new com.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -587,6 +606,7 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -594,10 +614,12 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -629,25 +651,25 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -667,6 +689,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -743,8 +767,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -765,8 +789,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -792,8 +816,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -831,6 +855,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -847,7 +872,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -914,8 +939,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -931,8 +956,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -953,8 +978,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1050,8 +1075,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1077,8 +1102,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1109,8 +1134,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesResponse.java index 4ca3e7a92870..1c28a0af7dfb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchMigratableResourcesResponse.java @@ -71,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MIGRATABLE_RESOURCES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List migratableResources_; /** * @@ -147,7 +149,9 @@ public com.google.cloud.aiplatform.v1.MigratableResourceOrBuilder getMigratableR } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -410,6 +414,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (migratableResourcesBuilder_ == null) { migratableResources_ = java.util.Collections.emptyList(); } else { @@ -418,7 +423,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -447,7 +451,16 @@ public com.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse build() public com.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse buildPartial() { com.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse result = new com.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse result) { if (migratableResourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { migratableResources_ = java.util.Collections.unmodifiableList(migratableResources_); @@ -457,9 +470,14 @@ public com.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse buildPar } else { result.migratableResources_ = migratableResourcesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -539,6 +557,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -584,7 +603,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1072,8 +1091,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1091,8 +1110,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1115,8 +1134,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java index 143baef2e608..e056bba4ea1a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java @@ -167,7 +167,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TYPE_FIELD_NUMBER = 1; - private int type_; + private int type_ = 0; /** * .google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType type = 1; * @@ -184,16 +184,15 @@ public int getTypeValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType getType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType result = - com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.valueOf(type_); + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.forNumber(type_); return result == null ? com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.UNRECOGNIZED : result; } public static final int TOP_FEATURE_COUNT_FIELD_NUMBER = 4; - private int topFeatureCount_; + private int topFeatureCount_ = 0; /** * * @@ -463,10 +462,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; type_ = 0; - topFeatureCount_ = 0; - return this; } @@ -507,12 +505,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { new com.google.cloud.aiplatform.v1 .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective( this); - result.type_ = type_; - result.topFeatureCount_ = topFeatureCount_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.topFeatureCount_ = topFeatureCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -606,13 +618,13 @@ public Builder mergeFrom( case 8: { type_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 32: { topFeatureCount_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 32 default: @@ -632,6 +644,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int type_ = 0; /** * .google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType type = 1; @@ -649,8 +663,8 @@ public int getTypeValue() { * @return This builder for chaining. */ public Builder setTypeValue(int value) { - type_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -661,9 +675,8 @@ public Builder setTypeValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType getType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType result = - com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.valueOf(type_); + com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.forNumber(type_); return result == null ? com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.UNRECOGNIZED : result; @@ -679,7 +692,7 @@ public Builder setType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; @@ -690,7 +703,7 @@ public Builder setType( * @return This builder for chaining. */ public Builder clearType() { - + bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; @@ -739,6 +752,7 @@ public int getTopFeatureCount() { public Builder setTopFeatureCount(int value) { topFeatureCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -760,7 +774,7 @@ public Builder setTopFeatureCount(int value) { * @return This builder for chaining. */ public Builder clearTopFeatureCount() { - + bitField0_ = (bitField0_ & ~0x00000002); topFeatureCount_ = 0; onChanged(); return this; @@ -839,7 +853,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int MODEL_DEPLOYMENT_MONITORING_JOB_FIELD_NUMBER = 1; - private volatile java.lang.Object modelDeploymentMonitoringJob_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelDeploymentMonitoringJob_ = ""; /** * * @@ -896,7 +912,9 @@ public com.google.protobuf.ByteString getModelDeploymentMonitoringJobBytes() { } public static final int DEPLOYED_MODEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deployedModelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedModelId_ = ""; /** * * @@ -947,7 +965,9 @@ public com.google.protobuf.ByteString getDeployedModelIdBytes() { } public static final int FEATURE_DISPLAY_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object featureDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object featureDisplayName_ = ""; /** * * @@ -1002,6 +1022,8 @@ public com.google.protobuf.ByteString getFeatureDisplayNameBytes() { } public static final int OBJECTIVES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest .StatsAnomaliesObjective> @@ -1094,7 +1116,7 @@ public int getObjectivesCount() { } public static final int PAGE_SIZE_FIELD_NUMBER = 5; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -1112,7 +1134,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 6; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -1210,7 +1234,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 8; @@ -1259,7 +1283,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } private byte memoizedIsInitialized = -1; @@ -1552,33 +1576,27 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; modelDeploymentMonitoringJob_ = ""; - deployedModelId_ = ""; - featureDisplayName_ = ""; - if (objectivesBuilder_ == null) { objectives_ = java.util.Collections.emptyList(); } else { objectives_ = null; objectivesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); pageSize_ = 0; - pageToken_ = ""; - - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } return this; @@ -1614,33 +1632,53 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest result = new com.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest( this); - int from_bitField0_ = bitField0_; - result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_; - result.deployedModelId_ = deployedModelId_; - result.featureDisplayName_ = featureDisplayName_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + result) { if (objectivesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { objectives_ = java.util.Collections.unmodifiableList(objectives_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.objectives_ = objectives_; } else { result.objectives_ = objectivesBuilder_.build(); } - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_; } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedModelId_ = deployedModelId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.featureDisplayName_ = featureDisplayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -1697,21 +1735,24 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getModelDeploymentMonitoringJob().isEmpty()) { modelDeploymentMonitoringJob_ = other.modelDeploymentMonitoringJob_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDeployedModelId().isEmpty()) { deployedModelId_ = other.deployedModelId_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getFeatureDisplayName().isEmpty()) { featureDisplayName_ = other.featureDisplayName_; + bitField0_ |= 0x00000004; onChanged(); } if (objectivesBuilder_ == null) { if (!other.objectives_.isEmpty()) { if (objectives_.isEmpty()) { objectives_ = other.objectives_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureObjectivesIsMutable(); objectives_.addAll(other.objectives_); @@ -1724,7 +1765,7 @@ public Builder mergeFrom( objectivesBuilder_.dispose(); objectivesBuilder_ = null; objectives_ = other.objectives_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); objectivesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getObjectivesFieldBuilder() @@ -1739,6 +1780,7 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasStartTime()) { @@ -1776,19 +1818,19 @@ public Builder mergeFrom( case 10: { modelDeploymentMonitoringJob_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { deployedModelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { featureDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: @@ -1812,25 +1854,25 @@ public Builder mergeFrom( case 40: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000010; break; } // case 40 case 50: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 66 default: @@ -1925,8 +1967,8 @@ public Builder setModelDeploymentMonitoringJob(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelDeploymentMonitoringJob_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1946,8 +1988,8 @@ public Builder setModelDeploymentMonitoringJob(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelDeploymentMonitoringJob() { - modelDeploymentMonitoringJob_ = getDefaultInstance().getModelDeploymentMonitoringJob(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1972,8 +2014,8 @@ public Builder setModelDeploymentMonitoringJobBytes(com.google.protobuf.ByteStri throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelDeploymentMonitoringJob_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2042,8 +2084,8 @@ public Builder setDeployedModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2060,8 +2102,8 @@ public Builder setDeployedModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedModelId() { - deployedModelId_ = getDefaultInstance().getDeployedModelId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2083,8 +2125,8 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2159,8 +2201,8 @@ public Builder setFeatureDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - featureDisplayName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2179,8 +2221,8 @@ public Builder setFeatureDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFeatureDisplayName() { - featureDisplayName_ = getDefaultInstance().getFeatureDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2204,8 +2246,8 @@ public Builder setFeatureDisplayNameBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - featureDisplayName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2216,12 +2258,12 @@ public Builder setFeatureDisplayNameBytes(com.google.protobuf.ByteString value) objectives_ = java.util.Collections.emptyList(); private void ensureObjectivesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { objectives_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest .StatsAnomaliesObjective>(objectives_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -2491,7 +2533,7 @@ public Builder addAllObjectives( public Builder clearObjectives() { if (objectivesBuilder_ == null) { objectives_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { objectivesBuilder_.clear(); @@ -2651,7 +2693,7 @@ public Builder removeObjectives(int index) { .StatsAnomaliesObjective.Builder, com.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest .StatsAnomaliesObjectiveOrBuilder>( - objectives_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + objectives_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); objectives_ = null; } return objectivesBuilder_; @@ -2688,6 +2730,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2703,7 +2746,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000010); pageSize_ = 0; onChanged(); return this; @@ -2776,8 +2819,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2795,8 +2838,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2819,8 +2862,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2844,7 +2887,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2881,11 +2924,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2901,11 +2944,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2920,17 +2963,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2944,14 +2988,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp start_time = 7; */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2965,7 +3008,7 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 7; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -3032,7 +3075,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -3069,11 +3112,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3089,11 +3132,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3108,17 +3151,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3132,14 +3176,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp end_time = 8; */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3153,7 +3196,7 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 8; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesResponse.java index b6a90df4bddb..dc34f4a75029 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesResponse.java @@ -75,6 +75,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MONITORING_STATS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List monitoringStats_; /** @@ -169,7 +171,9 @@ public com.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies getMonitorin } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -445,6 +449,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (monitoringStatsBuilder_ == null) { monitoringStats_ = java.util.Collections.emptyList(); } else { @@ -453,7 +458,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -487,7 +491,17 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse result = new com.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse( this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + result) { if (monitoringStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { monitoringStats_ = java.util.Collections.unmodifiableList(monitoringStats_); @@ -497,9 +511,15 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } else { result.monitoringStats_ = monitoringStatsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -584,6 +604,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -629,7 +650,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1179,8 +1200,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1198,8 +1219,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1222,8 +1243,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SmoothGradConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SmoothGradConfig.java index f0b54345cf6d..6009bae12d2a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SmoothGradConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SmoothGradConfig.java @@ -244,7 +244,7 @@ public com.google.cloud.aiplatform.v1.FeatureNoiseSigmaOrBuilder getFeatureNoise } public static final int NOISY_SAMPLE_COUNT_FIELD_NUMBER = 3; - private int noisySampleCount_; + private int noisySampleCount_ = 0; /** * * @@ -506,11 +506,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (featureNoiseSigmaBuilder_ != null) { featureNoiseSigmaBuilder_.clear(); } noisySampleCount_ = 0; - gradientNoiseSigmaCase_ = 0; gradientNoiseSigma_ = null; return this; @@ -540,22 +540,29 @@ public com.google.cloud.aiplatform.v1.SmoothGradConfig build() { public com.google.cloud.aiplatform.v1.SmoothGradConfig buildPartial() { com.google.cloud.aiplatform.v1.SmoothGradConfig result = new com.google.cloud.aiplatform.v1.SmoothGradConfig(this); - if (gradientNoiseSigmaCase_ == 1) { - result.gradientNoiseSigma_ = gradientNoiseSigma_; - } - if (gradientNoiseSigmaCase_ == 2) { - if (featureNoiseSigmaBuilder_ == null) { - result.gradientNoiseSigma_ = gradientNoiseSigma_; - } else { - result.gradientNoiseSigma_ = featureNoiseSigmaBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - result.noisySampleCount_ = noisySampleCount_; - result.gradientNoiseSigmaCase_ = gradientNoiseSigmaCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.SmoothGradConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.noisySampleCount_ = noisySampleCount_; + } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.SmoothGradConfig result) { + result.gradientNoiseSigmaCase_ = gradientNoiseSigmaCase_; + result.gradientNoiseSigma_ = this.gradientNoiseSigma_; + if (gradientNoiseSigmaCase_ == 2 && featureNoiseSigmaBuilder_ != null) { + result.gradientNoiseSigma_ = featureNoiseSigmaBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -663,7 +670,7 @@ public Builder mergeFrom( case 24: { noisySampleCount_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -697,6 +704,8 @@ public Builder clearGradientNoiseSigma() { return this; } + private int bitField0_; + /** * * @@ -771,6 +780,7 @@ public float getNoiseSigma() { * @return This builder for chaining. */ public Builder setNoiseSigma(float value) { + gradientNoiseSigmaCase_ = 1; gradientNoiseSigma_ = value; onChanged(); @@ -1078,7 +1088,6 @@ public com.google.cloud.aiplatform.v1.FeatureNoiseSigma.Builder getFeatureNoiseS } gradientNoiseSigmaCase_ = 2; onChanged(); - ; return featureNoiseSigmaBuilder_; } @@ -1119,6 +1128,7 @@ public int getNoisySampleCount() { public Builder setNoisySampleCount(int value) { noisySampleCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1137,7 +1147,7 @@ public Builder setNoisySampleCount(int value) { * @return This builder for chaining. */ public Builder clearNoisySampleCount() { - + bitField0_ = (bitField0_ & ~0x00000004); noisySampleCount_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPool.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPool.java index e445c1d898ec..24d12c7adb2a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPool.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPool.java @@ -77,7 +77,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -126,7 +128,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -181,7 +185,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int SPECIALIST_MANAGERS_COUNT_FIELD_NUMBER = 3; - private int specialistManagersCount_; + private int specialistManagersCount_ = 0; /** * * @@ -199,6 +203,8 @@ public int getSpecialistManagersCount() { } public static final int SPECIALIST_MANAGER_EMAILS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList specialistManagerEmails_; /** * @@ -260,6 +266,8 @@ public com.google.protobuf.ByteString getSpecialistManagerEmailsBytes(int index) } public static final int PENDING_DATA_LABELING_JOBS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList pendingDataLabelingJobs_; /** * @@ -329,6 +337,8 @@ public com.google.protobuf.ByteString getPendingDataLabelingJobsBytes(int index) } public static final int SPECIALIST_WORKER_EMAILS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList specialistWorkerEmails_; /** * @@ -663,18 +673,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - specialistManagersCount_ = 0; - specialistManagerEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); pendingDataLabelingJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); specialistWorkerEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); return this; } @@ -702,27 +710,43 @@ public com.google.cloud.aiplatform.v1.SpecialistPool build() { public com.google.cloud.aiplatform.v1.SpecialistPool buildPartial() { com.google.cloud.aiplatform.v1.SpecialistPool result = new com.google.cloud.aiplatform.v1.SpecialistPool(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.specialistManagersCount_ = specialistManagersCount_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.SpecialistPool result) { + if (((bitField0_ & 0x00000008) != 0)) { specialistManagerEmails_ = specialistManagerEmails_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.specialistManagerEmails_ = specialistManagerEmails_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { pendingDataLabelingJobs_ = pendingDataLabelingJobs_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); } result.pendingDataLabelingJobs_ = pendingDataLabelingJobs_; - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { specialistWorkerEmails_ = specialistWorkerEmails_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); } result.specialistWorkerEmails_ = specialistWorkerEmails_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.SpecialistPool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.specialistManagersCount_ = specialistManagersCount_; + } } @java.lang.Override @@ -772,10 +796,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SpecialistPool other) { if (other == com.google.cloud.aiplatform.v1.SpecialistPool.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getSpecialistManagersCount() != 0) { @@ -784,7 +810,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SpecialistPool other) { if (!other.specialistManagerEmails_.isEmpty()) { if (specialistManagerEmails_.isEmpty()) { specialistManagerEmails_ = other.specialistManagerEmails_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureSpecialistManagerEmailsIsMutable(); specialistManagerEmails_.addAll(other.specialistManagerEmails_); @@ -794,7 +820,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SpecialistPool other) { if (!other.pendingDataLabelingJobs_.isEmpty()) { if (pendingDataLabelingJobs_.isEmpty()) { pendingDataLabelingJobs_ = other.pendingDataLabelingJobs_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensurePendingDataLabelingJobsIsMutable(); pendingDataLabelingJobs_.addAll(other.pendingDataLabelingJobs_); @@ -804,7 +830,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SpecialistPool other) { if (!other.specialistWorkerEmails_.isEmpty()) { if (specialistWorkerEmails_.isEmpty()) { specialistWorkerEmails_ = other.specialistWorkerEmails_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureSpecialistWorkerEmailsIsMutable(); specialistWorkerEmails_.addAll(other.specialistWorkerEmails_); @@ -840,19 +866,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { specialistManagersCount_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: @@ -956,8 +982,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -973,8 +999,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -995,8 +1021,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1071,8 +1097,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1091,8 +1117,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1116,8 +1142,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1155,6 +1181,7 @@ public int getSpecialistManagersCount() { public Builder setSpecialistManagersCount(int value) { specialistManagersCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1171,7 +1198,7 @@ public Builder setSpecialistManagersCount(int value) { * @return This builder for chaining. */ public Builder clearSpecialistManagersCount() { - + bitField0_ = (bitField0_ & ~0x00000004); specialistManagersCount_ = 0; onChanged(); return this; @@ -1181,10 +1208,10 @@ public Builder clearSpecialistManagersCount() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSpecialistManagerEmailsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { specialistManagerEmails_ = new com.google.protobuf.LazyStringArrayList(specialistManagerEmails_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } /** @@ -1319,7 +1346,7 @@ public Builder addAllSpecialistManagerEmails(java.lang.Iterable */ public Builder clearSpecialistWorkerEmails() { specialistWorkerEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StopTrialRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StopTrialRequest.java index 885cea8a462b..f007b3333ab9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StopTrialRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StopTrialRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1.StopTrialRequest build() { public com.google.cloud.aiplatform.v1.StopTrialRequest buildPartial() { com.google.cloud.aiplatform.v1.StopTrialRequest result = new com.google.cloud.aiplatform.v1.StopTrialRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.StopTrialRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -405,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.StopTrialRequest other) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -436,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -456,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -529,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -550,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -576,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StratifiedSplit.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StratifiedSplit.java index 62639efcc862..ffb93bad4751 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StratifiedSplit.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StratifiedSplit.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRAINING_FRACTION_FIELD_NUMBER = 1; - private double trainingFraction_; + private double trainingFraction_ = 0D; /** * * @@ -99,7 +99,7 @@ public double getTrainingFraction() { } public static final int VALIDATION_FRACTION_FIELD_NUMBER = 2; - private double validationFraction_; + private double validationFraction_ = 0D; /** * * @@ -117,7 +117,7 @@ public double getValidationFraction() { } public static final int TEST_FRACTION_FIELD_NUMBER = 3; - private double testFraction_; + private double testFraction_ = 0D; /** * * @@ -135,7 +135,9 @@ public double getTestFraction() { } public static final int KEY_FIELD_NUMBER = 4; - private volatile java.lang.Object key_; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; /** * * @@ -434,14 +436,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; trainingFraction_ = 0D; - validationFraction_ = 0D; - testFraction_ = 0D; - key_ = ""; - return this; } @@ -469,14 +468,29 @@ public com.google.cloud.aiplatform.v1.StratifiedSplit build() { public com.google.cloud.aiplatform.v1.StratifiedSplit buildPartial() { com.google.cloud.aiplatform.v1.StratifiedSplit result = new com.google.cloud.aiplatform.v1.StratifiedSplit(this); - result.trainingFraction_ = trainingFraction_; - result.validationFraction_ = validationFraction_; - result.testFraction_ = testFraction_; - result.key_ = key_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.StratifiedSplit result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trainingFraction_ = trainingFraction_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validationFraction_ = validationFraction_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.testFraction_ = testFraction_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.key_ = key_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -533,6 +547,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.StratifiedSplit other) { } if (!other.getKey().isEmpty()) { key_ = other.key_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -564,25 +579,25 @@ public Builder mergeFrom( case 9: { trainingFraction_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 case 17: { validationFraction_ = input.readDouble(); - + bitField0_ |= 0x00000002; break; } // case 17 case 25: { testFraction_ = input.readDouble(); - + bitField0_ |= 0x00000004; break; } // case 25 case 34: { key_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -602,6 +617,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private double trainingFraction_; /** * @@ -633,6 +650,7 @@ public double getTrainingFraction() { public Builder setTrainingFraction(double value) { trainingFraction_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -648,7 +666,7 @@ public Builder setTrainingFraction(double value) { * @return This builder for chaining. */ public Builder clearTrainingFraction() { - + bitField0_ = (bitField0_ & ~0x00000001); trainingFraction_ = 0D; onChanged(); return this; @@ -685,6 +703,7 @@ public double getValidationFraction() { public Builder setValidationFraction(double value) { validationFraction_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -700,7 +719,7 @@ public Builder setValidationFraction(double value) { * @return This builder for chaining. */ public Builder clearValidationFraction() { - + bitField0_ = (bitField0_ & ~0x00000002); validationFraction_ = 0D; onChanged(); return this; @@ -737,6 +756,7 @@ public double getTestFraction() { public Builder setTestFraction(double value) { testFraction_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -752,7 +772,7 @@ public Builder setTestFraction(double value) { * @return This builder for chaining. */ public Builder clearTestFraction() { - + bitField0_ = (bitField0_ & ~0x00000004); testFraction_ = 0D; onChanged(); return this; @@ -822,8 +842,8 @@ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - key_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -840,8 +860,8 @@ public Builder setKey(java.lang.String value) { * @return This builder for chaining. */ public Builder clearKey() { - key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -863,8 +883,8 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - key_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StreamingReadFeatureValuesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StreamingReadFeatureValuesRequest.java index 54dfb53eafb7..fa64e68ab13a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StreamingReadFeatureValuesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StreamingReadFeatureValuesRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENTITY_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object entityType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityType_ = ""; /** * * @@ -134,6 +136,8 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { } public static final int ENTITY_IDS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList entityIds_; /** * @@ -256,7 +260,9 @@ public com.google.cloud.aiplatform.v1.FeatureSelector getFeatureSelector() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.FeatureSelectorOrBuilder getFeatureSelectorOrBuilder() { - return getFeatureSelector(); + return featureSelector_ == null + ? com.google.cloud.aiplatform.v1.FeatureSelector.getDefaultInstance() + : featureSelector_; } private byte memoizedIsInitialized = -1; @@ -488,14 +494,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; entityType_ = ""; - entityIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (featureSelectorBuilder_ == null) { - featureSelector_ = null; - } else { - featureSelector_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + featureSelector_ = null; + if (featureSelectorBuilder_ != null) { + featureSelectorBuilder_.dispose(); featureSelectorBuilder_ = null; } return this; @@ -526,20 +531,33 @@ public com.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest build() public com.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest buildPartial() { com.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest result = new com.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest(this); - int from_bitField0_ = bitField0_; - result.entityType_ = entityType_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest result) { + if (((bitField0_ & 0x00000002) != 0)) { entityIds_ = entityIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.entityIds_ = entityIds_; - if (featureSelectorBuilder_ == null) { - result.featureSelector_ = featureSelector_; - } else { - result.featureSelector_ = featureSelectorBuilder_.build(); + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityType_ = entityType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.featureSelector_ = + featureSelectorBuilder_ == null ? featureSelector_ : featureSelectorBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -592,12 +610,13 @@ public Builder mergeFrom( return this; if (!other.getEntityType().isEmpty()) { entityType_ = other.entityType_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.entityIds_.isEmpty()) { if (entityIds_.isEmpty()) { entityIds_ = other.entityIds_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureEntityIdsIsMutable(); entityIds_.addAll(other.entityIds_); @@ -636,7 +655,7 @@ public Builder mergeFrom( case 10: { entityType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -649,7 +668,7 @@ public Builder mergeFrom( case 26: { input.readMessage(getFeatureSelectorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -753,8 +772,8 @@ public Builder setEntityType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -777,8 +796,8 @@ public Builder setEntityType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityType() { - entityType_ = getDefaultInstance().getEntityType(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -806,8 +825,8 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -816,9 +835,9 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureEntityIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { entityIds_ = new com.google.protobuf.LazyStringArrayList(entityIds_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -969,7 +988,7 @@ public Builder addAllEntityIds(java.lang.Iterable values) { */ public Builder clearEntityIds() { entityIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1019,7 +1038,7 @@ public Builder addEntityIdsBytes(com.google.protobuf.ByteString value) { * @return Whether the featureSelector field is set. */ public boolean hasFeatureSelector() { - return featureSelectorBuilder_ != null || featureSelector_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1062,11 +1081,11 @@ public Builder setFeatureSelector(com.google.cloud.aiplatform.v1.FeatureSelector throw new NullPointerException(); } featureSelector_ = value; - onChanged(); } else { featureSelectorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1085,11 +1104,11 @@ public Builder setFeatureSelector( com.google.cloud.aiplatform.v1.FeatureSelector.Builder builderForValue) { if (featureSelectorBuilder_ == null) { featureSelector_ = builderForValue.build(); - onChanged(); } else { featureSelectorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1106,19 +1125,19 @@ public Builder setFeatureSelector( */ public Builder mergeFeatureSelector(com.google.cloud.aiplatform.v1.FeatureSelector value) { if (featureSelectorBuilder_ == null) { - if (featureSelector_ != null) { - featureSelector_ = - com.google.cloud.aiplatform.v1.FeatureSelector.newBuilder(featureSelector_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && featureSelector_ != null + && featureSelector_ + != com.google.cloud.aiplatform.v1.FeatureSelector.getDefaultInstance()) { + getFeatureSelectorBuilder().mergeFrom(value); } else { featureSelector_ = value; } - onChanged(); } else { featureSelectorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1134,14 +1153,13 @@ public Builder mergeFeatureSelector(com.google.cloud.aiplatform.v1.FeatureSelect * */ public Builder clearFeatureSelector() { - if (featureSelectorBuilder_ == null) { - featureSelector_ = null; - onChanged(); - } else { - featureSelector_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + featureSelector_ = null; + if (featureSelectorBuilder_ != null) { + featureSelectorBuilder_.dispose(); featureSelectorBuilder_ = null; } - + onChanged(); return this; } /** @@ -1157,7 +1175,7 @@ public Builder clearFeatureSelector() { * */ public com.google.cloud.aiplatform.v1.FeatureSelector.Builder getFeatureSelectorBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getFeatureSelectorFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StringArray.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StringArray.java index 32e862e7d2b5..20e7bcb2b230 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StringArray.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StringArray.java @@ -68,6 +68,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList values_; /** * @@ -332,6 +334,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; @@ -361,14 +364,24 @@ public com.google.cloud.aiplatform.v1.StringArray build() { public com.google.cloud.aiplatform.v1.StringArray buildPartial() { com.google.cloud.aiplatform.v1.StringArray result = new com.google.cloud.aiplatform.v1.StringArray(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.StringArray result) { if (((bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.StringArray result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Study.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Study.java index 2ad7a73235d5..59cca594abb4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Study.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Study.java @@ -252,7 +252,9 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -303,7 +305,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -402,11 +406,13 @@ public com.google.cloud.aiplatform.v1.StudySpec getStudySpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.StudySpecOrBuilder getStudySpecOrBuilder() { - return getStudySpec(); + return studySpec_ == null + ? com.google.cloud.aiplatform.v1.StudySpec.getDefaultInstance() + : studySpec_; } public static final int STATE_FIELD_NUMBER = 4; - private int state_; + private int state_ = 0; /** * * @@ -439,9 +445,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.Study.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Study.State result = - com.google.cloud.aiplatform.v1.Study.State.valueOf(state_); + com.google.cloud.aiplatform.v1.Study.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.Study.State.UNRECOGNIZED : result; } @@ -491,11 +496,13 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int INACTIVE_REASON_FIELD_NUMBER = 6; - private volatile java.lang.Object inactiveReason_; + + @SuppressWarnings("serial") + private volatile java.lang.Object inactiveReason_ = ""; /** * * @@ -795,26 +802,21 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - - if (studySpecBuilder_ == null) { - studySpec_ = null; - } else { - studySpec_ = null; + studySpec_ = null; + if (studySpecBuilder_ != null) { + studySpecBuilder_.dispose(); studySpecBuilder_ = null; } state_ = 0; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } inactiveReason_ = ""; - return this; } @@ -841,24 +843,35 @@ public com.google.cloud.aiplatform.v1.Study build() { @java.lang.Override public com.google.cloud.aiplatform.v1.Study buildPartial() { com.google.cloud.aiplatform.v1.Study result = new com.google.cloud.aiplatform.v1.Study(this); - result.name_ = name_; - result.displayName_ = displayName_; - if (studySpecBuilder_ == null) { - result.studySpec_ = studySpec_; - } else { - result.studySpec_ = studySpecBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.state_ = state_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - result.inactiveReason_ = inactiveReason_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.Study result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.studySpec_ = studySpecBuilder_ == null ? studySpec_ : studySpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.inactiveReason_ = inactiveReason_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -906,10 +919,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Study other) { if (other == com.google.cloud.aiplatform.v1.Study.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasStudySpec()) { @@ -923,6 +938,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Study other) { } if (!other.getInactiveReason().isEmpty()) { inactiveReason_ = other.inactiveReason_; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -954,37 +970,37 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getStudySpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 32: { state_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { inactiveReason_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -1004,6 +1020,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -1068,8 +1086,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1086,8 +1104,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1109,8 +1127,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1176,8 +1194,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1193,8 +1211,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1215,8 +1233,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1241,7 +1259,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the studySpec field is set. */ public boolean hasStudySpec() { - return studySpecBuilder_ != null || studySpec_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1282,11 +1300,11 @@ public Builder setStudySpec(com.google.cloud.aiplatform.v1.StudySpec value) { throw new NullPointerException(); } studySpec_ = value; - onChanged(); } else { studySpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1303,11 +1321,11 @@ public Builder setStudySpec(com.google.cloud.aiplatform.v1.StudySpec value) { public Builder setStudySpec(com.google.cloud.aiplatform.v1.StudySpec.Builder builderForValue) { if (studySpecBuilder_ == null) { studySpec_ = builderForValue.build(); - onChanged(); } else { studySpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1323,19 +1341,18 @@ public Builder setStudySpec(com.google.cloud.aiplatform.v1.StudySpec.Builder bui */ public Builder mergeStudySpec(com.google.cloud.aiplatform.v1.StudySpec value) { if (studySpecBuilder_ == null) { - if (studySpec_ != null) { - studySpec_ = - com.google.cloud.aiplatform.v1.StudySpec.newBuilder(studySpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && studySpec_ != null + && studySpec_ != com.google.cloud.aiplatform.v1.StudySpec.getDefaultInstance()) { + getStudySpecBuilder().mergeFrom(value); } else { studySpec_ = value; } - onChanged(); } else { studySpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1350,14 +1367,13 @@ public Builder mergeStudySpec(com.google.cloud.aiplatform.v1.StudySpec value) { * */ public Builder clearStudySpec() { - if (studySpecBuilder_ == null) { - studySpec_ = null; - onChanged(); - } else { - studySpec_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + studySpec_ = null; + if (studySpecBuilder_ != null) { + studySpecBuilder_.dispose(); studySpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -1372,7 +1388,7 @@ public Builder clearStudySpec() { * */ public com.google.cloud.aiplatform.v1.StudySpec.Builder getStudySpecBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getStudySpecFieldBuilder().getBuilder(); } @@ -1457,8 +1473,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1477,9 +1493,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.Study.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Study.State result = - com.google.cloud.aiplatform.v1.Study.State.valueOf(state_); + com.google.cloud.aiplatform.v1.Study.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.Study.State.UNRECOGNIZED : result; } /** @@ -1500,7 +1515,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.Study.State value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; state_ = value.getNumber(); onChanged(); return this; @@ -1519,7 +1534,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.Study.State value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000008); state_ = 0; onChanged(); return this; @@ -1545,7 +1560,7 @@ public Builder clearState() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1586,11 +1601,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1607,11 +1622,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1627,17 +1642,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1652,14 +1668,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1674,7 +1689,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1790,8 +1805,8 @@ public Builder setInactiveReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - inactiveReason_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1808,8 +1823,8 @@ public Builder setInactiveReason(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInactiveReason() { - inactiveReason_ = getDefaultInstance().getInactiveReason(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1831,8 +1846,8 @@ public Builder setInactiveReasonBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - inactiveReason_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpec.java index e0e688c739ea..01149947c752 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpec.java @@ -844,7 +844,9 @@ private GoalType(int value) { } public static final int METRIC_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object metricId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metricId_ = ""; /** * * @@ -895,7 +897,7 @@ public com.google.protobuf.ByteString getMetricIdBytes() { } public static final int GOAL_FIELD_NUMBER = 2; - private int goal_; + private int goal_ = 0; /** * * @@ -928,9 +930,8 @@ public int getGoalValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType getGoal() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType result = - com.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType.valueOf(goal_); + com.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType.forNumber(goal_); return result == null ? com.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType.UNRECOGNIZED : result; @@ -1149,10 +1150,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; metricId_ = ""; - goal_ = 0; - return this; } @@ -1180,12 +1180,23 @@ public com.google.cloud.aiplatform.v1.StudySpec.MetricSpec build() { public com.google.cloud.aiplatform.v1.StudySpec.MetricSpec buildPartial() { com.google.cloud.aiplatform.v1.StudySpec.MetricSpec result = new com.google.cloud.aiplatform.v1.StudySpec.MetricSpec(this); - result.metricId_ = metricId_; - result.goal_ = goal_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.StudySpec.MetricSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricId_ = metricId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.goal_ = goal_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1236,6 +1247,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.StudySpec.MetricSpec oth return this; if (!other.getMetricId().isEmpty()) { metricId_ = other.metricId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.goal_ != 0) { @@ -1270,13 +1282,13 @@ public Builder mergeFrom( case 10: { metricId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { goal_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -1296,6 +1308,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object metricId_ = ""; /** * @@ -1360,8 +1374,8 @@ public Builder setMetricId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metricId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1378,8 +1392,8 @@ public Builder setMetricId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetricId() { - metricId_ = getDefaultInstance().getMetricId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1401,8 +1415,8 @@ public Builder setMetricIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metricId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1440,8 +1454,8 @@ public int getGoalValue() { * @return This builder for chaining. */ public Builder setGoalValue(int value) { - goal_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1460,9 +1474,8 @@ public Builder setGoalValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType getGoal() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType result = - com.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType.valueOf(goal_); + com.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType.forNumber(goal_); return result == null ? com.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType.UNRECOGNIZED : result; @@ -1485,7 +1498,7 @@ public Builder setGoal(com.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalT if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; goal_ = value.getNumber(); onChanged(); return this; @@ -1504,7 +1517,7 @@ public Builder setGoal(com.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalT * @return This builder for chaining. */ public Builder clearGoal() { - + bitField0_ = (bitField0_ & ~0x00000002); goal_ = 0; onChanged(); return this; @@ -2242,7 +2255,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int bitField0_; public static final int MIN_VALUE_FIELD_NUMBER = 1; - private double minValue_; + private double minValue_ = 0D; /** * * @@ -2260,7 +2273,7 @@ public double getMinValue() { } public static final int MAX_VALUE_FIELD_NUMBER = 2; - private double maxValue_; + private double maxValue_ = 0D; /** * * @@ -2278,7 +2291,7 @@ public double getMaxValue() { } public static final int DEFAULT_VALUE_FIELD_NUMBER = 4; - private double defaultValue_; + private double defaultValue_ = 0D; /** * * @@ -2564,12 +2577,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; minValue_ = 0D; - maxValue_ = 0D; - defaultValue_ = 0D; - bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -2601,17 +2612,28 @@ public com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec bu buildPartial() { com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec result = new com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec result) { int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.minValue_ = minValue_; - result.maxValue_ = maxValue_; if (((from_bitField0_ & 0x00000001) != 0)) { + result.minValue_ = minValue_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxValue_ = maxValue_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { result.defaultValue_ = defaultValue_; to_bitField0_ |= 0x00000001; } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2704,19 +2726,19 @@ public Builder mergeFrom( case 9: { minValue_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 case 17: { maxValue_ = input.readDouble(); - + bitField0_ |= 0x00000002; break; } // case 17 case 33: { defaultValue_ = input.readDouble(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; break; } // case 33 default: @@ -2769,6 +2791,7 @@ public double getMinValue() { public Builder setMinValue(double value) { minValue_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2784,7 +2807,7 @@ public Builder setMinValue(double value) { * @return This builder for chaining. */ public Builder clearMinValue() { - + bitField0_ = (bitField0_ & ~0x00000001); minValue_ = 0D; onChanged(); return this; @@ -2821,6 +2844,7 @@ public double getMaxValue() { public Builder setMaxValue(double value) { maxValue_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2836,7 +2860,7 @@ public Builder setMaxValue(double value) { * @return This builder for chaining. */ public Builder clearMaxValue() { - + bitField0_ = (bitField0_ & ~0x00000002); maxValue_ = 0D; onChanged(); return this; @@ -2860,7 +2884,7 @@ public Builder clearMaxValue() { */ @java.lang.Override public boolean hasDefaultValue() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -2898,8 +2922,9 @@ public double getDefaultValue() { * @return This builder for chaining. */ public Builder setDefaultValue(double value) { - bitField0_ |= 0x00000001; + defaultValue_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2919,7 +2944,7 @@ public Builder setDefaultValue(double value) { * @return This builder for chaining. */ public Builder clearDefaultValue() { - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); defaultValue_ = 0D; onChanged(); return this; @@ -3107,7 +3132,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int bitField0_; public static final int MIN_VALUE_FIELD_NUMBER = 1; - private long minValue_; + private long minValue_ = 0L; /** * * @@ -3125,7 +3150,7 @@ public long getMinValue() { } public static final int MAX_VALUE_FIELD_NUMBER = 2; - private long maxValue_; + private long maxValue_ = 0L; /** * * @@ -3143,7 +3168,7 @@ public long getMaxValue() { } public static final int DEFAULT_VALUE_FIELD_NUMBER = 4; - private long defaultValue_; + private long defaultValue_ = 0L; /** * * @@ -3417,12 +3442,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; minValue_ = 0L; - maxValue_ = 0L; - defaultValue_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -3454,17 +3477,28 @@ public com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec b buildPartial() { com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec result = new com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec result) { int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.minValue_ = minValue_; - result.maxValue_ = maxValue_; if (((from_bitField0_ & 0x00000001) != 0)) { + result.minValue_ = minValue_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxValue_ = maxValue_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { result.defaultValue_ = defaultValue_; to_bitField0_ |= 0x00000001; } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -3557,19 +3591,19 @@ public Builder mergeFrom( case 8: { minValue_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { maxValue_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 case 32: { defaultValue_ = input.readInt64(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; break; } // case 32 default: @@ -3622,6 +3656,7 @@ public long getMinValue() { public Builder setMinValue(long value) { minValue_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3637,7 +3672,7 @@ public Builder setMinValue(long value) { * @return This builder for chaining. */ public Builder clearMinValue() { - + bitField0_ = (bitField0_ & ~0x00000001); minValue_ = 0L; onChanged(); return this; @@ -3674,6 +3709,7 @@ public long getMaxValue() { public Builder setMaxValue(long value) { maxValue_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3689,7 +3725,7 @@ public Builder setMaxValue(long value) { * @return This builder for chaining. */ public Builder clearMaxValue() { - + bitField0_ = (bitField0_ & ~0x00000002); maxValue_ = 0L; onChanged(); return this; @@ -3713,7 +3749,7 @@ public Builder clearMaxValue() { */ @java.lang.Override public boolean hasDefaultValue() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -3751,8 +3787,9 @@ public long getDefaultValue() { * @return This builder for chaining. */ public Builder setDefaultValue(long value) { - bitField0_ |= 0x00000001; + defaultValue_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3772,7 +3809,7 @@ public Builder setDefaultValue(long value) { * @return This builder for chaining. */ public Builder clearDefaultValue() { - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); defaultValue_ = 0L; onChanged(); return this; @@ -4004,6 +4041,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int bitField0_; public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList values_; /** * @@ -4065,7 +4104,9 @@ public com.google.protobuf.ByteString getValuesBytes(int index) { } public static final int DEFAULT_VALUE_FIELD_NUMBER = 3; - private volatile java.lang.Object defaultValue_; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultValue_ = ""; /** * * @@ -4374,10 +4415,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); defaultValue_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -4409,20 +4450,32 @@ public com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSp buildPartial() { com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec result = new com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec result) { if (((bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { + result.defaultValue_ = defaultValue_; to_bitField0_ |= 0x00000001; } - result.defaultValue_ = defaultValue_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -4490,8 +4543,8 @@ public Builder mergeFrom( onChanged(); } if (other.hasDefaultValue()) { - bitField0_ |= 0x00000002; defaultValue_ = other.defaultValue_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -4811,8 +4864,8 @@ public Builder setDefaultValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000002; defaultValue_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4832,8 +4885,8 @@ public Builder setDefaultValue(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDefaultValue() { - bitField0_ = (bitField0_ & ~0x00000002); defaultValue_ = getDefaultInstance().getDefaultValue(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -4858,8 +4911,8 @@ public Builder setDefaultValueBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - bitField0_ |= 0x00000002; defaultValue_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -5072,6 +5125,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int bitField0_; public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.DoubleList values_; /** * @@ -5130,7 +5185,7 @@ public double getValues(int index) { private int valuesMemoizedSerializedSize = -1; public static final int DEFAULT_VALUE_FIELD_NUMBER = 3; - private double defaultValue_; + private double defaultValue_ = 0D; /** * * @@ -5415,10 +5470,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; values_ = emptyDoubleList(); - bitField0_ = (bitField0_ & ~0x00000001); defaultValue_ = 0D; - bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -5450,20 +5504,32 @@ public com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec buildPartial() { com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec result = new com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec result) { if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.defaultValue_ = defaultValue_; to_bitField0_ |= 0x00000001; } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -5679,6 +5745,7 @@ public double getValues(int index) { * @return This builder for chaining. */ public Builder setValues(int index, double value) { + ensureValuesIsMutable(); values_.setDouble(index, value); onChanged(); @@ -5700,6 +5767,7 @@ public Builder setValues(int index, double value) { * @return This builder for chaining. */ public Builder addValues(double value) { + ensureValuesIsMutable(); values_.addDouble(value); onChanged(); @@ -5806,8 +5874,9 @@ public double getDefaultValue() { * @return This builder for chaining. */ public Builder setDefaultValue(double value) { - bitField0_ |= 0x00000002; + defaultValue_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -6250,6 +6319,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.DoubleList values_; /** * @@ -6555,8 +6626,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; values_ = emptyDoubleList(); - bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -6596,14 +6667,30 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec .ConditionalParameterSpec.DiscreteValueCondition(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + .DiscreteValueCondition + result) { if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + .DiscreteValueCondition + result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -6812,6 +6899,7 @@ public double getValues(int index) { * @return This builder for chaining. */ public Builder setValues(int index, double value) { + ensureValuesIsMutable(); values_.setDouble(index, value); onChanged(); @@ -6832,6 +6920,7 @@ public Builder setValues(int index, double value) { * @return This builder for chaining. */ public Builder addValues(double value) { + ensureValuesIsMutable(); values_.addDouble(value); onChanged(); @@ -7048,6 +7137,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList values_; /** * @@ -7353,8 +7444,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; values_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -7394,14 +7485,30 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec .ConditionalParameterSpec.IntValueCondition(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + .IntValueCondition + result) { if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + .IntValueCondition + result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -7606,6 +7713,7 @@ public long getValues(int index) { * @return This builder for chaining. */ public Builder setValues(int index, long value) { + ensureValuesIsMutable(); values_.setLong(index, value); onChanged(); @@ -7625,6 +7733,7 @@ public Builder setValues(int index, long value) { * @return This builder for chaining. */ public Builder addValues(long value) { + ensureValuesIsMutable(); values_.addLong(value); onChanged(); @@ -7859,6 +7968,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList values_; /** * @@ -8171,6 +8282,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; @@ -8212,14 +8324,30 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec .ConditionalParameterSpec.CategoricalValueCondition(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + .CategoricalValueCondition + result) { if (((bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + .CategoricalValueCondition + result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -8912,7 +9040,9 @@ public com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec getParameterSpec() @java.lang.Override public com.google.cloud.aiplatform.v1.StudySpec.ParameterSpecOrBuilder getParameterSpecOrBuilder() { - return getParameterSpec(); + return parameterSpec_ == null + ? com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.getDefaultInstance() + : parameterSpec_; } private byte memoizedIsInitialized = -1; @@ -9212,6 +9342,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (parentDiscreteValuesBuilder_ != null) { parentDiscreteValuesBuilder_.clear(); } @@ -9221,10 +9352,9 @@ public Builder clear() { if (parentCategoricalValuesBuilder_ != null) { parentCategoricalValuesBuilder_.clear(); } - if (parameterSpecBuilder_ == null) { - parameterSpec_ = null; - } else { - parameterSpec_ = null; + parameterSpec_ = null; + if (parameterSpecBuilder_ != null) { + parameterSpecBuilder_.dispose(); parameterSpecBuilder_ = null; } parentValueConditionCase_ = 0; @@ -9262,35 +9392,38 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec result = new com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec( this); - if (parentValueConditionCase_ == 2) { - if (parentDiscreteValuesBuilder_ == null) { - result.parentValueCondition_ = parentValueCondition_; - } else { - result.parentValueCondition_ = parentDiscreteValuesBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (parentValueConditionCase_ == 3) { - if (parentIntValuesBuilder_ == null) { - result.parentValueCondition_ = parentValueCondition_; - } else { - result.parentValueCondition_ = parentIntValuesBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parameterSpec_ = + parameterSpecBuilder_ == null ? parameterSpec_ : parameterSpecBuilder_.build(); } - if (parentValueConditionCase_ == 4) { - if (parentCategoricalValuesBuilder_ == null) { - result.parentValueCondition_ = parentValueCondition_; - } else { - result.parentValueCondition_ = parentCategoricalValuesBuilder_.build(); - } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + result) { + result.parentValueConditionCase_ = parentValueConditionCase_; + result.parentValueCondition_ = this.parentValueCondition_; + if (parentValueConditionCase_ == 2 && parentDiscreteValuesBuilder_ != null) { + result.parentValueCondition_ = parentDiscreteValuesBuilder_.build(); } - if (parameterSpecBuilder_ == null) { - result.parameterSpec_ = parameterSpec_; - } else { - result.parameterSpec_ = parameterSpecBuilder_.build(); + if (parentValueConditionCase_ == 3 && parentIntValuesBuilder_ != null) { + result.parentValueCondition_ = parentIntValuesBuilder_.build(); + } + if (parentValueConditionCase_ == 4 && parentCategoricalValuesBuilder_ != null) { + result.parentValueCondition_ = parentCategoricalValuesBuilder_.build(); } - result.parentValueConditionCase_ = parentValueConditionCase_; - onBuilt(); - return result; } @java.lang.Override @@ -9401,7 +9534,7 @@ public Builder mergeFrom( { input.readMessage( getParameterSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 10 case 18: @@ -9456,6 +9589,8 @@ public Builder clearParentValueCondition() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec .DiscreteValueCondition, @@ -9728,7 +9863,6 @@ public Builder clearParentDiscreteValues() { } parentValueConditionCase_ = 2; onChanged(); - ; return parentDiscreteValuesBuilder_; } @@ -10004,7 +10138,6 @@ public Builder clearParentIntValues() { } parentValueConditionCase_ = 3; onChanged(); - ; return parentIntValuesBuilder_; } @@ -10280,7 +10413,6 @@ public Builder clearParentCategoricalValues() { } parentValueConditionCase_ = 4; onChanged(); - ; return parentCategoricalValuesBuilder_; } @@ -10304,7 +10436,7 @@ public Builder clearParentCategoricalValues() { * @return Whether the parameterSpec field is set. */ public boolean hasParameterSpec() { - return parameterSpecBuilder_ != null || parameterSpec_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -10346,11 +10478,11 @@ public Builder setParameterSpec( throw new NullPointerException(); } parameterSpec_ = value; - onChanged(); } else { parameterSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -10368,11 +10500,11 @@ public Builder setParameterSpec( com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.Builder builderForValue) { if (parameterSpecBuilder_ == null) { parameterSpec_ = builderForValue.build(); - onChanged(); } else { parameterSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -10389,19 +10521,20 @@ public Builder setParameterSpec( public Builder mergeParameterSpec( com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec value) { if (parameterSpecBuilder_ == null) { - if (parameterSpec_ != null) { - parameterSpec_ = - com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.newBuilder(parameterSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && parameterSpec_ != null + && parameterSpec_ + != com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec + .getDefaultInstance()) { + getParameterSpecBuilder().mergeFrom(value); } else { parameterSpec_ = value; } - onChanged(); } else { parameterSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -10416,14 +10549,13 @@ public Builder mergeParameterSpec( * */ public Builder clearParameterSpec() { - if (parameterSpecBuilder_ == null) { - parameterSpec_ = null; - onChanged(); - } else { - parameterSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + parameterSpec_ = null; + if (parameterSpecBuilder_ != null) { + parameterSpecBuilder_.dispose(); parameterSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -10439,7 +10571,7 @@ public Builder clearParameterSpec() { */ public com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.Builder getParameterSpecBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getParameterSpecFieldBuilder().getBuilder(); } @@ -10867,7 +10999,9 @@ public boolean hasDiscreteValueSpec() { } public static final int PARAMETER_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object parameterId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parameterId_ = ""; /** * * @@ -10918,7 +11052,7 @@ public com.google.protobuf.ByteString getParameterIdBytes() { } public static final int SCALE_TYPE_FIELD_NUMBER = 6; - private int scaleType_; + private int scaleType_ = 0; /** * * @@ -10949,15 +11083,16 @@ public int getScaleTypeValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType getScaleType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType result = - com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType.valueOf(scaleType_); + com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType.forNumber(scaleType_); return result == null ? com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType.UNRECOGNIZED : result; } public static final int CONDITIONAL_PARAMETER_SPECS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec> conditionalParameterSpecs_; @@ -11376,6 +11511,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (doubleValueSpecBuilder_ != null) { doubleValueSpecBuilder_.clear(); } @@ -11389,16 +11525,14 @@ public Builder clear() { discreteValueSpecBuilder_.clear(); } parameterId_ = ""; - scaleType_ = 0; - if (conditionalParameterSpecsBuilder_ == null) { conditionalParameterSpecs_ = java.util.Collections.emptyList(); } else { conditionalParameterSpecs_ = null; conditionalParameterSpecsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000040); parameterValueSpecCase_ = 0; parameterValueSpec_ = null; return this; @@ -11428,50 +11562,55 @@ public com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec build() { public com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec buildPartial() { com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec result = new com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec(this); - int from_bitField0_ = bitField0_; - if (parameterValueSpecCase_ == 2) { - if (doubleValueSpecBuilder_ == null) { - result.parameterValueSpec_ = parameterValueSpec_; - } else { - result.parameterValueSpec_ = doubleValueSpecBuilder_.build(); - } + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - if (parameterValueSpecCase_ == 3) { - if (integerValueSpecBuilder_ == null) { - result.parameterValueSpec_ = parameterValueSpec_; - } else { - result.parameterValueSpec_ = integerValueSpecBuilder_.build(); - } - } - if (parameterValueSpecCase_ == 4) { - if (categoricalValueSpecBuilder_ == null) { - result.parameterValueSpec_ = parameterValueSpec_; - } else { - result.parameterValueSpec_ = categoricalValueSpecBuilder_.build(); - } - } - if (parameterValueSpecCase_ == 5) { - if (discreteValueSpecBuilder_ == null) { - result.parameterValueSpec_ = parameterValueSpec_; - } else { - result.parameterValueSpec_ = discreteValueSpecBuilder_.build(); - } - } - result.parameterId_ = parameterId_; - result.scaleType_ = scaleType_; + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec result) { if (conditionalParameterSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { conditionalParameterSpecs_ = java.util.Collections.unmodifiableList(conditionalParameterSpecs_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000040); } result.conditionalParameterSpecs_ = conditionalParameterSpecs_; } else { result.conditionalParameterSpecs_ = conditionalParameterSpecsBuilder_.build(); } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.parameterId_ = parameterId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.scaleType_ = scaleType_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec result) { result.parameterValueSpecCase_ = parameterValueSpecCase_; - onBuilt(); - return result; + result.parameterValueSpec_ = this.parameterValueSpec_; + if (parameterValueSpecCase_ == 2 && doubleValueSpecBuilder_ != null) { + result.parameterValueSpec_ = doubleValueSpecBuilder_.build(); + } + if (parameterValueSpecCase_ == 3 && integerValueSpecBuilder_ != null) { + result.parameterValueSpec_ = integerValueSpecBuilder_.build(); + } + if (parameterValueSpecCase_ == 4 && categoricalValueSpecBuilder_ != null) { + result.parameterValueSpec_ = categoricalValueSpecBuilder_.build(); + } + if (parameterValueSpecCase_ == 5 && discreteValueSpecBuilder_ != null) { + result.parameterValueSpec_ = discreteValueSpecBuilder_.build(); + } } @java.lang.Override @@ -11524,6 +11663,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec return this; if (!other.getParameterId().isEmpty()) { parameterId_ = other.parameterId_; + bitField0_ |= 0x00000010; onChanged(); } if (other.scaleType_ != 0) { @@ -11533,7 +11673,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec if (!other.conditionalParameterSpecs_.isEmpty()) { if (conditionalParameterSpecs_.isEmpty()) { conditionalParameterSpecs_ = other.conditionalParameterSpecs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000040); } else { ensureConditionalParameterSpecsIsMutable(); conditionalParameterSpecs_.addAll(other.conditionalParameterSpecs_); @@ -11546,7 +11686,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec conditionalParameterSpecsBuilder_.dispose(); conditionalParameterSpecsBuilder_ = null; conditionalParameterSpecs_ = other.conditionalParameterSpecs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000040); conditionalParameterSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConditionalParameterSpecsFieldBuilder() @@ -11611,7 +11751,7 @@ public Builder mergeFrom( case 10: { parameterId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 10 case 18: @@ -11645,7 +11785,7 @@ public Builder mergeFrom( case 48: { scaleType_ = input.readEnum(); - + bitField0_ |= 0x00000020; break; } // case 48 case 82: @@ -11938,7 +12078,6 @@ public Builder clearDoubleValueSpec() { } parameterValueSpecCase_ = 2; onChanged(); - ; return doubleValueSpecBuilder_; } @@ -12183,7 +12322,6 @@ public Builder clearIntegerValueSpec() { } parameterValueSpecCase_ = 3; onChanged(); - ; return integerValueSpecBuilder_; } @@ -12432,7 +12570,6 @@ public Builder clearCategoricalValueSpec() { } parameterValueSpecCase_ = 4; onChanged(); - ; return categoricalValueSpecBuilder_; } @@ -12678,7 +12815,6 @@ public Builder clearDiscreteValueSpec() { } parameterValueSpecCase_ = 5; onChanged(); - ; return discreteValueSpecBuilder_; } @@ -12746,8 +12882,8 @@ public Builder setParameterId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parameterId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -12764,8 +12900,8 @@ public Builder setParameterId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParameterId() { - parameterId_ = getDefaultInstance().getParameterId(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -12787,8 +12923,8 @@ public Builder setParameterIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parameterId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -12824,8 +12960,8 @@ public int getScaleTypeValue() { * @return This builder for chaining. */ public Builder setScaleTypeValue(int value) { - scaleType_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -12843,9 +12979,8 @@ public Builder setScaleTypeValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType getScaleType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType result = - com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType.valueOf(scaleType_); + com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType.forNumber(scaleType_); return result == null ? com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType.UNRECOGNIZED : result; @@ -12868,7 +13003,7 @@ public Builder setScaleType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000020; scaleType_ = value.getNumber(); onChanged(); return this; @@ -12886,7 +13021,7 @@ public Builder setScaleType( * @return This builder for chaining. */ public Builder clearScaleType() { - + bitField0_ = (bitField0_ & ~0x00000020); scaleType_ = 0; onChanged(); return this; @@ -12897,12 +13032,12 @@ public Builder clearScaleType() { conditionalParameterSpecs_ = java.util.Collections.emptyList(); private void ensureConditionalParameterSpecsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000040) != 0)) { conditionalParameterSpecs_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec>( conditionalParameterSpecs_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000040; } } @@ -13193,7 +13328,7 @@ public Builder addAllConditionalParameterSpecs( public Builder clearConditionalParameterSpecs() { if (conditionalParameterSpecsBuilder_ == null) { conditionalParameterSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { conditionalParameterSpecsBuilder_.clear(); @@ -13370,7 +13505,7 @@ public Builder removeConditionalParameterSpecs(int index) { com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec .ConditionalParameterSpecOrBuilder>( conditionalParameterSpecs_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); conditionalParameterSpecs_ = null; @@ -13519,7 +13654,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int USE_ELAPSED_DURATION_FIELD_NUMBER = 1; - private boolean useElapsedDuration_; + private boolean useElapsedDuration_ = false; /** * * @@ -13753,8 +13888,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; useElapsedDuration_ = false; - return this; } @@ -13786,11 +13921,21 @@ public com.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec buildPartial() { com.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec result = new com.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec(this); - result.useElapsedDuration_ = useElapsedDuration_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.useElapsedDuration_ = useElapsedDuration_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -13875,7 +14020,7 @@ public Builder mergeFrom( case 8: { useElapsedDuration_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -13895,6 +14040,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean useElapsedDuration_; /** * @@ -13934,6 +14081,7 @@ public boolean getUseElapsedDuration() { public Builder setUseElapsedDuration(boolean value) { useElapsedDuration_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -13953,7 +14101,7 @@ public Builder setUseElapsedDuration(boolean value) { * @return This builder for chaining. */ public Builder clearUseElapsedDuration() { - + bitField0_ = (bitField0_ & ~0x00000001); useElapsedDuration_ = false; onChanged(); return this; @@ -14102,7 +14250,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int USE_ELAPSED_DURATION_FIELD_NUMBER = 1; - private boolean useElapsedDuration_; + private boolean useElapsedDuration_ = false; /** * * @@ -14329,8 +14477,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; useElapsedDuration_ = false; - return this; } @@ -14361,11 +14509,21 @@ public com.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec buil public com.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec buildPartial() { com.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec result = new com.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec(this); - result.useElapsedDuration_ = useElapsedDuration_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.useElapsedDuration_ = useElapsedDuration_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -14449,7 +14607,7 @@ public Builder mergeFrom( case 8: { useElapsedDuration_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -14469,6 +14627,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean useElapsedDuration_; /** * @@ -14508,6 +14668,7 @@ public boolean getUseElapsedDuration() { public Builder setUseElapsedDuration(boolean value) { useElapsedDuration_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -14527,7 +14688,7 @@ public Builder setUseElapsedDuration(boolean value) { * @return This builder for chaining. */ public Builder clearUseElapsedDuration() { - + bitField0_ = (bitField0_ & ~0x00000001); useElapsedDuration_ = false; onChanged(); return this; @@ -14804,7 +14965,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int bitField0_; public static final int MAX_STEP_COUNT_FIELD_NUMBER = 1; - private long maxStepCount_; + private long maxStepCount_ = 0L; /** * * @@ -14825,7 +14986,7 @@ public long getMaxStepCount() { } public static final int MIN_STEP_COUNT_FIELD_NUMBER = 2; - private long minStepCount_; + private long minStepCount_ = 0L; /** * * @@ -14849,7 +15010,7 @@ public long getMinStepCount() { } public static final int MIN_MEASUREMENT_COUNT_FIELD_NUMBER = 3; - private long minMeasurementCount_; + private long minMeasurementCount_ = 0L; /** * * @@ -14870,7 +15031,9 @@ public long getMinMeasurementCount() { } public static final int LEARNING_RATE_PARAMETER_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object learningRateParameterName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object learningRateParameterName_ = ""; /** * * @@ -14925,7 +15088,7 @@ public com.google.protobuf.ByteString getLearningRateParameterNameBytes() { } public static final int USE_ELAPSED_DURATION_FIELD_NUMBER = 5; - private boolean useElapsedDuration_; + private boolean useElapsedDuration_ = false; /** * * @@ -14949,7 +15112,7 @@ public boolean getUseElapsedDuration() { } public static final int UPDATE_ALL_STOPPED_TRIALS_FIELD_NUMBER = 6; - private boolean updateAllStoppedTrials_; + private boolean updateAllStoppedTrials_ = false; /** * * @@ -15256,18 +15419,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; maxStepCount_ = 0L; - minStepCount_ = 0L; - minMeasurementCount_ = 0L; - learningRateParameterName_ = ""; - useElapsedDuration_ = false; - updateAllStoppedTrials_ = false; - bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -15298,20 +15456,37 @@ public com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec buil public com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec buildPartial() { com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec result = new com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec result) { int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.maxStepCount_ = maxStepCount_; - result.minStepCount_ = minStepCount_; - result.minMeasurementCount_ = minMeasurementCount_; - result.learningRateParameterName_ = learningRateParameterName_; - result.useElapsedDuration_ = useElapsedDuration_; if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxStepCount_ = maxStepCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.minStepCount_ = minStepCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.minMeasurementCount_ = minMeasurementCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.learningRateParameterName_ = learningRateParameterName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.useElapsedDuration_ = useElapsedDuration_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { result.updateAllStoppedTrials_ = updateAllStoppedTrials_; to_bitField0_ |= 0x00000001; } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -15376,6 +15551,7 @@ public Builder mergeFrom( } if (!other.getLearningRateParameterName().isEmpty()) { learningRateParameterName_ = other.learningRateParameterName_; + bitField0_ |= 0x00000008; onChanged(); } if (other.getUseElapsedDuration() != false) { @@ -15413,37 +15589,37 @@ public Builder mergeFrom( case 8: { maxStepCount_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { minStepCount_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { minMeasurementCount_ = input.readInt64(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { learningRateParameterName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 40: { useElapsedDuration_ = input.readBool(); - + bitField0_ |= 0x00000010; break; } // case 40 case 48: { updateAllStoppedTrials_ = input.readBool(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000020; break; } // case 48 default: @@ -15502,6 +15678,7 @@ public long getMaxStepCount() { public Builder setMaxStepCount(long value) { maxStepCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -15520,7 +15697,7 @@ public Builder setMaxStepCount(long value) { * @return This builder for chaining. */ public Builder clearMaxStepCount() { - + bitField0_ = (bitField0_ & ~0x00000001); maxStepCount_ = 0L; onChanged(); return this; @@ -15569,6 +15746,7 @@ public long getMinStepCount() { public Builder setMinStepCount(long value) { minStepCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -15590,7 +15768,7 @@ public Builder setMinStepCount(long value) { * @return This builder for chaining. */ public Builder clearMinStepCount() { - + bitField0_ = (bitField0_ & ~0x00000002); minStepCount_ = 0L; onChanged(); return this; @@ -15633,6 +15811,7 @@ public long getMinMeasurementCount() { public Builder setMinMeasurementCount(long value) { minMeasurementCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -15651,7 +15830,7 @@ public Builder setMinMeasurementCount(long value) { * @return This builder for chaining. */ public Builder clearMinMeasurementCount() { - + bitField0_ = (bitField0_ & ~0x00000004); minMeasurementCount_ = 0L; onChanged(); return this; @@ -15727,8 +15906,8 @@ public Builder setLearningRateParameterName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - learningRateParameterName_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -15747,8 +15926,8 @@ public Builder setLearningRateParameterName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLearningRateParameterName() { - learningRateParameterName_ = getDefaultInstance().getLearningRateParameterName(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -15772,8 +15951,8 @@ public Builder setLearningRateParameterNameBytes(com.google.protobuf.ByteString throw new NullPointerException(); } checkByteStringIsUtf8(value); - learningRateParameterName_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -15821,6 +16000,7 @@ public boolean getUseElapsedDuration() { public Builder setUseElapsedDuration(boolean value) { useElapsedDuration_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -15842,7 +16022,7 @@ public Builder setUseElapsedDuration(boolean value) { * @return This builder for chaining. */ public Builder clearUseElapsedDuration() { - + bitField0_ = (bitField0_ & ~0x00000010); useElapsedDuration_ = false; onChanged(); return this; @@ -15868,7 +16048,7 @@ public Builder clearUseElapsedDuration() { */ @java.lang.Override public boolean hasUpdateAllStoppedTrials() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -15910,8 +16090,9 @@ public boolean getUpdateAllStoppedTrials() { * @return This builder for chaining. */ public Builder setUpdateAllStoppedTrials(boolean value) { - bitField0_ |= 0x00000001; + updateAllStoppedTrials_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -15933,7 +16114,7 @@ public Builder setUpdateAllStoppedTrials(boolean value) { * @return This builder for chaining. */ public Builder clearUpdateAllStoppedTrials() { - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); updateAllStoppedTrials_ = false; onChanged(); return this; @@ -16246,6 +16427,8 @@ public boolean hasConvexAutomatedStoppingSpec() { } public static final int METRICS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List metrics_; /** * @@ -16326,6 +16509,8 @@ public com.google.cloud.aiplatform.v1.StudySpec.MetricSpecOrBuilder getMetricsOr } public static final int PARAMETERS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List parameters_; /** * @@ -16407,7 +16592,7 @@ public com.google.cloud.aiplatform.v1.StudySpec.ParameterSpecOrBuilder getParame } public static final int ALGORITHM_FIELD_NUMBER = 3; - private int algorithm_; + private int algorithm_ = 0; /** * * @@ -16436,16 +16621,15 @@ public int getAlgorithmValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.StudySpec.Algorithm getAlgorithm() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.StudySpec.Algorithm result = - com.google.cloud.aiplatform.v1.StudySpec.Algorithm.valueOf(algorithm_); + com.google.cloud.aiplatform.v1.StudySpec.Algorithm.forNumber(algorithm_); return result == null ? com.google.cloud.aiplatform.v1.StudySpec.Algorithm.UNRECOGNIZED : result; } public static final int OBSERVATION_NOISE_FIELD_NUMBER = 6; - private int observationNoise_; + private int observationNoise_ = 0; /** * * @@ -16478,16 +16662,15 @@ public int getObservationNoiseValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.StudySpec.ObservationNoise getObservationNoise() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.StudySpec.ObservationNoise result = - com.google.cloud.aiplatform.v1.StudySpec.ObservationNoise.valueOf(observationNoise_); + com.google.cloud.aiplatform.v1.StudySpec.ObservationNoise.forNumber(observationNoise_); return result == null ? com.google.cloud.aiplatform.v1.StudySpec.ObservationNoise.UNRECOGNIZED : result; } public static final int MEASUREMENT_SELECTION_TYPE_FIELD_NUMBER = 7; - private int measurementSelectionType_; + private int measurementSelectionType_ = 0; /** * * @@ -16521,9 +16704,8 @@ public int getMeasurementSelectionTypeValue() { @java.lang.Override public com.google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType getMeasurementSelectionType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType result = - com.google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType.valueOf( + com.google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType.forNumber( measurementSelectionType_); return result == null ? com.google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType.UNRECOGNIZED @@ -16849,6 +17031,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (decayCurveStoppingSpecBuilder_ != null) { decayCurveStoppingSpecBuilder_.clear(); } @@ -16864,20 +17047,17 @@ public Builder clear() { metrics_ = null; metricsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); } else { parameters_ = null; parametersBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); algorithm_ = 0; - observationNoise_ = 0; - measurementSelectionType_ = 0; - automatedStoppingSpecCase_ = 0; automatedStoppingSpec_ = null; return this; @@ -16907,52 +17087,61 @@ public com.google.cloud.aiplatform.v1.StudySpec build() { public com.google.cloud.aiplatform.v1.StudySpec buildPartial() { com.google.cloud.aiplatform.v1.StudySpec result = new com.google.cloud.aiplatform.v1.StudySpec(this); - int from_bitField0_ = bitField0_; - if (automatedStoppingSpecCase_ == 4) { - if (decayCurveStoppingSpecBuilder_ == null) { - result.automatedStoppingSpec_ = automatedStoppingSpec_; - } else { - result.automatedStoppingSpec_ = decayCurveStoppingSpecBuilder_.build(); - } - } - if (automatedStoppingSpecCase_ == 5) { - if (medianAutomatedStoppingSpecBuilder_ == null) { - result.automatedStoppingSpec_ = automatedStoppingSpec_; - } else { - result.automatedStoppingSpec_ = medianAutomatedStoppingSpecBuilder_.build(); - } - } - if (automatedStoppingSpecCase_ == 9) { - if (convexAutomatedStoppingSpecBuilder_ == null) { - result.automatedStoppingSpec_ = automatedStoppingSpec_; - } else { - result.automatedStoppingSpec_ = convexAutomatedStoppingSpecBuilder_.build(); - } + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.StudySpec result) { if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.metrics_ = metrics_; } else { result.metrics_ = metricsBuilder_.build(); } if (parametersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { parameters_ = java.util.Collections.unmodifiableList(parameters_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); } result.parameters_ = parameters_; } else { result.parameters_ = parametersBuilder_.build(); } - result.algorithm_ = algorithm_; - result.observationNoise_ = observationNoise_; - result.measurementSelectionType_ = measurementSelectionType_; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.StudySpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.algorithm_ = algorithm_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.observationNoise_ = observationNoise_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.measurementSelectionType_ = measurementSelectionType_; + } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.StudySpec result) { result.automatedStoppingSpecCase_ = automatedStoppingSpecCase_; - onBuilt(); - return result; + result.automatedStoppingSpec_ = this.automatedStoppingSpec_; + if (automatedStoppingSpecCase_ == 4 && decayCurveStoppingSpecBuilder_ != null) { + result.automatedStoppingSpec_ = decayCurveStoppingSpecBuilder_.build(); + } + if (automatedStoppingSpecCase_ == 5 && medianAutomatedStoppingSpecBuilder_ != null) { + result.automatedStoppingSpec_ = medianAutomatedStoppingSpecBuilder_.build(); + } + if (automatedStoppingSpecCase_ == 9 && convexAutomatedStoppingSpecBuilder_ != null) { + result.automatedStoppingSpec_ = convexAutomatedStoppingSpecBuilder_.build(); + } } @java.lang.Override @@ -17004,7 +17193,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.StudySpec other) { if (!other.metrics_.isEmpty()) { if (metrics_.isEmpty()) { metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureMetricsIsMutable(); metrics_.addAll(other.metrics_); @@ -17017,7 +17206,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.StudySpec other) { metricsBuilder_.dispose(); metricsBuilder_ = null; metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); metricsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMetricsFieldBuilder() @@ -17031,7 +17220,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.StudySpec other) { if (!other.parameters_.isEmpty()) { if (parameters_.isEmpty()) { parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureParametersIsMutable(); parameters_.addAll(other.parameters_); @@ -17044,7 +17233,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.StudySpec other) { parametersBuilder_.dispose(); parametersBuilder_ = null; parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); parametersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParametersFieldBuilder() @@ -17141,7 +17330,7 @@ public Builder mergeFrom( case 24: { algorithm_ = input.readEnum(); - + bitField0_ |= 0x00000020; break; } // case 24 case 34: @@ -17161,13 +17350,13 @@ public Builder mergeFrom( case 48: { observationNoise_ = input.readEnum(); - + bitField0_ |= 0x00000040; break; } // case 48 case 56: { measurementSelectionType_ = input.readEnum(); - + bitField0_ |= 0x00000080; break; } // case 56 case 74: @@ -17451,7 +17640,6 @@ public Builder clearDecayCurveStoppingSpec() { } automatedStoppingSpecCase_ = 4; onChanged(); - ; return decayCurveStoppingSpecBuilder_; } @@ -17696,7 +17884,6 @@ public Builder clearMedianAutomatedStoppingSpec() { } automatedStoppingSpecCase_ = 5; onChanged(); - ; return medianAutomatedStoppingSpecBuilder_; } @@ -17941,7 +18128,6 @@ public Builder clearConvexAutomatedStoppingSpec() { } automatedStoppingSpecCase_ = 9; onChanged(); - ; return convexAutomatedStoppingSpecBuilder_; } @@ -17949,10 +18135,10 @@ public Builder clearConvexAutomatedStoppingSpec() { java.util.Collections.emptyList(); private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { metrics_ = new java.util.ArrayList(metrics_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -18192,7 +18378,7 @@ public Builder addAllMetrics( public Builder clearMetrics() { if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { metricsBuilder_.clear(); @@ -18332,7 +18518,7 @@ public com.google.cloud.aiplatform.v1.StudySpec.MetricSpec.Builder addMetricsBui com.google.cloud.aiplatform.v1.StudySpec.MetricSpec, com.google.cloud.aiplatform.v1.StudySpec.MetricSpec.Builder, com.google.cloud.aiplatform.v1.StudySpec.MetricSpecOrBuilder>( - metrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + metrics_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); metrics_ = null; } return metricsBuilder_; @@ -18342,11 +18528,11 @@ public com.google.cloud.aiplatform.v1.StudySpec.MetricSpec.Builder addMetricsBui java.util.Collections.emptyList(); private void ensureParametersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { parameters_ = new java.util.ArrayList( parameters_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; } } @@ -18588,7 +18774,7 @@ public Builder addAllParameters( public Builder clearParameters() { if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { parametersBuilder_.clear(); @@ -18728,7 +18914,7 @@ public com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.Builder addParamet com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec, com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.Builder, com.google.cloud.aiplatform.v1.StudySpec.ParameterSpecOrBuilder>( - parameters_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + parameters_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; @@ -18763,8 +18949,8 @@ public int getAlgorithmValue() { * @return This builder for chaining. */ public Builder setAlgorithmValue(int value) { - algorithm_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -18781,9 +18967,8 @@ public Builder setAlgorithmValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.StudySpec.Algorithm getAlgorithm() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.StudySpec.Algorithm result = - com.google.cloud.aiplatform.v1.StudySpec.Algorithm.valueOf(algorithm_); + com.google.cloud.aiplatform.v1.StudySpec.Algorithm.forNumber(algorithm_); return result == null ? com.google.cloud.aiplatform.v1.StudySpec.Algorithm.UNRECOGNIZED : result; @@ -18804,7 +18989,7 @@ public Builder setAlgorithm(com.google.cloud.aiplatform.v1.StudySpec.Algorithm v if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000020; algorithm_ = value.getNumber(); onChanged(); return this; @@ -18821,7 +19006,7 @@ public Builder setAlgorithm(com.google.cloud.aiplatform.v1.StudySpec.Algorithm v * @return This builder for chaining. */ public Builder clearAlgorithm() { - + bitField0_ = (bitField0_ & ~0x00000020); algorithm_ = 0; onChanged(); return this; @@ -18860,8 +19045,8 @@ public int getObservationNoiseValue() { * @return This builder for chaining. */ public Builder setObservationNoiseValue(int value) { - observationNoise_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -18880,9 +19065,8 @@ public Builder setObservationNoiseValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.StudySpec.ObservationNoise getObservationNoise() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.StudySpec.ObservationNoise result = - com.google.cloud.aiplatform.v1.StudySpec.ObservationNoise.valueOf(observationNoise_); + com.google.cloud.aiplatform.v1.StudySpec.ObservationNoise.forNumber(observationNoise_); return result == null ? com.google.cloud.aiplatform.v1.StudySpec.ObservationNoise.UNRECOGNIZED : result; @@ -18906,7 +19090,7 @@ public Builder setObservationNoise( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000040; observationNoise_ = value.getNumber(); onChanged(); return this; @@ -18925,7 +19109,7 @@ public Builder setObservationNoise( * @return This builder for chaining. */ public Builder clearObservationNoise() { - + bitField0_ = (bitField0_ & ~0x00000040); observationNoise_ = 0; onChanged(); return this; @@ -18964,8 +19148,8 @@ public int getMeasurementSelectionTypeValue() { * @return This builder for chaining. */ public Builder setMeasurementSelectionTypeValue(int value) { - measurementSelectionType_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -18985,9 +19169,8 @@ public Builder setMeasurementSelectionTypeValue(int value) { @java.lang.Override public com.google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType getMeasurementSelectionType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType result = - com.google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType.valueOf( + com.google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType.forNumber( measurementSelectionType_); return result == null ? com.google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType.UNRECOGNIZED @@ -19012,7 +19195,7 @@ public Builder setMeasurementSelectionType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000080; measurementSelectionType_ = value.getNumber(); onChanged(); return this; @@ -19031,7 +19214,7 @@ public Builder setMeasurementSelectionType( * @return This builder for chaining. */ public Builder clearMeasurementSelectionType() { - + bitField0_ = (bitField0_ & ~0x00000080); measurementSelectionType_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsMetadata.java index 181ef9862363..9afa3232c166 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsMetadata.java @@ -113,11 +113,15 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } public static final int CLIENT_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object clientId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; /** * * @@ -382,14 +386,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } clientId_ = ""; - return this; } @@ -417,16 +420,24 @@ public com.google.cloud.aiplatform.v1.SuggestTrialsMetadata build() { public com.google.cloud.aiplatform.v1.SuggestTrialsMetadata buildPartial() { com.google.cloud.aiplatform.v1.SuggestTrialsMetadata result = new com.google.cloud.aiplatform.v1.SuggestTrialsMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.clientId_ = clientId_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.SuggestTrialsMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clientId_ = clientId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -478,6 +489,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SuggestTrialsMetadata ot } if (!other.getClientId().isEmpty()) { clientId_ = other.clientId_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -509,13 +521,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { clientId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -535,6 +547,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -553,7 +567,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -591,11 +605,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -611,11 +625,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -630,19 +644,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -655,14 +669,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -676,7 +689,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } @@ -795,8 +808,8 @@ public Builder setClientId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - clientId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -815,8 +828,8 @@ public Builder setClientId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearClientId() { - clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -840,8 +853,8 @@ public Builder setClientIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - clientId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsRequest.java index 9c3d0410b990..00f4fd1f25fa 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -125,7 +127,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SUGGESTION_COUNT_FIELD_NUMBER = 2; - private int suggestionCount_; + private int suggestionCount_ = 0; /** * * @@ -143,7 +145,9 @@ public int getSuggestionCount() { } public static final int CLIENT_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clientId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; /** * * @@ -413,12 +417,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - suggestionCount_ = 0; - clientId_ = ""; - return this; } @@ -446,13 +448,26 @@ public com.google.cloud.aiplatform.v1.SuggestTrialsRequest build() { public com.google.cloud.aiplatform.v1.SuggestTrialsRequest buildPartial() { com.google.cloud.aiplatform.v1.SuggestTrialsRequest result = new com.google.cloud.aiplatform.v1.SuggestTrialsRequest(this); - result.parent_ = parent_; - result.suggestionCount_ = suggestionCount_; - result.clientId_ = clientId_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.SuggestTrialsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.suggestionCount_ = suggestionCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clientId_ = clientId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -501,6 +516,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SuggestTrialsRequest oth return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getSuggestionCount() != 0) { @@ -508,6 +524,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SuggestTrialsRequest oth } if (!other.getClientId().isEmpty()) { clientId_ = other.clientId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -539,19 +556,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { suggestionCount_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { clientId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -571,6 +588,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -641,8 +660,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -661,8 +680,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -686,8 +705,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -723,6 +742,7 @@ public int getSuggestionCount() { public Builder setSuggestionCount(int value) { suggestionCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -738,7 +758,7 @@ public Builder setSuggestionCount(int value) { * @return This builder for chaining. */ public Builder clearSuggestionCount() { - + bitField0_ = (bitField0_ & ~0x00000002); suggestionCount_ = 0; onChanged(); return this; @@ -814,8 +834,8 @@ public Builder setClientId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - clientId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -834,8 +854,8 @@ public Builder setClientId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearClientId() { - clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -859,8 +879,8 @@ public Builder setClientIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - clientId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsResponse.java index b3eed1553cbd..6c61c06d1b9c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SuggestTrialsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRIALS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List trials_; /** * @@ -139,7 +141,7 @@ public com.google.cloud.aiplatform.v1.TrialOrBuilder getTrialsOrBuilder(int inde } public static final int STUDY_STATE_FIELD_NUMBER = 2; - private int studyState_; + private int studyState_ = 0; /** * * @@ -168,9 +170,8 @@ public int getStudyStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.Study.State getStudyState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Study.State result = - com.google.cloud.aiplatform.v1.Study.State.valueOf(studyState_); + com.google.cloud.aiplatform.v1.Study.State.forNumber(studyState_); return result == null ? com.google.cloud.aiplatform.v1.Study.State.UNRECOGNIZED : result; } @@ -217,7 +218,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 4; @@ -263,7 +264,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } private byte memoizedIsInitialized = -1; @@ -503,6 +504,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (trialsBuilder_ == null) { trials_ = java.util.Collections.emptyList(); } else { @@ -511,17 +513,14 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); studyState_ = 0; - - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } return this; @@ -551,7 +550,16 @@ public com.google.cloud.aiplatform.v1.SuggestTrialsResponse build() { public com.google.cloud.aiplatform.v1.SuggestTrialsResponse buildPartial() { com.google.cloud.aiplatform.v1.SuggestTrialsResponse result = new com.google.cloud.aiplatform.v1.SuggestTrialsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.SuggestTrialsResponse result) { if (trialsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { trials_ = java.util.Collections.unmodifiableList(trials_); @@ -561,19 +569,19 @@ public com.google.cloud.aiplatform.v1.SuggestTrialsResponse buildPartial() { } else { result.trials_ = trialsBuilder_.build(); } - result.studyState_ = studyState_; - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.SuggestTrialsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.studyState_ = studyState_; } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -700,19 +708,19 @@ public Builder mergeFrom( case 16: { studyState_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -1111,8 +1119,8 @@ public int getStudyStateValue() { * @return This builder for chaining. */ public Builder setStudyStateValue(int value) { - studyState_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1129,9 +1137,8 @@ public Builder setStudyStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.Study.State getStudyState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Study.State result = - com.google.cloud.aiplatform.v1.Study.State.valueOf(studyState_); + com.google.cloud.aiplatform.v1.Study.State.forNumber(studyState_); return result == null ? com.google.cloud.aiplatform.v1.Study.State.UNRECOGNIZED : result; } /** @@ -1150,7 +1157,7 @@ public Builder setStudyState(com.google.cloud.aiplatform.v1.Study.State value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; studyState_ = value.getNumber(); onChanged(); return this; @@ -1167,7 +1174,7 @@ public Builder setStudyState(com.google.cloud.aiplatform.v1.Study.State value) { * @return This builder for chaining. */ public Builder clearStudyState() { - + bitField0_ = (bitField0_ & ~0x00000002); studyState_ = 0; onChanged(); return this; @@ -1191,7 +1198,7 @@ public Builder clearStudyState() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1226,11 +1233,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1245,11 +1252,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1263,17 +1270,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1286,14 +1294,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp start_time = 3; */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1306,7 +1313,7 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 3; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -1370,7 +1377,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1405,11 +1412,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1424,11 +1431,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1442,17 +1449,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1465,14 +1473,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp end_time = 4; */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1485,7 +1492,7 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 4; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TFRecordDestination.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TFRecordDestination.java index 99675f9e77e7..a083b69f038a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TFRecordDestination.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TFRecordDestination.java @@ -116,7 +116,9 @@ public com.google.cloud.aiplatform.v1.GcsDestination getGcsDestination() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { - return getGcsDestination(); + return gcsDestination_ == null + ? com.google.cloud.aiplatform.v1.GcsDestination.getDefaultInstance() + : gcsDestination_; } private byte memoizedIsInitialized = -1; @@ -321,10 +323,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (gcsDestinationBuilder_ == null) { - gcsDestination_ = null; - } else { - gcsDestination_ = null; + bitField0_ = 0; + gcsDestination_ = null; + if (gcsDestinationBuilder_ != null) { + gcsDestinationBuilder_.dispose(); gcsDestinationBuilder_ = null; } return this; @@ -354,15 +356,21 @@ public com.google.cloud.aiplatform.v1.TFRecordDestination build() { public com.google.cloud.aiplatform.v1.TFRecordDestination buildPartial() { com.google.cloud.aiplatform.v1.TFRecordDestination result = new com.google.cloud.aiplatform.v1.TFRecordDestination(this); - if (gcsDestinationBuilder_ == null) { - result.gcsDestination_ = gcsDestination_; - } else { - result.gcsDestination_ = gcsDestinationBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.TFRecordDestination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gcsDestination_ = + gcsDestinationBuilder_ == null ? gcsDestination_ : gcsDestinationBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -441,7 +449,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -461,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GcsDestination gcsDestination_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GcsDestination, @@ -481,7 +491,7 @@ public Builder mergeFrom( * @return Whether the gcsDestination field is set. */ public boolean hasGcsDestination() { - return gcsDestinationBuilder_ != null || gcsDestination_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -522,11 +532,11 @@ public Builder setGcsDestination(com.google.cloud.aiplatform.v1.GcsDestination v throw new NullPointerException(); } gcsDestination_ = value; - onChanged(); } else { gcsDestinationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -544,11 +554,11 @@ public Builder setGcsDestination( com.google.cloud.aiplatform.v1.GcsDestination.Builder builderForValue) { if (gcsDestinationBuilder_ == null) { gcsDestination_ = builderForValue.build(); - onChanged(); } else { gcsDestinationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -564,19 +574,19 @@ public Builder setGcsDestination( */ public Builder mergeGcsDestination(com.google.cloud.aiplatform.v1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (gcsDestination_ != null) { - gcsDestination_ = - com.google.cloud.aiplatform.v1.GcsDestination.newBuilder(gcsDestination_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && gcsDestination_ != null + && gcsDestination_ + != com.google.cloud.aiplatform.v1.GcsDestination.getDefaultInstance()) { + getGcsDestinationBuilder().mergeFrom(value); } else { gcsDestination_ = value; } - onChanged(); } else { gcsDestinationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -591,14 +601,13 @@ public Builder mergeGcsDestination(com.google.cloud.aiplatform.v1.GcsDestination * */ public Builder clearGcsDestination() { - if (gcsDestinationBuilder_ == null) { - gcsDestination_ = null; - onChanged(); - } else { - gcsDestination_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + gcsDestination_ = null; + if (gcsDestinationBuilder_ != null) { + gcsDestinationBuilder_.dispose(); gcsDestinationBuilder_ = null; } - + onChanged(); return this; } /** @@ -613,7 +622,7 @@ public Builder clearGcsDestination() { * */ public com.google.cloud.aiplatform.v1.GcsDestination.Builder getGcsDestinationBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGcsDestinationFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tensorboard.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tensorboard.java index 8567cd92d3ea..789610fc9c31 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tensorboard.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tensorboard.java @@ -85,7 +85,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -138,7 +140,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -187,7 +191,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -286,11 +292,15 @@ public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } public static final int BLOB_STORAGE_PATH_PREFIX_FIELD_NUMBER = 10; - private volatile java.lang.Object blobStoragePathPrefix_; + + @SuppressWarnings("serial") + private volatile java.lang.Object blobStoragePathPrefix_ = ""; /** * * @@ -341,7 +351,7 @@ public com.google.protobuf.ByteString getBlobStoragePathPrefixBytes() { } public static final int RUN_COUNT_FIELD_NUMBER = 5; - private int runCount_; + private int runCount_ = 0; /** * * @@ -404,7 +414,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 7; @@ -453,7 +463,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int LABELS_FIELD_NUMBER = 8; @@ -469,6 +479,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -550,7 +561,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -587,7 +601,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int ETAG_FIELD_NUMBER = 9; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -960,37 +976,29 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } blobStoragePathPrefix_ = ""; - runCount_ = 0; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); etag_ = ""; - return this; } @@ -1018,32 +1026,47 @@ public com.google.cloud.aiplatform.v1.Tensorboard build() { public com.google.cloud.aiplatform.v1.Tensorboard buildPartial() { com.google.cloud.aiplatform.v1.Tensorboard result = new com.google.cloud.aiplatform.v1.Tensorboard(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Tensorboard result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - result.blobStoragePathPrefix_ = blobStoragePathPrefix_; - result.runCount_ = runCount_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.blobStoragePathPrefix_ = blobStoragePathPrefix_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.runCount_ = runCount_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.etag_ = etag_; } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.etag_ = etag_; - onBuilt(); - return result; } @java.lang.Override @@ -1093,14 +1116,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Tensorboard other) { if (other == com.google.cloud.aiplatform.v1.Tensorboard.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasEncryptionSpec()) { @@ -1108,6 +1134,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Tensorboard other) { } if (!other.getBlobStoragePathPrefix().isEmpty()) { blobStoragePathPrefix_ = other.blobStoragePathPrefix_; + bitField0_ |= 0x00000010; onChanged(); } if (other.getRunCount() != 0) { @@ -1120,8 +1147,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Tensorboard other) { mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000100; if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000200; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1153,37 +1182,37 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 40: { runCount_ = input.readInt32(); - + bitField0_ |= 0x00000020; break; } // case 40 case 50: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 50 case 58: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 58 case 66: @@ -1195,24 +1224,25 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000100; break; } // case 66 case 74: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000200; break; } // case 74 case 82: { blobStoragePathPrefix_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 82 case 90: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 90 default: @@ -1301,8 +1331,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1320,8 +1350,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1344,8 +1374,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1411,8 +1441,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1428,8 +1458,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1450,8 +1480,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1517,8 +1547,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1534,8 +1564,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1556,8 +1586,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1582,7 +1612,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1623,11 +1653,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec v throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1645,11 +1675,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1665,19 +1695,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1692,14 +1722,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 11; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -1714,7 +1743,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 11; */ public com.google.cloud.aiplatform.v1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -1833,8 +1862,8 @@ public Builder setBlobStoragePathPrefix(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - blobStoragePathPrefix_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1852,8 +1881,8 @@ public Builder setBlobStoragePathPrefix(java.lang.String value) { * @return This builder for chaining. */ public Builder clearBlobStoragePathPrefix() { - blobStoragePathPrefix_ = getDefaultInstance().getBlobStoragePathPrefix(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1876,8 +1905,8 @@ public Builder setBlobStoragePathPrefixBytes(com.google.protobuf.ByteString valu throw new NullPointerException(); } checkByteStringIsUtf8(value); - blobStoragePathPrefix_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1913,6 +1942,7 @@ public int getRunCount() { public Builder setRunCount(int value) { runCount_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1928,7 +1958,7 @@ public Builder setRunCount(int value) { * @return This builder for chaining. */ public Builder clearRunCount() { - + bitField0_ = (bitField0_ & ~0x00000020); runCount_ = 0; onChanged(); return this; @@ -1954,7 +1984,7 @@ public Builder clearRunCount() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -1995,11 +2025,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2016,11 +2046,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2036,17 +2066,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2061,14 +2092,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2083,7 +2113,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2155,7 +2185,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2196,11 +2226,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2217,11 +2247,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2237,17 +2267,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2262,14 +2293,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2284,7 +2314,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2347,14 +2377,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000100; + onChanged(); return labels_; } @@ -2430,8 +2460,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2468,6 +2500,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -2498,6 +2531,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000100; return internalGetMutableLabels().getMutableMap(); } /** @@ -2524,8 +2558,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000100; return this; } /** @@ -2547,6 +2581,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; return this; } @@ -2614,8 +2649,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2632,8 +2667,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -2655,8 +2690,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardBlob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardBlob.java index a368adb020bf..384c634646ac 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardBlob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardBlob.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -120,7 +122,7 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int DATA_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString data_; + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * * @@ -344,10 +346,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - data_ = com.google.protobuf.ByteString.EMPTY; - return this; } @@ -375,12 +376,23 @@ public com.google.cloud.aiplatform.v1.TensorboardBlob build() { public com.google.cloud.aiplatform.v1.TensorboardBlob buildPartial() { com.google.cloud.aiplatform.v1.TensorboardBlob result = new com.google.cloud.aiplatform.v1.TensorboardBlob(this); - result.id_ = id_; - result.data_ = data_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.TensorboardBlob result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.data_ = data_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -428,6 +440,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.TensorboardBlob other) { if (other == com.google.cloud.aiplatform.v1.TensorboardBlob.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { @@ -462,13 +475,13 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { data_ = input.readBytes(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -488,6 +501,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object id_ = ""; /** * @@ -552,8 +567,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -570,8 +585,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -593,8 +608,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -633,8 +648,8 @@ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - data_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -651,7 +666,7 @@ public Builder setData(com.google.protobuf.ByteString value) { * @return This builder for chaining. */ public Builder clearData() { - + bitField0_ = (bitField0_ & ~0x00000002); data_ = getDefaultInstance().getData(); onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardBlobSequence.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardBlobSequence.java index 2e392e33fa10..e1e9316077ec 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardBlobSequence.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardBlobSequence.java @@ -69,6 +69,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List values_; /** * @@ -338,6 +340,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); } else { @@ -372,7 +375,16 @@ public com.google.cloud.aiplatform.v1.TensorboardBlobSequence build() { public com.google.cloud.aiplatform.v1.TensorboardBlobSequence buildPartial() { com.google.cloud.aiplatform.v1.TensorboardBlobSequence result = new com.google.cloud.aiplatform.v1.TensorboardBlobSequence(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.TensorboardBlobSequence result) { if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); @@ -382,8 +394,10 @@ public com.google.cloud.aiplatform.v1.TensorboardBlobSequence buildPartial() { } else { result.values_ = valuesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.TensorboardBlobSequence result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperiment.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperiment.java index 7a46a414052b..0fd6360ecd62 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperiment.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperiment.java @@ -84,7 +84,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -137,7 +139,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -186,7 +190,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -280,7 +286,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 5; @@ -329,7 +335,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int LABELS_FIELD_NUMBER = 6; @@ -345,6 +351,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -435,7 +442,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -475,7 +485,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int ETAG_FIELD_NUMBER = 7; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -526,7 +538,9 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int SOURCE_FIELD_NUMBER = 8; - private volatile java.lang.Object source_; + + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; /** * * @@ -875,29 +889,23 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); etag_ = ""; - source_ = ""; - return this; } @@ -925,28 +933,42 @@ public com.google.cloud.aiplatform.v1.TensorboardExperiment build() { public com.google.cloud.aiplatform.v1.TensorboardExperiment buildPartial() { com.google.cloud.aiplatform.v1.TensorboardExperiment result = new com.google.cloud.aiplatform.v1.TensorboardExperiment(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.etag_ = etag_; - result.source_ = source_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.TensorboardExperiment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.source_ = source_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -995,14 +1017,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.TensorboardExperiment ot return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasCreateTime()) { @@ -1012,12 +1037,15 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.TensorboardExperiment ot mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000020; if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000040; onChanged(); } if (!other.getSource().isEmpty()) { source_ = other.source_; + bitField0_ |= 0x00000080; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1049,31 +1077,31 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: @@ -1085,18 +1113,19 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; break; } // case 50 case 58: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 58 case 66: { source_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 66 default: @@ -1185,8 +1214,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1204,8 +1233,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1228,8 +1257,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1295,8 +1324,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1312,8 +1341,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1334,8 +1363,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1401,8 +1430,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1418,8 +1447,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1440,8 +1469,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1466,7 +1495,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1507,11 +1536,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1528,11 +1557,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1548,17 +1577,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1573,14 +1603,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1595,7 +1624,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1667,7 +1696,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1708,11 +1737,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1729,11 +1758,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1749,17 +1778,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1774,14 +1804,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1796,7 +1825,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -1859,14 +1888,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000020; + onChanged(); return labels_; } @@ -1951,8 +1980,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1992,6 +2023,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -2025,6 +2057,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000020; return internalGetMutableLabels().getMutableMap(); } /** @@ -2054,8 +2087,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000020; return this; } /** @@ -2080,6 +2113,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000020; return this; } @@ -2147,8 +2181,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2165,8 +2199,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2188,8 +2222,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2258,8 +2292,8 @@ public Builder setSource(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - source_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2276,8 +2310,8 @@ public Builder setSource(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSource() { - source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -2299,8 +2333,8 @@ public Builder setSourceBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - source_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperimentOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperimentOrBuilder.java index 40e58ca983c9..414dc13df0fb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperimentOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperimentOrBuilder.java @@ -264,7 +264,6 @@ public interface TensorboardExperimentOrBuilder * * map<string, string> labels = 6; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardOrBuilder.java index 2936c189935e..504fb96086fc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardOrBuilder.java @@ -333,7 +333,6 @@ public interface TensorboardOrBuilder * * map<string, string> labels = 8; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRun.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRun.java index f345150435a7..d7504dfa83f5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRun.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRun.java @@ -83,7 +83,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -136,7 +138,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -189,7 +193,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -283,7 +289,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 7; @@ -332,7 +338,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int LABELS_FIELD_NUMBER = 8; @@ -348,6 +354,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -447,7 +454,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -490,7 +500,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int ETAG_FIELD_NUMBER = 9; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -830,27 +842,22 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); etag_ = ""; - return this; } @@ -878,27 +885,39 @@ public com.google.cloud.aiplatform.v1.TensorboardRun build() { public com.google.cloud.aiplatform.v1.TensorboardRun buildPartial() { com.google.cloud.aiplatform.v1.TensorboardRun result = new com.google.cloud.aiplatform.v1.TensorboardRun(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.etag_ = etag_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.TensorboardRun result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.etag_ = etag_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -946,14 +965,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.TensorboardRun other) { if (other == com.google.cloud.aiplatform.v1.TensorboardRun.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasCreateTime()) { @@ -963,8 +985,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.TensorboardRun other) { mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000020; if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000040; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -996,31 +1020,31 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 50: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 50 case 58: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 58 case 66: @@ -1032,12 +1056,13 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; break; } // case 66 case 74: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 74 default: @@ -1126,8 +1151,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1145,8 +1170,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1169,8 +1194,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1242,8 +1267,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1261,8 +1286,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1285,8 +1310,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1352,8 +1377,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1369,8 +1394,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1391,8 +1416,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1417,7 +1442,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1458,11 +1483,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1479,11 +1504,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1499,17 +1524,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1524,14 +1550,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1546,7 +1571,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1618,7 +1643,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1659,11 +1684,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1680,11 +1705,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1700,17 +1725,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1725,14 +1751,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1747,7 +1772,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -1810,14 +1835,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000020; + onChanged(); return labels_; } @@ -1911,8 +1936,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1955,6 +1982,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -1991,6 +2019,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000020; return internalGetMutableLabels().getMutableMap(); } /** @@ -2023,8 +2052,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000020; return this; } /** @@ -2052,6 +2081,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000020; return this; } @@ -2119,8 +2149,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2137,8 +2167,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2160,8 +2190,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRunOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRunOrBuilder.java index 7b0045b4f32a..eaefb482ec23 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRunOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRunOrBuilder.java @@ -280,7 +280,6 @@ public interface TensorboardRunOrBuilder * * map<string, string> labels = 8; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTensor.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTensor.java index c7c272d316ae..800b0045a6e5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTensor.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTensor.java @@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUE_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString value_; + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * * @@ -87,7 +87,7 @@ public com.google.protobuf.ByteString getValue() { } public static final int VERSION_NUMBER_FIELD_NUMBER = 2; - private int versionNumber_; + private int versionNumber_ = 0; /** * * @@ -311,10 +311,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; value_ = com.google.protobuf.ByteString.EMPTY; - versionNumber_ = 0; - return this; } @@ -342,12 +341,23 @@ public com.google.cloud.aiplatform.v1.TensorboardTensor build() { public com.google.cloud.aiplatform.v1.TensorboardTensor buildPartial() { com.google.cloud.aiplatform.v1.TensorboardTensor result = new com.google.cloud.aiplatform.v1.TensorboardTensor(this); - result.value_ = value_; - result.versionNumber_ = versionNumber_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.TensorboardTensor result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.versionNumber_ = versionNumber_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -429,13 +439,13 @@ public Builder mergeFrom( case 10: { value_ = input.readBytes(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { versionNumber_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -455,6 +465,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * @@ -489,8 +501,8 @@ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - value_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -507,7 +519,7 @@ public Builder setValue(com.google.protobuf.ByteString value) { * @return This builder for chaining. */ public Builder clearValue() { - + bitField0_ = (bitField0_ & ~0x00000001); value_ = getDefaultInstance().getValue(); onChanged(); return this; @@ -546,6 +558,7 @@ public int getVersionNumber() { public Builder setVersionNumber(int value) { versionNumber_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -562,7 +575,7 @@ public Builder setVersionNumber(int value) { * @return This builder for chaining. */ public Builder clearVersionNumber() { - + bitField0_ = (bitField0_ & ~0x00000002); versionNumber_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTimeSeries.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTimeSeries.java index 754cda9a86aa..2db82e15eaab 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTimeSeries.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTimeSeries.java @@ -385,7 +385,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MAX_STEP_FIELD_NUMBER = 1; - private long maxStep_; + private long maxStep_ = 0L; /** * * @@ -457,11 +457,13 @@ public com.google.protobuf.Timestamp getMaxWallTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getMaxWallTimeOrBuilder() { - return getMaxWallTime(); + return maxWallTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : maxWallTime_; } public static final int MAX_BLOB_SEQUENCE_LENGTH_FIELD_NUMBER = 3; - private long maxBlobSequenceLength_; + private long maxBlobSequenceLength_ = 0L; /** * * @@ -702,16 +704,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; maxStep_ = 0L; - - if (maxWallTimeBuilder_ == null) { - maxWallTime_ = null; - } else { - maxWallTime_ = null; + maxWallTime_ = null; + if (maxWallTimeBuilder_ != null) { + maxWallTimeBuilder_.dispose(); maxWallTimeBuilder_ = null; } maxBlobSequenceLength_ = 0L; - return this; } @@ -740,17 +740,28 @@ public com.google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata build() { public com.google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata buildPartial() { com.google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata result = new com.google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata(this); - result.maxStep_ = maxStep_; - if (maxWallTimeBuilder_ == null) { - result.maxWallTime_ = maxWallTime_; - } else { - result.maxWallTime_ = maxWallTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.maxBlobSequenceLength_ = maxBlobSequenceLength_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxStep_ = maxStep_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxWallTime_ = + maxWallTimeBuilder_ == null ? maxWallTime_ : maxWallTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxBlobSequenceLength_ = maxBlobSequenceLength_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -839,19 +850,19 @@ public Builder mergeFrom( case 8: { maxStep_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage(getMaxWallTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { maxBlobSequenceLength_ = input.readInt64(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -871,6 +882,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long maxStep_; /** * @@ -904,6 +917,7 @@ public long getMaxStep() { public Builder setMaxStep(long value) { maxStep_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -920,7 +934,7 @@ public Builder setMaxStep(long value) { * @return This builder for chaining. */ public Builder clearMaxStep() { - + bitField0_ = (bitField0_ & ~0x00000001); maxStep_ = 0L; onChanged(); return this; @@ -947,7 +961,7 @@ public Builder clearMaxStep() { * @return Whether the maxWallTime field is set. */ public boolean hasMaxWallTime() { - return maxWallTimeBuilder_ != null || maxWallTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -990,11 +1004,11 @@ public Builder setMaxWallTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } maxWallTime_ = value; - onChanged(); } else { maxWallTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1012,11 +1026,11 @@ public Builder setMaxWallTime(com.google.protobuf.Timestamp value) { public Builder setMaxWallTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (maxWallTimeBuilder_ == null) { maxWallTime_ = builderForValue.build(); - onChanged(); } else { maxWallTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1033,19 +1047,18 @@ public Builder setMaxWallTime(com.google.protobuf.Timestamp.Builder builderForVa */ public Builder mergeMaxWallTime(com.google.protobuf.Timestamp value) { if (maxWallTimeBuilder_ == null) { - if (maxWallTime_ != null) { - maxWallTime_ = - com.google.protobuf.Timestamp.newBuilder(maxWallTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && maxWallTime_ != null + && maxWallTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getMaxWallTimeBuilder().mergeFrom(value); } else { maxWallTime_ = value; } - onChanged(); } else { maxWallTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1061,14 +1074,13 @@ public Builder mergeMaxWallTime(com.google.protobuf.Timestamp value) { * */ public Builder clearMaxWallTime() { - if (maxWallTimeBuilder_ == null) { - maxWallTime_ = null; - onChanged(); - } else { - maxWallTime_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + maxWallTime_ = null; + if (maxWallTimeBuilder_ != null) { + maxWallTimeBuilder_.dispose(); maxWallTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1084,7 +1096,7 @@ public Builder clearMaxWallTime() { * */ public com.google.protobuf.Timestamp.Builder getMaxWallTimeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMaxWallTimeFieldBuilder().getBuilder(); } @@ -1173,6 +1185,7 @@ public long getMaxBlobSequenceLength() { public Builder setMaxBlobSequenceLength(long value) { maxBlobSequenceLength_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1190,7 +1203,7 @@ public Builder setMaxBlobSequenceLength(long value) { * @return This builder for chaining. */ public Builder clearMaxBlobSequenceLength() { - + bitField0_ = (bitField0_ & ~0x00000004); maxBlobSequenceLength_ = 0L; onChanged(); return this; @@ -1264,7 +1277,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -1313,7 +1328,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -1366,7 +1383,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -1415,7 +1434,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int VALUE_TYPE_FIELD_NUMBER = 4; - private int valueType_; + private int valueType_ = 0; /** * * @@ -1448,9 +1467,8 @@ public int getValueTypeValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType getValueType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType result = - com.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType.valueOf(valueType_); + com.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType.forNumber(valueType_); return result == null ? com.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType.UNRECOGNIZED : result; @@ -1502,7 +1520,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 6; @@ -1551,11 +1569,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ETAG_FIELD_NUMBER = 7; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -1606,7 +1626,9 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int PLUGIN_NAME_FIELD_NUMBER = 8; - private volatile java.lang.Object pluginName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pluginName_ = ""; /** * * @@ -1657,7 +1679,7 @@ public com.google.protobuf.ByteString getPluginNameBytes() { } public static final int PLUGIN_DATA_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString pluginData_; + private com.google.protobuf.ByteString pluginData_ = com.google.protobuf.ByteString.EMPTY; /** * * @@ -1729,7 +1751,9 @@ public com.google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata getMetadata @java.lang.Override public com.google.cloud.aiplatform.v1.TensorboardTimeSeries.MetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null + ? com.google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata.getDefaultInstance() + : metadata_; } private byte memoizedIsInitialized = -1; @@ -2029,36 +2053,27 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - valueType_ = 0; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } etag_ = ""; - pluginName_ = ""; - pluginData_ = com.google.protobuf.ByteString.EMPTY; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; @@ -2088,32 +2103,47 @@ public com.google.cloud.aiplatform.v1.TensorboardTimeSeries build() { public com.google.cloud.aiplatform.v1.TensorboardTimeSeries buildPartial() { com.google.cloud.aiplatform.v1.TensorboardTimeSeries result = new com.google.cloud.aiplatform.v1.TensorboardTimeSeries(this); - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; - result.valueType_ = valueType_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.etag_ = etag_; - result.pluginName_ = pluginName_; - result.pluginData_ = pluginData_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.TensorboardTimeSeries result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.valueType_ = valueType_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.pluginName_ = pluginName_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.pluginData_ = pluginData_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2162,14 +2192,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.TensorboardTimeSeries ot return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (other.valueType_ != 0) { @@ -2183,10 +2216,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.TensorboardTimeSeries ot } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000040; onChanged(); } if (!other.getPluginName().isEmpty()) { pluginName_ = other.pluginName_; + bitField0_ |= 0x00000080; onChanged(); } if (other.getPluginData() != com.google.protobuf.ByteString.EMPTY) { @@ -2224,61 +2259,61 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 32: { valueType_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 case 58: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 58 case 66: { pluginName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 66 case 74: { pluginData_ = input.readBytes(); - + bitField0_ |= 0x00000100; break; } // case 74 case 82: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 82 default: @@ -2298,6 +2333,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -2359,8 +2396,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2376,8 +2413,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2398,8 +2435,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2471,8 +2508,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2490,8 +2527,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2514,8 +2551,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2581,8 +2618,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2598,8 +2635,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2620,8 +2657,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2659,8 +2696,8 @@ public int getValueTypeValue() { * @return This builder for chaining. */ public Builder setValueTypeValue(int value) { - valueType_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2679,9 +2716,8 @@ public Builder setValueTypeValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType getValueType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType result = - com.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType.valueOf(valueType_); + com.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType.forNumber(valueType_); return result == null ? com.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType.UNRECOGNIZED : result; @@ -2705,7 +2741,7 @@ public Builder setValueType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; valueType_ = value.getNumber(); onChanged(); return this; @@ -2724,7 +2760,7 @@ public Builder setValueType( * @return This builder for chaining. */ public Builder clearValueType() { - + bitField0_ = (bitField0_ & ~0x00000008); valueType_ = 0; onChanged(); return this; @@ -2750,7 +2786,7 @@ public Builder clearValueType() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2791,11 +2827,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2812,11 +2848,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2832,17 +2868,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2857,14 +2894,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2879,7 +2915,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2951,7 +2987,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2992,11 +3028,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -3013,11 +3049,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -3033,17 +3069,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -3058,14 +3095,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3080,7 +3116,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -3196,8 +3232,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3214,8 +3250,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -3237,8 +3273,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3307,8 +3343,8 @@ public Builder setPluginName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pluginName_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3325,8 +3361,8 @@ public Builder setPluginName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPluginName() { - pluginName_ = getDefaultInstance().getPluginName(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -3348,8 +3384,8 @@ public Builder setPluginNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pluginName_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3386,8 +3422,8 @@ public Builder setPluginData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - pluginData_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3403,7 +3439,7 @@ public Builder setPluginData(com.google.protobuf.ByteString value) { * @return This builder for chaining. */ public Builder clearPluginData() { - + bitField0_ = (bitField0_ & ~0x00000100); pluginData_ = getDefaultInstance().getPluginData(); onChanged(); return this; @@ -3430,7 +3466,7 @@ public Builder clearPluginData() { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -3474,11 +3510,11 @@ public Builder setMetadata( throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3497,11 +3533,11 @@ public Builder setMetadata( com.google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3519,19 +3555,20 @@ public Builder setMetadata( public Builder mergeMetadata( com.google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata + .getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3547,14 +3584,13 @@ public Builder mergeMetadata( * */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -3571,7 +3607,7 @@ public Builder clearMetadata() { */ public com.google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ThresholdConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ThresholdConfig.java index 2d4ab7fd53f4..8ae6d792dd8b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ThresholdConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ThresholdConfig.java @@ -374,6 +374,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; thresholdCase_ = 0; threshold_ = null; return this; @@ -403,14 +404,23 @@ public com.google.cloud.aiplatform.v1.ThresholdConfig build() { public com.google.cloud.aiplatform.v1.ThresholdConfig buildPartial() { com.google.cloud.aiplatform.v1.ThresholdConfig result = new com.google.cloud.aiplatform.v1.ThresholdConfig(this); - if (thresholdCase_ == 1) { - result.threshold_ = threshold_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.thresholdCase_ = thresholdCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.ThresholdConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.ThresholdConfig result) { + result.thresholdCase_ = thresholdCase_; + result.threshold_ = this.threshold_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -530,6 +540,8 @@ public Builder clearThreshold() { return this; } + private int bitField0_; + /** * * @@ -595,6 +607,7 @@ public double getValue() { * @return This builder for chaining. */ public Builder setValue(double value) { + thresholdCase_ = 1; threshold_ = value; onChanged(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimeSeriesData.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimeSeriesData.java index 2fd53438d0fd..38966b44cfc2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimeSeriesData.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimeSeriesData.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_TIME_SERIES_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object tensorboardTimeSeriesId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboardTimeSeriesId_ = ""; /** * * @@ -121,7 +123,7 @@ public com.google.protobuf.ByteString getTensorboardTimeSeriesIdBytes() { } public static final int VALUE_TYPE_FIELD_NUMBER = 2; - private int valueType_; + private int valueType_ = 0; /** * * @@ -156,15 +158,16 @@ public int getValueTypeValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType getValueType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType result = - com.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType.valueOf(valueType_); + com.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType.forNumber(valueType_); return result == null ? com.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType.UNRECOGNIZED : result; } public static final int VALUES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List values_; /** * @@ -464,17 +467,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; tensorboardTimeSeriesId_ = ""; - valueType_ = 0; - if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); } else { values_ = null; valuesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -502,20 +504,34 @@ public com.google.cloud.aiplatform.v1.TimeSeriesData build() { public com.google.cloud.aiplatform.v1.TimeSeriesData buildPartial() { com.google.cloud.aiplatform.v1.TimeSeriesData result = new com.google.cloud.aiplatform.v1.TimeSeriesData(this); - int from_bitField0_ = bitField0_; - result.tensorboardTimeSeriesId_ = tensorboardTimeSeriesId_; - result.valueType_ = valueType_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.TimeSeriesData result) { if (valuesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.values_ = values_; } else { result.values_ = valuesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.TimeSeriesData result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tensorboardTimeSeriesId_ = tensorboardTimeSeriesId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.valueType_ = valueType_; + } } @java.lang.Override @@ -565,6 +581,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.TimeSeriesData other) { if (other == com.google.cloud.aiplatform.v1.TimeSeriesData.getDefaultInstance()) return this; if (!other.getTensorboardTimeSeriesId().isEmpty()) { tensorboardTimeSeriesId_ = other.tensorboardTimeSeriesId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.valueType_ != 0) { @@ -574,7 +591,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.TimeSeriesData other) { if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureValuesIsMutable(); values_.addAll(other.values_); @@ -587,7 +604,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.TimeSeriesData other) { valuesBuilder_.dispose(); valuesBuilder_ = null; values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); valuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValuesFieldBuilder() @@ -626,13 +643,13 @@ public Builder mergeFrom( case 10: { tensorboardTimeSeriesId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { valueType_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: @@ -732,8 +749,8 @@ public Builder setTensorboardTimeSeriesId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboardTimeSeriesId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -750,8 +767,8 @@ public Builder setTensorboardTimeSeriesId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboardTimeSeriesId() { - tensorboardTimeSeriesId_ = getDefaultInstance().getTensorboardTimeSeriesId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -773,8 +790,8 @@ public Builder setTensorboardTimeSeriesIdBytes(com.google.protobuf.ByteString va throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboardTimeSeriesId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -814,8 +831,8 @@ public int getValueTypeValue() { * @return This builder for chaining. */ public Builder setValueTypeValue(int value) { - valueType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -835,9 +852,8 @@ public Builder setValueTypeValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType getValueType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType result = - com.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType.valueOf(valueType_); + com.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType.forNumber(valueType_); return result == null ? com.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType.UNRECOGNIZED : result; @@ -862,7 +878,7 @@ public Builder setValueType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; valueType_ = value.getNumber(); onChanged(); return this; @@ -882,7 +898,7 @@ public Builder setValueType( * @return This builder for chaining. */ public Builder clearValueType() { - + bitField0_ = (bitField0_ & ~0x00000002); valueType_ = 0; onChanged(); return this; @@ -892,10 +908,10 @@ public Builder clearValueType() { java.util.Collections.emptyList(); private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { values_ = new java.util.ArrayList(values_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -1133,7 +1149,7 @@ public Builder addAllValues( public Builder clearValues() { if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { valuesBuilder_.clear(); @@ -1271,7 +1287,7 @@ public com.google.cloud.aiplatform.v1.TimeSeriesDataPoint.Builder addValuesBuild com.google.cloud.aiplatform.v1.TimeSeriesDataPoint, com.google.cloud.aiplatform.v1.TimeSeriesDataPoint.Builder, com.google.cloud.aiplatform.v1.TimeSeriesDataPointOrBuilder>( - values_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + values_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); values_ = null; } return valuesBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimeSeriesDataPoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimeSeriesDataPoint.java index f44d464382a2..c5837e5db337 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimeSeriesDataPoint.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimeSeriesDataPoint.java @@ -311,11 +311,11 @@ public com.google.protobuf.Timestamp getWallTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getWallTimeOrBuilder() { - return getWallTime(); + return wallTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : wallTime_; } public static final int STEP_FIELD_NUMBER = 2; - private long step_; + private long step_ = 0L; /** * * @@ -597,6 +597,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (scalarBuilder_ != null) { scalarBuilder_.clear(); } @@ -606,14 +607,12 @@ public Builder clear() { if (blobsBuilder_ != null) { blobsBuilder_.clear(); } - if (wallTimeBuilder_ == null) { - wallTime_ = null; - } else { - wallTime_ = null; + wallTime_ = null; + if (wallTimeBuilder_ != null) { + wallTimeBuilder_.dispose(); wallTimeBuilder_ = null; } step_ = 0L; - valueCase_ = 0; value_ = null; return this; @@ -643,36 +642,36 @@ public com.google.cloud.aiplatform.v1.TimeSeriesDataPoint build() { public com.google.cloud.aiplatform.v1.TimeSeriesDataPoint buildPartial() { com.google.cloud.aiplatform.v1.TimeSeriesDataPoint result = new com.google.cloud.aiplatform.v1.TimeSeriesDataPoint(this); - if (valueCase_ == 3) { - if (scalarBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = scalarBuilder_.build(); - } - } - if (valueCase_ == 4) { - if (tensorBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = tensorBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (valueCase_ == 5) { - if (blobsBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = blobsBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.TimeSeriesDataPoint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.wallTime_ = wallTimeBuilder_ == null ? wallTime_ : wallTimeBuilder_.build(); } - if (wallTimeBuilder_ == null) { - result.wallTime_ = wallTime_; - } else { - result.wallTime_ = wallTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.step_ = step_; } - result.step_ = step_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.TimeSeriesDataPoint result) { result.valueCase_ = valueCase_; - onBuilt(); - return result; + result.value_ = this.value_; + if (valueCase_ == 3 && scalarBuilder_ != null) { + result.value_ = scalarBuilder_.build(); + } + if (valueCase_ == 4 && tensorBuilder_ != null) { + result.value_ = tensorBuilder_.build(); + } + if (valueCase_ == 5 && blobsBuilder_ != null) { + result.value_ = blobsBuilder_.build(); + } } @java.lang.Override @@ -777,13 +776,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getWallTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 10 case 16: { step_ = input.readInt64(); - + bitField0_ |= 0x00000010; break; } // case 16 case 26: @@ -835,6 +834,8 @@ public Builder clearValue() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.Scalar, com.google.cloud.aiplatform.v1.Scalar.Builder, @@ -1038,7 +1039,6 @@ public com.google.cloud.aiplatform.v1.ScalarOrBuilder getScalarOrBuilder() { } valueCase_ = 3; onChanged(); - ; return scalarBuilder_; } @@ -1248,7 +1248,6 @@ public com.google.cloud.aiplatform.v1.TensorboardTensorOrBuilder getTensorOrBuil } valueCase_ = 4; onChanged(); - ; return tensorBuilder_; } @@ -1459,7 +1458,6 @@ public com.google.cloud.aiplatform.v1.TensorboardBlobSequenceOrBuilder getBlobsO } valueCase_ = 5; onChanged(); - ; return blobsBuilder_; } @@ -1481,7 +1479,7 @@ public com.google.cloud.aiplatform.v1.TensorboardBlobSequenceOrBuilder getBlobsO * @return Whether the wallTime field is set. */ public boolean hasWallTime() { - return wallTimeBuilder_ != null || wallTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1516,11 +1514,11 @@ public Builder setWallTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } wallTime_ = value; - onChanged(); } else { wallTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1535,11 +1533,11 @@ public Builder setWallTime(com.google.protobuf.Timestamp value) { public Builder setWallTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (wallTimeBuilder_ == null) { wallTime_ = builderForValue.build(); - onChanged(); } else { wallTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1553,17 +1551,18 @@ public Builder setWallTime(com.google.protobuf.Timestamp.Builder builderForValue */ public Builder mergeWallTime(com.google.protobuf.Timestamp value) { if (wallTimeBuilder_ == null) { - if (wallTime_ != null) { - wallTime_ = - com.google.protobuf.Timestamp.newBuilder(wallTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && wallTime_ != null + && wallTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getWallTimeBuilder().mergeFrom(value); } else { wallTime_ = value; } - onChanged(); } else { wallTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1576,14 +1575,13 @@ public Builder mergeWallTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp wall_time = 1; */ public Builder clearWallTime() { - if (wallTimeBuilder_ == null) { - wallTime_ = null; - onChanged(); - } else { - wallTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + wallTime_ = null; + if (wallTimeBuilder_ != null) { + wallTimeBuilder_.dispose(); wallTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1596,7 +1594,7 @@ public Builder clearWallTime() { * .google.protobuf.Timestamp wall_time = 1; */ public com.google.protobuf.Timestamp.Builder getWallTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getWallTimeFieldBuilder().getBuilder(); } @@ -1673,6 +1671,7 @@ public long getStep() { public Builder setStep(long value) { step_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1688,7 +1687,7 @@ public Builder setStep(long value) { * @return This builder for chaining. */ public Builder clearStep() { - + bitField0_ = (bitField0_ & ~0x00000010); step_ = 0L; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimestampSplit.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimestampSplit.java index e81f0fdbfcb3..93a8f4edc750 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimestampSplit.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TimestampSplit.java @@ -71,7 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRAINING_FRACTION_FIELD_NUMBER = 1; - private double trainingFraction_; + private double trainingFraction_ = 0D; /** * * @@ -89,7 +89,7 @@ public double getTrainingFraction() { } public static final int VALIDATION_FRACTION_FIELD_NUMBER = 2; - private double validationFraction_; + private double validationFraction_ = 0D; /** * * @@ -107,7 +107,7 @@ public double getValidationFraction() { } public static final int TEST_FRACTION_FIELD_NUMBER = 3; - private double testFraction_; + private double testFraction_ = 0D; /** * * @@ -125,7 +125,9 @@ public double getTestFraction() { } public static final int KEY_FIELD_NUMBER = 4; - private volatile java.lang.Object key_; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; /** * * @@ -420,14 +422,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; trainingFraction_ = 0D; - validationFraction_ = 0D; - testFraction_ = 0D; - key_ = ""; - return this; } @@ -455,14 +454,29 @@ public com.google.cloud.aiplatform.v1.TimestampSplit build() { public com.google.cloud.aiplatform.v1.TimestampSplit buildPartial() { com.google.cloud.aiplatform.v1.TimestampSplit result = new com.google.cloud.aiplatform.v1.TimestampSplit(this); - result.trainingFraction_ = trainingFraction_; - result.validationFraction_ = validationFraction_; - result.testFraction_ = testFraction_; - result.key_ = key_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.TimestampSplit result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trainingFraction_ = trainingFraction_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validationFraction_ = validationFraction_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.testFraction_ = testFraction_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.key_ = key_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -519,6 +533,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.TimestampSplit other) { } if (!other.getKey().isEmpty()) { key_ = other.key_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -550,25 +565,25 @@ public Builder mergeFrom( case 9: { trainingFraction_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 case 17: { validationFraction_ = input.readDouble(); - + bitField0_ |= 0x00000002; break; } // case 17 case 25: { testFraction_ = input.readDouble(); - + bitField0_ |= 0x00000004; break; } // case 25 case 34: { key_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -588,6 +603,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private double trainingFraction_; /** * @@ -619,6 +636,7 @@ public double getTrainingFraction() { public Builder setTrainingFraction(double value) { trainingFraction_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -634,7 +652,7 @@ public Builder setTrainingFraction(double value) { * @return This builder for chaining. */ public Builder clearTrainingFraction() { - + bitField0_ = (bitField0_ & ~0x00000001); trainingFraction_ = 0D; onChanged(); return this; @@ -671,6 +689,7 @@ public double getValidationFraction() { public Builder setValidationFraction(double value) { validationFraction_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -686,7 +705,7 @@ public Builder setValidationFraction(double value) { * @return This builder for chaining. */ public Builder clearValidationFraction() { - + bitField0_ = (bitField0_ & ~0x00000002); validationFraction_ = 0D; onChanged(); return this; @@ -723,6 +742,7 @@ public double getTestFraction() { public Builder setTestFraction(double value) { testFraction_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -738,7 +758,7 @@ public Builder setTestFraction(double value) { * @return This builder for chaining. */ public Builder clearTestFraction() { - + bitField0_ = (bitField0_ & ~0x00000004); testFraction_ = 0D; onChanged(); return this; @@ -817,8 +837,8 @@ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - key_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -838,8 +858,8 @@ public Builder setKey(java.lang.String value) { * @return This builder for chaining. */ public Builder clearKey() { - key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -864,8 +884,8 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - key_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingConfig.java index 0e7937cf91ab..0ceeebfce8ef 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingConfig.java @@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TIMEOUT_TRAINING_MILLI_HOURS_FIELD_NUMBER = 1; - private long timeoutTrainingMilliHours_; + private long timeoutTrainingMilliHours_ = 0L; /** * * @@ -285,8 +285,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; timeoutTrainingMilliHours_ = 0L; - return this; } @@ -314,11 +314,20 @@ public com.google.cloud.aiplatform.v1.TrainingConfig build() { public com.google.cloud.aiplatform.v1.TrainingConfig buildPartial() { com.google.cloud.aiplatform.v1.TrainingConfig result = new com.google.cloud.aiplatform.v1.TrainingConfig(this); - result.timeoutTrainingMilliHours_ = timeoutTrainingMilliHours_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.TrainingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timeoutTrainingMilliHours_ = timeoutTrainingMilliHours_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -396,7 +405,7 @@ public Builder mergeFrom( case 8: { timeoutTrainingMilliHours_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -416,6 +425,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long timeoutTrainingMilliHours_; /** * @@ -449,6 +460,7 @@ public long getTimeoutTrainingMilliHours() { public Builder setTimeoutTrainingMilliHours(long value) { timeoutTrainingMilliHours_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -465,7 +477,7 @@ public Builder setTimeoutTrainingMilliHours(long value) { * @return This builder for chaining. */ public Builder clearTimeoutTrainingMilliHours() { - + bitField0_ = (bitField0_ & ~0x00000001); timeoutTrainingMilliHours_ = 0L; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipeline.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipeline.java index eb47be625290..d6c889446382 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipeline.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipeline.java @@ -88,7 +88,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -137,7 +139,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -254,11 +258,15 @@ public com.google.cloud.aiplatform.v1.InputDataConfig getInputDataConfig() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.InputDataConfigOrBuilder getInputDataConfigOrBuilder() { - return getInputDataConfig(); + return inputDataConfig_ == null + ? com.google.cloud.aiplatform.v1.InputDataConfig.getDefaultInstance() + : inputDataConfig_; } public static final int TRAINING_TASK_DEFINITION_FIELD_NUMBER = 4; - private volatile java.lang.Object trainingTaskDefinition_; + + @SuppressWarnings("serial") + private volatile java.lang.Object trainingTaskDefinition_ = ""; /** * * @@ -377,7 +385,9 @@ public com.google.protobuf.Value getTrainingTaskInputs() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getTrainingTaskInputsOrBuilder() { - return getTrainingTaskInputs(); + return trainingTaskInputs_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : trainingTaskInputs_; } public static final int TRAINING_TASK_METADATA_FIELD_NUMBER = 6; @@ -452,7 +462,9 @@ public com.google.protobuf.Value getTrainingTaskMetadata() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getTrainingTaskMetadataOrBuilder() { - return getTrainingTaskMetadata(); + return trainingTaskMetadata_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : trainingTaskMetadata_; } public static final int MODEL_TO_UPLOAD_FIELD_NUMBER = 7; @@ -545,11 +557,15 @@ public com.google.cloud.aiplatform.v1.Model getModelToUpload() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ModelOrBuilder getModelToUploadOrBuilder() { - return getModelToUpload(); + return modelToUpload_ == null + ? com.google.cloud.aiplatform.v1.Model.getDefaultInstance() + : modelToUpload_; } public static final int MODEL_ID_FIELD_NUMBER = 22; - private volatile java.lang.Object modelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelId_ = ""; /** * * @@ -604,7 +620,9 @@ public com.google.protobuf.ByteString getModelIdBytes() { } public static final int PARENT_MODEL_FIELD_NUMBER = 21; - private volatile java.lang.Object parentModel_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parentModel_ = ""; /** * * @@ -657,7 +675,7 @@ public com.google.protobuf.ByteString getParentModelBytes() { } public static final int STATE_FIELD_NUMBER = 9; - private int state_; + private int state_ = 0; /** * * @@ -690,9 +708,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.PipelineState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.PipelineState result = - com.google.cloud.aiplatform.v1.PipelineState.valueOf(state_); + com.google.cloud.aiplatform.v1.PipelineState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.PipelineState.UNRECOGNIZED : result; } @@ -742,7 +759,7 @@ public com.google.rpc.Status getError() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return getError(); + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } public static final int CREATE_TIME_FIELD_NUMBER = 11; @@ -791,7 +808,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int START_TIME_FIELD_NUMBER = 12; @@ -843,7 +860,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 13; @@ -898,7 +915,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 14; @@ -947,7 +964,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int LABELS_FIELD_NUMBER = 15; @@ -963,6 +980,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -1032,7 +1050,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 15; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1121,7 +1142,9 @@ public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } private byte memoizedIsInitialized = -1; @@ -1550,77 +1573,62 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - - if (inputDataConfigBuilder_ == null) { - inputDataConfig_ = null; - } else { - inputDataConfig_ = null; + inputDataConfig_ = null; + if (inputDataConfigBuilder_ != null) { + inputDataConfigBuilder_.dispose(); inputDataConfigBuilder_ = null; } trainingTaskDefinition_ = ""; - - if (trainingTaskInputsBuilder_ == null) { - trainingTaskInputs_ = null; - } else { - trainingTaskInputs_ = null; + trainingTaskInputs_ = null; + if (trainingTaskInputsBuilder_ != null) { + trainingTaskInputsBuilder_.dispose(); trainingTaskInputsBuilder_ = null; } - if (trainingTaskMetadataBuilder_ == null) { - trainingTaskMetadata_ = null; - } else { - trainingTaskMetadata_ = null; + trainingTaskMetadata_ = null; + if (trainingTaskMetadataBuilder_ != null) { + trainingTaskMetadataBuilder_.dispose(); trainingTaskMetadataBuilder_ = null; } - if (modelToUploadBuilder_ == null) { - modelToUpload_ = null; - } else { - modelToUpload_ = null; + modelToUpload_ = null; + if (modelToUploadBuilder_ != null) { + modelToUploadBuilder_.dispose(); modelToUploadBuilder_ = null; } modelId_ = ""; - parentModel_ = ""; - state_ = 0; - - if (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } return this; @@ -1650,67 +1658,76 @@ public com.google.cloud.aiplatform.v1.TrainingPipeline build() { public com.google.cloud.aiplatform.v1.TrainingPipeline buildPartial() { com.google.cloud.aiplatform.v1.TrainingPipeline result = new com.google.cloud.aiplatform.v1.TrainingPipeline(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.TrainingPipeline result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - if (inputDataConfigBuilder_ == null) { - result.inputDataConfig_ = inputDataConfig_; - } else { - result.inputDataConfig_ = inputDataConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - result.trainingTaskDefinition_ = trainingTaskDefinition_; - if (trainingTaskInputsBuilder_ == null) { - result.trainingTaskInputs_ = trainingTaskInputs_; - } else { - result.trainingTaskInputs_ = trainingTaskInputsBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (trainingTaskMetadataBuilder_ == null) { - result.trainingTaskMetadata_ = trainingTaskMetadata_; - } else { - result.trainingTaskMetadata_ = trainingTaskMetadataBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.inputDataConfig_ = + inputDataConfigBuilder_ == null ? inputDataConfig_ : inputDataConfigBuilder_.build(); } - if (modelToUploadBuilder_ == null) { - result.modelToUpload_ = modelToUpload_; - } else { - result.modelToUpload_ = modelToUploadBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.trainingTaskDefinition_ = trainingTaskDefinition_; } - result.modelId_ = modelId_; - result.parentModel_ = parentModel_; - result.state_ = state_; - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.trainingTaskInputs_ = + trainingTaskInputsBuilder_ == null + ? trainingTaskInputs_ + : trainingTaskInputsBuilder_.build(); } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.trainingTaskMetadata_ = + trainingTaskMetadataBuilder_ == null + ? trainingTaskMetadata_ + : trainingTaskMetadataBuilder_.build(); } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000040) != 0)) { + result.modelToUpload_ = + modelToUploadBuilder_ == null ? modelToUpload_ : modelToUploadBuilder_.build(); } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000080) != 0)) { + result.modelId_ = modelId_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000100) != 0)) { + result.parentModel_ = parentModel_; } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000200) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -1761,10 +1778,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.TrainingPipeline other) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasInputDataConfig()) { @@ -1772,6 +1791,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.TrainingPipeline other) } if (!other.getTrainingTaskDefinition().isEmpty()) { trainingTaskDefinition_ = other.trainingTaskDefinition_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasTrainingTaskInputs()) { @@ -1785,10 +1805,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.TrainingPipeline other) } if (!other.getModelId().isEmpty()) { modelId_ = other.modelId_; + bitField0_ |= 0x00000080; onChanged(); } if (!other.getParentModel().isEmpty()) { parentModel_ = other.parentModel_; + bitField0_ |= 0x00000100; onChanged(); } if (other.state_ != 0) { @@ -1810,6 +1832,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.TrainingPipeline other) mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00008000; if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } @@ -1842,81 +1865,81 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getInputDataConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { trainingTaskDefinition_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getTrainingTaskInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getTrainingTaskMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage(getModelToUploadFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 58 case 72: { state_ = input.readEnum(); - + bitField0_ |= 0x00000200; break; } // case 72 case 82: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 82 case 90: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000800; break; } // case 90 case 98: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00001000; break; } // case 98 case 106: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00002000; break; } // case 106 case 114: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00004000; break; } // case 114 case 122: @@ -1928,24 +1951,25 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00008000; break; } // case 122 case 146: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00010000; break; } // case 146 case 170: { parentModel_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 170 case 178: { modelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 178 default: @@ -2028,8 +2052,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2045,8 +2069,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2067,8 +2091,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2134,8 +2158,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2151,8 +2175,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2173,8 +2197,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2205,7 +2229,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the inputDataConfig field is set. */ public boolean hasInputDataConfig() { - return inputDataConfigBuilder_ != null || inputDataConfig_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -2258,11 +2282,11 @@ public Builder setInputDataConfig(com.google.cloud.aiplatform.v1.InputDataConfig throw new NullPointerException(); } inputDataConfig_ = value; - onChanged(); } else { inputDataConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2286,11 +2310,11 @@ public Builder setInputDataConfig( com.google.cloud.aiplatform.v1.InputDataConfig.Builder builderForValue) { if (inputDataConfigBuilder_ == null) { inputDataConfig_ = builderForValue.build(); - onChanged(); } else { inputDataConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2312,19 +2336,19 @@ public Builder setInputDataConfig( */ public Builder mergeInputDataConfig(com.google.cloud.aiplatform.v1.InputDataConfig value) { if (inputDataConfigBuilder_ == null) { - if (inputDataConfig_ != null) { - inputDataConfig_ = - com.google.cloud.aiplatform.v1.InputDataConfig.newBuilder(inputDataConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && inputDataConfig_ != null + && inputDataConfig_ + != com.google.cloud.aiplatform.v1.InputDataConfig.getDefaultInstance()) { + getInputDataConfigBuilder().mergeFrom(value); } else { inputDataConfig_ = value; } - onChanged(); } else { inputDataConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2345,14 +2369,13 @@ public Builder mergeInputDataConfig(com.google.cloud.aiplatform.v1.InputDataConf * .google.cloud.aiplatform.v1.InputDataConfig input_data_config = 3; */ public Builder clearInputDataConfig() { - if (inputDataConfigBuilder_ == null) { - inputDataConfig_ = null; - onChanged(); - } else { - inputDataConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + inputDataConfig_ = null; + if (inputDataConfigBuilder_ != null) { + inputDataConfigBuilder_.dispose(); inputDataConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -2373,7 +2396,7 @@ public Builder clearInputDataConfig() { * .google.cloud.aiplatform.v1.InputDataConfig input_data_config = 3; */ public com.google.cloud.aiplatform.v1.InputDataConfig.Builder getInputDataConfigBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getInputDataConfigFieldBuilder().getBuilder(); } @@ -2519,8 +2542,8 @@ public Builder setTrainingTaskDefinition(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - trainingTaskDefinition_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2543,8 +2566,8 @@ public Builder setTrainingTaskDefinition(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTrainingTaskDefinition() { - trainingTaskDefinition_ = getDefaultInstance().getTrainingTaskDefinition(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2572,8 +2595,8 @@ public Builder setTrainingTaskDefinitionBytes(com.google.protobuf.ByteString val throw new NullPointerException(); } checkByteStringIsUtf8(value); - trainingTaskDefinition_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2600,7 +2623,7 @@ public Builder setTrainingTaskDefinitionBytes(com.google.protobuf.ByteString val * @return Whether the trainingTaskInputs field is set. */ public boolean hasTrainingTaskInputs() { - return trainingTaskInputsBuilder_ != null || trainingTaskInputs_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2645,11 +2668,11 @@ public Builder setTrainingTaskInputs(com.google.protobuf.Value value) { throw new NullPointerException(); } trainingTaskInputs_ = value; - onChanged(); } else { trainingTaskInputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2668,11 +2691,11 @@ public Builder setTrainingTaskInputs(com.google.protobuf.Value value) { public Builder setTrainingTaskInputs(com.google.protobuf.Value.Builder builderForValue) { if (trainingTaskInputsBuilder_ == null) { trainingTaskInputs_ = builderForValue.build(); - onChanged(); } else { trainingTaskInputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2690,19 +2713,18 @@ public Builder setTrainingTaskInputs(com.google.protobuf.Value.Builder builderFo */ public Builder mergeTrainingTaskInputs(com.google.protobuf.Value value) { if (trainingTaskInputsBuilder_ == null) { - if (trainingTaskInputs_ != null) { - trainingTaskInputs_ = - com.google.protobuf.Value.newBuilder(trainingTaskInputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && trainingTaskInputs_ != null + && trainingTaskInputs_ != com.google.protobuf.Value.getDefaultInstance()) { + getTrainingTaskInputsBuilder().mergeFrom(value); } else { trainingTaskInputs_ = value; } - onChanged(); } else { trainingTaskInputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2719,14 +2741,13 @@ public Builder mergeTrainingTaskInputs(com.google.protobuf.Value value) { * */ public Builder clearTrainingTaskInputs() { - if (trainingTaskInputsBuilder_ == null) { - trainingTaskInputs_ = null; - onChanged(); - } else { - trainingTaskInputs_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + trainingTaskInputs_ = null; + if (trainingTaskInputsBuilder_ != null) { + trainingTaskInputsBuilder_.dispose(); trainingTaskInputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -2743,7 +2764,7 @@ public Builder clearTrainingTaskInputs() { * */ public com.google.protobuf.Value.Builder getTrainingTaskInputsBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getTrainingTaskInputsFieldBuilder().getBuilder(); } @@ -2826,7 +2847,7 @@ public com.google.protobuf.ValueOrBuilder getTrainingTaskInputsOrBuilder() { * @return Whether the trainingTaskMetadata field is set. */ public boolean hasTrainingTaskMetadata() { - return trainingTaskMetadataBuilder_ != null || trainingTaskMetadata_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2881,11 +2902,11 @@ public Builder setTrainingTaskMetadata(com.google.protobuf.Value value) { throw new NullPointerException(); } trainingTaskMetadata_ = value; - onChanged(); } else { trainingTaskMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2909,11 +2930,11 @@ public Builder setTrainingTaskMetadata(com.google.protobuf.Value value) { public Builder setTrainingTaskMetadata(com.google.protobuf.Value.Builder builderForValue) { if (trainingTaskMetadataBuilder_ == null) { trainingTaskMetadata_ = builderForValue.build(); - onChanged(); } else { trainingTaskMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2936,19 +2957,18 @@ public Builder setTrainingTaskMetadata(com.google.protobuf.Value.Builder builder */ public Builder mergeTrainingTaskMetadata(com.google.protobuf.Value value) { if (trainingTaskMetadataBuilder_ == null) { - if (trainingTaskMetadata_ != null) { - trainingTaskMetadata_ = - com.google.protobuf.Value.newBuilder(trainingTaskMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && trainingTaskMetadata_ != null + && trainingTaskMetadata_ != com.google.protobuf.Value.getDefaultInstance()) { + getTrainingTaskMetadataBuilder().mergeFrom(value); } else { trainingTaskMetadata_ = value; } - onChanged(); } else { trainingTaskMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2970,14 +2990,13 @@ public Builder mergeTrainingTaskMetadata(com.google.protobuf.Value value) { * */ public Builder clearTrainingTaskMetadata() { - if (trainingTaskMetadataBuilder_ == null) { - trainingTaskMetadata_ = null; - onChanged(); - } else { - trainingTaskMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + trainingTaskMetadata_ = null; + if (trainingTaskMetadataBuilder_ != null) { + trainingTaskMetadataBuilder_.dispose(); trainingTaskMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -2999,7 +3018,7 @@ public Builder clearTrainingTaskMetadata() { * */ public com.google.protobuf.Value.Builder getTrainingTaskMetadataBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getTrainingTaskMetadataFieldBuilder().getBuilder(); } @@ -3098,7 +3117,7 @@ public com.google.protobuf.ValueOrBuilder getTrainingTaskMetadataOrBuilder() { * @return Whether the modelToUpload field is set. */ public boolean hasModelToUpload() { - return modelToUploadBuilder_ != null || modelToUpload_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -3165,11 +3184,11 @@ public Builder setModelToUpload(com.google.cloud.aiplatform.v1.Model value) { throw new NullPointerException(); } modelToUpload_ = value; - onChanged(); } else { modelToUploadBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -3199,11 +3218,11 @@ public Builder setModelToUpload(com.google.cloud.aiplatform.v1.Model value) { public Builder setModelToUpload(com.google.cloud.aiplatform.v1.Model.Builder builderForValue) { if (modelToUploadBuilder_ == null) { modelToUpload_ = builderForValue.build(); - onChanged(); } else { modelToUploadBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -3232,19 +3251,18 @@ public Builder setModelToUpload(com.google.cloud.aiplatform.v1.Model.Builder bui */ public Builder mergeModelToUpload(com.google.cloud.aiplatform.v1.Model value) { if (modelToUploadBuilder_ == null) { - if (modelToUpload_ != null) { - modelToUpload_ = - com.google.cloud.aiplatform.v1.Model.newBuilder(modelToUpload_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && modelToUpload_ != null + && modelToUpload_ != com.google.cloud.aiplatform.v1.Model.getDefaultInstance()) { + getModelToUploadBuilder().mergeFrom(value); } else { modelToUpload_ = value; } - onChanged(); } else { modelToUploadBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -3272,14 +3290,13 @@ public Builder mergeModelToUpload(com.google.cloud.aiplatform.v1.Model value) { * .google.cloud.aiplatform.v1.Model model_to_upload = 7; */ public Builder clearModelToUpload() { - if (modelToUploadBuilder_ == null) { - modelToUpload_ = null; - onChanged(); - } else { - modelToUpload_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + modelToUpload_ = null; + if (modelToUploadBuilder_ != null) { + modelToUploadBuilder_.dispose(); modelToUploadBuilder_ = null; } - + onChanged(); return this; } /** @@ -3307,7 +3324,7 @@ public Builder clearModelToUpload() { * .google.cloud.aiplatform.v1.Model model_to_upload = 7; */ public com.google.cloud.aiplatform.v1.Model.Builder getModelToUploadBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getModelToUploadFieldBuilder().getBuilder(); } @@ -3455,8 +3472,8 @@ public Builder setModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelId_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3475,8 +3492,8 @@ public Builder setModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelId() { - modelId_ = getDefaultInstance().getModelId(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -3500,8 +3517,8 @@ public Builder setModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelId_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3573,8 +3590,8 @@ public Builder setParentModel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parentModel_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3592,8 +3609,8 @@ public Builder setParentModel(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParentModel() { - parentModel_ = getDefaultInstance().getParentModel(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -3616,8 +3633,8 @@ public Builder setParentModelBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parentModel_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3655,8 +3672,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3675,9 +3692,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.PipelineState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.PipelineState result = - com.google.cloud.aiplatform.v1.PipelineState.valueOf(state_); + com.google.cloud.aiplatform.v1.PipelineState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.PipelineState.UNRECOGNIZED : result; } /** @@ -3698,7 +3714,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.PipelineState value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000200; state_ = value.getNumber(); onChanged(); return this; @@ -3717,7 +3733,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.PipelineState value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000200); state_ = 0; onChanged(); return this; @@ -3740,7 +3756,7 @@ public Builder clearState() { * @return Whether the error field is set. */ public boolean hasError() { - return errorBuilder_ != null || error_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -3777,11 +3793,11 @@ public Builder setError(com.google.rpc.Status value) { throw new NullPointerException(); } error_ = value; - onChanged(); } else { errorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3797,11 +3813,11 @@ public Builder setError(com.google.rpc.Status value) { public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); - onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3816,16 +3832,18 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (error_ != null) { - error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); } else { error_ = value; } - onChanged(); } else { errorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3839,14 +3857,13 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } - + onChanged(); return this; } /** @@ -3860,7 +3877,7 @@ public Builder clearError() { * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getErrorFieldBuilder().getBuilder(); } @@ -3925,7 +3942,7 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -3966,11 +3983,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -3987,11 +4004,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -4007,17 +4024,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000800) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -4032,14 +4050,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000800); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -4054,7 +4071,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000800; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -4127,7 +4144,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -4168,11 +4185,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -4190,11 +4207,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -4211,17 +4228,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00001000) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -4237,14 +4255,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00001000); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -4260,7 +4277,7 @@ public Builder clearStartTime() { * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00001000; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -4333,7 +4350,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -4374,11 +4391,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -4396,11 +4413,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -4417,17 +4434,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00002000) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -4443,14 +4461,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00002000); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -4466,7 +4483,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00002000; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -4538,7 +4555,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -4579,11 +4596,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -4600,11 +4617,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -4620,17 +4637,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00004000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -4645,14 +4663,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00004000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -4667,7 +4684,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00004000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -4730,14 +4747,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00008000; + onChanged(); return labels_; } @@ -4801,8 +4818,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 15; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -4835,6 +4854,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00008000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -4861,6 +4881,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00008000; return internalGetMutableLabels().getMutableMap(); } /** @@ -4883,8 +4904,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00008000; return this; } /** @@ -4902,6 +4923,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00008000; return this; } @@ -4927,7 +4949,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -4972,11 +4994,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec v throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -4996,11 +5018,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -5018,19 +5040,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00010000) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -5047,14 +5069,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 18; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00010000); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -5071,7 +5092,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 18; */ public com.google.cloud.aiplatform.v1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00010000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineOrBuilder.java index a97e363ce199..a3c1a7529148 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineOrBuilder.java @@ -706,7 +706,6 @@ public interface TrainingPipelineOrBuilder * * map<string, string> labels = 15; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Trial.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Trial.java index 96c8fe87ba07..b134f86cdf13 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Trial.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Trial.java @@ -447,7 +447,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARAMETER_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object parameterId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parameterId_ = ""; /** * * @@ -554,7 +556,7 @@ public com.google.protobuf.Value getValue() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { - return getValue(); + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; } private byte memoizedIsInitialized = -1; @@ -770,12 +772,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parameterId_ = ""; - - if (valueBuilder_ == null) { - value_ = null; - } else { - value_ = null; + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); valueBuilder_ = null; } return this; @@ -805,16 +806,23 @@ public com.google.cloud.aiplatform.v1.Trial.Parameter build() { public com.google.cloud.aiplatform.v1.Trial.Parameter buildPartial() { com.google.cloud.aiplatform.v1.Trial.Parameter result = new com.google.cloud.aiplatform.v1.Trial.Parameter(this); - result.parameterId_ = parameterId_; - if (valueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = valueBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.Trial.Parameter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parameterId_ = parameterId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -865,6 +873,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Trial.Parameter other) { return this; if (!other.getParameterId().isEmpty()) { parameterId_ = other.parameterId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasValue()) { @@ -899,13 +908,13 @@ public Builder mergeFrom( case 10: { parameterId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -925,6 +934,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parameterId_ = ""; /** * @@ -992,8 +1003,8 @@ public Builder setParameterId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parameterId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1011,8 +1022,8 @@ public Builder setParameterId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParameterId() { - parameterId_ = getDefaultInstance().getParameterId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1035,8 +1046,8 @@ public Builder setParameterIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parameterId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1063,7 +1074,7 @@ public Builder setParameterIdBytes(com.google.protobuf.ByteString value) { * @return Whether the value field is set. */ public boolean hasValue() { - return valueBuilder_ != null || value_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1106,11 +1117,11 @@ public Builder setValue(com.google.protobuf.Value value) { throw new NullPointerException(); } value_ = value; - onChanged(); } else { valueBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1129,11 +1140,11 @@ public Builder setValue(com.google.protobuf.Value value) { public Builder setValue(com.google.protobuf.Value.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); - onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1151,16 +1162,18 @@ public Builder setValue(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeValue(com.google.protobuf.Value value) { if (valueBuilder_ == null) { - if (value_ != null) { - value_ = com.google.protobuf.Value.newBuilder(value_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && value_ != null + && value_ != com.google.protobuf.Value.getDefaultInstance()) { + getValueBuilder().mergeFrom(value); } else { value_ = value; } - onChanged(); } else { valueBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1177,14 +1190,13 @@ public Builder mergeValue(com.google.protobuf.Value value) { * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearValue() { - if (valueBuilder_ == null) { - value_ = null; - onChanged(); - } else { - value_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); valueBuilder_ = null; } - + onChanged(); return this; } /** @@ -1201,7 +1213,7 @@ public Builder clearValue() { * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Value.Builder getValueBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getValueFieldBuilder().getBuilder(); } @@ -1320,7 +1332,9 @@ public com.google.cloud.aiplatform.v1.Trial.Parameter getDefaultInstanceForType( } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -1369,7 +1383,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int ID_FIELD_NUMBER = 2; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -1418,7 +1434,7 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int STATE_FIELD_NUMBER = 3; - private int state_; + private int state_ = 0; /** * * @@ -1451,13 +1467,14 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.Trial.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Trial.State result = - com.google.cloud.aiplatform.v1.Trial.State.valueOf(state_); + com.google.cloud.aiplatform.v1.Trial.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.Trial.State.UNRECOGNIZED : result; } public static final int PARAMETERS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List parameters_; /** * @@ -1587,10 +1604,14 @@ public com.google.cloud.aiplatform.v1.Measurement getFinalMeasurement() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.MeasurementOrBuilder getFinalMeasurementOrBuilder() { - return getFinalMeasurement(); + return finalMeasurement_ == null + ? com.google.cloud.aiplatform.v1.Measurement.getDefaultInstance() + : finalMeasurement_; } public static final int MEASUREMENTS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") private java.util.List measurements_; /** * @@ -1725,7 +1746,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 8; @@ -1777,11 +1798,13 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } public static final int CLIENT_ID_FIELD_NUMBER = 9; - private volatile java.lang.Object clientId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; /** * * @@ -1844,7 +1867,9 @@ public com.google.protobuf.ByteString getClientIdBytes() { } public static final int INFEASIBLE_REASON_FIELD_NUMBER = 10; - private volatile java.lang.Object infeasibleReason_; + + @SuppressWarnings("serial") + private volatile java.lang.Object infeasibleReason_ = ""; /** * * @@ -1895,7 +1920,9 @@ public com.google.protobuf.ByteString getInfeasibleReasonBytes() { } public static final int CUSTOM_JOB_FIELD_NUMBER = 11; - private volatile java.lang.Object customJob_; + + @SuppressWarnings("serial") + private volatile java.lang.Object customJob_ = ""; /** * * @@ -1962,6 +1989,7 @@ private static final class WebAccessUrisDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField webAccessUris_; private com.google.protobuf.MapField @@ -2063,8 +2091,10 @@ public java.util.Map getWebAccessUrisMap() { * */ @java.lang.Override - public java.lang.String getWebAccessUrisOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getWebAccessUrisOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2449,23 +2479,20 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - id_ = ""; - state_ = 0; - if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); } else { parameters_ = null; parametersBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (finalMeasurementBuilder_ == null) { - finalMeasurement_ = null; - } else { - finalMeasurement_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + finalMeasurement_ = null; + if (finalMeasurementBuilder_ != null) { + finalMeasurementBuilder_.dispose(); finalMeasurementBuilder_ = null; } if (measurementsBuilder_ == null) { @@ -2474,25 +2501,20 @@ public Builder clear() { measurements_ = null; measurementsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } clientId_ = ""; - infeasibleReason_ = ""; - customJob_ = ""; - internalGetMutableWebAccessUris().clear(); return this; } @@ -2520,50 +2542,69 @@ public com.google.cloud.aiplatform.v1.Trial build() { @java.lang.Override public com.google.cloud.aiplatform.v1.Trial buildPartial() { com.google.cloud.aiplatform.v1.Trial result = new com.google.cloud.aiplatform.v1.Trial(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.id_ = id_; - result.state_ = state_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.Trial result) { if (parametersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { parameters_ = java.util.Collections.unmodifiableList(parameters_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.parameters_ = parameters_; } else { result.parameters_ = parametersBuilder_.build(); } - if (finalMeasurementBuilder_ == null) { - result.finalMeasurement_ = finalMeasurement_; - } else { - result.finalMeasurement_ = finalMeasurementBuilder_.build(); - } if (measurementsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { measurements_ = java.util.Collections.unmodifiableList(measurements_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } result.measurements_ = measurements_; } else { result.measurements_ = measurementsBuilder_.build(); } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.Trial result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.finalMeasurement_ = + finalMeasurementBuilder_ == null ? finalMeasurement_ : finalMeasurementBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.clientId_ = clientId_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.infeasibleReason_ = infeasibleReason_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.customJob_ = customJob_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.webAccessUris_ = internalGetWebAccessUris(); + result.webAccessUris_.makeImmutable(); } - result.clientId_ = clientId_; - result.infeasibleReason_ = infeasibleReason_; - result.customJob_ = customJob_; - result.webAccessUris_ = internalGetWebAccessUris(); - result.webAccessUris_.makeImmutable(); - onBuilt(); - return result; } @java.lang.Override @@ -2613,10 +2654,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Trial other) { if (other == com.google.cloud.aiplatform.v1.Trial.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000002; onChanged(); } if (other.state_ != 0) { @@ -2626,7 +2669,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Trial other) { if (!other.parameters_.isEmpty()) { if (parameters_.isEmpty()) { parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureParametersIsMutable(); parameters_.addAll(other.parameters_); @@ -2639,7 +2682,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Trial other) { parametersBuilder_.dispose(); parametersBuilder_ = null; parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); parametersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParametersFieldBuilder() @@ -2656,7 +2699,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Trial other) { if (!other.measurements_.isEmpty()) { if (measurements_.isEmpty()) { measurements_ = other.measurements_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureMeasurementsIsMutable(); measurements_.addAll(other.measurements_); @@ -2669,7 +2712,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Trial other) { measurementsBuilder_.dispose(); measurementsBuilder_ = null; measurements_ = other.measurements_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); measurementsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMeasurementsFieldBuilder() @@ -2687,17 +2730,21 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Trial other) { } if (!other.getClientId().isEmpty()) { clientId_ = other.clientId_; + bitField0_ |= 0x00000100; onChanged(); } if (!other.getInfeasibleReason().isEmpty()) { infeasibleReason_ = other.infeasibleReason_; + bitField0_ |= 0x00000200; onChanged(); } if (!other.getCustomJob().isEmpty()) { customJob_ = other.customJob_; + bitField0_ |= 0x00000400; onChanged(); } internalGetMutableWebAccessUris().mergeFrom(other.internalGetWebAccessUris()); + bitField0_ |= 0x00000800; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2727,19 +2774,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { state_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: @@ -2759,7 +2806,7 @@ public Builder mergeFrom( { input.readMessage( getFinalMeasurementFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: @@ -2778,31 +2825,31 @@ public Builder mergeFrom( case 58: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 66 case 74: { clientId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 74 case 82: { infeasibleReason_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000200; break; } // case 82 case 90: { customJob_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000400; break; } // case 90 case 98: @@ -2814,6 +2861,7 @@ public Builder mergeFrom( internalGetMutableWebAccessUris() .getMutableMap() .put(webAccessUris__.getKey(), webAccessUris__.getValue()); + bitField0_ |= 0x00000800; break; } // case 98 default: @@ -2896,8 +2944,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2913,8 +2961,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2935,8 +2983,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3002,8 +3050,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3019,8 +3067,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3041,8 +3089,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3080,8 +3128,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3100,9 +3148,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1.Trial.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.Trial.State result = - com.google.cloud.aiplatform.v1.Trial.State.valueOf(state_); + com.google.cloud.aiplatform.v1.Trial.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1.Trial.State.UNRECOGNIZED : result; } /** @@ -3123,7 +3170,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.Trial.State value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; state_ = value.getNumber(); onChanged(); return this; @@ -3142,7 +3189,7 @@ public Builder setState(com.google.cloud.aiplatform.v1.Trial.State value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000004); state_ = 0; onChanged(); return this; @@ -3152,10 +3199,10 @@ public Builder clearState() { java.util.Collections.emptyList(); private void ensureParametersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { parameters_ = new java.util.ArrayList(parameters_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -3393,7 +3440,7 @@ public Builder addAllParameters( public Builder clearParameters() { if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { parametersBuilder_.clear(); @@ -3530,7 +3577,7 @@ public com.google.cloud.aiplatform.v1.Trial.Parameter.Builder addParametersBuild com.google.cloud.aiplatform.v1.Trial.Parameter, com.google.cloud.aiplatform.v1.Trial.Parameter.Builder, com.google.cloud.aiplatform.v1.Trial.ParameterOrBuilder>( - parameters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + parameters_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; @@ -3556,7 +3603,7 @@ public com.google.cloud.aiplatform.v1.Trial.Parameter.Builder addParametersBuild * @return Whether the finalMeasurement field is set. */ public boolean hasFinalMeasurement() { - return finalMeasurementBuilder_ != null || finalMeasurement_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -3597,11 +3644,11 @@ public Builder setFinalMeasurement(com.google.cloud.aiplatform.v1.Measurement va throw new NullPointerException(); } finalMeasurement_ = value; - onChanged(); } else { finalMeasurementBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3619,11 +3666,11 @@ public Builder setFinalMeasurement( com.google.cloud.aiplatform.v1.Measurement.Builder builderForValue) { if (finalMeasurementBuilder_ == null) { finalMeasurement_ = builderForValue.build(); - onChanged(); } else { finalMeasurementBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3639,19 +3686,19 @@ public Builder setFinalMeasurement( */ public Builder mergeFinalMeasurement(com.google.cloud.aiplatform.v1.Measurement value) { if (finalMeasurementBuilder_ == null) { - if (finalMeasurement_ != null) { - finalMeasurement_ = - com.google.cloud.aiplatform.v1.Measurement.newBuilder(finalMeasurement_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && finalMeasurement_ != null + && finalMeasurement_ + != com.google.cloud.aiplatform.v1.Measurement.getDefaultInstance()) { + getFinalMeasurementBuilder().mergeFrom(value); } else { finalMeasurement_ = value; } - onChanged(); } else { finalMeasurementBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3666,14 +3713,13 @@ public Builder mergeFinalMeasurement(com.google.cloud.aiplatform.v1.Measurement * */ public Builder clearFinalMeasurement() { - if (finalMeasurementBuilder_ == null) { - finalMeasurement_ = null; - onChanged(); - } else { - finalMeasurement_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + finalMeasurement_ = null; + if (finalMeasurementBuilder_ != null) { + finalMeasurementBuilder_.dispose(); finalMeasurementBuilder_ = null; } - + onChanged(); return this; } /** @@ -3688,7 +3734,7 @@ public Builder clearFinalMeasurement() { * */ public com.google.cloud.aiplatform.v1.Measurement.Builder getFinalMeasurementBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getFinalMeasurementFieldBuilder().getBuilder(); } @@ -3744,10 +3790,10 @@ public com.google.cloud.aiplatform.v1.MeasurementOrBuilder getFinalMeasurementOr java.util.Collections.emptyList(); private void ensureMeasurementsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { measurements_ = new java.util.ArrayList(measurements_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000020; } } @@ -4007,7 +4053,7 @@ public Builder addAllMeasurements( public Builder clearMeasurements() { if (measurementsBuilder_ == null) { measurements_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { measurementsBuilder_.clear(); @@ -4157,7 +4203,7 @@ public com.google.cloud.aiplatform.v1.Measurement.Builder addMeasurementsBuilder com.google.cloud.aiplatform.v1.Measurement, com.google.cloud.aiplatform.v1.Measurement.Builder, com.google.cloud.aiplatform.v1.MeasurementOrBuilder>( - measurements_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + measurements_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); measurements_ = null; } return measurementsBuilder_; @@ -4182,7 +4228,7 @@ public com.google.cloud.aiplatform.v1.Measurement.Builder addMeasurementsBuilder * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -4219,11 +4265,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -4239,11 +4285,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -4258,17 +4304,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -4282,14 +4329,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -4303,7 +4349,7 @@ public Builder clearStartTime() { * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -4371,7 +4417,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -4410,11 +4456,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -4431,11 +4477,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -4451,17 +4497,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -4476,14 +4523,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -4498,7 +4544,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -4630,8 +4676,8 @@ public Builder setClientId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - clientId_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4654,8 +4700,8 @@ public Builder setClientId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearClientId() { - clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -4683,8 +4729,8 @@ public Builder setClientIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - clientId_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4753,8 +4799,8 @@ public Builder setInfeasibleReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - infeasibleReason_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4771,8 +4817,8 @@ public Builder setInfeasibleReason(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInfeasibleReason() { - infeasibleReason_ = getDefaultInstance().getInfeasibleReason(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -4794,8 +4840,8 @@ public Builder setInfeasibleReasonBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - infeasibleReason_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4870,8 +4916,8 @@ public Builder setCustomJob(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - customJob_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4890,8 +4936,8 @@ public Builder setCustomJob(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCustomJob() { - customJob_ = getDefaultInstance().getCustomJob(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -4915,8 +4961,8 @@ public Builder setCustomJobBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - customJob_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4934,8 +4980,6 @@ public Builder setCustomJobBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.MapField internalGetMutableWebAccessUris() { - onChanged(); - ; if (webAccessUris_ == null) { webAccessUris_ = com.google.protobuf.MapField.newMapField(WebAccessUrisDefaultEntryHolder.defaultEntry); @@ -4943,6 +4987,8 @@ public Builder setCustomJobBytes(com.google.protobuf.ByteString value) { if (!webAccessUris_.isMutable()) { webAccessUris_ = webAccessUris_.copy(); } + bitField0_ |= 0x00000800; + onChanged(); return webAccessUris_; } @@ -5036,8 +5082,10 @@ public java.util.Map getWebAccessUrisMap() { * */ @java.lang.Override - public java.lang.String getWebAccessUrisOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getWebAccessUrisOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -5080,6 +5128,7 @@ public java.lang.String getWebAccessUrisOrThrow(java.lang.String key) { } public Builder clearWebAccessUris() { + bitField0_ = (bitField0_ & ~0x00000800); internalGetMutableWebAccessUris().getMutableMap().clear(); return this; } @@ -5116,6 +5165,7 @@ public Builder removeWebAccessUris(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableWebAccessUris() { + bitField0_ |= 0x00000800; return internalGetMutableWebAccessUris().getMutableMap(); } /** @@ -5148,8 +5198,8 @@ public Builder putWebAccessUris(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableWebAccessUris().getMutableMap().put(key, value); + bitField0_ |= 0x00000800; return this; } /** @@ -5177,6 +5227,7 @@ public Builder putWebAccessUris(java.lang.String key, java.lang.String value) { */ public Builder putAllWebAccessUris(java.util.Map values) { internalGetMutableWebAccessUris().getMutableMap().putAll(values); + bitField0_ |= 0x00000800; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialOrBuilder.java index 86410c89f505..5d8b84d96f84 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialOrBuilder.java @@ -551,7 +551,6 @@ public interface TrialOrBuilder * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - /* nullable */ java.lang.String getWebAccessUrisOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployIndexOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployIndexOperationMetadata.java index b953a9071dce..8220a829e3c5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployIndexOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployIndexOperationMetadata.java @@ -113,7 +113,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -320,10 +322,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -354,15 +356,22 @@ public com.google.cloud.aiplatform.v1.UndeployIndexOperationMetadata build() { public com.google.cloud.aiplatform.v1.UndeployIndexOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.UndeployIndexOperationMetadata result = new com.google.cloud.aiplatform.v1.UndeployIndexOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.UndeployIndexOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -442,7 +451,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -462,6 +471,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -480,7 +491,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -518,11 +529,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -538,11 +549,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -557,19 +568,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -582,14 +593,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -603,7 +613,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployIndexRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployIndexRequest.java index b133ea9d3ea7..a8edb76b843e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployIndexRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployIndexRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INDEX_ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object indexEndpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object indexEndpoint_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getIndexEndpointBytes() { } public static final int DEPLOYED_INDEX_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deployedIndexId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedIndexId_ = ""; /** * * @@ -384,10 +388,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; indexEndpoint_ = ""; - deployedIndexId_ = ""; - return this; } @@ -415,12 +418,23 @@ public com.google.cloud.aiplatform.v1.UndeployIndexRequest build() { public com.google.cloud.aiplatform.v1.UndeployIndexRequest buildPartial() { com.google.cloud.aiplatform.v1.UndeployIndexRequest result = new com.google.cloud.aiplatform.v1.UndeployIndexRequest(this); - result.indexEndpoint_ = indexEndpoint_; - result.deployedIndexId_ = deployedIndexId_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UndeployIndexRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.indexEndpoint_ = indexEndpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedIndexId_ = deployedIndexId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -469,10 +483,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.UndeployIndexRequest oth return this; if (!other.getIndexEndpoint().isEmpty()) { indexEndpoint_ = other.indexEndpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDeployedIndexId().isEmpty()) { deployedIndexId_ = other.deployedIndexId_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -504,13 +520,13 @@ public Builder mergeFrom( case 10: { indexEndpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { deployedIndexId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -530,6 +546,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object indexEndpoint_ = ""; /** * @@ -603,8 +621,8 @@ public Builder setIndexEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - indexEndpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -624,8 +642,8 @@ public Builder setIndexEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearIndexEndpoint() { - indexEndpoint_ = getDefaultInstance().getIndexEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -650,8 +668,8 @@ public Builder setIndexEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - indexEndpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -720,8 +738,8 @@ public Builder setDeployedIndexId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedIndexId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -738,8 +756,8 @@ public Builder setDeployedIndexId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedIndexId() { - deployedIndexId_ = getDefaultInstance().getDeployedIndexId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -761,8 +779,8 @@ public Builder setDeployedIndexIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedIndexId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployModelOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployModelOperationMetadata.java index b7fa168f5cd5..ae5bb5206ca3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployModelOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployModelOperationMetadata.java @@ -113,7 +113,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -320,10 +322,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -354,15 +356,22 @@ public com.google.cloud.aiplatform.v1.UndeployModelOperationMetadata build() { public com.google.cloud.aiplatform.v1.UndeployModelOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.UndeployModelOperationMetadata result = new com.google.cloud.aiplatform.v1.UndeployModelOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.UndeployModelOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -442,7 +451,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -462,6 +471,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -480,7 +491,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -518,11 +529,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -538,11 +549,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -557,19 +568,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -582,14 +593,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -603,7 +613,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployModelRequest.java index e08951b38096..08b76a448d05 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UndeployModelRequest.java @@ -81,7 +81,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object endpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; /** * * @@ -138,7 +140,9 @@ public com.google.protobuf.ByteString getEndpointBytes() { } public static final int DEPLOYED_MODEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deployedModelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedModelId_ = ""; /** * * @@ -199,6 +203,7 @@ private static final class TrafficSplitDefaultEntryHolder { 0); } + @SuppressWarnings("serial") private com.google.protobuf.MapField trafficSplit_; private com.google.protobuf.MapField @@ -554,10 +559,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; endpoint_ = ""; - deployedModelId_ = ""; - internalGetMutableTrafficSplit().clear(); return this; } @@ -586,15 +590,27 @@ public com.google.cloud.aiplatform.v1.UndeployModelRequest build() { public com.google.cloud.aiplatform.v1.UndeployModelRequest buildPartial() { com.google.cloud.aiplatform.v1.UndeployModelRequest result = new com.google.cloud.aiplatform.v1.UndeployModelRequest(this); - int from_bitField0_ = bitField0_; - result.endpoint_ = endpoint_; - result.deployedModelId_ = deployedModelId_; - result.trafficSplit_ = internalGetTrafficSplit(); - result.trafficSplit_.makeImmutable(); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UndeployModelRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedModelId_ = deployedModelId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.trafficSplit_ = internalGetTrafficSplit(); + result.trafficSplit_.makeImmutable(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -643,13 +659,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.UndeployModelRequest oth return this; if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDeployedModelId().isEmpty()) { deployedModelId_ = other.deployedModelId_; + bitField0_ |= 0x00000002; onChanged(); } internalGetMutableTrafficSplit().mergeFrom(other.internalGetTrafficSplit()); + bitField0_ |= 0x00000004; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -679,13 +698,13 @@ public Builder mergeFrom( case 10: { endpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { deployedModelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -697,6 +716,7 @@ public Builder mergeFrom( internalGetMutableTrafficSplit() .getMutableMap() .put(trafficSplit__.getKey(), trafficSplit__.getValue()); + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -791,8 +811,8 @@ public Builder setEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -812,8 +832,8 @@ public Builder setEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEndpoint() { - endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -838,8 +858,8 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -905,8 +925,8 @@ public Builder setDeployedModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -922,8 +942,8 @@ public Builder setDeployedModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedModelId() { - deployedModelId_ = getDefaultInstance().getDeployedModelId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -944,8 +964,8 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -963,8 +983,6 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.MapField internalGetMutableTrafficSplit() { - onChanged(); - ; if (trafficSplit_ == null) { trafficSplit_ = com.google.protobuf.MapField.newMapField(TrafficSplitDefaultEntryHolder.defaultEntry); @@ -972,6 +990,8 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { if (!trafficSplit_.isMutable()) { trafficSplit_ = trafficSplit_.copy(); } + bitField0_ |= 0x00000004; + onChanged(); return trafficSplit_; } @@ -1076,6 +1096,7 @@ public int getTrafficSplitOrThrow(java.lang.String key) { } public Builder clearTrafficSplit() { + bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableTrafficSplit().getMutableMap().clear(); return this; } @@ -1104,6 +1125,7 @@ public Builder removeTrafficSplit(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableTrafficSplit() { + bitField0_ |= 0x00000004; return internalGetMutableTrafficSplit().getMutableMap(); } /** @@ -1127,6 +1149,7 @@ public Builder putTrafficSplit(java.lang.String key, int value) { } internalGetMutableTrafficSplit().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; return this; } /** @@ -1146,6 +1169,7 @@ public Builder putTrafficSplit(java.lang.String key, int value) { */ public Builder putAllTrafficSplit(java.util.Map values) { internalGetMutableTrafficSplit().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UnmanagedContainerModel.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UnmanagedContainerModel.java index 9d9a68cc8bd8..27b69b6fc251 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UnmanagedContainerModel.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UnmanagedContainerModel.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ARTIFACT_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object artifactUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object artifactUri_ = ""; /** * * @@ -164,7 +166,9 @@ public com.google.cloud.aiplatform.v1.PredictSchemata getPredictSchemata() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.PredictSchemataOrBuilder getPredictSchemataOrBuilder() { - return getPredictSchemata(); + return predictSchemata_ == null + ? com.google.cloud.aiplatform.v1.PredictSchemata.getDefaultInstance() + : predictSchemata_; } public static final int CONTAINER_SPEC_FIELD_NUMBER = 3; @@ -221,7 +225,9 @@ public com.google.cloud.aiplatform.v1.ModelContainerSpec getContainerSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ModelContainerSpecOrBuilder getContainerSpecOrBuilder() { - return getContainerSpec(); + return containerSpec_ == null + ? com.google.cloud.aiplatform.v1.ModelContainerSpec.getDefaultInstance() + : containerSpec_; } private byte memoizedIsInitialized = -1; @@ -451,18 +457,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; artifactUri_ = ""; - - if (predictSchemataBuilder_ == null) { - predictSchemata_ = null; - } else { - predictSchemata_ = null; + predictSchemata_ = null; + if (predictSchemataBuilder_ != null) { + predictSchemataBuilder_.dispose(); predictSchemataBuilder_ = null; } - if (containerSpecBuilder_ == null) { - containerSpec_ = null; - } else { - containerSpec_ = null; + containerSpec_ = null; + if (containerSpecBuilder_ != null) { + containerSpecBuilder_.dispose(); containerSpecBuilder_ = null; } return this; @@ -492,21 +496,28 @@ public com.google.cloud.aiplatform.v1.UnmanagedContainerModel build() { public com.google.cloud.aiplatform.v1.UnmanagedContainerModel buildPartial() { com.google.cloud.aiplatform.v1.UnmanagedContainerModel result = new com.google.cloud.aiplatform.v1.UnmanagedContainerModel(this); - result.artifactUri_ = artifactUri_; - if (predictSchemataBuilder_ == null) { - result.predictSchemata_ = predictSchemata_; - } else { - result.predictSchemata_ = predictSchemataBuilder_.build(); - } - if (containerSpecBuilder_ == null) { - result.containerSpec_ = containerSpec_; - } else { - result.containerSpec_ = containerSpecBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UnmanagedContainerModel result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.artifactUri_ = artifactUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.predictSchemata_ = + predictSchemataBuilder_ == null ? predictSchemata_ : predictSchemataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.containerSpec_ = + containerSpecBuilder_ == null ? containerSpec_ : containerSpecBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -555,6 +566,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.UnmanagedContainerModel return this; if (!other.getArtifactUri().isEmpty()) { artifactUri_ = other.artifactUri_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasPredictSchemata()) { @@ -592,19 +604,19 @@ public Builder mergeFrom( case 10: { artifactUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getPredictSchemataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getContainerSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -624,6 +636,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object artifactUri_ = ""; /** * @@ -688,8 +702,8 @@ public Builder setArtifactUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - artifactUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -706,8 +720,8 @@ public Builder setArtifactUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearArtifactUri() { - artifactUri_ = getDefaultInstance().getArtifactUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -729,8 +743,8 @@ public Builder setArtifactUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - artifactUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -753,7 +767,7 @@ public Builder setArtifactUriBytes(com.google.protobuf.ByteString value) { * @return Whether the predictSchemata field is set. */ public boolean hasPredictSchemata() { - return predictSchemataBuilder_ != null || predictSchemata_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -790,11 +804,11 @@ public Builder setPredictSchemata(com.google.cloud.aiplatform.v1.PredictSchemata throw new NullPointerException(); } predictSchemata_ = value; - onChanged(); } else { predictSchemataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -810,11 +824,11 @@ public Builder setPredictSchemata( com.google.cloud.aiplatform.v1.PredictSchemata.Builder builderForValue) { if (predictSchemataBuilder_ == null) { predictSchemata_ = builderForValue.build(); - onChanged(); } else { predictSchemataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -828,19 +842,19 @@ public Builder setPredictSchemata( */ public Builder mergePredictSchemata(com.google.cloud.aiplatform.v1.PredictSchemata value) { if (predictSchemataBuilder_ == null) { - if (predictSchemata_ != null) { - predictSchemata_ = - com.google.cloud.aiplatform.v1.PredictSchemata.newBuilder(predictSchemata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && predictSchemata_ != null + && predictSchemata_ + != com.google.cloud.aiplatform.v1.PredictSchemata.getDefaultInstance()) { + getPredictSchemataBuilder().mergeFrom(value); } else { predictSchemata_ = value; } - onChanged(); } else { predictSchemataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -853,14 +867,13 @@ public Builder mergePredictSchemata(com.google.cloud.aiplatform.v1.PredictSchema * .google.cloud.aiplatform.v1.PredictSchemata predict_schemata = 2; */ public Builder clearPredictSchemata() { - if (predictSchemataBuilder_ == null) { - predictSchemata_ = null; - onChanged(); - } else { - predictSchemata_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + predictSchemata_ = null; + if (predictSchemataBuilder_ != null) { + predictSchemataBuilder_.dispose(); predictSchemataBuilder_ = null; } - + onChanged(); return this; } /** @@ -873,7 +886,7 @@ public Builder clearPredictSchemata() { * .google.cloud.aiplatform.v1.PredictSchemata predict_schemata = 2; */ public com.google.cloud.aiplatform.v1.PredictSchemata.Builder getPredictSchemataBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getPredictSchemataFieldBuilder().getBuilder(); } @@ -942,7 +955,7 @@ public com.google.cloud.aiplatform.v1.PredictSchemataOrBuilder getPredictSchemat * @return Whether the containerSpec field is set. */ public boolean hasContainerSpec() { - return containerSpecBuilder_ != null || containerSpec_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -985,11 +998,11 @@ public Builder setContainerSpec(com.google.cloud.aiplatform.v1.ModelContainerSpe throw new NullPointerException(); } containerSpec_ = value; - onChanged(); } else { containerSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1008,11 +1021,11 @@ public Builder setContainerSpec( com.google.cloud.aiplatform.v1.ModelContainerSpec.Builder builderForValue) { if (containerSpecBuilder_ == null) { containerSpec_ = builderForValue.build(); - onChanged(); } else { containerSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1029,19 +1042,19 @@ public Builder setContainerSpec( */ public Builder mergeContainerSpec(com.google.cloud.aiplatform.v1.ModelContainerSpec value) { if (containerSpecBuilder_ == null) { - if (containerSpec_ != null) { - containerSpec_ = - com.google.cloud.aiplatform.v1.ModelContainerSpec.newBuilder(containerSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && containerSpec_ != null + && containerSpec_ + != com.google.cloud.aiplatform.v1.ModelContainerSpec.getDefaultInstance()) { + getContainerSpecBuilder().mergeFrom(value); } else { containerSpec_ = value; } - onChanged(); } else { containerSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1057,14 +1070,13 @@ public Builder mergeContainerSpec(com.google.cloud.aiplatform.v1.ModelContainerS * */ public Builder clearContainerSpec() { - if (containerSpecBuilder_ == null) { - containerSpec_ = null; - onChanged(); - } else { - containerSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + containerSpec_ = null; + if (containerSpecBuilder_ != null) { + containerSpecBuilder_.dispose(); containerSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -1080,7 +1092,7 @@ public Builder clearContainerSpec() { * */ public com.google.cloud.aiplatform.v1.ModelContainerSpec.Builder getContainerSpecBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getContainerSpecFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateArtifactRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateArtifactRequest.java index 583cddb628ad..89e6e2c00320 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateArtifactRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateArtifactRequest.java @@ -126,7 +126,9 @@ public com.google.cloud.aiplatform.v1.Artifact getArtifact() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ArtifactOrBuilder getArtifactOrBuilder() { - return getArtifact(); + return artifact_ == null + ? com.google.cloud.aiplatform.v1.Artifact.getDefaultInstance() + : artifact_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -178,11 +180,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } public static final int ALLOW_MISSING_FIELD_NUMBER = 3; - private boolean allowMissing_; + private boolean allowMissing_ = false; /** * * @@ -427,20 +429,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (artifactBuilder_ == null) { - artifact_ = null; - } else { - artifact_ = null; + bitField0_ = 0; + artifact_ = null; + if (artifactBuilder_ != null) { + artifactBuilder_.dispose(); artifactBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } allowMissing_ = false; - return this; } @@ -468,21 +468,26 @@ public com.google.cloud.aiplatform.v1.UpdateArtifactRequest build() { public com.google.cloud.aiplatform.v1.UpdateArtifactRequest buildPartial() { com.google.cloud.aiplatform.v1.UpdateArtifactRequest result = new com.google.cloud.aiplatform.v1.UpdateArtifactRequest(this); - if (artifactBuilder_ == null) { - result.artifact_ = artifact_; - } else { - result.artifact_ = artifactBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - result.allowMissing_ = allowMissing_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UpdateArtifactRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.artifact_ = artifactBuilder_ == null ? artifact_ : artifactBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.allowMissing_ = allowMissing_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -567,19 +572,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getArtifactFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { allowMissing_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -599,6 +604,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.Artifact artifact_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.Artifact, @@ -622,7 +629,7 @@ public Builder mergeFrom( * @return Whether the artifact field is set. */ public boolean hasArtifact() { - return artifactBuilder_ != null || artifact_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -669,11 +676,11 @@ public Builder setArtifact(com.google.cloud.aiplatform.v1.Artifact value) { throw new NullPointerException(); } artifact_ = value; - onChanged(); } else { artifactBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -693,11 +700,11 @@ public Builder setArtifact(com.google.cloud.aiplatform.v1.Artifact value) { public Builder setArtifact(com.google.cloud.aiplatform.v1.Artifact.Builder builderForValue) { if (artifactBuilder_ == null) { artifact_ = builderForValue.build(); - onChanged(); } else { artifactBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -716,19 +723,18 @@ public Builder setArtifact(com.google.cloud.aiplatform.v1.Artifact.Builder build */ public Builder mergeArtifact(com.google.cloud.aiplatform.v1.Artifact value) { if (artifactBuilder_ == null) { - if (artifact_ != null) { - artifact_ = - com.google.cloud.aiplatform.v1.Artifact.newBuilder(artifact_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && artifact_ != null + && artifact_ != com.google.cloud.aiplatform.v1.Artifact.getDefaultInstance()) { + getArtifactBuilder().mergeFrom(value); } else { artifact_ = value; } - onChanged(); } else { artifactBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -746,14 +752,13 @@ public Builder mergeArtifact(com.google.cloud.aiplatform.v1.Artifact value) { * */ public Builder clearArtifact() { - if (artifactBuilder_ == null) { - artifact_ = null; - onChanged(); - } else { - artifact_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + artifact_ = null; + if (artifactBuilder_ != null) { + artifactBuilder_.dispose(); artifactBuilder_ = null; } - + onChanged(); return this; } /** @@ -771,7 +776,7 @@ public Builder clearArtifact() { * */ public com.google.cloud.aiplatform.v1.Artifact.Builder getArtifactBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getArtifactFieldBuilder().getBuilder(); } @@ -849,7 +854,7 @@ public com.google.cloud.aiplatform.v1.ArtifactOrBuilder getArtifactOrBuilder() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -890,11 +895,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -911,11 +916,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -931,17 +936,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -956,14 +962,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -978,7 +983,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -1065,6 +1070,7 @@ public boolean getAllowMissing() { public Builder setAllowMissing(boolean value) { allowMissing_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1082,7 +1088,7 @@ public Builder setAllowMissing(boolean value) { * @return This builder for chaining. */ public Builder clearAllowMissing() { - + bitField0_ = (bitField0_ & ~0x00000004); allowMissing_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateContextRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateContextRequest.java index eb671d25e0d6..8fe846083717 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateContextRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateContextRequest.java @@ -126,7 +126,9 @@ public com.google.cloud.aiplatform.v1.Context getContext() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ContextOrBuilder getContextOrBuilder() { - return getContext(); + return context_ == null + ? com.google.cloud.aiplatform.v1.Context.getDefaultInstance() + : context_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -178,11 +180,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } public static final int ALLOW_MISSING_FIELD_NUMBER = 3; - private boolean allowMissing_; + private boolean allowMissing_ = false; /** * * @@ -426,20 +428,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (contextBuilder_ == null) { - context_ = null; - } else { - context_ = null; + bitField0_ = 0; + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); contextBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } allowMissing_ = false; - return this; } @@ -467,21 +467,26 @@ public com.google.cloud.aiplatform.v1.UpdateContextRequest build() { public com.google.cloud.aiplatform.v1.UpdateContextRequest buildPartial() { com.google.cloud.aiplatform.v1.UpdateContextRequest result = new com.google.cloud.aiplatform.v1.UpdateContextRequest(this); - if (contextBuilder_ == null) { - result.context_ = context_; - } else { - result.context_ = contextBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - result.allowMissing_ = allowMissing_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UpdateContextRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.context_ = contextBuilder_ == null ? context_ : contextBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.allowMissing_ = allowMissing_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -566,19 +571,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getContextFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { allowMissing_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -598,6 +603,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.Context context_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.Context, @@ -621,7 +628,7 @@ public Builder mergeFrom( * @return Whether the context field is set. */ public boolean hasContext() { - return contextBuilder_ != null || context_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -668,11 +675,11 @@ public Builder setContext(com.google.cloud.aiplatform.v1.Context value) { throw new NullPointerException(); } context_ = value; - onChanged(); } else { contextBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -692,11 +699,11 @@ public Builder setContext(com.google.cloud.aiplatform.v1.Context value) { public Builder setContext(com.google.cloud.aiplatform.v1.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); - onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -715,19 +722,18 @@ public Builder setContext(com.google.cloud.aiplatform.v1.Context.Builder builder */ public Builder mergeContext(com.google.cloud.aiplatform.v1.Context value) { if (contextBuilder_ == null) { - if (context_ != null) { - context_ = - com.google.cloud.aiplatform.v1.Context.newBuilder(context_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && context_ != null + && context_ != com.google.cloud.aiplatform.v1.Context.getDefaultInstance()) { + getContextBuilder().mergeFrom(value); } else { context_ = value; } - onChanged(); } else { contextBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -745,14 +751,13 @@ public Builder mergeContext(com.google.cloud.aiplatform.v1.Context value) { * */ public Builder clearContext() { - if (contextBuilder_ == null) { - context_ = null; - onChanged(); - } else { - context_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); contextBuilder_ = null; } - + onChanged(); return this; } /** @@ -770,7 +775,7 @@ public Builder clearContext() { * */ public com.google.cloud.aiplatform.v1.Context.Builder getContextBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getContextFieldBuilder().getBuilder(); } @@ -848,7 +853,7 @@ public com.google.cloud.aiplatform.v1.ContextOrBuilder getContextOrBuilder() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -889,11 +894,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -910,11 +915,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -930,17 +935,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -955,14 +961,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -977,7 +982,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -1062,6 +1067,7 @@ public boolean getAllowMissing() { public Builder setAllowMissing(boolean value) { allowMissing_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1078,7 +1084,7 @@ public Builder setAllowMissing(boolean value) { * @return This builder for chaining. */ public Builder clearAllowMissing() { - + bitField0_ = (bitField0_ & ~0x00000004); allowMissing_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateDatasetRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateDatasetRequest.java index 6ace3321d39f..f05ecd13d650 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateDatasetRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateDatasetRequest.java @@ -117,7 +117,9 @@ public com.google.cloud.aiplatform.v1.Dataset getDataset() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.DatasetOrBuilder getDatasetOrBuilder() { - return getDataset(); + return dataset_ == null + ? com.google.cloud.aiplatform.v1.Dataset.getDefaultInstance() + : dataset_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -181,7 +183,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -401,16 +403,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (datasetBuilder_ == null) { - dataset_ = null; - } else { - dataset_ = null; + bitField0_ = 0; + dataset_ = null; + if (datasetBuilder_ != null) { + datasetBuilder_.dispose(); datasetBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -440,20 +441,23 @@ public com.google.cloud.aiplatform.v1.UpdateDatasetRequest build() { public com.google.cloud.aiplatform.v1.UpdateDatasetRequest buildPartial() { com.google.cloud.aiplatform.v1.UpdateDatasetRequest result = new com.google.cloud.aiplatform.v1.UpdateDatasetRequest(this); - if (datasetBuilder_ == null) { - result.dataset_ = dataset_; - } else { - result.dataset_ = datasetBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UpdateDatasetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataset_ = datasetBuilder_ == null ? dataset_ : datasetBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -535,13 +539,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getDatasetFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -561,6 +565,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.Dataset dataset_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.Dataset, @@ -581,7 +587,7 @@ public Builder mergeFrom( * @return Whether the dataset field is set. */ public boolean hasDataset() { - return datasetBuilder_ != null || dataset_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -622,11 +628,11 @@ public Builder setDataset(com.google.cloud.aiplatform.v1.Dataset value) { throw new NullPointerException(); } dataset_ = value; - onChanged(); } else { datasetBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -643,11 +649,11 @@ public Builder setDataset(com.google.cloud.aiplatform.v1.Dataset value) { public Builder setDataset(com.google.cloud.aiplatform.v1.Dataset.Builder builderForValue) { if (datasetBuilder_ == null) { dataset_ = builderForValue.build(); - onChanged(); } else { datasetBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -663,19 +669,18 @@ public Builder setDataset(com.google.cloud.aiplatform.v1.Dataset.Builder builder */ public Builder mergeDataset(com.google.cloud.aiplatform.v1.Dataset value) { if (datasetBuilder_ == null) { - if (dataset_ != null) { - dataset_ = - com.google.cloud.aiplatform.v1.Dataset.newBuilder(dataset_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && dataset_ != null + && dataset_ != com.google.cloud.aiplatform.v1.Dataset.getDefaultInstance()) { + getDatasetBuilder().mergeFrom(value); } else { dataset_ = value; } - onChanged(); } else { datasetBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -690,14 +695,13 @@ public Builder mergeDataset(com.google.cloud.aiplatform.v1.Dataset value) { * */ public Builder clearDataset() { - if (datasetBuilder_ == null) { - dataset_ = null; - onChanged(); - } else { - dataset_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + dataset_ = null; + if (datasetBuilder_ != null) { + datasetBuilder_.dispose(); datasetBuilder_ = null; } - + onChanged(); return this; } /** @@ -712,7 +716,7 @@ public Builder clearDataset() { * */ public com.google.cloud.aiplatform.v1.Dataset.Builder getDatasetBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getDatasetFieldBuilder().getBuilder(); } @@ -788,7 +792,7 @@ public com.google.cloud.aiplatform.v1.DatasetOrBuilder getDatasetOrBuilder() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -837,11 +841,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -862,11 +866,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -886,17 +890,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -915,14 +920,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -941,7 +945,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointRequest.java index 1d64e5299c8d..91173231dec6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEndpointRequest.java @@ -117,7 +117,9 @@ public com.google.cloud.aiplatform.v1.Endpoint getEndpoint() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.EndpointOrBuilder getEndpointOrBuilder() { - return getEndpoint(); + return endpoint_ == null + ? com.google.cloud.aiplatform.v1.Endpoint.getDefaultInstance() + : endpoint_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -169,7 +171,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -389,16 +391,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (endpointBuilder_ == null) { - endpoint_ = null; - } else { - endpoint_ = null; + bitField0_ = 0; + endpoint_ = null; + if (endpointBuilder_ != null) { + endpointBuilder_.dispose(); endpointBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -428,20 +429,23 @@ public com.google.cloud.aiplatform.v1.UpdateEndpointRequest build() { public com.google.cloud.aiplatform.v1.UpdateEndpointRequest buildPartial() { com.google.cloud.aiplatform.v1.UpdateEndpointRequest result = new com.google.cloud.aiplatform.v1.UpdateEndpointRequest(this); - if (endpointBuilder_ == null) { - result.endpoint_ = endpoint_; - } else { - result.endpoint_ = endpointBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UpdateEndpointRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpointBuilder_ == null ? endpoint_ : endpointBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -523,13 +527,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getEndpointFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -549,6 +553,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.Endpoint endpoint_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.Endpoint, @@ -569,7 +575,7 @@ public Builder mergeFrom( * @return Whether the endpoint field is set. */ public boolean hasEndpoint() { - return endpointBuilder_ != null || endpoint_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -610,11 +616,11 @@ public Builder setEndpoint(com.google.cloud.aiplatform.v1.Endpoint value) { throw new NullPointerException(); } endpoint_ = value; - onChanged(); } else { endpointBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -631,11 +637,11 @@ public Builder setEndpoint(com.google.cloud.aiplatform.v1.Endpoint value) { public Builder setEndpoint(com.google.cloud.aiplatform.v1.Endpoint.Builder builderForValue) { if (endpointBuilder_ == null) { endpoint_ = builderForValue.build(); - onChanged(); } else { endpointBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -651,19 +657,18 @@ public Builder setEndpoint(com.google.cloud.aiplatform.v1.Endpoint.Builder build */ public Builder mergeEndpoint(com.google.cloud.aiplatform.v1.Endpoint value) { if (endpointBuilder_ == null) { - if (endpoint_ != null) { - endpoint_ = - com.google.cloud.aiplatform.v1.Endpoint.newBuilder(endpoint_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && endpoint_ != null + && endpoint_ != com.google.cloud.aiplatform.v1.Endpoint.getDefaultInstance()) { + getEndpointBuilder().mergeFrom(value); } else { endpoint_ = value; } - onChanged(); } else { endpointBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -678,14 +683,13 @@ public Builder mergeEndpoint(com.google.cloud.aiplatform.v1.Endpoint value) { * */ public Builder clearEndpoint() { - if (endpointBuilder_ == null) { - endpoint_ = null; - onChanged(); - } else { - endpoint_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + endpoint_ = null; + if (endpointBuilder_ != null) { + endpointBuilder_.dispose(); endpointBuilder_ = null; } - + onChanged(); return this; } /** @@ -700,7 +704,7 @@ public Builder clearEndpoint() { * */ public com.google.cloud.aiplatform.v1.Endpoint.Builder getEndpointBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getEndpointFieldBuilder().getBuilder(); } @@ -772,7 +776,7 @@ public com.google.cloud.aiplatform.v1.EndpointOrBuilder getEndpointOrBuilder() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -813,11 +817,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -834,11 +838,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -854,17 +858,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -879,14 +884,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -901,7 +905,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEntityTypeRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEntityTypeRequest.java index f5969f5292e3..8872026ef1b7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEntityTypeRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateEntityTypeRequest.java @@ -123,7 +123,9 @@ public com.google.cloud.aiplatform.v1.EntityType getEntityType() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.EntityTypeOrBuilder getEntityTypeOrBuilder() { - return getEntityType(); + return entityType_ == null + ? com.google.cloud.aiplatform.v1.EntityType.getDefaultInstance() + : entityType_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -220,7 +222,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -441,16 +443,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (entityTypeBuilder_ == null) { - entityType_ = null; - } else { - entityType_ = null; + bitField0_ = 0; + entityType_ = null; + if (entityTypeBuilder_ != null) { + entityTypeBuilder_.dispose(); entityTypeBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -480,20 +481,23 @@ public com.google.cloud.aiplatform.v1.UpdateEntityTypeRequest build() { public com.google.cloud.aiplatform.v1.UpdateEntityTypeRequest buildPartial() { com.google.cloud.aiplatform.v1.UpdateEntityTypeRequest result = new com.google.cloud.aiplatform.v1.UpdateEntityTypeRequest(this); - if (entityTypeBuilder_ == null) { - result.entityType_ = entityType_; - } else { - result.entityType_ = entityTypeBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UpdateEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityType_ = entityTypeBuilder_ == null ? entityType_ : entityTypeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -575,13 +579,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getEntityTypeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -601,6 +605,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.EntityType entityType_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.EntityType, @@ -623,7 +629,7 @@ public Builder mergeFrom( * @return Whether the entityType field is set. */ public boolean hasEntityType() { - return entityTypeBuilder_ != null || entityType_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -668,11 +674,11 @@ public Builder setEntityType(com.google.cloud.aiplatform.v1.EntityType value) { throw new NullPointerException(); } entityType_ = value; - onChanged(); } else { entityTypeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -692,11 +698,11 @@ public Builder setEntityType( com.google.cloud.aiplatform.v1.EntityType.Builder builderForValue) { if (entityTypeBuilder_ == null) { entityType_ = builderForValue.build(); - onChanged(); } else { entityTypeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -714,19 +720,18 @@ public Builder setEntityType( */ public Builder mergeEntityType(com.google.cloud.aiplatform.v1.EntityType value) { if (entityTypeBuilder_ == null) { - if (entityType_ != null) { - entityType_ = - com.google.cloud.aiplatform.v1.EntityType.newBuilder(entityType_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && entityType_ != null + && entityType_ != com.google.cloud.aiplatform.v1.EntityType.getDefaultInstance()) { + getEntityTypeBuilder().mergeFrom(value); } else { entityType_ = value; } - onChanged(); } else { entityTypeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -743,14 +748,13 @@ public Builder mergeEntityType(com.google.cloud.aiplatform.v1.EntityType value) * */ public Builder clearEntityType() { - if (entityTypeBuilder_ == null) { - entityType_ = null; - onChanged(); - } else { - entityType_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + entityType_ = null; + if (entityTypeBuilder_ != null) { + entityTypeBuilder_.dispose(); entityTypeBuilder_ = null; } - + onChanged(); return this; } /** @@ -767,7 +771,7 @@ public Builder clearEntityType() { * */ public com.google.cloud.aiplatform.v1.EntityType.Builder getEntityTypeBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getEntityTypeFieldBuilder().getBuilder(); } @@ -858,7 +862,7 @@ public com.google.cloud.aiplatform.v1.EntityTypeOrBuilder getEntityTypeOrBuilder * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -929,11 +933,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -965,11 +969,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1000,17 +1004,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1040,14 +1045,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1077,7 +1081,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateExecutionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateExecutionRequest.java index 18ca80941aee..d8f5b543a795 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateExecutionRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateExecutionRequest.java @@ -126,7 +126,9 @@ public com.google.cloud.aiplatform.v1.Execution getExecution() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ExecutionOrBuilder getExecutionOrBuilder() { - return getExecution(); + return execution_ == null + ? com.google.cloud.aiplatform.v1.Execution.getDefaultInstance() + : execution_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -178,11 +180,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } public static final int ALLOW_MISSING_FIELD_NUMBER = 3; - private boolean allowMissing_; + private boolean allowMissing_ = false; /** * * @@ -428,20 +430,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (executionBuilder_ == null) { - execution_ = null; - } else { - execution_ = null; + bitField0_ = 0; + execution_ = null; + if (executionBuilder_ != null) { + executionBuilder_.dispose(); executionBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } allowMissing_ = false; - return this; } @@ -469,21 +469,26 @@ public com.google.cloud.aiplatform.v1.UpdateExecutionRequest build() { public com.google.cloud.aiplatform.v1.UpdateExecutionRequest buildPartial() { com.google.cloud.aiplatform.v1.UpdateExecutionRequest result = new com.google.cloud.aiplatform.v1.UpdateExecutionRequest(this); - if (executionBuilder_ == null) { - result.execution_ = execution_; - } else { - result.execution_ = executionBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - result.allowMissing_ = allowMissing_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UpdateExecutionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.execution_ = executionBuilder_ == null ? execution_ : executionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.allowMissing_ = allowMissing_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -568,19 +573,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getExecutionFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { allowMissing_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -600,6 +605,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.Execution execution_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.Execution, @@ -623,7 +630,7 @@ public Builder mergeFrom( * @return Whether the execution field is set. */ public boolean hasExecution() { - return executionBuilder_ != null || execution_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -670,11 +677,11 @@ public Builder setExecution(com.google.cloud.aiplatform.v1.Execution value) { throw new NullPointerException(); } execution_ = value; - onChanged(); } else { executionBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -694,11 +701,11 @@ public Builder setExecution(com.google.cloud.aiplatform.v1.Execution value) { public Builder setExecution(com.google.cloud.aiplatform.v1.Execution.Builder builderForValue) { if (executionBuilder_ == null) { execution_ = builderForValue.build(); - onChanged(); } else { executionBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -717,19 +724,18 @@ public Builder setExecution(com.google.cloud.aiplatform.v1.Execution.Builder bui */ public Builder mergeExecution(com.google.cloud.aiplatform.v1.Execution value) { if (executionBuilder_ == null) { - if (execution_ != null) { - execution_ = - com.google.cloud.aiplatform.v1.Execution.newBuilder(execution_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && execution_ != null + && execution_ != com.google.cloud.aiplatform.v1.Execution.getDefaultInstance()) { + getExecutionBuilder().mergeFrom(value); } else { execution_ = value; } - onChanged(); } else { executionBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -747,14 +753,13 @@ public Builder mergeExecution(com.google.cloud.aiplatform.v1.Execution value) { * */ public Builder clearExecution() { - if (executionBuilder_ == null) { - execution_ = null; - onChanged(); - } else { - execution_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + execution_ = null; + if (executionBuilder_ != null) { + executionBuilder_.dispose(); executionBuilder_ = null; } - + onChanged(); return this; } /** @@ -772,7 +777,7 @@ public Builder clearExecution() { * */ public com.google.cloud.aiplatform.v1.Execution.Builder getExecutionBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getExecutionFieldBuilder().getBuilder(); } @@ -850,7 +855,7 @@ public com.google.cloud.aiplatform.v1.ExecutionOrBuilder getExecutionOrBuilder() * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -891,11 +896,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -912,11 +917,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -932,17 +937,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -957,14 +963,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -979,7 +984,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -1066,6 +1071,7 @@ public boolean getAllowMissing() { public Builder setAllowMissing(boolean value) { allowMissing_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1083,7 +1089,7 @@ public Builder setAllowMissing(boolean value) { * @return This builder for chaining. */ public Builder clearAllowMissing() { - + bitField0_ = (bitField0_ & ~0x00000004); allowMissing_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureRequest.java index f0e5641ef57e..b0f46212e084 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeatureRequest.java @@ -126,7 +126,9 @@ public com.google.cloud.aiplatform.v1.Feature getFeature() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.FeatureOrBuilder getFeatureOrBuilder() { - return getFeature(); + return feature_ == null + ? com.google.cloud.aiplatform.v1.Feature.getDefaultInstance() + : feature_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -202,7 +204,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -422,16 +424,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (featureBuilder_ == null) { - feature_ = null; - } else { - feature_ = null; + bitField0_ = 0; + feature_ = null; + if (featureBuilder_ != null) { + featureBuilder_.dispose(); featureBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -461,20 +462,23 @@ public com.google.cloud.aiplatform.v1.UpdateFeatureRequest build() { public com.google.cloud.aiplatform.v1.UpdateFeatureRequest buildPartial() { com.google.cloud.aiplatform.v1.UpdateFeatureRequest result = new com.google.cloud.aiplatform.v1.UpdateFeatureRequest(this); - if (featureBuilder_ == null) { - result.feature_ = feature_; - } else { - result.feature_ = featureBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UpdateFeatureRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.feature_ = featureBuilder_ == null ? feature_ : featureBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -556,13 +560,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getFeatureFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -582,6 +586,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.Feature feature_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.Feature, @@ -605,7 +611,7 @@ public Builder mergeFrom( * @return Whether the feature field is set. */ public boolean hasFeature() { - return featureBuilder_ != null || feature_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -652,11 +658,11 @@ public Builder setFeature(com.google.cloud.aiplatform.v1.Feature value) { throw new NullPointerException(); } feature_ = value; - onChanged(); } else { featureBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -676,11 +682,11 @@ public Builder setFeature(com.google.cloud.aiplatform.v1.Feature value) { public Builder setFeature(com.google.cloud.aiplatform.v1.Feature.Builder builderForValue) { if (featureBuilder_ == null) { feature_ = builderForValue.build(); - onChanged(); } else { featureBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -699,19 +705,18 @@ public Builder setFeature(com.google.cloud.aiplatform.v1.Feature.Builder builder */ public Builder mergeFeature(com.google.cloud.aiplatform.v1.Feature value) { if (featureBuilder_ == null) { - if (feature_ != null) { - feature_ = - com.google.cloud.aiplatform.v1.Feature.newBuilder(feature_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && feature_ != null + && feature_ != com.google.cloud.aiplatform.v1.Feature.getDefaultInstance()) { + getFeatureBuilder().mergeFrom(value); } else { feature_ = value; } - onChanged(); } else { featureBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -729,14 +734,13 @@ public Builder mergeFeature(com.google.cloud.aiplatform.v1.Feature value) { * */ public Builder clearFeature() { - if (featureBuilder_ == null) { - feature_ = null; - onChanged(); - } else { - feature_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + feature_ = null; + if (featureBuilder_ != null) { + featureBuilder_.dispose(); featureBuilder_ = null; } - + onChanged(); return this; } /** @@ -754,7 +758,7 @@ public Builder clearFeature() { * */ public com.google.cloud.aiplatform.v1.Feature.Builder getFeatureBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getFeatureFieldBuilder().getBuilder(); } @@ -840,7 +844,7 @@ public com.google.cloud.aiplatform.v1.FeatureOrBuilder getFeatureOrBuilder() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -897,11 +901,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -926,11 +930,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -954,17 +958,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -987,14 +992,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1017,7 +1021,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreOperationMetadata.java index 8e2fddfcc03a..6fd702d7fc6c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreOperationMetadata.java @@ -113,7 +113,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -321,10 +323,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -356,15 +358,22 @@ public com.google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata build( public com.google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata result = new com.google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -446,7 +455,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -466,6 +475,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -484,7 +495,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -522,11 +533,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -542,11 +553,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -561,19 +572,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -586,14 +597,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -607,7 +617,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreRequest.java index 6aa5f27425c3..d01c4ee59e01 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreRequest.java @@ -123,7 +123,9 @@ public com.google.cloud.aiplatform.v1.Featurestore getFeaturestore() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.FeaturestoreOrBuilder getFeaturestoreOrBuilder() { - return getFeaturestore(); + return featurestore_ == null + ? com.google.cloud.aiplatform.v1.Featurestore.getDefaultInstance() + : featurestore_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -202,7 +204,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -423,16 +425,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (featurestoreBuilder_ == null) { - featurestore_ = null; - } else { - featurestore_ = null; + bitField0_ = 0; + featurestore_ = null; + if (featurestoreBuilder_ != null) { + featurestoreBuilder_.dispose(); featurestoreBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -462,20 +463,24 @@ public com.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest build() { public com.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest buildPartial() { com.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest result = new com.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest(this); - if (featurestoreBuilder_ == null) { - result.featurestore_ = featurestore_; - } else { - result.featurestore_ = featurestoreBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.featurestore_ = + featurestoreBuilder_ == null ? featurestore_ : featurestoreBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -557,13 +562,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getFeaturestoreFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -583,6 +588,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.Featurestore featurestore_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.Featurestore, @@ -605,7 +612,7 @@ public Builder mergeFrom( * @return Whether the featurestore field is set. */ public boolean hasFeaturestore() { - return featurestoreBuilder_ != null || featurestore_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -650,11 +657,11 @@ public Builder setFeaturestore(com.google.cloud.aiplatform.v1.Featurestore value throw new NullPointerException(); } featurestore_ = value; - onChanged(); } else { featurestoreBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -674,11 +681,11 @@ public Builder setFeaturestore( com.google.cloud.aiplatform.v1.Featurestore.Builder builderForValue) { if (featurestoreBuilder_ == null) { featurestore_ = builderForValue.build(); - onChanged(); } else { featurestoreBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -696,19 +703,18 @@ public Builder setFeaturestore( */ public Builder mergeFeaturestore(com.google.cloud.aiplatform.v1.Featurestore value) { if (featurestoreBuilder_ == null) { - if (featurestore_ != null) { - featurestore_ = - com.google.cloud.aiplatform.v1.Featurestore.newBuilder(featurestore_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && featurestore_ != null + && featurestore_ != com.google.cloud.aiplatform.v1.Featurestore.getDefaultInstance()) { + getFeaturestoreBuilder().mergeFrom(value); } else { featurestore_ = value; } - onChanged(); } else { featurestoreBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -725,14 +731,13 @@ public Builder mergeFeaturestore(com.google.cloud.aiplatform.v1.Featurestore val * */ public Builder clearFeaturestore() { - if (featurestoreBuilder_ == null) { - featurestore_ = null; - onChanged(); - } else { - featurestore_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + featurestore_ = null; + if (featurestoreBuilder_ != null) { + featurestoreBuilder_.dispose(); featurestoreBuilder_ = null; } - + onChanged(); return this; } /** @@ -749,7 +754,7 @@ public Builder clearFeaturestore() { * */ public com.google.cloud.aiplatform.v1.Featurestore.Builder getFeaturestoreBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getFeaturestoreFieldBuilder().getBuilder(); } @@ -834,7 +839,7 @@ public com.google.cloud.aiplatform.v1.FeaturestoreOrBuilder getFeaturestoreOrBui * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -893,11 +898,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -923,11 +928,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -952,17 +957,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -986,14 +992,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1017,7 +1022,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexEndpointRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexEndpointRequest.java index 3cabb68fc14a..e87aad047ed5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexEndpointRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexEndpointRequest.java @@ -117,7 +117,9 @@ public com.google.cloud.aiplatform.v1.IndexEndpoint getIndexEndpoint() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.IndexEndpointOrBuilder getIndexEndpointOrBuilder() { - return getIndexEndpoint(); + return indexEndpoint_ == null + ? com.google.cloud.aiplatform.v1.IndexEndpoint.getDefaultInstance() + : indexEndpoint_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -169,7 +171,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -390,16 +392,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (indexEndpointBuilder_ == null) { - indexEndpoint_ = null; - } else { - indexEndpoint_ = null; + bitField0_ = 0; + indexEndpoint_ = null; + if (indexEndpointBuilder_ != null) { + indexEndpointBuilder_.dispose(); indexEndpointBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -429,20 +430,24 @@ public com.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest build() { public com.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest buildPartial() { com.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest result = new com.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest(this); - if (indexEndpointBuilder_ == null) { - result.indexEndpoint_ = indexEndpoint_; - } else { - result.indexEndpoint_ = indexEndpointBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.indexEndpoint_ = + indexEndpointBuilder_ == null ? indexEndpoint_ : indexEndpointBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -524,13 +529,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getIndexEndpointFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -550,6 +555,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.IndexEndpoint indexEndpoint_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.IndexEndpoint, @@ -570,7 +577,7 @@ public Builder mergeFrom( * @return Whether the indexEndpoint field is set. */ public boolean hasIndexEndpoint() { - return indexEndpointBuilder_ != null || indexEndpoint_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -611,11 +618,11 @@ public Builder setIndexEndpoint(com.google.cloud.aiplatform.v1.IndexEndpoint val throw new NullPointerException(); } indexEndpoint_ = value; - onChanged(); } else { indexEndpointBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -633,11 +640,11 @@ public Builder setIndexEndpoint( com.google.cloud.aiplatform.v1.IndexEndpoint.Builder builderForValue) { if (indexEndpointBuilder_ == null) { indexEndpoint_ = builderForValue.build(); - onChanged(); } else { indexEndpointBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -653,19 +660,19 @@ public Builder setIndexEndpoint( */ public Builder mergeIndexEndpoint(com.google.cloud.aiplatform.v1.IndexEndpoint value) { if (indexEndpointBuilder_ == null) { - if (indexEndpoint_ != null) { - indexEndpoint_ = - com.google.cloud.aiplatform.v1.IndexEndpoint.newBuilder(indexEndpoint_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && indexEndpoint_ != null + && indexEndpoint_ + != com.google.cloud.aiplatform.v1.IndexEndpoint.getDefaultInstance()) { + getIndexEndpointBuilder().mergeFrom(value); } else { indexEndpoint_ = value; } - onChanged(); } else { indexEndpointBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -680,14 +687,13 @@ public Builder mergeIndexEndpoint(com.google.cloud.aiplatform.v1.IndexEndpoint v * */ public Builder clearIndexEndpoint() { - if (indexEndpointBuilder_ == null) { - indexEndpoint_ = null; - onChanged(); - } else { - indexEndpoint_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + indexEndpoint_ = null; + if (indexEndpointBuilder_ != null) { + indexEndpointBuilder_.dispose(); indexEndpointBuilder_ = null; } - + onChanged(); return this; } /** @@ -702,7 +708,7 @@ public Builder clearIndexEndpoint() { * */ public com.google.cloud.aiplatform.v1.IndexEndpoint.Builder getIndexEndpointBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getIndexEndpointFieldBuilder().getBuilder(); } @@ -774,7 +780,7 @@ public com.google.cloud.aiplatform.v1.IndexEndpointOrBuilder getIndexEndpointOrB * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -815,11 +821,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -836,11 +842,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -856,17 +862,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -881,14 +888,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -903,7 +909,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexOperationMetadata.java index 1284c40a4e69..c57edb8e42ba 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexOperationMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } public static final int NEAREST_NEIGHBOR_SEARCH_OPERATION_METADATA_FIELD_NUMBER = 2; @@ -169,7 +171,9 @@ public boolean hasNearestNeighborSearchOperationMetadata() { @java.lang.Override public com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadataOrBuilder getNearestNeighborSearchOperationMetadataOrBuilder() { - return getNearestNeighborSearchOperationMetadata(); + return nearestNeighborSearchOperationMetadata_ == null + ? com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.getDefaultInstance() + : nearestNeighborSearchOperationMetadata_; } private byte memoizedIsInitialized = -1; @@ -394,16 +398,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - if (nearestNeighborSearchOperationMetadataBuilder_ == null) { - nearestNeighborSearchOperationMetadata_ = null; - } else { - nearestNeighborSearchOperationMetadata_ = null; + nearestNeighborSearchOperationMetadata_ = null; + if (nearestNeighborSearchOperationMetadataBuilder_ != null) { + nearestNeighborSearchOperationMetadataBuilder_.dispose(); nearestNeighborSearchOperationMetadataBuilder_ = null; } return this; @@ -433,21 +436,27 @@ public com.google.cloud.aiplatform.v1.UpdateIndexOperationMetadata build() { public com.google.cloud.aiplatform.v1.UpdateIndexOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.UpdateIndexOperationMetadata result = new com.google.cloud.aiplatform.v1.UpdateIndexOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); - } - if (nearestNeighborSearchOperationMetadataBuilder_ == null) { - result.nearestNeighborSearchOperationMetadata_ = nearestNeighborSearchOperationMetadata_; - } else { - result.nearestNeighborSearchOperationMetadata_ = - nearestNeighborSearchOperationMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UpdateIndexOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nearestNeighborSearchOperationMetadata_ = + nearestNeighborSearchOperationMetadataBuilder_ == null + ? nearestNeighborSearchOperationMetadata_ + : nearestNeighborSearchOperationMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -530,7 +539,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -538,7 +547,7 @@ public Builder mergeFrom( input.readMessage( getNearestNeighborSearchOperationMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -558,6 +567,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -576,7 +587,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -614,11 +625,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -634,11 +645,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -653,19 +664,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -678,14 +689,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -699,7 +709,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } @@ -769,8 +779,7 @@ public Builder clearGenericMetadata() { * @return Whether the nearestNeighborSearchOperationMetadata field is set. */ public boolean hasNearestNeighborSearchOperationMetadata() { - return nearestNeighborSearchOperationMetadataBuilder_ != null - || nearestNeighborSearchOperationMetadata_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -814,11 +823,11 @@ public Builder setNearestNeighborSearchOperationMetadata( throw new NullPointerException(); } nearestNeighborSearchOperationMetadata_ = value; - onChanged(); } else { nearestNeighborSearchOperationMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -837,11 +846,11 @@ public Builder setNearestNeighborSearchOperationMetadata( builderForValue) { if (nearestNeighborSearchOperationMetadataBuilder_ == null) { nearestNeighborSearchOperationMetadata_ = builderForValue.build(); - onChanged(); } else { nearestNeighborSearchOperationMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -858,20 +867,20 @@ public Builder setNearestNeighborSearchOperationMetadata( public Builder mergeNearestNeighborSearchOperationMetadata( com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata value) { if (nearestNeighborSearchOperationMetadataBuilder_ == null) { - if (nearestNeighborSearchOperationMetadata_ != null) { - nearestNeighborSearchOperationMetadata_ = - com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.newBuilder( - nearestNeighborSearchOperationMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && nearestNeighborSearchOperationMetadata_ != null + && nearestNeighborSearchOperationMetadata_ + != com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata + .getDefaultInstance()) { + getNearestNeighborSearchOperationMetadataBuilder().mergeFrom(value); } else { nearestNeighborSearchOperationMetadata_ = value; } - onChanged(); } else { nearestNeighborSearchOperationMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -886,14 +895,13 @@ public Builder mergeNearestNeighborSearchOperationMetadata( * */ public Builder clearNearestNeighborSearchOperationMetadata() { - if (nearestNeighborSearchOperationMetadataBuilder_ == null) { - nearestNeighborSearchOperationMetadata_ = null; - onChanged(); - } else { - nearestNeighborSearchOperationMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + nearestNeighborSearchOperationMetadata_ = null; + if (nearestNeighborSearchOperationMetadataBuilder_ != null) { + nearestNeighborSearchOperationMetadataBuilder_.dispose(); nearestNeighborSearchOperationMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -909,7 +917,7 @@ public Builder clearNearestNeighborSearchOperationMetadata() { */ public com.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.Builder getNearestNeighborSearchOperationMetadataBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getNearestNeighborSearchOperationMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexRequest.java index 8745b9595116..be76efee5e94 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateIndexRequest.java @@ -112,7 +112,7 @@ public com.google.cloud.aiplatform.v1.Index getIndex() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.IndexOrBuilder getIndexOrBuilder() { - return getIndex(); + return index_ == null ? com.google.cloud.aiplatform.v1.Index.getDefaultInstance() : index_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -164,7 +164,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -384,16 +384,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (indexBuilder_ == null) { - index_ = null; - } else { - index_ = null; + bitField0_ = 0; + index_ = null; + if (indexBuilder_ != null) { + indexBuilder_.dispose(); indexBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -423,20 +422,23 @@ public com.google.cloud.aiplatform.v1.UpdateIndexRequest build() { public com.google.cloud.aiplatform.v1.UpdateIndexRequest buildPartial() { com.google.cloud.aiplatform.v1.UpdateIndexRequest result = new com.google.cloud.aiplatform.v1.UpdateIndexRequest(this); - if (indexBuilder_ == null) { - result.index_ = index_; - } else { - result.index_ = indexBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UpdateIndexRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.index_ = indexBuilder_ == null ? index_ : indexBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -518,13 +520,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getIndexFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -544,6 +546,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.Index index_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.Index, @@ -563,7 +567,7 @@ public Builder mergeFrom( * @return Whether the index field is set. */ public boolean hasIndex() { - return indexBuilder_ != null || index_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -600,11 +604,11 @@ public Builder setIndex(com.google.cloud.aiplatform.v1.Index value) { throw new NullPointerException(); } index_ = value; - onChanged(); } else { indexBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -620,11 +624,11 @@ public Builder setIndex(com.google.cloud.aiplatform.v1.Index value) { public Builder setIndex(com.google.cloud.aiplatform.v1.Index.Builder builderForValue) { if (indexBuilder_ == null) { index_ = builderForValue.build(); - onChanged(); } else { indexBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -639,19 +643,18 @@ public Builder setIndex(com.google.cloud.aiplatform.v1.Index.Builder builderForV */ public Builder mergeIndex(com.google.cloud.aiplatform.v1.Index value) { if (indexBuilder_ == null) { - if (index_ != null) { - index_ = - com.google.cloud.aiplatform.v1.Index.newBuilder(index_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && index_ != null + && index_ != com.google.cloud.aiplatform.v1.Index.getDefaultInstance()) { + getIndexBuilder().mergeFrom(value); } else { index_ = value; } - onChanged(); } else { indexBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -665,14 +668,13 @@ public Builder mergeIndex(com.google.cloud.aiplatform.v1.Index value) { * */ public Builder clearIndex() { - if (indexBuilder_ == null) { - index_ = null; - onChanged(); - } else { - index_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + index_ = null; + if (indexBuilder_ != null) { + indexBuilder_.dispose(); indexBuilder_ = null; } - + onChanged(); return this; } /** @@ -686,7 +688,7 @@ public Builder clearIndex() { * */ public com.google.cloud.aiplatform.v1.Index.Builder getIndexBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getIndexFieldBuilder().getBuilder(); } @@ -754,7 +756,7 @@ public com.google.cloud.aiplatform.v1.IndexOrBuilder getIndexOrBuilder() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -795,11 +797,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -816,11 +818,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -836,17 +838,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -861,14 +864,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -883,7 +885,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelDeploymentMonitoringJobOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelDeploymentMonitoringJobOperationMetadata.java index 2509421aa355..9abb9b0a17dd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelDeploymentMonitoringJobOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelDeploymentMonitoringJobOperationMetadata.java @@ -117,7 +117,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -337,10 +339,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -376,15 +378,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata result = new com.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata( this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -469,7 +478,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -489,6 +498,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -507,7 +518,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -545,11 +556,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -565,11 +576,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -584,19 +595,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -609,14 +620,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -630,7 +640,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelDeploymentMonitoringJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelDeploymentMonitoringJobRequest.java index c5530e2e7342..d1a1a8779a79 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelDeploymentMonitoringJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelDeploymentMonitoringJobRequest.java @@ -124,7 +124,9 @@ public boolean hasModelDeploymentMonitoringJob() { @java.lang.Override public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJobOrBuilder getModelDeploymentMonitoringJobOrBuilder() { - return getModelDeploymentMonitoringJob(); + return modelDeploymentMonitoringJob_ == null + ? com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.getDefaultInstance() + : modelDeploymentMonitoringJob_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -242,7 +244,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -470,16 +472,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (modelDeploymentMonitoringJobBuilder_ == null) { - modelDeploymentMonitoringJob_ = null; - } else { - modelDeploymentMonitoringJob_ = null; + bitField0_ = 0; + modelDeploymentMonitoringJob_ = null; + if (modelDeploymentMonitoringJobBuilder_ != null) { + modelDeploymentMonitoringJobBuilder_.dispose(); modelDeploymentMonitoringJobBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -512,20 +513,27 @@ public com.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest public com.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest buildPartial() { com.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest result = new com.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest(this); - if (modelDeploymentMonitoringJobBuilder_ == null) { - result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_; - } else { - result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJobBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelDeploymentMonitoringJob_ = + modelDeploymentMonitoringJobBuilder_ == null + ? modelDeploymentMonitoringJob_ + : modelDeploymentMonitoringJobBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -612,13 +620,13 @@ public Builder mergeFrom( { input.readMessage( getModelDeploymentMonitoringJobFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -638,6 +646,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob modelDeploymentMonitoringJob_; private com.google.protobuf.SingleFieldBuilderV3< @@ -660,7 +670,7 @@ public Builder mergeFrom( * @return Whether the modelDeploymentMonitoringJob field is set. */ public boolean hasModelDeploymentMonitoringJob() { - return modelDeploymentMonitoringJobBuilder_ != null || modelDeploymentMonitoringJob_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -705,11 +715,11 @@ public Builder setModelDeploymentMonitoringJob( throw new NullPointerException(); } modelDeploymentMonitoringJob_ = value; - onChanged(); } else { modelDeploymentMonitoringJobBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -728,11 +738,11 @@ public Builder setModelDeploymentMonitoringJob( com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.Builder builderForValue) { if (modelDeploymentMonitoringJobBuilder_ == null) { modelDeploymentMonitoringJob_ = builderForValue.build(); - onChanged(); } else { modelDeploymentMonitoringJobBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -750,20 +760,20 @@ public Builder setModelDeploymentMonitoringJob( public Builder mergeModelDeploymentMonitoringJob( com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob value) { if (modelDeploymentMonitoringJobBuilder_ == null) { - if (modelDeploymentMonitoringJob_ != null) { - modelDeploymentMonitoringJob_ = - com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.newBuilder( - modelDeploymentMonitoringJob_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && modelDeploymentMonitoringJob_ != null + && modelDeploymentMonitoringJob_ + != com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + .getDefaultInstance()) { + getModelDeploymentMonitoringJobBuilder().mergeFrom(value); } else { modelDeploymentMonitoringJob_ = value; } - onChanged(); } else { modelDeploymentMonitoringJobBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -779,14 +789,13 @@ public Builder mergeModelDeploymentMonitoringJob( * */ public Builder clearModelDeploymentMonitoringJob() { - if (modelDeploymentMonitoringJobBuilder_ == null) { - modelDeploymentMonitoringJob_ = null; - onChanged(); - } else { - modelDeploymentMonitoringJob_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + modelDeploymentMonitoringJob_ = null; + if (modelDeploymentMonitoringJobBuilder_ != null) { + modelDeploymentMonitoringJobBuilder_.dispose(); modelDeploymentMonitoringJobBuilder_ = null; } - + onChanged(); return this; } /** @@ -803,7 +812,7 @@ public Builder clearModelDeploymentMonitoringJob() { */ public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.Builder getModelDeploymentMonitoringJobBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getModelDeploymentMonitoringJobFieldBuilder().getBuilder(); } @@ -900,7 +909,7 @@ public Builder clearModelDeploymentMonitoringJob() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -985,11 +994,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1028,11 +1037,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1070,17 +1079,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1117,14 +1127,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1161,7 +1170,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelRequest.java index f063261731f5..1d3bfe66fb21 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateModelRequest.java @@ -163,7 +163,7 @@ public com.google.cloud.aiplatform.v1.Model getModel() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ModelOrBuilder getModelOrBuilder() { - return getModel(); + return model_ == null ? com.google.cloud.aiplatform.v1.Model.getDefaultInstance() : model_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -218,7 +218,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -438,16 +438,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (modelBuilder_ == null) { - model_ = null; - } else { - model_ = null; + bitField0_ = 0; + model_ = null; + if (modelBuilder_ != null) { + modelBuilder_.dispose(); modelBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -477,20 +476,23 @@ public com.google.cloud.aiplatform.v1.UpdateModelRequest build() { public com.google.cloud.aiplatform.v1.UpdateModelRequest buildPartial() { com.google.cloud.aiplatform.v1.UpdateModelRequest result = new com.google.cloud.aiplatform.v1.UpdateModelRequest(this); - if (modelBuilder_ == null) { - result.model_ = model_; - } else { - result.model_ = modelBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UpdateModelRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.model_ = modelBuilder_ == null ? model_ : modelBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -572,13 +574,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getModelFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -598,6 +600,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.Model model_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.Model, @@ -634,7 +638,7 @@ public Builder mergeFrom( * @return Whether the model field is set. */ public boolean hasModel() { - return modelBuilder_ != null || model_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -705,11 +709,11 @@ public Builder setModel(com.google.cloud.aiplatform.v1.Model value) { throw new NullPointerException(); } model_ = value; - onChanged(); } else { modelBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -742,11 +746,11 @@ public Builder setModel(com.google.cloud.aiplatform.v1.Model value) { public Builder setModel(com.google.cloud.aiplatform.v1.Model.Builder builderForValue) { if (modelBuilder_ == null) { model_ = builderForValue.build(); - onChanged(); } else { modelBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -778,19 +782,18 @@ public Builder setModel(com.google.cloud.aiplatform.v1.Model.Builder builderForV */ public Builder mergeModel(com.google.cloud.aiplatform.v1.Model value) { if (modelBuilder_ == null) { - if (model_ != null) { - model_ = - com.google.cloud.aiplatform.v1.Model.newBuilder(model_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && model_ != null + && model_ != com.google.cloud.aiplatform.v1.Model.getDefaultInstance()) { + getModelBuilder().mergeFrom(value); } else { model_ = value; } - onChanged(); } else { modelBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -821,14 +824,13 @@ public Builder mergeModel(com.google.cloud.aiplatform.v1.Model value) { * */ public Builder clearModel() { - if (modelBuilder_ == null) { - model_ = null; - onChanged(); - } else { - model_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + model_ = null; + if (modelBuilder_ != null) { + modelBuilder_.dispose(); modelBuilder_ = null; } - + onChanged(); return this; } /** @@ -859,7 +861,7 @@ public Builder clearModel() { * */ public com.google.cloud.aiplatform.v1.Model.Builder getModelBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getModelFieldBuilder().getBuilder(); } @@ -962,7 +964,7 @@ public com.google.cloud.aiplatform.v1.ModelOrBuilder getModelOrBuilder() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1005,11 +1007,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1027,11 +1029,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1048,17 +1050,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1074,14 +1077,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1097,7 +1099,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateSpecialistPoolOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateSpecialistPoolOperationMetadata.java index 4bdbc4b5456b..fe79091e7b46 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateSpecialistPoolOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateSpecialistPoolOperationMetadata.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SPECIALIST_POOL_FIELD_NUMBER = 1; - private volatile java.lang.Object specialistPool_; + + @SuppressWarnings("serial") + private volatile java.lang.Object specialistPool_ = ""; /** * * @@ -173,7 +175,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -391,12 +395,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; specialistPool_ = ""; - - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -428,16 +431,25 @@ public com.google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata buil public com.google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata result = new com.google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata(this); - result.specialistPool_ = specialistPool_; - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.specialistPool_ = specialistPool_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -489,6 +501,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getSpecialistPool().isEmpty()) { specialistPool_ = other.specialistPool_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasGenericMetadata()) { @@ -523,13 +536,13 @@ public Builder mergeFrom( case 10: { specialistPool_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -549,6 +562,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object specialistPool_ = ""; /** * @@ -622,8 +637,8 @@ public Builder setSpecialistPool(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - specialistPool_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -643,8 +658,8 @@ public Builder setSpecialistPool(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSpecialistPool() { - specialistPool_ = getDefaultInstance().getSpecialistPool(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -669,8 +684,8 @@ public Builder setSpecialistPoolBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - specialistPool_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -693,7 +708,7 @@ public Builder setSpecialistPoolBytes(com.google.protobuf.ByteString value) { * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -731,11 +746,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -751,11 +766,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -770,19 +785,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -795,14 +810,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 2; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -816,7 +830,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateSpecialistPoolRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateSpecialistPoolRequest.java index ded2bdb883bc..f781d68786a7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateSpecialistPoolRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateSpecialistPoolRequest.java @@ -117,7 +117,9 @@ public com.google.cloud.aiplatform.v1.SpecialistPool getSpecialistPool() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.SpecialistPoolOrBuilder getSpecialistPoolOrBuilder() { - return getSpecialistPool(); + return specialistPool_ == null + ? com.google.cloud.aiplatform.v1.SpecialistPool.getDefaultInstance() + : specialistPool_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -166,7 +168,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -387,16 +389,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (specialistPoolBuilder_ == null) { - specialistPool_ = null; - } else { - specialistPool_ = null; + bitField0_ = 0; + specialistPool_ = null; + if (specialistPoolBuilder_ != null) { + specialistPoolBuilder_.dispose(); specialistPoolBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -426,20 +427,24 @@ public com.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest build() { public com.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest buildPartial() { com.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest result = new com.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest(this); - if (specialistPoolBuilder_ == null) { - result.specialistPool_ = specialistPool_; - } else { - result.specialistPool_ = specialistPoolBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.specialistPool_ = + specialistPoolBuilder_ == null ? specialistPool_ : specialistPoolBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -521,13 +526,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getSpecialistPoolFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -547,6 +552,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.SpecialistPool specialistPool_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.SpecialistPool, @@ -567,7 +574,7 @@ public Builder mergeFrom( * @return Whether the specialistPool field is set. */ public boolean hasSpecialistPool() { - return specialistPoolBuilder_ != null || specialistPool_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -608,11 +615,11 @@ public Builder setSpecialistPool(com.google.cloud.aiplatform.v1.SpecialistPool v throw new NullPointerException(); } specialistPool_ = value; - onChanged(); } else { specialistPoolBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -630,11 +637,11 @@ public Builder setSpecialistPool( com.google.cloud.aiplatform.v1.SpecialistPool.Builder builderForValue) { if (specialistPoolBuilder_ == null) { specialistPool_ = builderForValue.build(); - onChanged(); } else { specialistPoolBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -650,19 +657,19 @@ public Builder setSpecialistPool( */ public Builder mergeSpecialistPool(com.google.cloud.aiplatform.v1.SpecialistPool value) { if (specialistPoolBuilder_ == null) { - if (specialistPool_ != null) { - specialistPool_ = - com.google.cloud.aiplatform.v1.SpecialistPool.newBuilder(specialistPool_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && specialistPool_ != null + && specialistPool_ + != com.google.cloud.aiplatform.v1.SpecialistPool.getDefaultInstance()) { + getSpecialistPoolBuilder().mergeFrom(value); } else { specialistPool_ = value; } - onChanged(); } else { specialistPoolBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -677,14 +684,13 @@ public Builder mergeSpecialistPool(com.google.cloud.aiplatform.v1.SpecialistPool * */ public Builder clearSpecialistPool() { - if (specialistPoolBuilder_ == null) { - specialistPool_ = null; - onChanged(); - } else { - specialistPool_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + specialistPool_ = null; + if (specialistPoolBuilder_ != null) { + specialistPoolBuilder_.dispose(); specialistPoolBuilder_ = null; } - + onChanged(); return this; } /** @@ -699,7 +705,7 @@ public Builder clearSpecialistPool() { * */ public com.google.cloud.aiplatform.v1.SpecialistPool.Builder getSpecialistPoolBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getSpecialistPoolFieldBuilder().getBuilder(); } @@ -770,7 +776,7 @@ public com.google.cloud.aiplatform.v1.SpecialistPoolOrBuilder getSpecialistPoolO * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -809,11 +815,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -829,11 +835,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -848,17 +854,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -872,14 +879,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -893,7 +899,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardExperimentRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardExperimentRequest.java index e3f2f126a25f..426b5f4ed3d7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardExperimentRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardExperimentRequest.java @@ -128,7 +128,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } public static final int TENSORBOARD_EXPERIMENT_FIELD_NUMBER = 2; @@ -189,7 +189,9 @@ public com.google.cloud.aiplatform.v1.TensorboardExperiment getTensorboardExperi @java.lang.Override public com.google.cloud.aiplatform.v1.TensorboardExperimentOrBuilder getTensorboardExperimentOrBuilder() { - return getTensorboardExperiment(); + return tensorboardExperiment_ == null + ? com.google.cloud.aiplatform.v1.TensorboardExperiment.getDefaultInstance() + : tensorboardExperiment_; } private byte memoizedIsInitialized = -1; @@ -413,16 +415,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - if (tensorboardExperimentBuilder_ == null) { - tensorboardExperiment_ = null; - } else { - tensorboardExperiment_ = null; + tensorboardExperiment_ = null; + if (tensorboardExperimentBuilder_ != null) { + tensorboardExperimentBuilder_.dispose(); tensorboardExperimentBuilder_ = null; } return this; @@ -453,20 +454,27 @@ public com.google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest build() public com.google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest buildPartial() { com.google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest result = new com.google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest(this); - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - if (tensorboardExperimentBuilder_ == null) { - result.tensorboardExperiment_ = tensorboardExperiment_; - } else { - result.tensorboardExperiment_ = tensorboardExperimentBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tensorboardExperiment_ = + tensorboardExperimentBuilder_ == null + ? tensorboardExperiment_ + : tensorboardExperimentBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -550,14 +558,14 @@ public Builder mergeFrom( case 10: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTensorboardExperimentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -577,6 +585,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, @@ -601,7 +611,7 @@ public Builder mergeFrom( * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -650,11 +660,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -675,11 +685,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -699,17 +709,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -728,14 +739,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -754,7 +764,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -836,7 +846,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * @return Whether the tensorboardExperiment field is set. */ public boolean hasTensorboardExperiment() { - return tensorboardExperimentBuilder_ != null || tensorboardExperiment_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -882,11 +892,11 @@ public Builder setTensorboardExperiment( throw new NullPointerException(); } tensorboardExperiment_ = value; - onChanged(); } else { tensorboardExperimentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -906,11 +916,11 @@ public Builder setTensorboardExperiment( com.google.cloud.aiplatform.v1.TensorboardExperiment.Builder builderForValue) { if (tensorboardExperimentBuilder_ == null) { tensorboardExperiment_ = builderForValue.build(); - onChanged(); } else { tensorboardExperimentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -929,20 +939,19 @@ public Builder setTensorboardExperiment( public Builder mergeTensorboardExperiment( com.google.cloud.aiplatform.v1.TensorboardExperiment value) { if (tensorboardExperimentBuilder_ == null) { - if (tensorboardExperiment_ != null) { - tensorboardExperiment_ = - com.google.cloud.aiplatform.v1.TensorboardExperiment.newBuilder( - tensorboardExperiment_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && tensorboardExperiment_ != null + && tensorboardExperiment_ + != com.google.cloud.aiplatform.v1.TensorboardExperiment.getDefaultInstance()) { + getTensorboardExperimentBuilder().mergeFrom(value); } else { tensorboardExperiment_ = value; } - onChanged(); } else { tensorboardExperimentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -959,14 +968,13 @@ public Builder mergeTensorboardExperiment( * */ public Builder clearTensorboardExperiment() { - if (tensorboardExperimentBuilder_ == null) { - tensorboardExperiment_ = null; - onChanged(); - } else { - tensorboardExperiment_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + tensorboardExperiment_ = null; + if (tensorboardExperimentBuilder_ != null) { + tensorboardExperimentBuilder_.dispose(); tensorboardExperimentBuilder_ = null; } - + onChanged(); return this; } /** @@ -984,7 +992,7 @@ public Builder clearTensorboardExperiment() { */ public com.google.cloud.aiplatform.v1.TensorboardExperiment.Builder getTensorboardExperimentBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTensorboardExperimentFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardOperationMetadata.java index b91136f6971e..3c53ab7a4424 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardOperationMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -320,10 +322,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -354,15 +356,22 @@ public com.google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata build() public com.google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata result = new com.google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -443,7 +452,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -463,6 +472,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -481,7 +492,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -519,11 +530,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -539,11 +550,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -558,19 +569,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -583,14 +594,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -604,7 +614,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardRequest.java index 73751e20121f..cf874ed2757d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardRequest.java @@ -127,7 +127,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } public static final int TENSORBOARD_FIELD_NUMBER = 2; @@ -187,7 +187,9 @@ public com.google.cloud.aiplatform.v1.Tensorboard getTensorboard() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.TensorboardOrBuilder getTensorboardOrBuilder() { - return getTensorboard(); + return tensorboard_ == null + ? com.google.cloud.aiplatform.v1.Tensorboard.getDefaultInstance() + : tensorboard_; } private byte memoizedIsInitialized = -1; @@ -408,16 +410,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - if (tensorboardBuilder_ == null) { - tensorboard_ = null; - } else { - tensorboard_ = null; + tensorboard_ = null; + if (tensorboardBuilder_ != null) { + tensorboardBuilder_.dispose(); tensorboardBuilder_ = null; } return this; @@ -447,20 +448,24 @@ public com.google.cloud.aiplatform.v1.UpdateTensorboardRequest build() { public com.google.cloud.aiplatform.v1.UpdateTensorboardRequest buildPartial() { com.google.cloud.aiplatform.v1.UpdateTensorboardRequest result = new com.google.cloud.aiplatform.v1.UpdateTensorboardRequest(this); - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - if (tensorboardBuilder_ == null) { - result.tensorboard_ = tensorboard_; - } else { - result.tensorboard_ = tensorboardBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UpdateTensorboardRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tensorboard_ = + tensorboardBuilder_ == null ? tensorboard_ : tensorboardBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -542,13 +547,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getTensorboardFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -568,6 +573,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, @@ -592,7 +599,7 @@ public Builder mergeFrom( * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -641,11 +648,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -666,11 +673,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -690,17 +697,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -719,14 +727,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -745,7 +752,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -827,7 +834,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * @return Whether the tensorboard field is set. */ public boolean hasTensorboard() { - return tensorboardBuilder_ != null || tensorboard_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -872,11 +879,11 @@ public Builder setTensorboard(com.google.cloud.aiplatform.v1.Tensorboard value) throw new NullPointerException(); } tensorboard_ = value; - onChanged(); } else { tensorboardBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -896,11 +903,11 @@ public Builder setTensorboard( com.google.cloud.aiplatform.v1.Tensorboard.Builder builderForValue) { if (tensorboardBuilder_ == null) { tensorboard_ = builderForValue.build(); - onChanged(); } else { tensorboardBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -918,19 +925,18 @@ public Builder setTensorboard( */ public Builder mergeTensorboard(com.google.cloud.aiplatform.v1.Tensorboard value) { if (tensorboardBuilder_ == null) { - if (tensorboard_ != null) { - tensorboard_ = - com.google.cloud.aiplatform.v1.Tensorboard.newBuilder(tensorboard_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && tensorboard_ != null + && tensorboard_ != com.google.cloud.aiplatform.v1.Tensorboard.getDefaultInstance()) { + getTensorboardBuilder().mergeFrom(value); } else { tensorboard_ = value; } - onChanged(); } else { tensorboardBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -947,14 +953,13 @@ public Builder mergeTensorboard(com.google.cloud.aiplatform.v1.Tensorboard value * */ public Builder clearTensorboard() { - if (tensorboardBuilder_ == null) { - tensorboard_ = null; - onChanged(); - } else { - tensorboard_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + tensorboard_ = null; + if (tensorboardBuilder_ != null) { + tensorboardBuilder_.dispose(); tensorboardBuilder_ = null; } - + onChanged(); return this; } /** @@ -971,7 +976,7 @@ public Builder clearTensorboard() { * */ public com.google.cloud.aiplatform.v1.Tensorboard.Builder getTensorboardBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTensorboardFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardRunRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardRunRequest.java index 1f2fa7a88b37..788892dca5da 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardRunRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardRunRequest.java @@ -127,7 +127,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } public static final int TENSORBOARD_RUN_FIELD_NUMBER = 2; @@ -187,7 +187,9 @@ public com.google.cloud.aiplatform.v1.TensorboardRun getTensorboardRun() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.TensorboardRunOrBuilder getTensorboardRunOrBuilder() { - return getTensorboardRun(); + return tensorboardRun_ == null + ? com.google.cloud.aiplatform.v1.TensorboardRun.getDefaultInstance() + : tensorboardRun_; } private byte memoizedIsInitialized = -1; @@ -408,16 +410,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - if (tensorboardRunBuilder_ == null) { - tensorboardRun_ = null; - } else { - tensorboardRun_ = null; + tensorboardRun_ = null; + if (tensorboardRunBuilder_ != null) { + tensorboardRunBuilder_.dispose(); tensorboardRunBuilder_ = null; } return this; @@ -447,20 +448,24 @@ public com.google.cloud.aiplatform.v1.UpdateTensorboardRunRequest build() { public com.google.cloud.aiplatform.v1.UpdateTensorboardRunRequest buildPartial() { com.google.cloud.aiplatform.v1.UpdateTensorboardRunRequest result = new com.google.cloud.aiplatform.v1.UpdateTensorboardRunRequest(this); - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - if (tensorboardRunBuilder_ == null) { - result.tensorboardRun_ = tensorboardRun_; - } else { - result.tensorboardRun_ = tensorboardRunBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UpdateTensorboardRunRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tensorboardRun_ = + tensorboardRunBuilder_ == null ? tensorboardRun_ : tensorboardRunBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -542,13 +547,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getTensorboardRunFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -568,6 +573,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, @@ -592,7 +599,7 @@ public Builder mergeFrom( * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -641,11 +648,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -666,11 +673,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -690,17 +697,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -719,14 +727,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -745,7 +752,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -827,7 +834,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * @return Whether the tensorboardRun field is set. */ public boolean hasTensorboardRun() { - return tensorboardRunBuilder_ != null || tensorboardRun_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -872,11 +879,11 @@ public Builder setTensorboardRun(com.google.cloud.aiplatform.v1.TensorboardRun v throw new NullPointerException(); } tensorboardRun_ = value; - onChanged(); } else { tensorboardRunBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -896,11 +903,11 @@ public Builder setTensorboardRun( com.google.cloud.aiplatform.v1.TensorboardRun.Builder builderForValue) { if (tensorboardRunBuilder_ == null) { tensorboardRun_ = builderForValue.build(); - onChanged(); } else { tensorboardRunBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -918,19 +925,19 @@ public Builder setTensorboardRun( */ public Builder mergeTensorboardRun(com.google.cloud.aiplatform.v1.TensorboardRun value) { if (tensorboardRunBuilder_ == null) { - if (tensorboardRun_ != null) { - tensorboardRun_ = - com.google.cloud.aiplatform.v1.TensorboardRun.newBuilder(tensorboardRun_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && tensorboardRun_ != null + && tensorboardRun_ + != com.google.cloud.aiplatform.v1.TensorboardRun.getDefaultInstance()) { + getTensorboardRunBuilder().mergeFrom(value); } else { tensorboardRun_ = value; } - onChanged(); } else { tensorboardRunBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -947,14 +954,13 @@ public Builder mergeTensorboardRun(com.google.cloud.aiplatform.v1.TensorboardRun * */ public Builder clearTensorboardRun() { - if (tensorboardRunBuilder_ == null) { - tensorboardRun_ = null; - onChanged(); - } else { - tensorboardRun_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + tensorboardRun_ = null; + if (tensorboardRunBuilder_ != null) { + tensorboardRunBuilder_.dispose(); tensorboardRunBuilder_ = null; } - + onChanged(); return this; } /** @@ -971,7 +977,7 @@ public Builder clearTensorboardRun() { * */ public com.google.cloud.aiplatform.v1.TensorboardRun.Builder getTensorboardRunBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTensorboardRunFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardTimeSeriesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardTimeSeriesRequest.java index b85b493da1ff..3cfe6d53c342 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardTimeSeriesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateTensorboardTimeSeriesRequest.java @@ -128,7 +128,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } public static final int TENSORBOARD_TIME_SERIES_FIELD_NUMBER = 2; @@ -192,7 +192,9 @@ public com.google.cloud.aiplatform.v1.TensorboardTimeSeries getTensorboardTimeSe @java.lang.Override public com.google.cloud.aiplatform.v1.TensorboardTimeSeriesOrBuilder getTensorboardTimeSeriesOrBuilder() { - return getTensorboardTimeSeries(); + return tensorboardTimeSeries_ == null + ? com.google.cloud.aiplatform.v1.TensorboardTimeSeries.getDefaultInstance() + : tensorboardTimeSeries_; } private byte memoizedIsInitialized = -1; @@ -416,16 +418,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - if (tensorboardTimeSeriesBuilder_ == null) { - tensorboardTimeSeries_ = null; - } else { - tensorboardTimeSeries_ = null; + tensorboardTimeSeries_ = null; + if (tensorboardTimeSeriesBuilder_ != null) { + tensorboardTimeSeriesBuilder_.dispose(); tensorboardTimeSeriesBuilder_ = null; } return this; @@ -456,20 +457,27 @@ public com.google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest build() public com.google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest buildPartial() { com.google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest result = new com.google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest(this); - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - if (tensorboardTimeSeriesBuilder_ == null) { - result.tensorboardTimeSeries_ = tensorboardTimeSeries_; - } else { - result.tensorboardTimeSeries_ = tensorboardTimeSeriesBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tensorboardTimeSeries_ = + tensorboardTimeSeriesBuilder_ == null + ? tensorboardTimeSeries_ + : tensorboardTimeSeriesBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -553,14 +561,14 @@ public Builder mergeFrom( case 10: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTensorboardTimeSeriesFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -580,6 +588,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, @@ -604,7 +614,7 @@ public Builder mergeFrom( * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -653,11 +663,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -678,11 +688,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -702,17 +712,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -731,14 +742,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -757,7 +767,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -840,7 +850,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * @return Whether the tensorboardTimeSeries field is set. */ public boolean hasTensorboardTimeSeries() { - return tensorboardTimeSeriesBuilder_ != null || tensorboardTimeSeries_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -888,11 +898,11 @@ public Builder setTensorboardTimeSeries( throw new NullPointerException(); } tensorboardTimeSeries_ = value; - onChanged(); } else { tensorboardTimeSeriesBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -913,11 +923,11 @@ public Builder setTensorboardTimeSeries( com.google.cloud.aiplatform.v1.TensorboardTimeSeries.Builder builderForValue) { if (tensorboardTimeSeriesBuilder_ == null) { tensorboardTimeSeries_ = builderForValue.build(); - onChanged(); } else { tensorboardTimeSeriesBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -937,20 +947,19 @@ public Builder setTensorboardTimeSeries( public Builder mergeTensorboardTimeSeries( com.google.cloud.aiplatform.v1.TensorboardTimeSeries value) { if (tensorboardTimeSeriesBuilder_ == null) { - if (tensorboardTimeSeries_ != null) { - tensorboardTimeSeries_ = - com.google.cloud.aiplatform.v1.TensorboardTimeSeries.newBuilder( - tensorboardTimeSeries_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && tensorboardTimeSeries_ != null + && tensorboardTimeSeries_ + != com.google.cloud.aiplatform.v1.TensorboardTimeSeries.getDefaultInstance()) { + getTensorboardTimeSeriesBuilder().mergeFrom(value); } else { tensorboardTimeSeries_ = value; } - onChanged(); } else { tensorboardTimeSeriesBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -968,14 +977,13 @@ public Builder mergeTensorboardTimeSeries( * */ public Builder clearTensorboardTimeSeries() { - if (tensorboardTimeSeriesBuilder_ == null) { - tensorboardTimeSeries_ = null; - onChanged(); - } else { - tensorboardTimeSeries_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + tensorboardTimeSeries_ = null; + if (tensorboardTimeSeriesBuilder_ != null) { + tensorboardTimeSeriesBuilder_.dispose(); tensorboardTimeSeriesBuilder_ = null; } - + onChanged(); return this; } /** @@ -994,7 +1002,7 @@ public Builder clearTensorboardTimeSeries() { */ public com.google.cloud.aiplatform.v1.TensorboardTimeSeries.Builder getTensorboardTimeSeriesBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTensorboardTimeSeriesFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelOperationMetadata.java index 60beefe15648..4350d953d3da 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelOperationMetadata.java @@ -113,7 +113,9 @@ public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadat @java.lang.Override public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -321,10 +323,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -354,15 +356,21 @@ public com.google.cloud.aiplatform.v1.UploadModelOperationMetadata build() { public com.google.cloud.aiplatform.v1.UploadModelOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.UploadModelOperationMetadata result = new com.google.cloud.aiplatform.v1.UploadModelOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UploadModelOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -441,7 +449,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -461,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -479,7 +489,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -517,11 +527,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -537,11 +547,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -556,19 +566,19 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1.GenericOperationMetadata.newBuilder(genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -581,14 +591,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -602,7 +611,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequest.java index a5cea607986a..a69160be8803 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PARENT_MODEL_FIELD_NUMBER = 4; - private volatile java.lang.Object parentModel_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parentModel_ = ""; /** * * @@ -178,7 +182,9 @@ public com.google.protobuf.ByteString getParentModelBytes() { } public static final int MODEL_ID_FIELD_NUMBER = 5; - private volatile java.lang.Object modelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelId_ = ""; /** * * @@ -278,11 +284,13 @@ public com.google.cloud.aiplatform.v1.Model getModel() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.ModelOrBuilder getModelOrBuilder() { - return getModel(); + return model_ == null ? com.google.cloud.aiplatform.v1.Model.getDefaultInstance() : model_; } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 6; - private volatile java.lang.Object serviceAccount_; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; /** * * @@ -581,20 +589,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - parentModel_ = ""; - modelId_ = ""; - - if (modelBuilder_ == null) { - model_ = null; - } else { - model_ = null; + model_ = null; + if (modelBuilder_ != null) { + modelBuilder_.dispose(); modelBuilder_ = null; } serviceAccount_ = ""; - return this; } @@ -622,19 +626,32 @@ public com.google.cloud.aiplatform.v1.UploadModelRequest build() { public com.google.cloud.aiplatform.v1.UploadModelRequest buildPartial() { com.google.cloud.aiplatform.v1.UploadModelRequest result = new com.google.cloud.aiplatform.v1.UploadModelRequest(this); - result.parent_ = parent_; - result.parentModel_ = parentModel_; - result.modelId_ = modelId_; - if (modelBuilder_ == null) { - result.model_ = model_; - } else { - result.model_ = modelBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.serviceAccount_ = serviceAccount_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UploadModelRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parentModel_ = parentModel_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.modelId_ = modelId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.model_ = modelBuilder_ == null ? model_ : modelBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -683,14 +700,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.UploadModelRequest other return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getParentModel().isEmpty()) { parentModel_ = other.parentModel_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getModelId().isEmpty()) { modelId_ = other.modelId_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasModel()) { @@ -698,6 +718,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.UploadModelRequest other } if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -729,31 +750,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getModelFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 18 case 34: { parentModel_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 34 case 42: { modelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 42 case 50: { serviceAccount_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 50 default: @@ -773,6 +794,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -843,8 +866,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -863,8 +886,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -888,8 +911,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -958,8 +981,8 @@ public Builder setParentModel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parentModel_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -976,8 +999,8 @@ public Builder setParentModel(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParentModel() { - parentModel_ = getDefaultInstance().getParentModel(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -999,8 +1022,8 @@ public Builder setParentModelBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parentModel_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1075,8 +1098,8 @@ public Builder setModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1095,8 +1118,8 @@ public Builder setModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelId() { - modelId_ = getDefaultInstance().getModelId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1120,8 +1143,8 @@ public Builder setModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1145,7 +1168,7 @@ public Builder setModelIdBytes(com.google.protobuf.ByteString value) { * @return Whether the model field is set. */ public boolean hasModel() { - return modelBuilder_ != null || model_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1182,11 +1205,11 @@ public Builder setModel(com.google.cloud.aiplatform.v1.Model value) { throw new NullPointerException(); } model_ = value; - onChanged(); } else { modelBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1202,11 +1225,11 @@ public Builder setModel(com.google.cloud.aiplatform.v1.Model value) { public Builder setModel(com.google.cloud.aiplatform.v1.Model.Builder builderForValue) { if (modelBuilder_ == null) { model_ = builderForValue.build(); - onChanged(); } else { modelBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1221,19 +1244,18 @@ public Builder setModel(com.google.cloud.aiplatform.v1.Model.Builder builderForV */ public Builder mergeModel(com.google.cloud.aiplatform.v1.Model value) { if (modelBuilder_ == null) { - if (model_ != null) { - model_ = - com.google.cloud.aiplatform.v1.Model.newBuilder(model_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && model_ != null + && model_ != com.google.cloud.aiplatform.v1.Model.getDefaultInstance()) { + getModelBuilder().mergeFrom(value); } else { model_ = value; } - onChanged(); } else { modelBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1247,14 +1269,13 @@ public Builder mergeModel(com.google.cloud.aiplatform.v1.Model value) { * */ public Builder clearModel() { - if (modelBuilder_ == null) { - model_ = null; - onChanged(); - } else { - model_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + model_ = null; + if (modelBuilder_ != null) { + modelBuilder_.dispose(); modelBuilder_ = null; } - + onChanged(); return this; } /** @@ -1268,7 +1289,7 @@ public Builder clearModel() { * */ public com.google.cloud.aiplatform.v1.Model.Builder getModelBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getModelFieldBuilder().getBuilder(); } @@ -1395,8 +1416,8 @@ public Builder setServiceAccount(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - serviceAccount_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1418,8 +1439,8 @@ public Builder setServiceAccount(java.lang.String value) { * @return This builder for chaining. */ public Builder clearServiceAccount() { - serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1446,8 +1467,8 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - serviceAccount_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelResponse.java index 2134bbd2279d..ead37feca1e7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelResponse.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MODEL_FIELD_NUMBER = 1; - private volatile java.lang.Object model_; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; /** * * @@ -122,7 +124,9 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int MODEL_VERSION_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object modelVersionId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelVersionId_ = ""; /** * * @@ -378,10 +382,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; model_ = ""; - modelVersionId_ = ""; - return this; } @@ -409,12 +412,23 @@ public com.google.cloud.aiplatform.v1.UploadModelResponse build() { public com.google.cloud.aiplatform.v1.UploadModelResponse buildPartial() { com.google.cloud.aiplatform.v1.UploadModelResponse result = new com.google.cloud.aiplatform.v1.UploadModelResponse(this); - result.model_ = model_; - result.modelVersionId_ = modelVersionId_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UploadModelResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.model_ = model_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelVersionId_ = modelVersionId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -463,10 +477,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.UploadModelResponse othe return this; if (!other.getModel().isEmpty()) { model_ = other.model_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getModelVersionId().isEmpty()) { modelVersionId_ = other.modelVersionId_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -498,13 +514,13 @@ public Builder mergeFrom( case 10: { model_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { modelVersionId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -524,6 +540,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object model_ = ""; /** * @@ -588,8 +606,8 @@ public Builder setModel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - model_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -606,8 +624,8 @@ public Builder setModel(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModel() { - model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -629,8 +647,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - model_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -696,8 +714,8 @@ public Builder setModelVersionId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelVersionId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -713,8 +731,8 @@ public Builder setModelVersionId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelVersionId() { - modelVersionId_ = getDefaultInstance().getModelVersionId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -735,8 +753,8 @@ public Builder setModelVersionIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelVersionId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpsertDatapointsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpsertDatapointsRequest.java index 7aea813b685e..a7043330ef3f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpsertDatapointsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpsertDatapointsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INDEX_FIELD_NUMBER = 1; - private volatile java.lang.Object index_; + + @SuppressWarnings("serial") + private volatile java.lang.Object index_ = ""; /** * * @@ -127,6 +129,8 @@ public com.google.protobuf.ByteString getIndexBytes() { } public static final int DATAPOINTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List datapoints_; /** * @@ -405,15 +409,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; index_ = ""; - if (datapointsBuilder_ == null) { datapoints_ = java.util.Collections.emptyList(); } else { datapoints_ = null; datapointsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -441,19 +445,32 @@ public com.google.cloud.aiplatform.v1.UpsertDatapointsRequest build() { public com.google.cloud.aiplatform.v1.UpsertDatapointsRequest buildPartial() { com.google.cloud.aiplatform.v1.UpsertDatapointsRequest result = new com.google.cloud.aiplatform.v1.UpsertDatapointsRequest(this); - int from_bitField0_ = bitField0_; - result.index_ = index_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.UpsertDatapointsRequest result) { if (datapointsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { datapoints_ = java.util.Collections.unmodifiableList(datapoints_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.datapoints_ = datapoints_; } else { result.datapoints_ = datapointsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.UpsertDatapointsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.index_ = index_; + } } @java.lang.Override @@ -504,13 +521,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.UpsertDatapointsRequest return this; if (!other.getIndex().isEmpty()) { index_ = other.index_; + bitField0_ |= 0x00000001; onChanged(); } if (datapointsBuilder_ == null) { if (!other.datapoints_.isEmpty()) { if (datapoints_.isEmpty()) { datapoints_ = other.datapoints_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDatapointsIsMutable(); datapoints_.addAll(other.datapoints_); @@ -523,7 +541,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.UpsertDatapointsRequest datapointsBuilder_.dispose(); datapointsBuilder_ = null; datapoints_ = other.datapoints_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); datapointsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDatapointsFieldBuilder() @@ -562,7 +580,7 @@ public Builder mergeFrom( case 10: { index_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -670,8 +688,8 @@ public Builder setIndex(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - index_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -691,8 +709,8 @@ public Builder setIndex(java.lang.String value) { * @return This builder for chaining. */ public Builder clearIndex() { - index_ = getDefaultInstance().getIndex(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -717,8 +735,8 @@ public Builder setIndexBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - index_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -727,10 +745,10 @@ public Builder setIndexBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureDatapointsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { datapoints_ = new java.util.ArrayList(datapoints_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -946,7 +964,7 @@ public Builder addAllDatapoints( public Builder clearDatapoints() { if (datapointsBuilder_ == null) { datapoints_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { datapointsBuilder_.clear(); @@ -1069,7 +1087,7 @@ public com.google.cloud.aiplatform.v1.IndexDatapoint.Builder addDatapointsBuilde com.google.cloud.aiplatform.v1.IndexDatapoint, com.google.cloud.aiplatform.v1.IndexDatapoint.Builder, com.google.cloud.aiplatform.v1.IndexDatapointOrBuilder>( - datapoints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + datapoints_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); datapoints_ = null; } return datapointsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UserActionReference.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UserActionReference.java index 7d98a2e5bc80..ba4f42747ad1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UserActionReference.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UserActionReference.java @@ -274,7 +274,9 @@ public com.google.protobuf.ByteString getDataLabelingJobBytes() { } public static final int METHOD_FIELD_NUMBER = 3; - private volatile java.lang.Object method_; + + @SuppressWarnings("serial") + private volatile java.lang.Object method_ = ""; /** * * @@ -557,8 +559,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; method_ = ""; - referenceCase_ = 0; reference_ = null; return this; @@ -588,18 +590,26 @@ public com.google.cloud.aiplatform.v1.UserActionReference build() { public com.google.cloud.aiplatform.v1.UserActionReference buildPartial() { com.google.cloud.aiplatform.v1.UserActionReference result = new com.google.cloud.aiplatform.v1.UserActionReference(this); - if (referenceCase_ == 1) { - result.reference_ = reference_; - } - if (referenceCase_ == 2) { - result.reference_ = reference_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.method_ = method_; - result.referenceCase_ = referenceCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.UserActionReference result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.method_ = method_; + } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.UserActionReference result) { + result.referenceCase_ = referenceCase_; + result.reference_ = this.reference_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -648,6 +658,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.UserActionReference othe return this; if (!other.getMethod().isEmpty()) { method_ = other.method_; + bitField0_ |= 0x00000004; onChanged(); } switch (other.getReferenceCase()) { @@ -713,7 +724,7 @@ public Builder mergeFrom( case 26: { method_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -747,6 +758,8 @@ public Builder clearReference() { return this; } + private int bitField0_; + /** * * @@ -1115,8 +1128,8 @@ public Builder setMethod(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - method_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1133,8 +1146,8 @@ public Builder setMethod(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMethod() { - method_ = getDefaultInstance().getMethod(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1156,8 +1169,8 @@ public Builder setMethodBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - method_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Value.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Value.java index c7ab70f621ee..0ca31bc93588 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Value.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Value.java @@ -497,6 +497,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; valueCase_ = 0; value_ = null; return this; @@ -525,20 +526,23 @@ public com.google.cloud.aiplatform.v1.Value build() { @java.lang.Override public com.google.cloud.aiplatform.v1.Value buildPartial() { com.google.cloud.aiplatform.v1.Value result = new com.google.cloud.aiplatform.v1.Value(this); - if (valueCase_ == 1) { - result.value_ = value_; - } - if (valueCase_ == 2) { - result.value_ = value_; + if (bitField0_ != 0) { + buildPartial0(result); } - if (valueCase_ == 3) { - result.value_ = value_; - } - result.valueCase_ = valueCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.Value result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.Value result) { + result.valueCase_ = valueCase_; + result.value_ = this.value_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -683,6 +687,8 @@ public Builder clearValue() { return this; } + private int bitField0_; + /** * * @@ -727,6 +733,7 @@ public long getIntValue() { * @return This builder for chaining. */ public Builder setIntValue(long value) { + valueCase_ = 1; value_ = value; onChanged(); @@ -796,6 +803,7 @@ public double getDoubleValue() { * @return This builder for chaining. */ public Builder setDoubleValue(double value) { + valueCase_ = 2; value_ = value; onChanged(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WorkerPoolSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WorkerPoolSpec.java index 820fc0d51180..09bbde40e0b1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WorkerPoolSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WorkerPoolSpec.java @@ -267,11 +267,13 @@ public com.google.cloud.aiplatform.v1.MachineSpec getMachineSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.MachineSpecOrBuilder getMachineSpecOrBuilder() { - return getMachineSpec(); + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1.MachineSpec.getDefaultInstance() + : machineSpec_; } public static final int REPLICA_COUNT_FIELD_NUMBER = 2; - private long replicaCount_; + private long replicaCount_ = 0L; /** * * @@ -289,6 +291,8 @@ public long getReplicaCount() { } public static final int NFS_MOUNTS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List nfsMounts_; /** * @@ -412,7 +416,9 @@ public com.google.cloud.aiplatform.v1.DiskSpec getDiskSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.DiskSpecOrBuilder getDiskSpecOrBuilder() { - return getDiskSpec(); + return diskSpec_ == null + ? com.google.cloud.aiplatform.v1.DiskSpec.getDefaultInstance() + : diskSpec_; } private byte memoizedIsInitialized = -1; @@ -690,31 +696,29 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (containerSpecBuilder_ != null) { containerSpecBuilder_.clear(); } if (pythonPackageSpecBuilder_ != null) { pythonPackageSpecBuilder_.clear(); } - if (machineSpecBuilder_ == null) { - machineSpec_ = null; - } else { - machineSpec_ = null; + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); machineSpecBuilder_ = null; } replicaCount_ = 0L; - if (nfsMountsBuilder_ == null) { nfsMounts_ = java.util.Collections.emptyList(); } else { nfsMounts_ = null; nfsMountsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (diskSpecBuilder_ == null) { - diskSpec_ = null; - } else { - diskSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + diskSpec_ = null; + if (diskSpecBuilder_ != null) { + diskSpecBuilder_.dispose(); diskSpecBuilder_ = null; } taskCase_ = 0; @@ -746,44 +750,50 @@ public com.google.cloud.aiplatform.v1.WorkerPoolSpec build() { public com.google.cloud.aiplatform.v1.WorkerPoolSpec buildPartial() { com.google.cloud.aiplatform.v1.WorkerPoolSpec result = new com.google.cloud.aiplatform.v1.WorkerPoolSpec(this); - int from_bitField0_ = bitField0_; - if (taskCase_ == 6) { - if (containerSpecBuilder_ == null) { - result.task_ = task_; - } else { - result.task_ = containerSpecBuilder_.build(); - } - } - if (taskCase_ == 7) { - if (pythonPackageSpecBuilder_ == null) { - result.task_ = task_; - } else { - result.task_ = pythonPackageSpecBuilder_.build(); - } - } - if (machineSpecBuilder_ == null) { - result.machineSpec_ = machineSpec_; - } else { - result.machineSpec_ = machineSpecBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.replicaCount_ = replicaCount_; + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.WorkerPoolSpec result) { if (nfsMountsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { nfsMounts_ = java.util.Collections.unmodifiableList(nfsMounts_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } result.nfsMounts_ = nfsMounts_; } else { result.nfsMounts_ = nfsMountsBuilder_.build(); } - if (diskSpecBuilder_ == null) { - result.diskSpec_ = diskSpec_; - } else { - result.diskSpec_ = diskSpecBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.WorkerPoolSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.machineSpec_ = + machineSpecBuilder_ == null ? machineSpec_ : machineSpecBuilder_.build(); } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.replicaCount_ = replicaCount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.diskSpec_ = diskSpecBuilder_ == null ? diskSpec_ : diskSpecBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.WorkerPoolSpec result) { result.taskCase_ = taskCase_; - onBuilt(); - return result; + result.task_ = this.task_; + if (taskCase_ == 6 && containerSpecBuilder_ != null) { + result.task_ = containerSpecBuilder_.build(); + } + if (taskCase_ == 7 && pythonPackageSpecBuilder_ != null) { + result.task_ = pythonPackageSpecBuilder_.build(); + } } @java.lang.Override @@ -841,7 +851,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.WorkerPoolSpec other) { if (!other.nfsMounts_.isEmpty()) { if (nfsMounts_.isEmpty()) { nfsMounts_ = other.nfsMounts_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureNfsMountsIsMutable(); nfsMounts_.addAll(other.nfsMounts_); @@ -854,7 +864,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.WorkerPoolSpec other) { nfsMountsBuilder_.dispose(); nfsMountsBuilder_ = null; nfsMounts_ = other.nfsMounts_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); nfsMountsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNfsMountsFieldBuilder() @@ -912,13 +922,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getMachineSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 10 case 16: { replicaCount_ = input.readInt64(); - + bitField0_ |= 0x00000008; break; } // case 16 case 34: @@ -937,7 +947,7 @@ public Builder mergeFrom( case 42: { input.readMessage(getDiskSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 42 case 50: @@ -1192,7 +1202,6 @@ public com.google.cloud.aiplatform.v1.ContainerSpecOrBuilder getContainerSpecOrB } taskCase_ = 6; onChanged(); - ; return containerSpecBuilder_; } @@ -1403,7 +1412,6 @@ public com.google.cloud.aiplatform.v1.PythonPackageSpec.Builder getPythonPackage } taskCase_ = 7; onChanged(); - ; return pythonPackageSpecBuilder_; } @@ -1427,7 +1435,7 @@ public com.google.cloud.aiplatform.v1.PythonPackageSpec.Builder getPythonPackage * @return Whether the machineSpec field is set. */ public boolean hasMachineSpec() { - return machineSpecBuilder_ != null || machineSpec_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1468,11 +1476,11 @@ public Builder setMachineSpec(com.google.cloud.aiplatform.v1.MachineSpec value) throw new NullPointerException(); } machineSpec_ = value; - onChanged(); } else { machineSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1490,11 +1498,11 @@ public Builder setMachineSpec( com.google.cloud.aiplatform.v1.MachineSpec.Builder builderForValue) { if (machineSpecBuilder_ == null) { machineSpec_ = builderForValue.build(); - onChanged(); } else { machineSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1510,19 +1518,18 @@ public Builder setMachineSpec( */ public Builder mergeMachineSpec(com.google.cloud.aiplatform.v1.MachineSpec value) { if (machineSpecBuilder_ == null) { - if (machineSpec_ != null) { - machineSpec_ = - com.google.cloud.aiplatform.v1.MachineSpec.newBuilder(machineSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && machineSpec_ != null + && machineSpec_ != com.google.cloud.aiplatform.v1.MachineSpec.getDefaultInstance()) { + getMachineSpecBuilder().mergeFrom(value); } else { machineSpec_ = value; } - onChanged(); } else { machineSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1537,14 +1544,13 @@ public Builder mergeMachineSpec(com.google.cloud.aiplatform.v1.MachineSpec value * */ public Builder clearMachineSpec() { - if (machineSpecBuilder_ == null) { - machineSpec_ = null; - onChanged(); - } else { - machineSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); machineSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -1559,7 +1565,7 @@ public Builder clearMachineSpec() { * */ public com.google.cloud.aiplatform.v1.MachineSpec.Builder getMachineSpecBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getMachineSpecFieldBuilder().getBuilder(); } @@ -1642,6 +1648,7 @@ public long getReplicaCount() { public Builder setReplicaCount(long value) { replicaCount_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1657,7 +1664,7 @@ public Builder setReplicaCount(long value) { * @return This builder for chaining. */ public Builder clearReplicaCount() { - + bitField0_ = (bitField0_ & ~0x00000008); replicaCount_ = 0L; onChanged(); return this; @@ -1667,9 +1674,9 @@ public Builder clearReplicaCount() { java.util.Collections.emptyList(); private void ensureNfsMountsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { nfsMounts_ = new java.util.ArrayList(nfsMounts_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000010; } } @@ -1906,7 +1913,7 @@ public Builder addAllNfsMounts( public Builder clearNfsMounts() { if (nfsMountsBuilder_ == null) { nfsMounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { nfsMountsBuilder_.clear(); @@ -2042,7 +2049,7 @@ public com.google.cloud.aiplatform.v1.NfsMount.Builder addNfsMountsBuilder(int i com.google.cloud.aiplatform.v1.NfsMount, com.google.cloud.aiplatform.v1.NfsMount.Builder, com.google.cloud.aiplatform.v1.NfsMountOrBuilder>( - nfsMounts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + nfsMounts_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); nfsMounts_ = null; } return nfsMountsBuilder_; @@ -2066,7 +2073,7 @@ public com.google.cloud.aiplatform.v1.NfsMount.Builder addNfsMountsBuilder(int i * @return Whether the diskSpec field is set. */ public boolean hasDiskSpec() { - return diskSpecBuilder_ != null || diskSpec_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2103,11 +2110,11 @@ public Builder setDiskSpec(com.google.cloud.aiplatform.v1.DiskSpec value) { throw new NullPointerException(); } diskSpec_ = value; - onChanged(); } else { diskSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2122,11 +2129,11 @@ public Builder setDiskSpec(com.google.cloud.aiplatform.v1.DiskSpec value) { public Builder setDiskSpec(com.google.cloud.aiplatform.v1.DiskSpec.Builder builderForValue) { if (diskSpecBuilder_ == null) { diskSpec_ = builderForValue.build(); - onChanged(); } else { diskSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2140,19 +2147,18 @@ public Builder setDiskSpec(com.google.cloud.aiplatform.v1.DiskSpec.Builder build */ public Builder mergeDiskSpec(com.google.cloud.aiplatform.v1.DiskSpec value) { if (diskSpecBuilder_ == null) { - if (diskSpec_ != null) { - diskSpec_ = - com.google.cloud.aiplatform.v1.DiskSpec.newBuilder(diskSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && diskSpec_ != null + && diskSpec_ != com.google.cloud.aiplatform.v1.DiskSpec.getDefaultInstance()) { + getDiskSpecBuilder().mergeFrom(value); } else { diskSpec_ = value; } - onChanged(); } else { diskSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2165,14 +2171,13 @@ public Builder mergeDiskSpec(com.google.cloud.aiplatform.v1.DiskSpec value) { * .google.cloud.aiplatform.v1.DiskSpec disk_spec = 5; */ public Builder clearDiskSpec() { - if (diskSpecBuilder_ == null) { - diskSpec_ = null; - onChanged(); - } else { - diskSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + diskSpec_ = null; + if (diskSpecBuilder_ != null) { + diskSpecBuilder_.dispose(); diskSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -2185,7 +2190,7 @@ public Builder clearDiskSpec() { * .google.cloud.aiplatform.v1.DiskSpec disk_spec = 5; */ public com.google.cloud.aiplatform.v1.DiskSpec.Builder getDiskSpecBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getDiskSpecFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesPayload.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesPayload.java index f665d1095187..ccf93f24b684 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesPayload.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesPayload.java @@ -79,7 +79,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int ENTITY_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object entityId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityId_ = ""; /** * * @@ -143,6 +145,7 @@ private static final class FeatureValuesDefaultEntryHolder { com.google.cloud.aiplatform.v1.FeatureValue.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1.FeatureValue> featureValues_; @@ -222,8 +225,10 @@ public boolean containsFeatureValues(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.FeatureValue getFeatureValuesOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1.FeatureValue defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1.FeatureValue getFeatureValuesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.FeatureValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -494,8 +499,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; entityId_ = ""; - internalGetMutableFeatureValues().clear(); return this; } @@ -524,14 +529,24 @@ public com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload build() { public com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload buildPartial() { com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload result = new com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload(this); - int from_bitField0_ = bitField0_; - result.entityId_ = entityId_; - result.featureValues_ = internalGetFeatureValues(); - result.featureValues_.makeImmutable(); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityId_ = entityId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.featureValues_ = internalGetFeatureValues(); + result.featureValues_.makeImmutable(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -580,9 +595,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.WriteFeatureValuesPayloa return this; if (!other.getEntityId().isEmpty()) { entityId_ = other.entityId_; + bitField0_ |= 0x00000001; onChanged(); } internalGetMutableFeatureValues().mergeFrom(other.internalGetFeatureValues()); + bitField0_ |= 0x00000002; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -612,7 +629,7 @@ public Builder mergeFrom( case 10: { entityId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -626,6 +643,7 @@ public Builder mergeFrom( internalGetMutableFeatureValues() .getMutableMap() .put(featureValues__.getKey(), featureValues__.getValue()); + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -708,8 +726,8 @@ public Builder setEntityId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -725,8 +743,8 @@ public Builder setEntityId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityId() { - entityId_ = getDefaultInstance().getEntityId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -747,8 +765,8 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -770,8 +788,6 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1.FeatureValue> internalGetMutableFeatureValues() { - onChanged(); - ; if (featureValues_ == null) { featureValues_ = com.google.protobuf.MapField.newMapField(FeatureValuesDefaultEntryHolder.defaultEntry); @@ -779,6 +795,8 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { if (!featureValues_.isMutable()) { featureValues_ = featureValues_.copy(); } + bitField0_ |= 0x00000002; + onChanged(); return featureValues_; } @@ -847,8 +865,10 @@ public boolean containsFeatureValues(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.FeatureValue getFeatureValuesOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1.FeatureValue defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1.FeatureValue getFeatureValuesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.FeatureValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -885,6 +905,7 @@ public com.google.cloud.aiplatform.v1.FeatureValue getFeatureValuesOrThrow( } public Builder clearFeatureValues() { + bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableFeatureValues().getMutableMap().clear(); return this; } @@ -913,6 +934,7 @@ public Builder removeFeatureValues(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableFeatureValues() { + bitField0_ |= 0x00000002; return internalGetMutableFeatureValues().getMutableMap(); } /** @@ -937,8 +959,8 @@ public Builder putFeatureValues( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableFeatureValues().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; return this; } /** @@ -958,6 +980,7 @@ public Builder putFeatureValues( public Builder putAllFeatureValues( java.util.Map values) { internalGetMutableFeatureValues().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesPayloadOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesPayloadOrBuilder.java index a7f24e90c81e..92817203365c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesPayloadOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesPayloadOrBuilder.java @@ -111,7 +111,6 @@ public interface WriteFeatureValuesPayloadOrBuilder * map<string, .google.cloud.aiplatform.v1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED]; * */ - /* nullable */ com.google.cloud.aiplatform.v1.FeatureValue getFeatureValuesOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesRequest.java index 30a273de6afb..490ced02ad0d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENTITY_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object entityType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityType_ = ""; /** * * @@ -133,6 +135,8 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { } public static final int PAYLOADS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List payloads_; /** * @@ -428,15 +432,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; entityType_ = ""; - if (payloadsBuilder_ == null) { payloads_ = java.util.Collections.emptyList(); } else { payloads_ = null; payloadsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -464,19 +468,32 @@ public com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest build() { public com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest buildPartial() { com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest result = new com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest(this); - int from_bitField0_ = bitField0_; - result.entityType_ = entityType_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest result) { if (payloadsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { payloads_ = java.util.Collections.unmodifiableList(payloads_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.payloads_ = payloads_; } else { result.payloads_ = payloadsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityType_ = entityType_; + } } @java.lang.Override @@ -527,13 +544,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.WriteFeatureValuesReques return this; if (!other.getEntityType().isEmpty()) { entityType_ = other.entityType_; + bitField0_ |= 0x00000001; onChanged(); } if (payloadsBuilder_ == null) { if (!other.payloads_.isEmpty()) { if (payloads_.isEmpty()) { payloads_ = other.payloads_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePayloadsIsMutable(); payloads_.addAll(other.payloads_); @@ -546,7 +564,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.WriteFeatureValuesReques payloadsBuilder_.dispose(); payloadsBuilder_ = null; payloads_ = other.payloads_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); payloadsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPayloadsFieldBuilder() @@ -585,7 +603,7 @@ public Builder mergeFrom( case 10: { entityType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -703,8 +721,8 @@ public Builder setEntityType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -727,8 +745,8 @@ public Builder setEntityType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityType() { - entityType_ = getDefaultInstance().getEntityType(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -756,8 +774,8 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -766,11 +784,11 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensurePayloadsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { payloads_ = new java.util.ArrayList( payloads_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1025,7 +1043,7 @@ public Builder addAllPayloads( public Builder clearPayloads() { if (payloadsBuilder_ == null) { payloads_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { payloadsBuilder_.clear(); @@ -1174,7 +1192,7 @@ public com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.Builder addPaylo com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload, com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.Builder, com.google.cloud.aiplatform.v1.WriteFeatureValuesPayloadOrBuilder>( - payloads_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + payloads_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); payloads_ = null; } return payloadsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardExperimentDataRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardExperimentDataRequest.java index fa7bde8eb815..e4fc529b1081 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardExperimentDataRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardExperimentDataRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_EXPERIMENT_FIELD_NUMBER = 1; - private volatile java.lang.Object tensorboardExperiment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboardExperiment_ = ""; /** * * @@ -129,6 +131,8 @@ public com.google.protobuf.ByteString getTensorboardExperimentBytes() { } public static final int WRITE_RUN_DATA_REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List writeRunDataRequests_; /** @@ -425,15 +429,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; tensorboardExperiment_ = ""; - if (writeRunDataRequestsBuilder_ == null) { writeRunDataRequests_ = java.util.Collections.emptyList(); } else { writeRunDataRequests_ = null; writeRunDataRequestsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -463,19 +467,33 @@ public com.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest buil public com.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest buildPartial() { com.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest result = new com.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest(this); - int from_bitField0_ = bitField0_; - result.tensorboardExperiment_ = tensorboardExperiment_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest result) { if (writeRunDataRequestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { writeRunDataRequests_ = java.util.Collections.unmodifiableList(writeRunDataRequests_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.writeRunDataRequests_ = writeRunDataRequests_; } else { result.writeRunDataRequests_ = writeRunDataRequestsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tensorboardExperiment_ = tensorboardExperiment_; + } } @java.lang.Override @@ -529,13 +547,14 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getTensorboardExperiment().isEmpty()) { tensorboardExperiment_ = other.tensorboardExperiment_; + bitField0_ |= 0x00000001; onChanged(); } if (writeRunDataRequestsBuilder_ == null) { if (!other.writeRunDataRequests_.isEmpty()) { if (writeRunDataRequests_.isEmpty()) { writeRunDataRequests_ = other.writeRunDataRequests_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureWriteRunDataRequestsIsMutable(); writeRunDataRequests_.addAll(other.writeRunDataRequests_); @@ -548,7 +567,7 @@ public Builder mergeFrom( writeRunDataRequestsBuilder_.dispose(); writeRunDataRequestsBuilder_ = null; writeRunDataRequests_ = other.writeRunDataRequests_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); writeRunDataRequestsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWriteRunDataRequestsFieldBuilder() @@ -587,7 +606,7 @@ public Builder mergeFrom( case 10: { tensorboardExperiment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -696,8 +715,8 @@ public Builder setTensorboardExperiment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboardExperiment_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -717,8 +736,8 @@ public Builder setTensorboardExperiment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboardExperiment() { - tensorboardExperiment_ = getDefaultInstance().getTensorboardExperiment(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -743,8 +762,8 @@ public Builder setTensorboardExperimentBytes(com.google.protobuf.ByteString valu throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboardExperiment_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -753,11 +772,11 @@ public Builder setTensorboardExperimentBytes(com.google.protobuf.ByteString valu writeRunDataRequests_ = java.util.Collections.emptyList(); private void ensureWriteRunDataRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { writeRunDataRequests_ = new java.util.ArrayList( writeRunDataRequests_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1003,7 +1022,7 @@ public Builder addAllWriteRunDataRequests( public Builder clearWriteRunDataRequests() { if (writeRunDataRequestsBuilder_ == null) { writeRunDataRequests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { writeRunDataRequestsBuilder_.clear(); @@ -1148,7 +1167,7 @@ public Builder removeWriteRunDataRequests(int index) { com.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest.Builder, com.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequestOrBuilder>( writeRunDataRequests_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); writeRunDataRequests_ = null; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardRunDataRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardRunDataRequest.java index 572a8216c87c..afa8e515948e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardRunDataRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteTensorboardRunDataRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_RUN_FIELD_NUMBER = 1; - private volatile java.lang.Object tensorboardRun_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboardRun_ = ""; /** * * @@ -128,6 +130,8 @@ public com.google.protobuf.ByteString getTensorboardRunBytes() { } public static final int TIME_SERIES_DATA_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List timeSeriesData_; /** * @@ -437,15 +441,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; tensorboardRun_ = ""; - if (timeSeriesDataBuilder_ == null) { timeSeriesData_ = java.util.Collections.emptyList(); } else { timeSeriesData_ = null; timeSeriesDataBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -474,19 +478,33 @@ public com.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest build() { public com.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest buildPartial() { com.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest result = new com.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest(this); - int from_bitField0_ = bitField0_; - result.tensorboardRun_ = tensorboardRun_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest result) { if (timeSeriesDataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { timeSeriesData_ = java.util.Collections.unmodifiableList(timeSeriesData_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.timeSeriesData_ = timeSeriesData_; } else { result.timeSeriesData_ = timeSeriesDataBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tensorboardRun_ = tensorboardRun_; + } } @java.lang.Override @@ -538,13 +556,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.WriteTensorboardRunDataR return this; if (!other.getTensorboardRun().isEmpty()) { tensorboardRun_ = other.tensorboardRun_; + bitField0_ |= 0x00000001; onChanged(); } if (timeSeriesDataBuilder_ == null) { if (!other.timeSeriesData_.isEmpty()) { if (timeSeriesData_.isEmpty()) { timeSeriesData_ = other.timeSeriesData_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTimeSeriesDataIsMutable(); timeSeriesData_.addAll(other.timeSeriesData_); @@ -557,7 +576,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.WriteTensorboardRunDataR timeSeriesDataBuilder_.dispose(); timeSeriesDataBuilder_ = null; timeSeriesData_ = other.timeSeriesData_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); timeSeriesDataBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTimeSeriesDataFieldBuilder() @@ -596,7 +615,7 @@ public Builder mergeFrom( case 10: { tensorboardRun_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -704,8 +723,8 @@ public Builder setTensorboardRun(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboardRun_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -725,8 +744,8 @@ public Builder setTensorboardRun(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboardRun() { - tensorboardRun_ = getDefaultInstance().getTensorboardRun(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -751,8 +770,8 @@ public Builder setTensorboardRunBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboardRun_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -761,10 +780,10 @@ public Builder setTensorboardRunBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureTimeSeriesDataIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { timeSeriesData_ = new java.util.ArrayList(timeSeriesData_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1048,7 +1067,7 @@ public Builder addAllTimeSeriesData( public Builder clearTimeSeriesData() { if (timeSeriesDataBuilder_ == null) { timeSeriesData_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { timeSeriesDataBuilder_.clear(); @@ -1216,7 +1235,7 @@ public com.google.cloud.aiplatform.v1.TimeSeriesData.Builder addTimeSeriesDataBu com.google.cloud.aiplatform.v1.TimeSeriesData.Builder, com.google.cloud.aiplatform.v1.TimeSeriesDataOrBuilder>( timeSeriesData_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); timeSeriesData_ = null; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/XraiAttribution.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/XraiAttribution.java index 89540435bf3e..0a45ea1e23fd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/XraiAttribution.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/XraiAttribution.java @@ -70,7 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int STEP_COUNT_FIELD_NUMBER = 1; - private int stepCount_; + private int stepCount_ = 0; /** * * @@ -147,7 +147,9 @@ public com.google.cloud.aiplatform.v1.SmoothGradConfig getSmoothGradConfig() { */ @java.lang.Override public com.google.cloud.aiplatform.v1.SmoothGradConfigOrBuilder getSmoothGradConfigOrBuilder() { - return getSmoothGradConfig(); + return smoothGradConfig_ == null + ? com.google.cloud.aiplatform.v1.SmoothGradConfig.getDefaultInstance() + : smoothGradConfig_; } public static final int BLUR_BASELINE_CONFIG_FIELD_NUMBER = 3; @@ -208,7 +210,9 @@ public com.google.cloud.aiplatform.v1.BlurBaselineConfig getBlurBaselineConfig() @java.lang.Override public com.google.cloud.aiplatform.v1.BlurBaselineConfigOrBuilder getBlurBaselineConfigOrBuilder() { - return getBlurBaselineConfig(); + return blurBaselineConfig_ == null + ? com.google.cloud.aiplatform.v1.BlurBaselineConfig.getDefaultInstance() + : blurBaselineConfig_; } private byte memoizedIsInitialized = -1; @@ -440,18 +444,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; stepCount_ = 0; - - if (smoothGradConfigBuilder_ == null) { - smoothGradConfig_ = null; - } else { - smoothGradConfig_ = null; + smoothGradConfig_ = null; + if (smoothGradConfigBuilder_ != null) { + smoothGradConfigBuilder_.dispose(); smoothGradConfigBuilder_ = null; } - if (blurBaselineConfigBuilder_ == null) { - blurBaselineConfig_ = null; - } else { - blurBaselineConfig_ = null; + blurBaselineConfig_ = null; + if (blurBaselineConfigBuilder_ != null) { + blurBaselineConfigBuilder_.dispose(); blurBaselineConfigBuilder_ = null; } return this; @@ -481,21 +483,30 @@ public com.google.cloud.aiplatform.v1.XraiAttribution build() { public com.google.cloud.aiplatform.v1.XraiAttribution buildPartial() { com.google.cloud.aiplatform.v1.XraiAttribution result = new com.google.cloud.aiplatform.v1.XraiAttribution(this); - result.stepCount_ = stepCount_; - if (smoothGradConfigBuilder_ == null) { - result.smoothGradConfig_ = smoothGradConfig_; - } else { - result.smoothGradConfig_ = smoothGradConfigBuilder_.build(); - } - if (blurBaselineConfigBuilder_ == null) { - result.blurBaselineConfig_ = blurBaselineConfig_; - } else { - result.blurBaselineConfig_ = blurBaselineConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1.XraiAttribution result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.stepCount_ = stepCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.smoothGradConfig_ = + smoothGradConfigBuilder_ == null ? smoothGradConfig_ : smoothGradConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.blurBaselineConfig_ = + blurBaselineConfigBuilder_ == null + ? blurBaselineConfig_ + : blurBaselineConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -579,21 +590,21 @@ public Builder mergeFrom( case 8: { stepCount_ = input.readInt32(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getSmoothGradConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getBlurBaselineConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -613,6 +624,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int stepCount_; /** * @@ -650,6 +663,7 @@ public int getStepCount() { public Builder setStepCount(int value) { stepCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -668,7 +682,7 @@ public Builder setStepCount(int value) { * @return This builder for chaining. */ public Builder clearStepCount() { - + bitField0_ = (bitField0_ & ~0x00000001); stepCount_ = 0; onChanged(); return this; @@ -696,7 +710,7 @@ public Builder clearStepCount() { * @return Whether the smoothGradConfig field is set. */ public boolean hasSmoothGradConfig() { - return smoothGradConfigBuilder_ != null || smoothGradConfig_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -741,11 +755,11 @@ public Builder setSmoothGradConfig(com.google.cloud.aiplatform.v1.SmoothGradConf throw new NullPointerException(); } smoothGradConfig_ = value; - onChanged(); } else { smoothGradConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -765,11 +779,11 @@ public Builder setSmoothGradConfig( com.google.cloud.aiplatform.v1.SmoothGradConfig.Builder builderForValue) { if (smoothGradConfigBuilder_ == null) { smoothGradConfig_ = builderForValue.build(); - onChanged(); } else { smoothGradConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -787,19 +801,19 @@ public Builder setSmoothGradConfig( */ public Builder mergeSmoothGradConfig(com.google.cloud.aiplatform.v1.SmoothGradConfig value) { if (smoothGradConfigBuilder_ == null) { - if (smoothGradConfig_ != null) { - smoothGradConfig_ = - com.google.cloud.aiplatform.v1.SmoothGradConfig.newBuilder(smoothGradConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && smoothGradConfig_ != null + && smoothGradConfig_ + != com.google.cloud.aiplatform.v1.SmoothGradConfig.getDefaultInstance()) { + getSmoothGradConfigBuilder().mergeFrom(value); } else { smoothGradConfig_ = value; } - onChanged(); } else { smoothGradConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -816,14 +830,13 @@ public Builder mergeSmoothGradConfig(com.google.cloud.aiplatform.v1.SmoothGradCo * .google.cloud.aiplatform.v1.SmoothGradConfig smooth_grad_config = 2; */ public Builder clearSmoothGradConfig() { - if (smoothGradConfigBuilder_ == null) { - smoothGradConfig_ = null; - onChanged(); - } else { - smoothGradConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + smoothGradConfig_ = null; + if (smoothGradConfigBuilder_ != null) { + smoothGradConfigBuilder_.dispose(); smoothGradConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -840,7 +853,7 @@ public Builder clearSmoothGradConfig() { * .google.cloud.aiplatform.v1.SmoothGradConfig smooth_grad_config = 2; */ public com.google.cloud.aiplatform.v1.SmoothGradConfig.Builder getSmoothGradConfigBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getSmoothGradConfigFieldBuilder().getBuilder(); } @@ -918,7 +931,7 @@ public com.google.cloud.aiplatform.v1.SmoothGradConfigOrBuilder getSmoothGradCon * @return Whether the blurBaselineConfig field is set. */ public boolean hasBlurBaselineConfig() { - return blurBaselineConfigBuilder_ != null || blurBaselineConfig_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -963,11 +976,11 @@ public Builder setBlurBaselineConfig(com.google.cloud.aiplatform.v1.BlurBaseline throw new NullPointerException(); } blurBaselineConfig_ = value; - onChanged(); } else { blurBaselineConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -987,11 +1000,11 @@ public Builder setBlurBaselineConfig( com.google.cloud.aiplatform.v1.BlurBaselineConfig.Builder builderForValue) { if (blurBaselineConfigBuilder_ == null) { blurBaselineConfig_ = builderForValue.build(); - onChanged(); } else { blurBaselineConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1010,19 +1023,19 @@ public Builder setBlurBaselineConfig( public Builder mergeBlurBaselineConfig( com.google.cloud.aiplatform.v1.BlurBaselineConfig value) { if (blurBaselineConfigBuilder_ == null) { - if (blurBaselineConfig_ != null) { - blurBaselineConfig_ = - com.google.cloud.aiplatform.v1.BlurBaselineConfig.newBuilder(blurBaselineConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && blurBaselineConfig_ != null + && blurBaselineConfig_ + != com.google.cloud.aiplatform.v1.BlurBaselineConfig.getDefaultInstance()) { + getBlurBaselineConfigBuilder().mergeFrom(value); } else { blurBaselineConfig_ = value; } - onChanged(); } else { blurBaselineConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1039,14 +1052,13 @@ public Builder mergeBlurBaselineConfig( * .google.cloud.aiplatform.v1.BlurBaselineConfig blur_baseline_config = 3; */ public Builder clearBlurBaselineConfig() { - if (blurBaselineConfigBuilder_ == null) { - blurBaselineConfig_ = null; - onChanged(); - } else { - blurBaselineConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + blurBaselineConfig_ = null; + if (blurBaselineConfigBuilder_ != null) { + blurBaselineConfigBuilder_.dispose(); blurBaselineConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1064,7 +1076,7 @@ public Builder clearBlurBaselineConfig() { */ public com.google.cloud.aiplatform.v1.BlurBaselineConfig.Builder getBlurBaselineConfigBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getBlurBaselineConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageClassificationPredictionInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageClassificationPredictionInstance.java index 7064fdd8314b..765b6ef99198 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageClassificationPredictionInstance.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageClassificationPredictionInstance.java @@ -76,7 +76,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object content_; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; /** * * @@ -125,7 +127,9 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object mimeType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; /** * * @@ -428,10 +432,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; content_ = ""; - mimeType_ = ""; - return this; } @@ -470,12 +473,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.instance .ImageClassificationPredictionInstance(this); - result.content_ = content_; - result.mimeType_ = mimeType_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mimeType_ = mimeType_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -533,10 +549,12 @@ public Builder mergeFrom( .ImageClassificationPredictionInstance.getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -568,13 +586,13 @@ public Builder mergeFrom( case 10: { content_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { mimeType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -594,6 +612,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object content_ = ""; /** * @@ -655,8 +675,8 @@ public Builder setContent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -672,8 +692,8 @@ public Builder setContent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContent() { - content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -694,8 +714,8 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -785,8 +805,8 @@ public Builder setMimeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -810,8 +830,8 @@ public Builder setMimeType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMimeType() { - mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -840,8 +860,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java index 33b6e4f98be6..be94ceb07acc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java @@ -76,7 +76,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object content_; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; /** * * @@ -125,7 +127,9 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object mimeType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; /** * * @@ -428,10 +432,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; content_ = ""; - mimeType_ = ""; - return this; } @@ -470,12 +473,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.instance .ImageObjectDetectionPredictionInstance(this); - result.content_ = content_; - result.mimeType_ = mimeType_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.instance + .ImageObjectDetectionPredictionInstance + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mimeType_ = mimeType_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -534,10 +551,12 @@ public Builder mergeFrom( .ImageObjectDetectionPredictionInstance.getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -569,13 +588,13 @@ public Builder mergeFrom( case 10: { content_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { mimeType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -595,6 +614,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object content_ = ""; /** * @@ -656,8 +677,8 @@ public Builder setContent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -673,8 +694,8 @@ public Builder setContent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContent() { - content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -695,8 +716,8 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -786,8 +807,8 @@ public Builder setMimeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -811,8 +832,8 @@ public Builder setMimeType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMimeType() { - mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -841,8 +862,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageSegmentationPredictionInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageSegmentationPredictionInstance.java index 104c0e8a0970..7c5a1b2ad866 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageSegmentationPredictionInstance.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageSegmentationPredictionInstance.java @@ -76,7 +76,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object content_; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; /** * * @@ -125,7 +127,9 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object mimeType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; /** * * @@ -418,10 +422,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; content_ = ""; - mimeType_ = ""; - return this; } @@ -460,12 +463,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.instance .ImageSegmentationPredictionInstance(this); - result.content_ = content_; - result.mimeType_ = mimeType_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mimeType_ = mimeType_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -523,10 +539,12 @@ public Builder mergeFrom( .ImageSegmentationPredictionInstance.getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -558,13 +576,13 @@ public Builder mergeFrom( case 10: { content_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { mimeType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -584,6 +602,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object content_ = ""; /** * @@ -645,8 +665,8 @@ public Builder setContent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -662,8 +682,8 @@ public Builder setContent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContent() { - content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -684,8 +704,8 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -760,8 +780,8 @@ public Builder setMimeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -780,8 +800,8 @@ public Builder setMimeType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMimeType() { - mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -805,8 +825,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextClassificationPredictionInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextClassificationPredictionInstance.java index 88ffb6a380b7..ed98dbad7522 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextClassificationPredictionInstance.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextClassificationPredictionInstance.java @@ -76,7 +76,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object content_; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; /** * * @@ -125,7 +127,9 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object mimeType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; /** * * @@ -416,10 +420,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; content_ = ""; - mimeType_ = ""; - return this; } @@ -458,12 +461,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.instance .TextClassificationPredictionInstance(this); - result.content_ = content_; - result.mimeType_ = mimeType_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mimeType_ = mimeType_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -521,10 +537,12 @@ public Builder mergeFrom( .TextClassificationPredictionInstance.getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -556,13 +574,13 @@ public Builder mergeFrom( case 10: { content_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { mimeType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -582,6 +600,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object content_ = ""; /** * @@ -643,8 +663,8 @@ public Builder setContent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -660,8 +680,8 @@ public Builder setContent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContent() { - content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -682,8 +702,8 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -755,8 +775,8 @@ public Builder setMimeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -774,8 +794,8 @@ public Builder setMimeType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMimeType() { - mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -798,8 +818,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextExtractionPredictionInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextExtractionPredictionInstance.java index 84e2e716aeba..3c97378c6b4e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextExtractionPredictionInstance.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextExtractionPredictionInstance.java @@ -76,7 +76,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object content_; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; /** * * @@ -125,7 +127,9 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object mimeType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; /** * * @@ -178,7 +182,9 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } public static final int KEY_FIELD_NUMBER = 3; - private volatile java.lang.Object key_; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; /** * * @@ -479,12 +485,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; content_ = ""; - mimeType_ = ""; - key_ = ""; - return this; } @@ -520,13 +524,28 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.instance .TextExtractionPredictionInstance(this); - result.content_ = content_; - result.mimeType_ = mimeType_; - result.key_ = key_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mimeType_ = mimeType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.key_ = key_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -583,14 +602,17 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getKey().isEmpty()) { key_ = other.key_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -622,19 +644,19 @@ public Builder mergeFrom( case 10: { content_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { mimeType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { key_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -654,6 +676,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object content_ = ""; /** * @@ -715,8 +739,8 @@ public Builder setContent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -732,8 +756,8 @@ public Builder setContent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContent() { - content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -754,8 +778,8 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -827,8 +851,8 @@ public Builder setMimeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -846,8 +870,8 @@ public Builder setMimeType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMimeType() { - mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -870,8 +894,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -949,8 +973,8 @@ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - key_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -970,8 +994,8 @@ public Builder setKey(java.lang.String value) { * @return This builder for chaining. */ public Builder clearKey() { - key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -996,8 +1020,8 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - key_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextSentimentPredictionInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextSentimentPredictionInstance.java index 0ace608fd788..dccf8536abaf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextSentimentPredictionInstance.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextSentimentPredictionInstance.java @@ -75,7 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object content_; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; /** * * @@ -124,7 +126,9 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object mimeType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; /** * * @@ -412,10 +416,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; content_ = ""; - mimeType_ = ""; - return this; } @@ -451,12 +454,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.instance .TextSentimentPredictionInstance(this); - result.content_ = content_; - result.mimeType_ = mimeType_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mimeType_ = mimeType_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -512,10 +528,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -547,13 +565,13 @@ public Builder mergeFrom( case 10: { content_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { mimeType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -573,6 +591,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object content_ = ""; /** * @@ -634,8 +654,8 @@ public Builder setContent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -651,8 +671,8 @@ public Builder setContent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContent() { - content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -673,8 +693,8 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -746,8 +766,8 @@ public Builder setMimeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -765,8 +785,8 @@ public Builder setMimeType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMimeType() { - mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -789,8 +809,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoActionRecognitionPredictionInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoActionRecognitionPredictionInstance.java index b37205c42e79..4ca195ee4d49 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoActionRecognitionPredictionInstance.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoActionRecognitionPredictionInstance.java @@ -78,7 +78,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object content_; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object mimeType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; /** * * @@ -180,7 +184,9 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } public static final int TIME_SEGMENT_START_FIELD_NUMBER = 3; - private volatile java.lang.Object timeSegmentStart_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeSegmentStart_ = ""; /** * * @@ -235,7 +241,9 @@ public com.google.protobuf.ByteString getTimeSegmentStartBytes() { } public static final int TIME_SEGMENT_END_FIELD_NUMBER = 4; - private volatile java.lang.Object timeSegmentEnd_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeSegmentEnd_ = ""; /** * * @@ -549,14 +557,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; content_ = ""; - mimeType_ = ""; - timeSegmentStart_ = ""; - timeSegmentEnd_ = ""; - return this; } @@ -597,14 +602,32 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.instance .VideoActionRecognitionPredictionInstance(this); - result.content_ = content_; - result.mimeType_ = mimeType_; - result.timeSegmentStart_ = timeSegmentStart_; - result.timeSegmentEnd_ = timeSegmentEnd_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.instance + .VideoActionRecognitionPredictionInstance + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mimeType_ = mimeType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.timeSegmentStart_ = timeSegmentStart_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.timeSegmentEnd_ = timeSegmentEnd_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -663,18 +686,22 @@ public Builder mergeFrom( .VideoActionRecognitionPredictionInstance.getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getTimeSegmentStart().isEmpty()) { timeSegmentStart_ = other.timeSegmentStart_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getTimeSegmentEnd().isEmpty()) { timeSegmentEnd_ = other.timeSegmentEnd_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -706,25 +733,25 @@ public Builder mergeFrom( case 10: { content_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { mimeType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { timeSegmentStart_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { timeSegmentEnd_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -744,6 +771,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object content_ = ""; /** * @@ -808,8 +837,8 @@ public Builder setContent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -826,8 +855,8 @@ public Builder setContent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContent() { - content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -849,8 +878,8 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -919,8 +948,8 @@ public Builder setMimeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -937,8 +966,8 @@ public Builder setMimeType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMimeType() { - mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -960,8 +989,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1036,8 +1065,8 @@ public Builder setTimeSegmentStart(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeSegmentStart_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1056,8 +1085,8 @@ public Builder setTimeSegmentStart(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeSegmentStart() { - timeSegmentStart_ = getDefaultInstance().getTimeSegmentStart(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1081,8 +1110,8 @@ public Builder setTimeSegmentStartBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeSegmentStart_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1160,8 +1189,8 @@ public Builder setTimeSegmentEnd(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeSegmentEnd_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1181,8 +1210,8 @@ public Builder setTimeSegmentEnd(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeSegmentEnd() { - timeSegmentEnd_ = getDefaultInstance().getTimeSegmentEnd(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1207,8 +1236,8 @@ public Builder setTimeSegmentEndBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeSegmentEnd_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoClassificationPredictionInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoClassificationPredictionInstance.java index 99848783d66e..3dea7ed5e943 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoClassificationPredictionInstance.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoClassificationPredictionInstance.java @@ -78,7 +78,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object content_; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object mimeType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; /** * * @@ -180,7 +184,9 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } public static final int TIME_SEGMENT_START_FIELD_NUMBER = 3; - private volatile java.lang.Object timeSegmentStart_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeSegmentStart_ = ""; /** * * @@ -235,7 +241,9 @@ public com.google.protobuf.ByteString getTimeSegmentStartBytes() { } public static final int TIME_SEGMENT_END_FIELD_NUMBER = 4; - private volatile java.lang.Object timeSegmentEnd_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeSegmentEnd_ = ""; /** * * @@ -548,14 +556,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; content_ = ""; - mimeType_ = ""; - timeSegmentStart_ = ""; - timeSegmentEnd_ = ""; - return this; } @@ -594,14 +599,31 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.instance .VideoClassificationPredictionInstance(this); - result.content_ = content_; - result.mimeType_ = mimeType_; - result.timeSegmentStart_ = timeSegmentStart_; - result.timeSegmentEnd_ = timeSegmentEnd_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mimeType_ = mimeType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.timeSegmentStart_ = timeSegmentStart_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.timeSegmentEnd_ = timeSegmentEnd_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -659,18 +681,22 @@ public Builder mergeFrom( .VideoClassificationPredictionInstance.getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getTimeSegmentStart().isEmpty()) { timeSegmentStart_ = other.timeSegmentStart_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getTimeSegmentEnd().isEmpty()) { timeSegmentEnd_ = other.timeSegmentEnd_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -702,25 +728,25 @@ public Builder mergeFrom( case 10: { content_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { mimeType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { timeSegmentStart_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { timeSegmentEnd_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -740,6 +766,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object content_ = ""; /** * @@ -804,8 +832,8 @@ public Builder setContent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -822,8 +850,8 @@ public Builder setContent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContent() { - content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -845,8 +873,8 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -915,8 +943,8 @@ public Builder setMimeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -933,8 +961,8 @@ public Builder setMimeType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMimeType() { - mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -956,8 +984,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1032,8 +1060,8 @@ public Builder setTimeSegmentStart(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeSegmentStart_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1052,8 +1080,8 @@ public Builder setTimeSegmentStart(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeSegmentStart() { - timeSegmentStart_ = getDefaultInstance().getTimeSegmentStart(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1077,8 +1105,8 @@ public Builder setTimeSegmentStartBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeSegmentStart_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1156,8 +1184,8 @@ public Builder setTimeSegmentEnd(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeSegmentEnd_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1177,8 +1205,8 @@ public Builder setTimeSegmentEnd(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeSegmentEnd() { - timeSegmentEnd_ = getDefaultInstance().getTimeSegmentEnd(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1203,8 +1231,8 @@ public Builder setTimeSegmentEndBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeSegmentEnd_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoObjectTrackingPredictionInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoObjectTrackingPredictionInstance.java index 45903949a244..d5978f5febc3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoObjectTrackingPredictionInstance.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoObjectTrackingPredictionInstance.java @@ -78,7 +78,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object content_; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object mimeType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; /** * * @@ -180,7 +184,9 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } public static final int TIME_SEGMENT_START_FIELD_NUMBER = 3; - private volatile java.lang.Object timeSegmentStart_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeSegmentStart_ = ""; /** * * @@ -235,7 +241,9 @@ public com.google.protobuf.ByteString getTimeSegmentStartBytes() { } public static final int TIME_SEGMENT_END_FIELD_NUMBER = 4; - private volatile java.lang.Object timeSegmentEnd_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeSegmentEnd_ = ""; /** * * @@ -548,14 +556,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; content_ = ""; - mimeType_ = ""; - timeSegmentStart_ = ""; - timeSegmentEnd_ = ""; - return this; } @@ -594,14 +599,31 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.instance .VideoObjectTrackingPredictionInstance(this); - result.content_ = content_; - result.mimeType_ = mimeType_; - result.timeSegmentStart_ = timeSegmentStart_; - result.timeSegmentEnd_ = timeSegmentEnd_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mimeType_ = mimeType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.timeSegmentStart_ = timeSegmentStart_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.timeSegmentEnd_ = timeSegmentEnd_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -659,18 +681,22 @@ public Builder mergeFrom( .VideoObjectTrackingPredictionInstance.getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getTimeSegmentStart().isEmpty()) { timeSegmentStart_ = other.timeSegmentStart_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getTimeSegmentEnd().isEmpty()) { timeSegmentEnd_ = other.timeSegmentEnd_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -702,25 +728,25 @@ public Builder mergeFrom( case 10: { content_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { mimeType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { timeSegmentStart_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { timeSegmentEnd_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -740,6 +766,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object content_ = ""; /** * @@ -804,8 +832,8 @@ public Builder setContent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -822,8 +850,8 @@ public Builder setContent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContent() { - content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -845,8 +873,8 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -915,8 +943,8 @@ public Builder setMimeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -933,8 +961,8 @@ public Builder setMimeType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMimeType() { - mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -956,8 +984,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1032,8 +1060,8 @@ public Builder setTimeSegmentStart(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeSegmentStart_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1052,8 +1080,8 @@ public Builder setTimeSegmentStart(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeSegmentStart() { - timeSegmentStart_ = getDefaultInstance().getTimeSegmentStart(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1077,8 +1105,8 @@ public Builder setTimeSegmentStartBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeSegmentStart_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1156,8 +1184,8 @@ public Builder setTimeSegmentEnd(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeSegmentEnd_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1177,8 +1205,8 @@ public Builder setTimeSegmentEnd(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeSegmentEnd() { - timeSegmentEnd_ = getDefaultInstance().getTimeSegmentEnd(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1203,8 +1231,8 @@ public Builder setTimeSegmentEndBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeSegmentEnd_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageClassificationPredictionParams.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageClassificationPredictionParams.java index 392afbe530d1..b38c0dcf7d9b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageClassificationPredictionParams.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageClassificationPredictionParams.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1; - private float confidenceThreshold_; + private float confidenceThreshold_ = 0F; /** * * @@ -92,7 +92,7 @@ public float getConfidenceThreshold() { } public static final int MAX_PREDICTIONS_FIELD_NUMBER = 2; - private int maxPredictions_; + private int maxPredictions_ = 0; /** * * @@ -348,10 +348,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; confidenceThreshold_ = 0F; - maxPredictions_ = 0; - return this; } @@ -387,12 +386,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.params .ImageClassificationPredictionParams(this); - result.confidenceThreshold_ = confidenceThreshold_; - result.maxPredictions_ = maxPredictions_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.confidenceThreshold_ = confidenceThreshold_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxPredictions_ = maxPredictions_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -483,13 +495,13 @@ public Builder mergeFrom( case 13: { confidenceThreshold_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 case 16: { maxPredictions_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -509,6 +521,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float confidenceThreshold_; /** * @@ -542,6 +556,7 @@ public float getConfidenceThreshold() { public Builder setConfidenceThreshold(float value) { confidenceThreshold_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -558,7 +573,7 @@ public Builder setConfidenceThreshold(float value) { * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + bitField0_ = (bitField0_ & ~0x00000001); confidenceThreshold_ = 0F; onChanged(); return this; @@ -599,6 +614,7 @@ public int getMaxPredictions() { public Builder setMaxPredictions(int value) { maxPredictions_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -616,7 +632,7 @@ public Builder setMaxPredictions(int value) { * @return This builder for chaining. */ public Builder clearMaxPredictions() { - + bitField0_ = (bitField0_ & ~0x00000002); maxPredictions_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageObjectDetectionPredictionParams.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageObjectDetectionPredictionParams.java index eaa7620bf044..29d227b796e7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageObjectDetectionPredictionParams.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageObjectDetectionPredictionParams.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1; - private float confidenceThreshold_; + private float confidenceThreshold_ = 0F; /** * * @@ -92,7 +92,7 @@ public float getConfidenceThreshold() { } public static final int MAX_PREDICTIONS_FIELD_NUMBER = 2; - private int maxPredictions_; + private int maxPredictions_ = 0; /** * * @@ -351,10 +351,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; confidenceThreshold_ = 0F; - maxPredictions_ = 0; - return this; } @@ -390,12 +389,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.params .ImageObjectDetectionPredictionParams(this); - result.confidenceThreshold_ = confidenceThreshold_; - result.maxPredictions_ = maxPredictions_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.confidenceThreshold_ = confidenceThreshold_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxPredictions_ = maxPredictions_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -486,13 +498,13 @@ public Builder mergeFrom( case 13: { confidenceThreshold_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 case 16: { maxPredictions_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -512,6 +524,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float confidenceThreshold_; /** * @@ -545,6 +559,7 @@ public float getConfidenceThreshold() { public Builder setConfidenceThreshold(float value) { confidenceThreshold_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -561,7 +576,7 @@ public Builder setConfidenceThreshold(float value) { * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + bitField0_ = (bitField0_ & ~0x00000001); confidenceThreshold_ = 0F; onChanged(); return this; @@ -602,6 +617,7 @@ public int getMaxPredictions() { public Builder setMaxPredictions(int value) { maxPredictions_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -619,7 +635,7 @@ public Builder setMaxPredictions(int value) { * @return This builder for chaining. */ public Builder clearMaxPredictions() { - + bitField0_ = (bitField0_ & ~0x00000002); maxPredictions_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageSegmentationPredictionParams.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageSegmentationPredictionParams.java index 33d31b6cf065..0f67681486e6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageSegmentationPredictionParams.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageSegmentationPredictionParams.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1; - private float confidenceThreshold_; + private float confidenceThreshold_ = 0F; /** * * @@ -320,8 +320,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; confidenceThreshold_ = 0F; - return this; } @@ -357,11 +357,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.params .ImageSegmentationPredictionParams(this); - result.confidenceThreshold_ = confidenceThreshold_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.confidenceThreshold_ = confidenceThreshold_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -447,7 +458,7 @@ public Builder mergeFrom( case 13: { confidenceThreshold_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 default: @@ -467,6 +478,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float confidenceThreshold_; /** * @@ -504,6 +517,7 @@ public float getConfidenceThreshold() { public Builder setConfidenceThreshold(float value) { confidenceThreshold_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -522,7 +536,7 @@ public Builder setConfidenceThreshold(float value) { * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + bitField0_ = (bitField0_ & ~0x00000001); confidenceThreshold_ = 0F; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoActionRecognitionPredictionParams.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoActionRecognitionPredictionParams.java index a5fff8f2b569..c59ac3d2fb60 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoActionRecognitionPredictionParams.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoActionRecognitionPredictionParams.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1; - private float confidenceThreshold_; + private float confidenceThreshold_ = 0F; /** * * @@ -92,7 +92,7 @@ public float getConfidenceThreshold() { } public static final int MAX_PREDICTIONS_FIELD_NUMBER = 2; - private int maxPredictions_; + private int maxPredictions_ = 0; /** * * @@ -351,10 +351,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; confidenceThreshold_ = 0F; - maxPredictions_ = 0; - return this; } @@ -393,12 +392,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.params .VideoActionRecognitionPredictionParams(this); - result.confidenceThreshold_ = confidenceThreshold_; - result.maxPredictions_ = maxPredictions_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.confidenceThreshold_ = confidenceThreshold_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxPredictions_ = maxPredictions_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -489,13 +501,13 @@ public Builder mergeFrom( case 13: { confidenceThreshold_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 case 16: { maxPredictions_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -515,6 +527,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float confidenceThreshold_; /** * @@ -548,6 +562,7 @@ public float getConfidenceThreshold() { public Builder setConfidenceThreshold(float value) { confidenceThreshold_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -564,7 +579,7 @@ public Builder setConfidenceThreshold(float value) { * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + bitField0_ = (bitField0_ & ~0x00000001); confidenceThreshold_ = 0F; onChanged(); return this; @@ -605,6 +620,7 @@ public int getMaxPredictions() { public Builder setMaxPredictions(int value) { maxPredictions_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -622,7 +638,7 @@ public Builder setMaxPredictions(int value) { * @return This builder for chaining. */ public Builder clearMaxPredictions() { - + bitField0_ = (bitField0_ & ~0x00000002); maxPredictions_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoClassificationPredictionParams.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoClassificationPredictionParams.java index c3562f3b7308..58f64e56c57b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoClassificationPredictionParams.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoClassificationPredictionParams.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1; - private float confidenceThreshold_; + private float confidenceThreshold_ = 0F; /** * * @@ -92,7 +92,7 @@ public float getConfidenceThreshold() { } public static final int MAX_PREDICTIONS_FIELD_NUMBER = 2; - private int maxPredictions_; + private int maxPredictions_ = 0; /** * * @@ -112,7 +112,7 @@ public int getMaxPredictions() { } public static final int SEGMENT_CLASSIFICATION_FIELD_NUMBER = 3; - private boolean segmentClassification_; + private boolean segmentClassification_ = false; /** * * @@ -133,7 +133,7 @@ public boolean getSegmentClassification() { } public static final int SHOT_CLASSIFICATION_FIELD_NUMBER = 4; - private boolean shotClassification_; + private boolean shotClassification_ = false; /** * * @@ -159,7 +159,7 @@ public boolean getShotClassification() { } public static final int ONE_SEC_INTERVAL_CLASSIFICATION_FIELD_NUMBER = 5; - private boolean oneSecIntervalClassification_; + private boolean oneSecIntervalClassification_ = false; /** * * @@ -447,16 +447,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; confidenceThreshold_ = 0F; - maxPredictions_ = 0; - segmentClassification_ = false; - shotClassification_ = false; - oneSecIntervalClassification_ = false; - return this; } @@ -492,15 +488,34 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.params .VideoClassificationPredictionParams(this); - result.confidenceThreshold_ = confidenceThreshold_; - result.maxPredictions_ = maxPredictions_; - result.segmentClassification_ = segmentClassification_; - result.shotClassification_ = shotClassification_; - result.oneSecIntervalClassification_ = oneSecIntervalClassification_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.confidenceThreshold_ = confidenceThreshold_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxPredictions_ = maxPredictions_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.segmentClassification_ = segmentClassification_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.shotClassification_ = shotClassification_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.oneSecIntervalClassification_ = oneSecIntervalClassification_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -600,31 +615,31 @@ public Builder mergeFrom( case 13: { confidenceThreshold_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 case 16: { maxPredictions_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { segmentClassification_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 case 32: { shotClassification_ = input.readBool(); - + bitField0_ |= 0x00000008; break; } // case 32 case 40: { oneSecIntervalClassification_ = input.readBool(); - + bitField0_ |= 0x00000010; break; } // case 40 default: @@ -644,6 +659,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float confidenceThreshold_; /** * @@ -677,6 +694,7 @@ public float getConfidenceThreshold() { public Builder setConfidenceThreshold(float value) { confidenceThreshold_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -693,7 +711,7 @@ public Builder setConfidenceThreshold(float value) { * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + bitField0_ = (bitField0_ & ~0x00000001); confidenceThreshold_ = 0F; onChanged(); return this; @@ -734,6 +752,7 @@ public int getMaxPredictions() { public Builder setMaxPredictions(int value) { maxPredictions_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -751,7 +770,7 @@ public Builder setMaxPredictions(int value) { * @return This builder for chaining. */ public Builder clearMaxPredictions() { - + bitField0_ = (bitField0_ & ~0x00000002); maxPredictions_ = 0; onChanged(); return this; @@ -794,6 +813,7 @@ public boolean getSegmentClassification() { public Builder setSegmentClassification(boolean value) { segmentClassification_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -812,7 +832,7 @@ public Builder setSegmentClassification(boolean value) { * @return This builder for chaining. */ public Builder clearSegmentClassification() { - + bitField0_ = (bitField0_ & ~0x00000004); segmentClassification_ = false; onChanged(); return this; @@ -865,6 +885,7 @@ public boolean getShotClassification() { public Builder setShotClassification(boolean value) { shotClassification_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -888,7 +909,7 @@ public Builder setShotClassification(boolean value) { * @return This builder for chaining. */ public Builder clearShotClassification() { - + bitField0_ = (bitField0_ & ~0x00000008); shotClassification_ = false; onChanged(); return this; @@ -935,6 +956,7 @@ public boolean getOneSecIntervalClassification() { public Builder setOneSecIntervalClassification(boolean value) { oneSecIntervalClassification_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -955,7 +977,7 @@ public Builder setOneSecIntervalClassification(boolean value) { * @return This builder for chaining. */ public Builder clearOneSecIntervalClassification() { - + bitField0_ = (bitField0_ & ~0x00000010); oneSecIntervalClassification_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoObjectTrackingPredictionParams.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoObjectTrackingPredictionParams.java index 9b1ccedc8e68..f730ea2ea139 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoObjectTrackingPredictionParams.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoObjectTrackingPredictionParams.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1; - private float confidenceThreshold_; + private float confidenceThreshold_ = 0F; /** * * @@ -92,7 +92,7 @@ public float getConfidenceThreshold() { } public static final int MAX_PREDICTIONS_FIELD_NUMBER = 2; - private int maxPredictions_; + private int maxPredictions_ = 0; /** * * @@ -112,7 +112,7 @@ public int getMaxPredictions() { } public static final int MIN_BOUNDING_BOX_SIZE_FIELD_NUMBER = 3; - private float minBoundingBoxSize_; + private float minBoundingBoxSize_ = 0F; /** * * @@ -377,12 +377,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; confidenceThreshold_ = 0F; - maxPredictions_ = 0; - minBoundingBoxSize_ = 0F; - return this; } @@ -418,13 +416,28 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.params .VideoObjectTrackingPredictionParams(this); - result.confidenceThreshold_ = confidenceThreshold_; - result.maxPredictions_ = maxPredictions_; - result.minBoundingBoxSize_ = minBoundingBoxSize_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.confidenceThreshold_ = confidenceThreshold_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxPredictions_ = maxPredictions_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.minBoundingBoxSize_ = minBoundingBoxSize_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -518,19 +531,19 @@ public Builder mergeFrom( case 13: { confidenceThreshold_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 case 16: { maxPredictions_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 29: { minBoundingBoxSize_ = input.readFloat(); - + bitField0_ |= 0x00000004; break; } // case 29 default: @@ -550,6 +563,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float confidenceThreshold_; /** * @@ -583,6 +598,7 @@ public float getConfidenceThreshold() { public Builder setConfidenceThreshold(float value) { confidenceThreshold_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -599,7 +615,7 @@ public Builder setConfidenceThreshold(float value) { * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + bitField0_ = (bitField0_ & ~0x00000001); confidenceThreshold_ = 0F; onChanged(); return this; @@ -640,6 +656,7 @@ public int getMaxPredictions() { public Builder setMaxPredictions(int value) { maxPredictions_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -657,7 +674,7 @@ public Builder setMaxPredictions(int value) { * @return This builder for chaining. */ public Builder clearMaxPredictions() { - + bitField0_ = (bitField0_ & ~0x00000002); maxPredictions_ = 0; onChanged(); return this; @@ -696,6 +713,7 @@ public float getMinBoundingBoxSize() { public Builder setMinBoundingBoxSize(float value) { minBoundingBoxSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -712,7 +730,7 @@ public Builder setMinBoundingBoxSize(float value) { * @return This builder for chaining. */ public Builder clearMinBoundingBoxSize() { - + bitField0_ = (bitField0_ & ~0x00000004); minBoundingBoxSize_ = 0F; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ClassificationPredictionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ClassificationPredictionResult.java index 0c44bc0b8c79..f3382d0993fe 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ClassificationPredictionResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ClassificationPredictionResult.java @@ -76,6 +76,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int IDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList ids_; /** * @@ -125,6 +127,8 @@ public long getIds(int index) { private int idsMemoizedSerializedSize = -1; public static final int DISPLAY_NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList displayNames_; /** * @@ -190,6 +194,8 @@ public com.google.protobuf.ByteString getDisplayNamesBytes(int index) { } public static final int CONFIDENCES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.FloatList confidences_; /** * @@ -522,12 +528,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; ids_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); displayNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); confidences_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -563,7 +568,17 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.prediction .ClassificationPredictionResult(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult + result) { if (((bitField0_ & 0x00000001) != 0)) { ids_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); @@ -579,8 +594,12 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { bitField0_ = (bitField0_ & ~0x00000004); } result.confidences_ = confidences_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult + result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -820,6 +839,7 @@ public long getIds(int index) { * @return This builder for chaining. */ public Builder setIds(int index, long value) { + ensureIdsIsMutable(); ids_.setLong(index, value); onChanged(); @@ -838,6 +858,7 @@ public Builder setIds(int index, long value) { * @return This builder for chaining. */ public Builder addIds(long value) { + ensureIdsIsMutable(); ids_.addLong(value); onChanged(); @@ -1127,6 +1148,7 @@ public float getConfidences(int index) { * @return This builder for chaining. */ public Builder setConfidences(int index, float value) { + ensureConfidencesIsMutable(); confidences_.setFloat(index, value); onChanged(); @@ -1146,6 +1168,7 @@ public Builder setConfidences(int index, float value) { * @return This builder for chaining. */ public Builder addConfidences(float value) { + ensureConfidencesIsMutable(); confidences_.addFloat(value); onChanged(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageObjectDetectionPredictionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageObjectDetectionPredictionResult.java index ea1c62fc5b9e..1616e13be7be 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageObjectDetectionPredictionResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageObjectDetectionPredictionResult.java @@ -78,6 +78,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int IDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList ids_; /** * @@ -130,6 +132,8 @@ public long getIds(int index) { private int idsMemoizedSerializedSize = -1; public static final int DISPLAY_NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList displayNames_; /** * @@ -195,6 +199,8 @@ public com.google.protobuf.ByteString getDisplayNamesBytes(int index) { } public static final int CONFIDENCES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.FloatList confidences_; /** * @@ -247,6 +253,8 @@ public float getConfidences(int index) { private int confidencesMemoizedSerializedSize = -1; public static final int BBOXES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List bboxes_; /** * @@ -634,12 +642,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; ids_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); displayNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); confidences_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000004); if (bboxesBuilder_ == null) { bboxes_ = java.util.Collections.emptyList(); } else { @@ -685,7 +692,18 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.prediction .ImageObjectDetectionPredictionResult(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.schema.predict.prediction + .ImageObjectDetectionPredictionResult + result) { if (((bitField0_ & 0x00000001) != 0)) { ids_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); @@ -710,8 +728,13 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } else { result.bboxes_ = bboxesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.prediction + .ImageObjectDetectionPredictionResult + result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -996,6 +1019,7 @@ public long getIds(int index) { * @return This builder for chaining. */ public Builder setIds(int index, long value) { + ensureIdsIsMutable(); ids_.setLong(index, value); onChanged(); @@ -1015,6 +1039,7 @@ public Builder setIds(int index, long value) { * @return This builder for chaining. */ public Builder addIds(long value) { + ensureIdsIsMutable(); ids_.addLong(value); onChanged(); @@ -1306,6 +1331,7 @@ public float getConfidences(int index) { * @return This builder for chaining. */ public Builder setConfidences(int index, float value) { + ensureConfidencesIsMutable(); confidences_.setFloat(index, value); onChanged(); @@ -1325,6 +1351,7 @@ public Builder setConfidences(int index, float value) { * @return This builder for chaining. */ public Builder addConfidences(float value) { + ensureConfidencesIsMutable(); confidences_.addFloat(value); onChanged(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageSegmentationPredictionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageSegmentationPredictionResult.java index 8f0b29a631e9..6ea6dc619870 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageSegmentationPredictionResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageSegmentationPredictionResult.java @@ -75,7 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CATEGORY_MASK_FIELD_NUMBER = 1; - private volatile java.lang.Object categoryMask_; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryMask_ = ""; /** * * @@ -134,7 +136,9 @@ public com.google.protobuf.ByteString getCategoryMaskBytes() { } public static final int CONFIDENCE_MASK_FIELD_NUMBER = 2; - private volatile java.lang.Object confidenceMask_; + + @SuppressWarnings("serial") + private volatile java.lang.Object confidenceMask_ = ""; /** * * @@ -429,10 +433,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; categoryMask_ = ""; - confidenceMask_ = ""; - return this; } @@ -471,12 +474,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.prediction .ImageSegmentationPredictionResult(this); - result.categoryMask_ = categoryMask_; - result.confidenceMask_ = confidenceMask_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.categoryMask_ = categoryMask_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.confidenceMask_ = confidenceMask_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -534,10 +550,12 @@ public Builder mergeFrom( .ImageSegmentationPredictionResult.getDefaultInstance()) return this; if (!other.getCategoryMask().isEmpty()) { categoryMask_ = other.categoryMask_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getConfidenceMask().isEmpty()) { confidenceMask_ = other.confidenceMask_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -569,13 +587,13 @@ public Builder mergeFrom( case 10: { categoryMask_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { confidenceMask_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -595,6 +613,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object categoryMask_ = ""; /** * @@ -671,8 +691,8 @@ public Builder setCategoryMask(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - categoryMask_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -693,8 +713,8 @@ public Builder setCategoryMask(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCategoryMask() { - categoryMask_ = getDefaultInstance().getCategoryMask(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -720,8 +740,8 @@ public Builder setCategoryMaskBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - categoryMask_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -799,8 +819,8 @@ public Builder setConfidenceMask(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - confidenceMask_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -820,8 +840,8 @@ public Builder setConfidenceMask(java.lang.String value) { * @return This builder for chaining. */ public Builder clearConfidenceMask() { - confidenceMask_ = getDefaultInstance().getConfidenceMask(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -846,8 +866,8 @@ public Builder setConfidenceMaskBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - confidenceMask_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularClassificationPredictionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularClassificationPredictionResult.java index d17c279d6b82..150c801ef7cf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularClassificationPredictionResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularClassificationPredictionResult.java @@ -76,6 +76,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CLASSES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList classes_; /** * @@ -141,6 +143,8 @@ public com.google.protobuf.ByteString getClassesBytes(int index) { } public static final int SCORES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.FloatList scores_; /** * @@ -455,10 +459,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; classes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); scores_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -497,7 +501,18 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.prediction .TabularClassificationPredictionResult(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.schema.predict.prediction + .TabularClassificationPredictionResult + result) { if (((bitField0_ & 0x00000001) != 0)) { classes_ = classes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -508,8 +523,13 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { bitField0_ = (bitField0_ & ~0x00000002); } result.scores_ = scores_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.prediction + .TabularClassificationPredictionResult + result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -910,6 +930,7 @@ public float getScores(int index) { * @return This builder for chaining. */ public Builder setScores(int index, float value) { + ensureScoresIsMutable(); scores_.setFloat(index, value); onChanged(); @@ -930,6 +951,7 @@ public Builder setScores(int index, float value) { * @return This builder for chaining. */ public Builder addScores(float value) { + ensureScoresIsMutable(); scores_.addFloat(value); onChanged(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularRegressionPredictionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularRegressionPredictionResult.java index 7fa88def7b16..b1996f8f0076 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularRegressionPredictionResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularRegressionPredictionResult.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUE_FIELD_NUMBER = 1; - private float value_; + private float value_ = 0F; /** * * @@ -90,7 +90,7 @@ public float getValue() { } public static final int LOWER_BOUND_FIELD_NUMBER = 2; - private float lowerBound_; + private float lowerBound_ = 0F; /** * * @@ -108,7 +108,7 @@ public float getLowerBound() { } public static final int UPPER_BOUND_FIELD_NUMBER = 3; - private float upperBound_; + private float upperBound_ = 0F; /** * * @@ -376,12 +376,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; value_ = 0F; - lowerBound_ = 0F; - upperBound_ = 0F; - return this; } @@ -420,13 +418,28 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.prediction .TabularRegressionPredictionResult(this); - result.value_ = value_; - result.lowerBound_ = lowerBound_; - result.upperBound_ = upperBound_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.lowerBound_ = lowerBound_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.upperBound_ = upperBound_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -520,19 +533,19 @@ public Builder mergeFrom( case 13: { value_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 case 21: { lowerBound_ = input.readFloat(); - + bitField0_ |= 0x00000002; break; } // case 21 case 29: { upperBound_ = input.readFloat(); - + bitField0_ |= 0x00000004; break; } // case 29 default: @@ -552,6 +565,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float value_; /** * @@ -583,6 +598,7 @@ public float getValue() { public Builder setValue(float value) { value_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -598,7 +614,7 @@ public Builder setValue(float value) { * @return This builder for chaining. */ public Builder clearValue() { - + bitField0_ = (bitField0_ & ~0x00000001); value_ = 0F; onChanged(); return this; @@ -635,6 +651,7 @@ public float getLowerBound() { public Builder setLowerBound(float value) { lowerBound_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -650,7 +667,7 @@ public Builder setLowerBound(float value) { * @return This builder for chaining. */ public Builder clearLowerBound() { - + bitField0_ = (bitField0_ & ~0x00000002); lowerBound_ = 0F; onChanged(); return this; @@ -687,6 +704,7 @@ public float getUpperBound() { public Builder setUpperBound(float value) { upperBound_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -702,7 +720,7 @@ public Builder setUpperBound(float value) { * @return This builder for chaining. */ public Builder clearUpperBound() { - + bitField0_ = (bitField0_ & ~0x00000004); upperBound_ = 0F; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextExtractionPredictionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextExtractionPredictionResult.java index cb2e87c34d7c..74f2669167f6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextExtractionPredictionResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextExtractionPredictionResult.java @@ -78,6 +78,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int IDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList ids_; /** * @@ -130,6 +132,8 @@ public long getIds(int index) { private int idsMemoizedSerializedSize = -1; public static final int DISPLAY_NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList displayNames_; /** * @@ -195,6 +199,8 @@ public com.google.protobuf.ByteString getDisplayNamesBytes(int index) { } public static final int TEXT_SEGMENT_START_OFFSETS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList textSegmentStartOffsets_; /** * @@ -250,6 +256,8 @@ public long getTextSegmentStartOffsets(int index) { private int textSegmentStartOffsetsMemoizedSerializedSize = -1; public static final int TEXT_SEGMENT_END_OFFSETS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList textSegmentEndOffsets_; /** * @@ -305,6 +313,8 @@ public long getTextSegmentEndOffsets(int index) { private int textSegmentEndOffsetsMemoizedSerializedSize = -1; public static final int CONFIDENCES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.FloatList confidences_; /** * @@ -690,16 +700,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; ids_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); displayNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); textSegmentStartOffsets_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000004); textSegmentEndOffsets_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000008); confidences_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000010); return this; } @@ -735,7 +742,17 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.prediction .TextExtractionPredictionResult(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult + result) { if (((bitField0_ & 0x00000001) != 0)) { ids_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); @@ -761,8 +778,12 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { bitField0_ = (bitField0_ & ~0x00000010); } result.confidences_ = confidences_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult + result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -1062,6 +1083,7 @@ public long getIds(int index) { * @return This builder for chaining. */ public Builder setIds(int index, long value) { + ensureIdsIsMutable(); ids_.setLong(index, value); onChanged(); @@ -1081,6 +1103,7 @@ public Builder setIds(int index, long value) { * @return This builder for chaining. */ public Builder addIds(long value) { + ensureIdsIsMutable(); ids_.addLong(value); onChanged(); @@ -1376,6 +1399,7 @@ public long getTextSegmentStartOffsets(int index) { * @return This builder for chaining. */ public Builder setTextSegmentStartOffsets(int index, long value) { + ensureTextSegmentStartOffsetsIsMutable(); textSegmentStartOffsets_.setLong(index, value); onChanged(); @@ -1396,6 +1420,7 @@ public Builder setTextSegmentStartOffsets(int index, long value) { * @return This builder for chaining. */ public Builder addTextSegmentStartOffsets(long value) { + ensureTextSegmentStartOffsetsIsMutable(); textSegmentStartOffsets_.addLong(value); onChanged(); @@ -1517,6 +1542,7 @@ public long getTextSegmentEndOffsets(int index) { * @return This builder for chaining. */ public Builder setTextSegmentEndOffsets(int index, long value) { + ensureTextSegmentEndOffsetsIsMutable(); textSegmentEndOffsets_.setLong(index, value); onChanged(); @@ -1537,6 +1563,7 @@ public Builder setTextSegmentEndOffsets(int index, long value) { * @return This builder for chaining. */ public Builder addTextSegmentEndOffsets(long value) { + ensureTextSegmentEndOffsetsIsMutable(); textSegmentEndOffsets_.addLong(value); onChanged(); @@ -1654,6 +1681,7 @@ public float getConfidences(int index) { * @return This builder for chaining. */ public Builder setConfidences(int index, float value) { + ensureConfidencesIsMutable(); confidences_.setFloat(index, value); onChanged(); @@ -1673,6 +1701,7 @@ public Builder setConfidences(int index, float value) { * @return This builder for chaining. */ public Builder addConfidences(float value) { + ensureConfidencesIsMutable(); confidences_.addFloat(value); onChanged(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextSentimentPredictionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextSentimentPredictionResult.java index a25686351840..5c539ea0c8d7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextSentimentPredictionResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextSentimentPredictionResult.java @@ -71,7 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SENTIMENT_FIELD_NUMBER = 1; - private int sentiment_; + private int sentiment_ = 0; /** * * @@ -319,8 +319,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; sentiment_ = 0; - return this; } @@ -356,11 +356,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.prediction .TextSentimentPredictionResult(this); - result.sentiment_ = sentiment_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sentiment_ = sentiment_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -446,7 +457,7 @@ public Builder mergeFrom( case 8: { sentiment_ = input.readInt32(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -466,6 +477,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int sentiment_; /** * @@ -505,6 +518,7 @@ public int getSentiment() { public Builder setSentiment(int value) { sentiment_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -524,7 +538,7 @@ public Builder setSentiment(int value) { * @return This builder for chaining. */ public Builder clearSentiment() { - + bitField0_ = (bitField0_ & ~0x00000001); sentiment_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoActionRecognitionPredictionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoActionRecognitionPredictionResult.java index 65829527e0f0..8b680f8c6fb7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoActionRecognitionPredictionResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoActionRecognitionPredictionResult.java @@ -76,7 +76,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -125,7 +127,9 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -227,7 +231,9 @@ public com.google.protobuf.Duration getTimeSegmentStart() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeSegmentStartOrBuilder() { - return getTimeSegmentStart(); + return timeSegmentStart_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeSegmentStart_; } public static final int TIME_SEGMENT_END_FIELD_NUMBER = 5; @@ -284,7 +290,9 @@ public com.google.protobuf.Duration getTimeSegmentEnd() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeSegmentEndOrBuilder() { - return getTimeSegmentEnd(); + return timeSegmentEnd_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeSegmentEnd_; } public static final int CONFIDENCE_FIELD_NUMBER = 6; @@ -333,7 +341,7 @@ public com.google.protobuf.FloatValue getConfidence() { */ @java.lang.Override public com.google.protobuf.FloatValueOrBuilder getConfidenceOrBuilder() { - return getConfidence(); + return confidence_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : confidence_; } private byte memoizedIsInitialized = -1; @@ -618,26 +626,22 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - displayName_ = ""; - - if (timeSegmentStartBuilder_ == null) { - timeSegmentStart_ = null; - } else { - timeSegmentStart_ = null; + timeSegmentStart_ = null; + if (timeSegmentStartBuilder_ != null) { + timeSegmentStartBuilder_.dispose(); timeSegmentStartBuilder_ = null; } - if (timeSegmentEndBuilder_ == null) { - timeSegmentEnd_ = null; - } else { - timeSegmentEnd_ = null; + timeSegmentEnd_ = null; + if (timeSegmentEndBuilder_ != null) { + timeSegmentEndBuilder_.dispose(); timeSegmentEndBuilder_ = null; } - if (confidenceBuilder_ == null) { - confidence_ = null; - } else { - confidence_ = null; + confidence_ = null; + if (confidenceBuilder_ != null) { + confidenceBuilder_.dispose(); confidenceBuilder_ = null; } return this; @@ -680,27 +684,37 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.prediction .VideoActionRecognitionPredictionResult(this); - result.id_ = id_; - result.displayName_ = displayName_; - if (timeSegmentStartBuilder_ == null) { - result.timeSegmentStart_ = timeSegmentStart_; - } else { - result.timeSegmentStart_ = timeSegmentStartBuilder_.build(); - } - if (timeSegmentEndBuilder_ == null) { - result.timeSegmentEnd_ = timeSegmentEnd_; - } else { - result.timeSegmentEnd_ = timeSegmentEndBuilder_.build(); - } - if (confidenceBuilder_ == null) { - result.confidence_ = confidence_; - } else { - result.confidence_ = confidenceBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.prediction + .VideoActionRecognitionPredictionResult + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.timeSegmentStart_ = + timeSegmentStartBuilder_ == null ? timeSegmentStart_ : timeSegmentStartBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.timeSegmentEnd_ = + timeSegmentEndBuilder_ == null ? timeSegmentEnd_ : timeSegmentEndBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.confidence_ = confidenceBuilder_ == null ? confidence_ : confidenceBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -759,10 +773,12 @@ public Builder mergeFrom( .VideoActionRecognitionPredictionResult.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasTimeSegmentStart()) { @@ -803,32 +819,32 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 34: { input.readMessage( getTimeSegmentStartFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 34 case 42: { input.readMessage(getTimeSegmentEndFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 42 case 50: { input.readMessage(getConfidenceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 50 default: @@ -848,6 +864,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object id_ = ""; /** * @@ -909,8 +927,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -926,8 +944,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -948,8 +966,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1015,8 +1033,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1032,8 +1050,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1054,8 +1072,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1081,7 +1099,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the timeSegmentStart field is set. */ public boolean hasTimeSegmentStart() { - return timeSegmentStartBuilder_ != null || timeSegmentStart_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1124,11 +1142,11 @@ public Builder setTimeSegmentStart(com.google.protobuf.Duration value) { throw new NullPointerException(); } timeSegmentStart_ = value; - onChanged(); } else { timeSegmentStartBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1146,11 +1164,11 @@ public Builder setTimeSegmentStart(com.google.protobuf.Duration value) { public Builder setTimeSegmentStart(com.google.protobuf.Duration.Builder builderForValue) { if (timeSegmentStartBuilder_ == null) { timeSegmentStart_ = builderForValue.build(); - onChanged(); } else { timeSegmentStartBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1167,19 +1185,18 @@ public Builder setTimeSegmentStart(com.google.protobuf.Duration.Builder builderF */ public Builder mergeTimeSegmentStart(com.google.protobuf.Duration value) { if (timeSegmentStartBuilder_ == null) { - if (timeSegmentStart_ != null) { - timeSegmentStart_ = - com.google.protobuf.Duration.newBuilder(timeSegmentStart_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && timeSegmentStart_ != null + && timeSegmentStart_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTimeSegmentStartBuilder().mergeFrom(value); } else { timeSegmentStart_ = value; } - onChanged(); } else { timeSegmentStartBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1195,14 +1212,13 @@ public Builder mergeTimeSegmentStart(com.google.protobuf.Duration value) { * .google.protobuf.Duration time_segment_start = 4; */ public Builder clearTimeSegmentStart() { - if (timeSegmentStartBuilder_ == null) { - timeSegmentStart_ = null; - onChanged(); - } else { - timeSegmentStart_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + timeSegmentStart_ = null; + if (timeSegmentStartBuilder_ != null) { + timeSegmentStartBuilder_.dispose(); timeSegmentStartBuilder_ = null; } - + onChanged(); return this; } /** @@ -1218,7 +1234,7 @@ public Builder clearTimeSegmentStart() { * .google.protobuf.Duration time_segment_start = 4; */ public com.google.protobuf.Duration.Builder getTimeSegmentStartBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getTimeSegmentStartFieldBuilder().getBuilder(); } @@ -1293,7 +1309,7 @@ public com.google.protobuf.DurationOrBuilder getTimeSegmentStartOrBuilder() { * @return Whether the timeSegmentEnd field is set. */ public boolean hasTimeSegmentEnd() { - return timeSegmentEndBuilder_ != null || timeSegmentEnd_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1336,11 +1352,11 @@ public Builder setTimeSegmentEnd(com.google.protobuf.Duration value) { throw new NullPointerException(); } timeSegmentEnd_ = value; - onChanged(); } else { timeSegmentEndBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1358,11 +1374,11 @@ public Builder setTimeSegmentEnd(com.google.protobuf.Duration value) { public Builder setTimeSegmentEnd(com.google.protobuf.Duration.Builder builderForValue) { if (timeSegmentEndBuilder_ == null) { timeSegmentEnd_ = builderForValue.build(); - onChanged(); } else { timeSegmentEndBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1379,19 +1395,18 @@ public Builder setTimeSegmentEnd(com.google.protobuf.Duration.Builder builderFor */ public Builder mergeTimeSegmentEnd(com.google.protobuf.Duration value) { if (timeSegmentEndBuilder_ == null) { - if (timeSegmentEnd_ != null) { - timeSegmentEnd_ = - com.google.protobuf.Duration.newBuilder(timeSegmentEnd_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && timeSegmentEnd_ != null + && timeSegmentEnd_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTimeSegmentEndBuilder().mergeFrom(value); } else { timeSegmentEnd_ = value; } - onChanged(); } else { timeSegmentEndBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1407,14 +1422,13 @@ public Builder mergeTimeSegmentEnd(com.google.protobuf.Duration value) { * .google.protobuf.Duration time_segment_end = 5; */ public Builder clearTimeSegmentEnd() { - if (timeSegmentEndBuilder_ == null) { - timeSegmentEnd_ = null; - onChanged(); - } else { - timeSegmentEnd_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + timeSegmentEnd_ = null; + if (timeSegmentEndBuilder_ != null) { + timeSegmentEndBuilder_.dispose(); timeSegmentEndBuilder_ = null; } - + onChanged(); return this; } /** @@ -1430,7 +1444,7 @@ public Builder clearTimeSegmentEnd() { * .google.protobuf.Duration time_segment_end = 5; */ public com.google.protobuf.Duration.Builder getTimeSegmentEndBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getTimeSegmentEndFieldBuilder().getBuilder(); } @@ -1503,7 +1517,7 @@ public com.google.protobuf.DurationOrBuilder getTimeSegmentEndOrBuilder() { * @return Whether the confidence field is set. */ public boolean hasConfidence() { - return confidenceBuilder_ != null || confidence_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1542,11 +1556,11 @@ public Builder setConfidence(com.google.protobuf.FloatValue value) { throw new NullPointerException(); } confidence_ = value; - onChanged(); } else { confidenceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1562,11 +1576,11 @@ public Builder setConfidence(com.google.protobuf.FloatValue value) { public Builder setConfidence(com.google.protobuf.FloatValue.Builder builderForValue) { if (confidenceBuilder_ == null) { confidence_ = builderForValue.build(); - onChanged(); } else { confidenceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1581,19 +1595,18 @@ public Builder setConfidence(com.google.protobuf.FloatValue.Builder builderForVa */ public Builder mergeConfidence(com.google.protobuf.FloatValue value) { if (confidenceBuilder_ == null) { - if (confidence_ != null) { - confidence_ = - com.google.protobuf.FloatValue.newBuilder(confidence_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && confidence_ != null + && confidence_ != com.google.protobuf.FloatValue.getDefaultInstance()) { + getConfidenceBuilder().mergeFrom(value); } else { confidence_ = value; } - onChanged(); } else { confidenceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1607,14 +1620,13 @@ public Builder mergeConfidence(com.google.protobuf.FloatValue value) { * .google.protobuf.FloatValue confidence = 6; */ public Builder clearConfidence() { - if (confidenceBuilder_ == null) { - confidence_ = null; - onChanged(); - } else { - confidence_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + confidence_ = null; + if (confidenceBuilder_ != null) { + confidenceBuilder_.dispose(); confidenceBuilder_ = null; } - + onChanged(); return this; } /** @@ -1628,7 +1640,7 @@ public Builder clearConfidence() { * .google.protobuf.FloatValue confidence = 6; */ public com.google.protobuf.FloatValue.Builder getConfidenceBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getConfidenceFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoClassificationPredictionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoClassificationPredictionResult.java index 4dfd214d5659..ec8bccf0a460 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoClassificationPredictionResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoClassificationPredictionResult.java @@ -77,7 +77,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -126,7 +128,9 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -175,7 +179,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int TYPE_FIELD_NUMBER = 3; - private volatile java.lang.Object type_; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; /** * * @@ -294,7 +300,9 @@ public com.google.protobuf.Duration getTimeSegmentStart() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeSegmentStartOrBuilder() { - return getTimeSegmentStart(); + return timeSegmentStart_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeSegmentStart_; } public static final int TIME_SEGMENT_END_FIELD_NUMBER = 5; @@ -360,7 +368,9 @@ public com.google.protobuf.Duration getTimeSegmentEnd() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeSegmentEndOrBuilder() { - return getTimeSegmentEnd(); + return timeSegmentEnd_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeSegmentEnd_; } public static final int CONFIDENCE_FIELD_NUMBER = 6; @@ -409,7 +419,7 @@ public com.google.protobuf.FloatValue getConfidence() { */ @java.lang.Override public com.google.protobuf.FloatValueOrBuilder getConfidenceOrBuilder() { - return getConfidence(); + return confidence_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : confidence_; } private byte memoizedIsInitialized = -1; @@ -702,28 +712,23 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - displayName_ = ""; - type_ = ""; - - if (timeSegmentStartBuilder_ == null) { - timeSegmentStart_ = null; - } else { - timeSegmentStart_ = null; + timeSegmentStart_ = null; + if (timeSegmentStartBuilder_ != null) { + timeSegmentStartBuilder_.dispose(); timeSegmentStartBuilder_ = null; } - if (timeSegmentEndBuilder_ == null) { - timeSegmentEnd_ = null; - } else { - timeSegmentEnd_ = null; + timeSegmentEnd_ = null; + if (timeSegmentEndBuilder_ != null) { + timeSegmentEndBuilder_.dispose(); timeSegmentEndBuilder_ = null; } - if (confidenceBuilder_ == null) { - confidence_ = null; - } else { - confidence_ = null; + confidence_ = null; + if (confidenceBuilder_ != null) { + confidenceBuilder_.dispose(); confidenceBuilder_ = null; } return this; @@ -764,28 +769,39 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.prediction .VideoClassificationPredictionResult(this); - result.id_ = id_; - result.displayName_ = displayName_; - result.type_ = type_; - if (timeSegmentStartBuilder_ == null) { - result.timeSegmentStart_ = timeSegmentStart_; - } else { - result.timeSegmentStart_ = timeSegmentStartBuilder_.build(); - } - if (timeSegmentEndBuilder_ == null) { - result.timeSegmentEnd_ = timeSegmentEnd_; - } else { - result.timeSegmentEnd_ = timeSegmentEndBuilder_.build(); - } - if (confidenceBuilder_ == null) { - result.confidence_ = confidence_; - } else { - result.confidence_ = confidenceBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.timeSegmentStart_ = + timeSegmentStartBuilder_ == null ? timeSegmentStart_ : timeSegmentStartBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.timeSegmentEnd_ = + timeSegmentEndBuilder_ == null ? timeSegmentEnd_ : timeSegmentEndBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.confidence_ = confidenceBuilder_ == null ? confidence_ : confidenceBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -843,14 +859,17 @@ public Builder mergeFrom( .VideoClassificationPredictionResult.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getType().isEmpty()) { type_ = other.type_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasTimeSegmentStart()) { @@ -891,38 +910,38 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { type_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getTimeSegmentStartFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getTimeSegmentEndFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getConfidenceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -942,6 +961,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object id_ = ""; /** * @@ -1003,8 +1024,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1020,8 +1041,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1042,8 +1063,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1109,8 +1130,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1126,8 +1147,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1148,8 +1169,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1227,8 +1248,8 @@ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - type_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1248,8 +1269,8 @@ public Builder setType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearType() { - type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1274,8 +1295,8 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - type_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1304,7 +1325,7 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { * @return Whether the timeSegmentStart field is set. */ public boolean hasTimeSegmentStart() { - return timeSegmentStartBuilder_ != null || timeSegmentStart_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1353,11 +1374,11 @@ public Builder setTimeSegmentStart(com.google.protobuf.Duration value) { throw new NullPointerException(); } timeSegmentStart_ = value; - onChanged(); } else { timeSegmentStartBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1378,11 +1399,11 @@ public Builder setTimeSegmentStart(com.google.protobuf.Duration value) { public Builder setTimeSegmentStart(com.google.protobuf.Duration.Builder builderForValue) { if (timeSegmentStartBuilder_ == null) { timeSegmentStart_ = builderForValue.build(); - onChanged(); } else { timeSegmentStartBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1402,19 +1423,18 @@ public Builder setTimeSegmentStart(com.google.protobuf.Duration.Builder builderF */ public Builder mergeTimeSegmentStart(com.google.protobuf.Duration value) { if (timeSegmentStartBuilder_ == null) { - if (timeSegmentStart_ != null) { - timeSegmentStart_ = - com.google.protobuf.Duration.newBuilder(timeSegmentStart_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && timeSegmentStart_ != null + && timeSegmentStart_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTimeSegmentStartBuilder().mergeFrom(value); } else { timeSegmentStart_ = value; } - onChanged(); } else { timeSegmentStartBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1433,14 +1453,13 @@ public Builder mergeTimeSegmentStart(com.google.protobuf.Duration value) { * .google.protobuf.Duration time_segment_start = 4; */ public Builder clearTimeSegmentStart() { - if (timeSegmentStartBuilder_ == null) { - timeSegmentStart_ = null; - onChanged(); - } else { - timeSegmentStart_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + timeSegmentStart_ = null; + if (timeSegmentStartBuilder_ != null) { + timeSegmentStartBuilder_.dispose(); timeSegmentStartBuilder_ = null; } - + onChanged(); return this; } /** @@ -1459,7 +1478,7 @@ public Builder clearTimeSegmentStart() { * .google.protobuf.Duration time_segment_start = 4; */ public com.google.protobuf.Duration.Builder getTimeSegmentStartBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getTimeSegmentStartFieldBuilder().getBuilder(); } @@ -1543,7 +1562,7 @@ public com.google.protobuf.DurationOrBuilder getTimeSegmentStartOrBuilder() { * @return Whether the timeSegmentEnd field is set. */ public boolean hasTimeSegmentEnd() { - return timeSegmentEndBuilder_ != null || timeSegmentEnd_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1592,11 +1611,11 @@ public Builder setTimeSegmentEnd(com.google.protobuf.Duration value) { throw new NullPointerException(); } timeSegmentEnd_ = value; - onChanged(); } else { timeSegmentEndBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1617,11 +1636,11 @@ public Builder setTimeSegmentEnd(com.google.protobuf.Duration value) { public Builder setTimeSegmentEnd(com.google.protobuf.Duration.Builder builderForValue) { if (timeSegmentEndBuilder_ == null) { timeSegmentEnd_ = builderForValue.build(); - onChanged(); } else { timeSegmentEndBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1641,19 +1660,18 @@ public Builder setTimeSegmentEnd(com.google.protobuf.Duration.Builder builderFor */ public Builder mergeTimeSegmentEnd(com.google.protobuf.Duration value) { if (timeSegmentEndBuilder_ == null) { - if (timeSegmentEnd_ != null) { - timeSegmentEnd_ = - com.google.protobuf.Duration.newBuilder(timeSegmentEnd_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && timeSegmentEnd_ != null + && timeSegmentEnd_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTimeSegmentEndBuilder().mergeFrom(value); } else { timeSegmentEnd_ = value; } - onChanged(); } else { timeSegmentEndBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1672,14 +1690,13 @@ public Builder mergeTimeSegmentEnd(com.google.protobuf.Duration value) { * .google.protobuf.Duration time_segment_end = 5; */ public Builder clearTimeSegmentEnd() { - if (timeSegmentEndBuilder_ == null) { - timeSegmentEnd_ = null; - onChanged(); - } else { - timeSegmentEnd_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + timeSegmentEnd_ = null; + if (timeSegmentEndBuilder_ != null) { + timeSegmentEndBuilder_.dispose(); timeSegmentEndBuilder_ = null; } - + onChanged(); return this; } /** @@ -1698,7 +1715,7 @@ public Builder clearTimeSegmentEnd() { * .google.protobuf.Duration time_segment_end = 5; */ public com.google.protobuf.Duration.Builder getTimeSegmentEndBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getTimeSegmentEndFieldBuilder().getBuilder(); } @@ -1777,7 +1794,7 @@ public com.google.protobuf.DurationOrBuilder getTimeSegmentEndOrBuilder() { * @return Whether the confidence field is set. */ public boolean hasConfidence() { - return confidenceBuilder_ != null || confidence_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1816,11 +1833,11 @@ public Builder setConfidence(com.google.protobuf.FloatValue value) { throw new NullPointerException(); } confidence_ = value; - onChanged(); } else { confidenceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1836,11 +1853,11 @@ public Builder setConfidence(com.google.protobuf.FloatValue value) { public Builder setConfidence(com.google.protobuf.FloatValue.Builder builderForValue) { if (confidenceBuilder_ == null) { confidence_ = builderForValue.build(); - onChanged(); } else { confidenceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1855,19 +1872,18 @@ public Builder setConfidence(com.google.protobuf.FloatValue.Builder builderForVa */ public Builder mergeConfidence(com.google.protobuf.FloatValue value) { if (confidenceBuilder_ == null) { - if (confidence_ != null) { - confidence_ = - com.google.protobuf.FloatValue.newBuilder(confidence_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && confidence_ != null + && confidence_ != com.google.protobuf.FloatValue.getDefaultInstance()) { + getConfidenceBuilder().mergeFrom(value); } else { confidence_ = value; } - onChanged(); } else { confidenceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1881,14 +1897,13 @@ public Builder mergeConfidence(com.google.protobuf.FloatValue value) { * .google.protobuf.FloatValue confidence = 6; */ public Builder clearConfidence() { - if (confidenceBuilder_ == null) { - confidence_ = null; - onChanged(); - } else { - confidence_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + confidence_ = null; + if (confidenceBuilder_ != null) { + confidenceBuilder_.dispose(); confidenceBuilder_ = null; } - + onChanged(); return this; } /** @@ -1902,7 +1917,7 @@ public Builder clearConfidence() { * .google.protobuf.FloatValue confidence = 6; */ public com.google.protobuf.FloatValue.Builder getConfidenceBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getConfidenceFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoObjectTrackingPredictionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoObjectTrackingPredictionResult.java index 1a7cfac2c2bd..3efa61912a55 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoObjectTrackingPredictionResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoObjectTrackingPredictionResult.java @@ -372,7 +372,7 @@ public com.google.protobuf.Duration getTimeOffset() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { - return getTimeOffset(); + return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; } public static final int X_MIN_FIELD_NUMBER = 2; @@ -418,7 +418,7 @@ public com.google.protobuf.FloatValue getXMin() { */ @java.lang.Override public com.google.protobuf.FloatValueOrBuilder getXMinOrBuilder() { - return getXMin(); + return xMin_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : xMin_; } public static final int X_MAX_FIELD_NUMBER = 3; @@ -464,7 +464,7 @@ public com.google.protobuf.FloatValue getXMax() { */ @java.lang.Override public com.google.protobuf.FloatValueOrBuilder getXMaxOrBuilder() { - return getXMax(); + return xMax_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : xMax_; } public static final int Y_MIN_FIELD_NUMBER = 4; @@ -510,7 +510,7 @@ public com.google.protobuf.FloatValue getYMin() { */ @java.lang.Override public com.google.protobuf.FloatValueOrBuilder getYMinOrBuilder() { - return getYMin(); + return yMin_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : yMin_; } public static final int Y_MAX_FIELD_NUMBER = 5; @@ -556,7 +556,7 @@ public com.google.protobuf.FloatValue getYMax() { */ @java.lang.Override public com.google.protobuf.FloatValueOrBuilder getYMaxOrBuilder() { - return getYMax(); + return yMax_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : yMax_; } private byte memoizedIsInitialized = -1; @@ -857,34 +857,30 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (timeOffsetBuilder_ == null) { - timeOffset_ = null; - } else { - timeOffset_ = null; + bitField0_ = 0; + timeOffset_ = null; + if (timeOffsetBuilder_ != null) { + timeOffsetBuilder_.dispose(); timeOffsetBuilder_ = null; } - if (xMinBuilder_ == null) { - xMin_ = null; - } else { - xMin_ = null; + xMin_ = null; + if (xMinBuilder_ != null) { + xMinBuilder_.dispose(); xMinBuilder_ = null; } - if (xMaxBuilder_ == null) { - xMax_ = null; - } else { - xMax_ = null; + xMax_ = null; + if (xMaxBuilder_ != null) { + xMaxBuilder_.dispose(); xMaxBuilder_ = null; } - if (yMinBuilder_ == null) { - yMin_ = null; - } else { - yMin_ = null; + yMin_ = null; + if (yMinBuilder_ != null) { + yMinBuilder_.dispose(); yMinBuilder_ = null; } - if (yMaxBuilder_ == null) { - yMax_ = null; - } else { - yMax_ = null; + yMax_ = null; + if (yMaxBuilder_ != null) { + yMaxBuilder_.dispose(); yMaxBuilder_ = null; } return this; @@ -927,33 +923,34 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.prediction .VideoObjectTrackingPredictionResult.Frame(this); - if (timeOffsetBuilder_ == null) { - result.timeOffset_ = timeOffset_; - } else { - result.timeOffset_ = timeOffsetBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (xMinBuilder_ == null) { - result.xMin_ = xMin_; - } else { - result.xMin_ = xMinBuilder_.build(); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.prediction + .VideoObjectTrackingPredictionResult.Frame + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timeOffset_ = + timeOffsetBuilder_ == null ? timeOffset_ : timeOffsetBuilder_.build(); } - if (xMaxBuilder_ == null) { - result.xMax_ = xMax_; - } else { - result.xMax_ = xMaxBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.xMin_ = xMinBuilder_ == null ? xMin_ : xMinBuilder_.build(); } - if (yMinBuilder_ == null) { - result.yMin_ = yMin_; - } else { - result.yMin_ = yMinBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.xMax_ = xMaxBuilder_ == null ? xMax_ : xMaxBuilder_.build(); } - if (yMaxBuilder_ == null) { - result.yMax_ = yMax_; - } else { - result.yMax_ = yMaxBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.yMin_ = yMinBuilder_ == null ? yMin_ : yMinBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.yMax_ = yMaxBuilder_ == null ? yMax_ : yMaxBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -1058,31 +1055,31 @@ public Builder mergeFrom( case 10: { input.readMessage(getTimeOffsetFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getXMinFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getXMaxFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getYMinFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getYMaxFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -1102,6 +1099,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Duration timeOffset_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -1123,7 +1122,7 @@ public Builder mergeFrom( * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { - return timeOffsetBuilder_ != null || timeOffset_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1166,11 +1165,11 @@ public Builder setTimeOffset(com.google.protobuf.Duration value) { throw new NullPointerException(); } timeOffset_ = value; - onChanged(); } else { timeOffsetBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1188,11 +1187,11 @@ public Builder setTimeOffset(com.google.protobuf.Duration value) { public Builder setTimeOffset(com.google.protobuf.Duration.Builder builderForValue) { if (timeOffsetBuilder_ == null) { timeOffset_ = builderForValue.build(); - onChanged(); } else { timeOffsetBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1209,19 +1208,18 @@ public Builder setTimeOffset(com.google.protobuf.Duration.Builder builderForValu */ public Builder mergeTimeOffset(com.google.protobuf.Duration value) { if (timeOffsetBuilder_ == null) { - if (timeOffset_ != null) { - timeOffset_ = - com.google.protobuf.Duration.newBuilder(timeOffset_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && timeOffset_ != null + && timeOffset_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTimeOffsetBuilder().mergeFrom(value); } else { timeOffset_ = value; } - onChanged(); } else { timeOffsetBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1237,14 +1235,13 @@ public Builder mergeTimeOffset(com.google.protobuf.Duration value) { * .google.protobuf.Duration time_offset = 1; */ public Builder clearTimeOffset() { - if (timeOffsetBuilder_ == null) { - timeOffset_ = null; - onChanged(); - } else { - timeOffset_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + timeOffset_ = null; + if (timeOffsetBuilder_ != null) { + timeOffsetBuilder_.dispose(); timeOffsetBuilder_ = null; } - + onChanged(); return this; } /** @@ -1260,7 +1257,7 @@ public Builder clearTimeOffset() { * .google.protobuf.Duration time_offset = 1; */ public com.google.protobuf.Duration.Builder getTimeOffsetBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getTimeOffsetFieldBuilder().getBuilder(); } @@ -1332,7 +1329,7 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * @return Whether the xMin field is set. */ public boolean hasXMin() { - return xMinBuilder_ != null || xMin_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1367,11 +1364,11 @@ public Builder setXMin(com.google.protobuf.FloatValue value) { throw new NullPointerException(); } xMin_ = value; - onChanged(); } else { xMinBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1386,11 +1383,11 @@ public Builder setXMin(com.google.protobuf.FloatValue value) { public Builder setXMin(com.google.protobuf.FloatValue.Builder builderForValue) { if (xMinBuilder_ == null) { xMin_ = builderForValue.build(); - onChanged(); } else { xMinBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1404,17 +1401,18 @@ public Builder setXMin(com.google.protobuf.FloatValue.Builder builderForValue) { */ public Builder mergeXMin(com.google.protobuf.FloatValue value) { if (xMinBuilder_ == null) { - if (xMin_ != null) { - xMin_ = - com.google.protobuf.FloatValue.newBuilder(xMin_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && xMin_ != null + && xMin_ != com.google.protobuf.FloatValue.getDefaultInstance()) { + getXMinBuilder().mergeFrom(value); } else { xMin_ = value; } - onChanged(); } else { xMinBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1427,14 +1425,13 @@ public Builder mergeXMin(com.google.protobuf.FloatValue value) { * .google.protobuf.FloatValue x_min = 2; */ public Builder clearXMin() { - if (xMinBuilder_ == null) { - xMin_ = null; - onChanged(); - } else { - xMin_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + xMin_ = null; + if (xMinBuilder_ != null) { + xMinBuilder_.dispose(); xMinBuilder_ = null; } - + onChanged(); return this; } /** @@ -1447,7 +1444,7 @@ public Builder clearXMin() { * .google.protobuf.FloatValue x_min = 2; */ public com.google.protobuf.FloatValue.Builder getXMinBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getXMinFieldBuilder().getBuilder(); } @@ -1511,7 +1508,7 @@ public com.google.protobuf.FloatValueOrBuilder getXMinOrBuilder() { * @return Whether the xMax field is set. */ public boolean hasXMax() { - return xMaxBuilder_ != null || xMax_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1546,11 +1543,11 @@ public Builder setXMax(com.google.protobuf.FloatValue value) { throw new NullPointerException(); } xMax_ = value; - onChanged(); } else { xMaxBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1565,11 +1562,11 @@ public Builder setXMax(com.google.protobuf.FloatValue value) { public Builder setXMax(com.google.protobuf.FloatValue.Builder builderForValue) { if (xMaxBuilder_ == null) { xMax_ = builderForValue.build(); - onChanged(); } else { xMaxBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1583,17 +1580,18 @@ public Builder setXMax(com.google.protobuf.FloatValue.Builder builderForValue) { */ public Builder mergeXMax(com.google.protobuf.FloatValue value) { if (xMaxBuilder_ == null) { - if (xMax_ != null) { - xMax_ = - com.google.protobuf.FloatValue.newBuilder(xMax_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && xMax_ != null + && xMax_ != com.google.protobuf.FloatValue.getDefaultInstance()) { + getXMaxBuilder().mergeFrom(value); } else { xMax_ = value; } - onChanged(); } else { xMaxBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1606,14 +1604,13 @@ public Builder mergeXMax(com.google.protobuf.FloatValue value) { * .google.protobuf.FloatValue x_max = 3; */ public Builder clearXMax() { - if (xMaxBuilder_ == null) { - xMax_ = null; - onChanged(); - } else { - xMax_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + xMax_ = null; + if (xMaxBuilder_ != null) { + xMaxBuilder_.dispose(); xMaxBuilder_ = null; } - + onChanged(); return this; } /** @@ -1626,7 +1623,7 @@ public Builder clearXMax() { * .google.protobuf.FloatValue x_max = 3; */ public com.google.protobuf.FloatValue.Builder getXMaxBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getXMaxFieldBuilder().getBuilder(); } @@ -1690,7 +1687,7 @@ public com.google.protobuf.FloatValueOrBuilder getXMaxOrBuilder() { * @return Whether the yMin field is set. */ public boolean hasYMin() { - return yMinBuilder_ != null || yMin_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1725,11 +1722,11 @@ public Builder setYMin(com.google.protobuf.FloatValue value) { throw new NullPointerException(); } yMin_ = value; - onChanged(); } else { yMinBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1744,11 +1741,11 @@ public Builder setYMin(com.google.protobuf.FloatValue value) { public Builder setYMin(com.google.protobuf.FloatValue.Builder builderForValue) { if (yMinBuilder_ == null) { yMin_ = builderForValue.build(); - onChanged(); } else { yMinBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1762,17 +1759,18 @@ public Builder setYMin(com.google.protobuf.FloatValue.Builder builderForValue) { */ public Builder mergeYMin(com.google.protobuf.FloatValue value) { if (yMinBuilder_ == null) { - if (yMin_ != null) { - yMin_ = - com.google.protobuf.FloatValue.newBuilder(yMin_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && yMin_ != null + && yMin_ != com.google.protobuf.FloatValue.getDefaultInstance()) { + getYMinBuilder().mergeFrom(value); } else { yMin_ = value; } - onChanged(); } else { yMinBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1785,14 +1783,13 @@ public Builder mergeYMin(com.google.protobuf.FloatValue value) { * .google.protobuf.FloatValue y_min = 4; */ public Builder clearYMin() { - if (yMinBuilder_ == null) { - yMin_ = null; - onChanged(); - } else { - yMin_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + yMin_ = null; + if (yMinBuilder_ != null) { + yMinBuilder_.dispose(); yMinBuilder_ = null; } - + onChanged(); return this; } /** @@ -1805,7 +1802,7 @@ public Builder clearYMin() { * .google.protobuf.FloatValue y_min = 4; */ public com.google.protobuf.FloatValue.Builder getYMinBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getYMinFieldBuilder().getBuilder(); } @@ -1869,7 +1866,7 @@ public com.google.protobuf.FloatValueOrBuilder getYMinOrBuilder() { * @return Whether the yMax field is set. */ public boolean hasYMax() { - return yMaxBuilder_ != null || yMax_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1904,11 +1901,11 @@ public Builder setYMax(com.google.protobuf.FloatValue value) { throw new NullPointerException(); } yMax_ = value; - onChanged(); } else { yMaxBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1923,11 +1920,11 @@ public Builder setYMax(com.google.protobuf.FloatValue value) { public Builder setYMax(com.google.protobuf.FloatValue.Builder builderForValue) { if (yMaxBuilder_ == null) { yMax_ = builderForValue.build(); - onChanged(); } else { yMaxBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1941,17 +1938,18 @@ public Builder setYMax(com.google.protobuf.FloatValue.Builder builderForValue) { */ public Builder mergeYMax(com.google.protobuf.FloatValue value) { if (yMaxBuilder_ == null) { - if (yMax_ != null) { - yMax_ = - com.google.protobuf.FloatValue.newBuilder(yMax_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && yMax_ != null + && yMax_ != com.google.protobuf.FloatValue.getDefaultInstance()) { + getYMaxBuilder().mergeFrom(value); } else { yMax_ = value; } - onChanged(); } else { yMaxBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1964,14 +1962,13 @@ public Builder mergeYMax(com.google.protobuf.FloatValue value) { * .google.protobuf.FloatValue y_max = 5; */ public Builder clearYMax() { - if (yMaxBuilder_ == null) { - yMax_ = null; - onChanged(); - } else { - yMax_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + yMax_ = null; + if (yMaxBuilder_ != null) { + yMaxBuilder_.dispose(); yMaxBuilder_ = null; } - + onChanged(); return this; } /** @@ -1984,7 +1981,7 @@ public Builder clearYMax() { * .google.protobuf.FloatValue y_max = 5; */ public com.google.protobuf.FloatValue.Builder getYMaxBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getYMaxFieldBuilder().getBuilder(); } @@ -2103,7 +2100,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -2152,7 +2151,9 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -2254,7 +2255,9 @@ public com.google.protobuf.Duration getTimeSegmentStart() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeSegmentStartOrBuilder() { - return getTimeSegmentStart(); + return timeSegmentStart_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeSegmentStart_; } public static final int TIME_SEGMENT_END_FIELD_NUMBER = 4; @@ -2311,7 +2314,9 @@ public com.google.protobuf.Duration getTimeSegmentEnd() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeSegmentEndOrBuilder() { - return getTimeSegmentEnd(); + return timeSegmentEnd_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeSegmentEnd_; } public static final int CONFIDENCE_FIELD_NUMBER = 5; @@ -2360,10 +2365,12 @@ public com.google.protobuf.FloatValue getConfidence() { */ @java.lang.Override public com.google.protobuf.FloatValueOrBuilder getConfidenceOrBuilder() { - return getConfidence(); + return confidence_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : confidence_; } public static final int FRAMES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1.schema.predict.prediction .VideoObjectTrackingPredictionResult.Frame> @@ -2752,26 +2759,22 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - displayName_ = ""; - - if (timeSegmentStartBuilder_ == null) { - timeSegmentStart_ = null; - } else { - timeSegmentStart_ = null; + timeSegmentStart_ = null; + if (timeSegmentStartBuilder_ != null) { + timeSegmentStartBuilder_.dispose(); timeSegmentStartBuilder_ = null; } - if (timeSegmentEndBuilder_ == null) { - timeSegmentEnd_ = null; - } else { - timeSegmentEnd_ = null; + timeSegmentEnd_ = null; + if (timeSegmentEndBuilder_ != null) { + timeSegmentEndBuilder_.dispose(); timeSegmentEndBuilder_ = null; } - if (confidenceBuilder_ == null) { - confidence_ = null; - } else { - confidence_ = null; + confidence_ = null; + if (confidenceBuilder_ != null) { + confidenceBuilder_.dispose(); confidenceBuilder_ = null; } if (framesBuilder_ == null) { @@ -2780,7 +2783,7 @@ public Builder clear() { frames_ = null; framesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); return this; } @@ -2819,35 +2822,49 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.predict.prediction .VideoObjectTrackingPredictionResult(this); - int from_bitField0_ = bitField0_; - result.id_ = id_; - result.displayName_ = displayName_; - if (timeSegmentStartBuilder_ == null) { - result.timeSegmentStart_ = timeSegmentStart_; - } else { - result.timeSegmentStart_ = timeSegmentStartBuilder_.build(); - } - if (timeSegmentEndBuilder_ == null) { - result.timeSegmentEnd_ = timeSegmentEnd_; - } else { - result.timeSegmentEnd_ = timeSegmentEndBuilder_.build(); - } - if (confidenceBuilder_ == null) { - result.confidence_ = confidence_; - } else { - result.confidence_ = confidenceBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult + result) { if (framesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); } result.frames_ = frames_; } else { result.frames_ = framesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.timeSegmentStart_ = + timeSegmentStartBuilder_ == null ? timeSegmentStart_ : timeSegmentStartBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.timeSegmentEnd_ = + timeSegmentEndBuilder_ == null ? timeSegmentEnd_ : timeSegmentEndBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.confidence_ = confidenceBuilder_ == null ? confidence_ : confidenceBuilder_.build(); + } } @java.lang.Override @@ -2907,10 +2924,12 @@ public Builder mergeFrom( .VideoObjectTrackingPredictionResult.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasTimeSegmentStart()) { @@ -2926,7 +2945,7 @@ public Builder mergeFrom( if (!other.frames_.isEmpty()) { if (frames_.isEmpty()) { frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureFramesIsMutable(); frames_.addAll(other.frames_); @@ -2939,7 +2958,7 @@ public Builder mergeFrom( framesBuilder_.dispose(); framesBuilder_ = null; frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); framesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFramesFieldBuilder() @@ -2978,32 +2997,32 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getTimeSegmentStartFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getTimeSegmentEndFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getConfidenceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: @@ -3103,8 +3122,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3120,8 +3139,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3142,8 +3161,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3209,8 +3228,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3226,8 +3245,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3248,8 +3267,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3275,7 +3294,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the timeSegmentStart field is set. */ public boolean hasTimeSegmentStart() { - return timeSegmentStartBuilder_ != null || timeSegmentStart_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -3318,11 +3337,11 @@ public Builder setTimeSegmentStart(com.google.protobuf.Duration value) { throw new NullPointerException(); } timeSegmentStart_ = value; - onChanged(); } else { timeSegmentStartBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3340,11 +3359,11 @@ public Builder setTimeSegmentStart(com.google.protobuf.Duration value) { public Builder setTimeSegmentStart(com.google.protobuf.Duration.Builder builderForValue) { if (timeSegmentStartBuilder_ == null) { timeSegmentStart_ = builderForValue.build(); - onChanged(); } else { timeSegmentStartBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3361,19 +3380,18 @@ public Builder setTimeSegmentStart(com.google.protobuf.Duration.Builder builderF */ public Builder mergeTimeSegmentStart(com.google.protobuf.Duration value) { if (timeSegmentStartBuilder_ == null) { - if (timeSegmentStart_ != null) { - timeSegmentStart_ = - com.google.protobuf.Duration.newBuilder(timeSegmentStart_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && timeSegmentStart_ != null + && timeSegmentStart_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTimeSegmentStartBuilder().mergeFrom(value); } else { timeSegmentStart_ = value; } - onChanged(); } else { timeSegmentStartBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3389,14 +3407,13 @@ public Builder mergeTimeSegmentStart(com.google.protobuf.Duration value) { * .google.protobuf.Duration time_segment_start = 3; */ public Builder clearTimeSegmentStart() { - if (timeSegmentStartBuilder_ == null) { - timeSegmentStart_ = null; - onChanged(); - } else { - timeSegmentStart_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + timeSegmentStart_ = null; + if (timeSegmentStartBuilder_ != null) { + timeSegmentStartBuilder_.dispose(); timeSegmentStartBuilder_ = null; } - + onChanged(); return this; } /** @@ -3412,7 +3429,7 @@ public Builder clearTimeSegmentStart() { * .google.protobuf.Duration time_segment_start = 3; */ public com.google.protobuf.Duration.Builder getTimeSegmentStartBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getTimeSegmentStartFieldBuilder().getBuilder(); } @@ -3487,7 +3504,7 @@ public com.google.protobuf.DurationOrBuilder getTimeSegmentStartOrBuilder() { * @return Whether the timeSegmentEnd field is set. */ public boolean hasTimeSegmentEnd() { - return timeSegmentEndBuilder_ != null || timeSegmentEnd_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -3530,11 +3547,11 @@ public Builder setTimeSegmentEnd(com.google.protobuf.Duration value) { throw new NullPointerException(); } timeSegmentEnd_ = value; - onChanged(); } else { timeSegmentEndBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3552,11 +3569,11 @@ public Builder setTimeSegmentEnd(com.google.protobuf.Duration value) { public Builder setTimeSegmentEnd(com.google.protobuf.Duration.Builder builderForValue) { if (timeSegmentEndBuilder_ == null) { timeSegmentEnd_ = builderForValue.build(); - onChanged(); } else { timeSegmentEndBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3573,19 +3590,18 @@ public Builder setTimeSegmentEnd(com.google.protobuf.Duration.Builder builderFor */ public Builder mergeTimeSegmentEnd(com.google.protobuf.Duration value) { if (timeSegmentEndBuilder_ == null) { - if (timeSegmentEnd_ != null) { - timeSegmentEnd_ = - com.google.protobuf.Duration.newBuilder(timeSegmentEnd_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && timeSegmentEnd_ != null + && timeSegmentEnd_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTimeSegmentEndBuilder().mergeFrom(value); } else { timeSegmentEnd_ = value; } - onChanged(); } else { timeSegmentEndBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3601,14 +3617,13 @@ public Builder mergeTimeSegmentEnd(com.google.protobuf.Duration value) { * .google.protobuf.Duration time_segment_end = 4; */ public Builder clearTimeSegmentEnd() { - if (timeSegmentEndBuilder_ == null) { - timeSegmentEnd_ = null; - onChanged(); - } else { - timeSegmentEnd_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + timeSegmentEnd_ = null; + if (timeSegmentEndBuilder_ != null) { + timeSegmentEndBuilder_.dispose(); timeSegmentEndBuilder_ = null; } - + onChanged(); return this; } /** @@ -3624,7 +3639,7 @@ public Builder clearTimeSegmentEnd() { * .google.protobuf.Duration time_segment_end = 4; */ public com.google.protobuf.Duration.Builder getTimeSegmentEndBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getTimeSegmentEndFieldBuilder().getBuilder(); } @@ -3697,7 +3712,7 @@ public com.google.protobuf.DurationOrBuilder getTimeSegmentEndOrBuilder() { * @return Whether the confidence field is set. */ public boolean hasConfidence() { - return confidenceBuilder_ != null || confidence_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -3736,11 +3751,11 @@ public Builder setConfidence(com.google.protobuf.FloatValue value) { throw new NullPointerException(); } confidence_ = value; - onChanged(); } else { confidenceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3756,11 +3771,11 @@ public Builder setConfidence(com.google.protobuf.FloatValue value) { public Builder setConfidence(com.google.protobuf.FloatValue.Builder builderForValue) { if (confidenceBuilder_ == null) { confidence_ = builderForValue.build(); - onChanged(); } else { confidenceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3775,19 +3790,18 @@ public Builder setConfidence(com.google.protobuf.FloatValue.Builder builderForVa */ public Builder mergeConfidence(com.google.protobuf.FloatValue value) { if (confidenceBuilder_ == null) { - if (confidence_ != null) { - confidence_ = - com.google.protobuf.FloatValue.newBuilder(confidence_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && confidence_ != null + && confidence_ != com.google.protobuf.FloatValue.getDefaultInstance()) { + getConfidenceBuilder().mergeFrom(value); } else { confidence_ = value; } - onChanged(); } else { confidenceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3801,14 +3815,13 @@ public Builder mergeConfidence(com.google.protobuf.FloatValue value) { * .google.protobuf.FloatValue confidence = 5; */ public Builder clearConfidence() { - if (confidenceBuilder_ == null) { - confidence_ = null; - onChanged(); - } else { - confidence_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + confidence_ = null; + if (confidenceBuilder_ != null) { + confidenceBuilder_.dispose(); confidenceBuilder_ = null; } - + onChanged(); return this; } /** @@ -3822,7 +3835,7 @@ public Builder clearConfidence() { * .google.protobuf.FloatValue confidence = 5; */ public com.google.protobuf.FloatValue.Builder getConfidenceBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getConfidenceFieldBuilder().getBuilder(); } @@ -3878,12 +3891,12 @@ public com.google.protobuf.FloatValueOrBuilder getConfidenceOrBuilder() { frames_ = java.util.Collections.emptyList(); private void ensureFramesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { frames_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1.schema.predict.prediction .VideoObjectTrackingPredictionResult.Frame>(frames_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000020; } } @@ -4163,7 +4176,7 @@ public Builder addAllFrames( public Builder clearFrames() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { framesBuilder_.clear(); @@ -4330,7 +4343,7 @@ public Builder removeFrames(int index) { .VideoObjectTrackingPredictionResult.Frame.Builder, com.google.cloud.aiplatform.v1.schema.predict.prediction .VideoObjectTrackingPredictionResult.FrameOrBuilder>( - frames_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + frames_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); frames_ = null; } return framesBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassification.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassification.java index a6efada96392..5a5007c731b9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassification.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassification.java @@ -129,7 +129,10 @@ public boolean hasInputs() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageClassificationInputsOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null + ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlImageClassificationInputs.getDefaultInstance() + : inputs_; } public static final int METADATA_FIELD_NUMBER = 2; @@ -190,7 +193,10 @@ public boolean hasMetadata() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageClassificationMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null + ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlImageClassificationMetadata.getDefaultInstance() + : metadata_; } private byte memoizedIsInitialized = -1; @@ -439,16 +445,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + bitField0_ = 0; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; @@ -486,20 +491,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageClassification(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -588,13 +598,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -614,6 +624,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageClassificationInputs inputs_; @@ -639,7 +651,7 @@ public Builder mergeFrom( * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -685,11 +697,11 @@ public Builder setInputs( throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -709,11 +721,11 @@ public Builder setInputs( builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -731,20 +743,20 @@ public Builder mergeInputs( com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlImageClassificationInputs.newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && inputs_ != null + && inputs_ + != com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlImageClassificationInputs.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -759,14 +771,13 @@ public Builder mergeInputs( * */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -783,7 +794,7 @@ public Builder clearInputs() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageClassificationInputs.Builder getInputsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputsFieldBuilder().getBuilder(); } @@ -869,7 +880,7 @@ public Builder clearInputs() { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -916,11 +927,11 @@ public Builder setMetadata( throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -940,11 +951,11 @@ public Builder setMetadata( builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -963,20 +974,20 @@ public Builder mergeMetadata( .AutoMlImageClassificationMetadata value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlImageClassificationMetadata.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlImageClassificationMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -991,14 +1002,13 @@ public Builder mergeMetadata( * */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -1015,7 +1025,7 @@ public Builder clearMetadata() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageClassificationMetadata.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassificationInputs.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassificationInputs.java index 8966bbeb32a2..1c3a9103afa6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassificationInputs.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassificationInputs.java @@ -293,7 +293,7 @@ private ModelType(int value) { } public static final int MODEL_TYPE_FIELD_NUMBER = 1; - private int modelType_; + private int modelType_ = 0; /** * * .google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType model_type = 1; @@ -316,12 +316,11 @@ public int getModelTypeValue() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageClassificationInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs .ModelType result = com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlImageClassificationInputs.ModelType.valueOf(modelType_); + .AutoMlImageClassificationInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageClassificationInputs.ModelType.UNRECOGNIZED @@ -329,7 +328,9 @@ public int getModelTypeValue() { } public static final int BASE_MODEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object baseModelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object baseModelId_ = ""; /** * * @@ -386,7 +387,7 @@ public com.google.protobuf.ByteString getBaseModelIdBytes() { } public static final int BUDGET_MILLI_NODE_HOURS_FIELD_NUMBER = 3; - private long budgetMilliNodeHours_; + private long budgetMilliNodeHours_ = 0L; /** * * @@ -418,7 +419,7 @@ public long getBudgetMilliNodeHours() { } public static final int DISABLE_EARLY_STOPPING_FIELD_NUMBER = 4; - private boolean disableEarlyStopping_; + private boolean disableEarlyStopping_ = false; /** * * @@ -439,7 +440,7 @@ public boolean getDisableEarlyStopping() { } public static final int MULTI_LABEL_FIELD_NUMBER = 5; - private boolean multiLabel_; + private boolean multiLabel_ = false; /** * * @@ -725,16 +726,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; modelType_ = 0; - baseModelId_ = ""; - budgetMilliNodeHours_ = 0L; - disableEarlyStopping_ = false; - multiLabel_ = false; - return this; } @@ -773,15 +770,34 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageClassificationInputs(this); - result.modelType_ = modelType_; - result.baseModelId_ = baseModelId_; - result.budgetMilliNodeHours_ = budgetMilliNodeHours_; - result.disableEarlyStopping_ = disableEarlyStopping_; - result.multiLabel_ = multiLabel_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelType_ = modelType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.baseModelId_ = baseModelId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.budgetMilliNodeHours_ = budgetMilliNodeHours_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.disableEarlyStopping_ = disableEarlyStopping_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.multiLabel_ = multiLabel_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -842,6 +858,7 @@ public Builder mergeFrom( } if (!other.getBaseModelId().isEmpty()) { baseModelId_ = other.baseModelId_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getBudgetMilliNodeHours() != 0L) { @@ -882,31 +899,31 @@ public Builder mergeFrom( case 8: { modelType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { baseModelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { budgetMilliNodeHours_ = input.readInt64(); - + bitField0_ |= 0x00000004; break; } // case 24 case 32: { disableEarlyStopping_ = input.readBool(); - + bitField0_ |= 0x00000008; break; } // case 32 case 40: { multiLabel_ = input.readBool(); - + bitField0_ |= 0x00000010; break; } // case 40 default: @@ -926,6 +943,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int modelType_ = 0; /** * @@ -947,8 +966,8 @@ public int getModelTypeValue() { * @return This builder for chaining. */ public Builder setModelTypeValue(int value) { - modelType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -963,12 +982,11 @@ public Builder setModelTypeValue(int value) { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageClassificationInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs .ModelType result = com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlImageClassificationInputs.ModelType.valueOf(modelType_); + .AutoMlImageClassificationInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageClassificationInputs.ModelType.UNRECOGNIZED @@ -989,7 +1007,7 @@ public Builder setModelType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; modelType_ = value.getNumber(); onChanged(); return this; @@ -1002,7 +1020,7 @@ public Builder setModelType( * @return This builder for chaining. */ public Builder clearModelType() { - + bitField0_ = (bitField0_ & ~0x00000001); modelType_ = 0; onChanged(); return this; @@ -1081,8 +1099,8 @@ public Builder setBaseModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - baseModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1102,8 +1120,8 @@ public Builder setBaseModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearBaseModelId() { - baseModelId_ = getDefaultInstance().getBaseModelId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1128,8 +1146,8 @@ public Builder setBaseModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - baseModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1193,6 +1211,7 @@ public long getBudgetMilliNodeHours() { public Builder setBudgetMilliNodeHours(long value) { budgetMilliNodeHours_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1222,7 +1241,7 @@ public Builder setBudgetMilliNodeHours(long value) { * @return This builder for chaining. */ public Builder clearBudgetMilliNodeHours() { - + bitField0_ = (bitField0_ & ~0x00000004); budgetMilliNodeHours_ = 0L; onChanged(); return this; @@ -1265,6 +1284,7 @@ public boolean getDisableEarlyStopping() { public Builder setDisableEarlyStopping(boolean value) { disableEarlyStopping_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1283,7 +1303,7 @@ public Builder setDisableEarlyStopping(boolean value) { * @return This builder for chaining. */ public Builder clearDisableEarlyStopping() { - + bitField0_ = (bitField0_ & ~0x00000008); disableEarlyStopping_ = false; onChanged(); return this; @@ -1326,6 +1346,7 @@ public boolean getMultiLabel() { public Builder setMultiLabel(boolean value) { multiLabel_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1344,7 +1365,7 @@ public Builder setMultiLabel(boolean value) { * @return This builder for chaining. */ public Builder clearMultiLabel() { - + bitField0_ = (bitField0_ & ~0x00000010); multiLabel_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassificationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassificationMetadata.java index 7d237f8ec597..5e6ba3b86c9c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassificationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageClassificationMetadata.java @@ -229,7 +229,7 @@ private SuccessfulStopReason(int value) { } public static final int COST_MILLI_NODE_HOURS_FIELD_NUMBER = 1; - private long costMilliNodeHours_; + private long costMilliNodeHours_ = 0L; /** * * @@ -249,7 +249,7 @@ public long getCostMilliNodeHours() { } public static final int SUCCESSFUL_STOP_REASON_FIELD_NUMBER = 2; - private int successfulStopReason_; + private int successfulStopReason_ = 0; /** * * @@ -286,12 +286,11 @@ public int getSuccessfulStopReasonValue() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageClassificationMetadata.SuccessfulStopReason getSuccessfulStopReason() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata .SuccessfulStopReason result = com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlImageClassificationMetadata.SuccessfulStopReason.valueOf( + .AutoMlImageClassificationMetadata.SuccessfulStopReason.forNumber( successfulStopReason_); return result == null ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition @@ -540,10 +539,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; costMilliNodeHours_ = 0L; - successfulStopReason_ = 0; - return this; } @@ -582,12 +580,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageClassificationMetadata(this); - result.costMilliNodeHours_ = costMilliNodeHours_; - result.successfulStopReason_ = successfulStopReason_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlImageClassificationMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.costMilliNodeHours_ = costMilliNodeHours_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.successfulStopReason_ = successfulStopReason_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -679,13 +691,13 @@ public Builder mergeFrom( case 8: { costMilliNodeHours_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { successfulStopReason_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -705,6 +717,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long costMilliNodeHours_; /** * @@ -740,6 +754,7 @@ public long getCostMilliNodeHours() { public Builder setCostMilliNodeHours(long value) { costMilliNodeHours_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -757,7 +772,7 @@ public Builder setCostMilliNodeHours(long value) { * @return This builder for chaining. */ public Builder clearCostMilliNodeHours() { - + bitField0_ = (bitField0_ & ~0x00000001); costMilliNodeHours_ = 0L; onChanged(); return this; @@ -798,8 +813,8 @@ public int getSuccessfulStopReasonValue() { * @return This builder for chaining. */ public Builder setSuccessfulStopReasonValue(int value) { - successfulStopReason_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -821,12 +836,11 @@ public Builder setSuccessfulStopReasonValue(int value) { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageClassificationMetadata.SuccessfulStopReason getSuccessfulStopReason() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata .SuccessfulStopReason result = com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlImageClassificationMetadata.SuccessfulStopReason.valueOf( + .AutoMlImageClassificationMetadata.SuccessfulStopReason.forNumber( successfulStopReason_); return result == null ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition @@ -855,7 +869,7 @@ public Builder setSuccessfulStopReason( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; successfulStopReason_ = value.getNumber(); onChanged(); return this; @@ -875,7 +889,7 @@ public Builder setSuccessfulStopReason( * @return This builder for chaining. */ public Builder clearSuccessfulStopReason() { - + bitField0_ = (bitField0_ & ~0x00000002); successfulStopReason_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetection.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetection.java index 463c3544a8eb..d3afbb336f90 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetection.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetection.java @@ -129,7 +129,10 @@ public boolean hasInputs() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageObjectDetectionInputsOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null + ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlImageObjectDetectionInputs.getDefaultInstance() + : inputs_; } public static final int METADATA_FIELD_NUMBER = 2; @@ -190,7 +193,10 @@ public boolean hasMetadata() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageObjectDetectionMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null + ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlImageObjectDetectionMetadata.getDefaultInstance() + : metadata_; } private byte memoizedIsInitialized = -1; @@ -439,16 +445,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + bitField0_ = 0; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; @@ -486,20 +491,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageObjectDetection(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -589,13 +599,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -615,6 +625,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageObjectDetectionInputs inputs_; @@ -640,7 +652,7 @@ public Builder mergeFrom( * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -687,11 +699,11 @@ public Builder setInputs( throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -711,11 +723,11 @@ public Builder setInputs( builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -734,20 +746,20 @@ public Builder mergeInputs( .AutoMlImageObjectDetectionInputs value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlImageObjectDetectionInputs.newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && inputs_ != null + && inputs_ + != com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlImageObjectDetectionInputs.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -762,14 +774,13 @@ public Builder mergeInputs( * */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -786,7 +797,7 @@ public Builder clearInputs() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageObjectDetectionInputs.Builder getInputsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputsFieldBuilder().getBuilder(); } @@ -872,7 +883,7 @@ public Builder clearInputs() { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -919,11 +930,11 @@ public Builder setMetadata( throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -943,11 +954,11 @@ public Builder setMetadata( builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -966,20 +977,20 @@ public Builder mergeMetadata( .AutoMlImageObjectDetectionMetadata value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlImageObjectDetectionMetadata.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlImageObjectDetectionMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -994,14 +1005,13 @@ public Builder mergeMetadata( * */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -1018,7 +1028,7 @@ public Builder clearMetadata() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageObjectDetectionMetadata.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetectionInputs.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetectionInputs.java index ddedf29adc16..634b295bc4b5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetectionInputs.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetectionInputs.java @@ -318,7 +318,7 @@ private ModelType(int value) { } public static final int MODEL_TYPE_FIELD_NUMBER = 1; - private int modelType_; + private int modelType_ = 0; /** * * .google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType model_type = 1; @@ -341,12 +341,11 @@ public int getModelTypeValue() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageObjectDetectionInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs .ModelType result = com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlImageObjectDetectionInputs.ModelType.valueOf(modelType_); + .AutoMlImageObjectDetectionInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageObjectDetectionInputs.ModelType.UNRECOGNIZED @@ -354,7 +353,7 @@ public int getModelTypeValue() { } public static final int BUDGET_MILLI_NODE_HOURS_FIELD_NUMBER = 2; - private long budgetMilliNodeHours_; + private long budgetMilliNodeHours_ = 0L; /** * * @@ -386,7 +385,7 @@ public long getBudgetMilliNodeHours() { } public static final int DISABLE_EARLY_STOPPING_FIELD_NUMBER = 3; - private boolean disableEarlyStopping_; + private boolean disableEarlyStopping_ = false; /** * * @@ -654,12 +653,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; modelType_ = 0; - budgetMilliNodeHours_ = 0L; - disableEarlyStopping_ = false; - return this; } @@ -698,13 +695,29 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageObjectDetectionInputs(this); - result.modelType_ = modelType_; - result.budgetMilliNodeHours_ = budgetMilliNodeHours_; - result.disableEarlyStopping_ = disableEarlyStopping_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlImageObjectDetectionInputs + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelType_ = modelType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.budgetMilliNodeHours_ = budgetMilliNodeHours_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.disableEarlyStopping_ = disableEarlyStopping_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -799,19 +812,19 @@ public Builder mergeFrom( case 8: { modelType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { budgetMilliNodeHours_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { disableEarlyStopping_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -831,6 +844,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int modelType_ = 0; /** * @@ -852,8 +867,8 @@ public int getModelTypeValue() { * @return This builder for chaining. */ public Builder setModelTypeValue(int value) { - modelType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -868,12 +883,11 @@ public Builder setModelTypeValue(int value) { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageObjectDetectionInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs .ModelType result = com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlImageObjectDetectionInputs.ModelType.valueOf(modelType_); + .AutoMlImageObjectDetectionInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageObjectDetectionInputs.ModelType.UNRECOGNIZED @@ -894,7 +908,7 @@ public Builder setModelType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; modelType_ = value.getNumber(); onChanged(); return this; @@ -907,7 +921,7 @@ public Builder setModelType( * @return This builder for chaining. */ public Builder clearModelType() { - + bitField0_ = (bitField0_ & ~0x00000001); modelType_ = 0; onChanged(); return this; @@ -972,6 +986,7 @@ public long getBudgetMilliNodeHours() { public Builder setBudgetMilliNodeHours(long value) { budgetMilliNodeHours_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1001,7 +1016,7 @@ public Builder setBudgetMilliNodeHours(long value) { * @return This builder for chaining. */ public Builder clearBudgetMilliNodeHours() { - + bitField0_ = (bitField0_ & ~0x00000002); budgetMilliNodeHours_ = 0L; onChanged(); return this; @@ -1044,6 +1059,7 @@ public boolean getDisableEarlyStopping() { public Builder setDisableEarlyStopping(boolean value) { disableEarlyStopping_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1062,7 +1078,7 @@ public Builder setDisableEarlyStopping(boolean value) { * @return This builder for chaining. */ public Builder clearDisableEarlyStopping() { - + bitField0_ = (bitField0_ & ~0x00000004); disableEarlyStopping_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetectionMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetectionMetadata.java index b8567f90d283..769165c7e934 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetectionMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageObjectDetectionMetadata.java @@ -229,7 +229,7 @@ private SuccessfulStopReason(int value) { } public static final int COST_MILLI_NODE_HOURS_FIELD_NUMBER = 1; - private long costMilliNodeHours_; + private long costMilliNodeHours_ = 0L; /** * * @@ -249,7 +249,7 @@ public long getCostMilliNodeHours() { } public static final int SUCCESSFUL_STOP_REASON_FIELD_NUMBER = 2; - private int successfulStopReason_; + private int successfulStopReason_ = 0; /** * * @@ -286,12 +286,11 @@ public int getSuccessfulStopReasonValue() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageObjectDetectionMetadata.SuccessfulStopReason getSuccessfulStopReason() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata .SuccessfulStopReason result = com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlImageObjectDetectionMetadata.SuccessfulStopReason.valueOf( + .AutoMlImageObjectDetectionMetadata.SuccessfulStopReason.forNumber( successfulStopReason_); return result == null ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition @@ -541,10 +540,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; costMilliNodeHours_ = 0L; - successfulStopReason_ = 0; - return this; } @@ -585,12 +583,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageObjectDetectionMetadata(this); - result.costMilliNodeHours_ = costMilliNodeHours_; - result.successfulStopReason_ = successfulStopReason_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlImageObjectDetectionMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.costMilliNodeHours_ = costMilliNodeHours_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.successfulStopReason_ = successfulStopReason_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -682,13 +694,13 @@ public Builder mergeFrom( case 8: { costMilliNodeHours_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { successfulStopReason_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -708,6 +720,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long costMilliNodeHours_; /** * @@ -743,6 +757,7 @@ public long getCostMilliNodeHours() { public Builder setCostMilliNodeHours(long value) { costMilliNodeHours_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -760,7 +775,7 @@ public Builder setCostMilliNodeHours(long value) { * @return This builder for chaining. */ public Builder clearCostMilliNodeHours() { - + bitField0_ = (bitField0_ & ~0x00000001); costMilliNodeHours_ = 0L; onChanged(); return this; @@ -801,8 +816,8 @@ public int getSuccessfulStopReasonValue() { * @return This builder for chaining. */ public Builder setSuccessfulStopReasonValue(int value) { - successfulStopReason_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -824,12 +839,11 @@ public Builder setSuccessfulStopReasonValue(int value) { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageObjectDetectionMetadata.SuccessfulStopReason getSuccessfulStopReason() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageObjectDetectionMetadata.SuccessfulStopReason result = com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlImageObjectDetectionMetadata.SuccessfulStopReason.valueOf( + .AutoMlImageObjectDetectionMetadata.SuccessfulStopReason.forNumber( successfulStopReason_); return result == null ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition @@ -858,7 +872,7 @@ public Builder setSuccessfulStopReason( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; successfulStopReason_ = value.getNumber(); onChanged(); return this; @@ -878,7 +892,7 @@ public Builder setSuccessfulStopReason( * @return This builder for chaining. */ public Builder clearSuccessfulStopReason() { - + bitField0_ = (bitField0_ & ~0x00000002); successfulStopReason_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentation.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentation.java index 56b815571203..eaf3f978eba8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentation.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentation.java @@ -124,7 +124,10 @@ public boolean hasInputs() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageSegmentationInputsOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null + ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs + .getDefaultInstance() + : inputs_; } public static final int METADATA_FIELD_NUMBER = 2; @@ -185,7 +188,10 @@ public boolean hasMetadata() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageSegmentationMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null + ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlImageSegmentationMetadata.getDefaultInstance() + : metadata_; } private byte memoizedIsInitialized = -1; @@ -421,16 +427,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + bitField0_ = 0; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; @@ -467,20 +472,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation( this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -569,13 +579,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -595,6 +605,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageSegmentationInputs inputs_; @@ -620,7 +632,7 @@ public Builder mergeFrom( * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -666,11 +678,11 @@ public Builder setInputs( throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -690,11 +702,11 @@ public Builder setInputs( builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -712,20 +724,20 @@ public Builder mergeInputs( com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlImageSegmentationInputs.newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && inputs_ != null + && inputs_ + != com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlImageSegmentationInputs.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -740,14 +752,13 @@ public Builder mergeInputs( * */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -764,7 +775,7 @@ public Builder clearInputs() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageSegmentationInputs.Builder getInputsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputsFieldBuilder().getBuilder(); } @@ -850,7 +861,7 @@ public Builder clearInputs() { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -896,11 +907,11 @@ public Builder setMetadata( throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -920,11 +931,11 @@ public Builder setMetadata( builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -942,20 +953,20 @@ public Builder mergeMetadata( com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlImageSegmentationMetadata.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlImageSegmentationMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -970,14 +981,13 @@ public Builder mergeMetadata( * */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -994,7 +1004,7 @@ public Builder clearMetadata() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageSegmentationMetadata.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentationInputs.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentationInputs.java index 55471acdc4e2..e43126a8435f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentationInputs.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentationInputs.java @@ -257,7 +257,7 @@ private ModelType(int value) { } public static final int MODEL_TYPE_FIELD_NUMBER = 1; - private int modelType_; + private int modelType_ = 0; /** * * .google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType model_type = 1; @@ -280,12 +280,11 @@ public int getModelTypeValue() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs .ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs .ModelType result = com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlImageSegmentationInputs.ModelType.valueOf(modelType_); + .AutoMlImageSegmentationInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs .ModelType.UNRECOGNIZED @@ -293,7 +292,7 @@ public int getModelTypeValue() { } public static final int BUDGET_MILLI_NODE_HOURS_FIELD_NUMBER = 2; - private long budgetMilliNodeHours_; + private long budgetMilliNodeHours_ = 0L; /** * * @@ -323,7 +322,9 @@ public long getBudgetMilliNodeHours() { } public static final int BASE_MODEL_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object baseModelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object baseModelId_ = ""; /** * * @@ -627,12 +628,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; modelType_ = 0; - budgetMilliNodeHours_ = 0L; - baseModelId_ = ""; - return this; } @@ -671,13 +670,28 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageSegmentationInputs(this); - result.modelType_ = modelType_; - result.budgetMilliNodeHours_ = budgetMilliNodeHours_; - result.baseModelId_ = baseModelId_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelType_ = modelType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.budgetMilliNodeHours_ = budgetMilliNodeHours_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.baseModelId_ = baseModelId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -741,6 +755,7 @@ public Builder mergeFrom( } if (!other.getBaseModelId().isEmpty()) { baseModelId_ = other.baseModelId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -772,19 +787,19 @@ public Builder mergeFrom( case 8: { modelType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { budgetMilliNodeHours_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { baseModelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -804,6 +819,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int modelType_ = 0; /** * @@ -825,8 +842,8 @@ public int getModelTypeValue() { * @return This builder for chaining. */ public Builder setModelTypeValue(int value) { - modelType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -841,12 +858,11 @@ public Builder setModelTypeValue(int value) { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageSegmentationInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs .ModelType result = com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlImageSegmentationInputs.ModelType.valueOf(modelType_); + .AutoMlImageSegmentationInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageSegmentationInputs.ModelType.UNRECOGNIZED @@ -867,7 +883,7 @@ public Builder setModelType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; modelType_ = value.getNumber(); onChanged(); return this; @@ -880,7 +896,7 @@ public Builder setModelType( * @return This builder for chaining. */ public Builder clearModelType() { - + bitField0_ = (bitField0_ & ~0x00000001); modelType_ = 0; onChanged(); return this; @@ -941,6 +957,7 @@ public long getBudgetMilliNodeHours() { public Builder setBudgetMilliNodeHours(long value) { budgetMilliNodeHours_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -968,7 +985,7 @@ public Builder setBudgetMilliNodeHours(long value) { * @return This builder for chaining. */ public Builder clearBudgetMilliNodeHours() { - + bitField0_ = (bitField0_ & ~0x00000002); budgetMilliNodeHours_ = 0L; onChanged(); return this; @@ -1047,8 +1064,8 @@ public Builder setBaseModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - baseModelId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1068,8 +1085,8 @@ public Builder setBaseModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearBaseModelId() { - baseModelId_ = getDefaultInstance().getBaseModelId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1094,8 +1111,8 @@ public Builder setBaseModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - baseModelId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentationMetadata.java index 7d5ee8c8b47b..51099f32252f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlImageSegmentationMetadata.java @@ -226,7 +226,7 @@ private SuccessfulStopReason(int value) { } public static final int COST_MILLI_NODE_HOURS_FIELD_NUMBER = 1; - private long costMilliNodeHours_; + private long costMilliNodeHours_ = 0L; /** * * @@ -246,7 +246,7 @@ public long getCostMilliNodeHours() { } public static final int SUCCESSFUL_STOP_REASON_FIELD_NUMBER = 2; - private int successfulStopReason_; + private int successfulStopReason_ = 0; /** * * @@ -283,12 +283,11 @@ public int getSuccessfulStopReasonValue() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageSegmentationMetadata.SuccessfulStopReason getSuccessfulStopReason() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata .SuccessfulStopReason result = com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlImageSegmentationMetadata.SuccessfulStopReason.valueOf( + .AutoMlImageSegmentationMetadata.SuccessfulStopReason.forNumber( successfulStopReason_); return result == null ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition @@ -535,10 +534,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; costMilliNodeHours_ = 0L; - successfulStopReason_ = 0; - return this; } @@ -577,12 +575,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageSegmentationMetadata(this); - result.costMilliNodeHours_ = costMilliNodeHours_; - result.successfulStopReason_ = successfulStopReason_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.costMilliNodeHours_ = costMilliNodeHours_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.successfulStopReason_ = successfulStopReason_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -673,13 +684,13 @@ public Builder mergeFrom( case 8: { costMilliNodeHours_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { successfulStopReason_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -699,6 +710,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long costMilliNodeHours_; /** * @@ -734,6 +747,7 @@ public long getCostMilliNodeHours() { public Builder setCostMilliNodeHours(long value) { costMilliNodeHours_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -751,7 +765,7 @@ public Builder setCostMilliNodeHours(long value) { * @return This builder for chaining. */ public Builder clearCostMilliNodeHours() { - + bitField0_ = (bitField0_ & ~0x00000001); costMilliNodeHours_ = 0L; onChanged(); return this; @@ -792,8 +806,8 @@ public int getSuccessfulStopReasonValue() { * @return This builder for chaining. */ public Builder setSuccessfulStopReasonValue(int value) { - successfulStopReason_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -815,12 +829,11 @@ public Builder setSuccessfulStopReasonValue(int value) { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlImageSegmentationMetadata.SuccessfulStopReason getSuccessfulStopReason() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata .SuccessfulStopReason result = com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlImageSegmentationMetadata.SuccessfulStopReason.valueOf( + .AutoMlImageSegmentationMetadata.SuccessfulStopReason.forNumber( successfulStopReason_); return result == null ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition @@ -849,7 +862,7 @@ public Builder setSuccessfulStopReason( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; successfulStopReason_ = value.getNumber(); onChanged(); return this; @@ -869,7 +882,7 @@ public Builder setSuccessfulStopReason( * @return This builder for chaining. */ public Builder clearSuccessfulStopReason() { - + bitField0_ = (bitField0_ & ~0x00000002); successfulStopReason_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTables.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTables.java index 87fe015c9b30..0f9292c79af2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTables.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTables.java @@ -117,7 +117,10 @@ public boolean hasInputs() { @java.lang.Override public com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputsOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null + ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs + .getDefaultInstance() + : inputs_; } public static final int METADATA_FIELD_NUMBER = 2; @@ -175,7 +178,10 @@ public boolean hasMetadata() { @java.lang.Override public com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null + ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata + .getDefaultInstance() + : metadata_; } private byte memoizedIsInitialized = -1; @@ -399,16 +405,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + bitField0_ = 0; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; @@ -442,20 +447,24 @@ public com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables buildPartial() { com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -541,13 +550,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -567,6 +576,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs inputs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs, @@ -588,7 +599,7 @@ public Builder mergeFrom( * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -632,11 +643,11 @@ public Builder setInputs( throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -655,11 +666,11 @@ public Builder setInputs( builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -676,20 +687,20 @@ public Builder setInputs( public Builder mergeInputs( com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs - .newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && inputs_ != null + && inputs_ + != com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs + .getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -704,14 +715,13 @@ public Builder mergeInputs( * */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -727,7 +737,7 @@ public Builder clearInputs() { */ public com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Builder getInputsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputsFieldBuilder().getBuilder(); } @@ -806,7 +816,7 @@ public Builder clearInputs() { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -850,11 +860,11 @@ public Builder setMetadata( throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -873,11 +883,11 @@ public Builder setMetadata( builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -894,20 +904,20 @@ public Builder setMetadata( public Builder mergeMetadata( com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata - .newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata + .getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -922,14 +932,13 @@ public Builder mergeMetadata( * */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -945,7 +954,7 @@ public Builder clearMetadata() { */ public com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTablesInputs.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTablesInputs.java index 7d47b0a4fb95..bd3a114a52e0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTablesInputs.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTablesInputs.java @@ -408,7 +408,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; /** * string column_name = 1; * @@ -679,8 +681,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; columnName_ = ""; - return this; } @@ -720,11 +722,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlTablesInputs.Transformation.AutoTransformation(this); - result.columnName_ = columnName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs + .Transformation.AutoTransformation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -785,6 +799,7 @@ public Builder mergeFrom( .Transformation.AutoTransformation.getDefaultInstance()) return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -816,7 +831,7 @@ public Builder mergeFrom( case 10: { columnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -836,6 +851,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object columnName_ = ""; /** * string column_name = 1; @@ -879,8 +896,8 @@ public Builder setColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -890,8 +907,8 @@ public Builder setColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearColumnName() { - columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -906,8 +923,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1080,7 +1097,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; /** * string column_name = 1; * @@ -1117,7 +1136,7 @@ public com.google.protobuf.ByteString getColumnNameBytes() { } public static final int INVALID_VALUES_ALLOWED_FIELD_NUMBER = 2; - private boolean invalidValuesAllowed_; + private boolean invalidValuesAllowed_ = false; /** * * @@ -1389,10 +1408,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; columnName_ = ""; - invalidValuesAllowed_ = false; - return this; } @@ -1432,12 +1450,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlTablesInputs.Transformation.NumericTransformation(this); - result.columnName_ = columnName_; - result.invalidValuesAllowed_ = invalidValuesAllowed_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs + .Transformation.NumericTransformation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.invalidValuesAllowed_ = invalidValuesAllowed_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1498,6 +1530,7 @@ public Builder mergeFrom( .Transformation.NumericTransformation.getDefaultInstance()) return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getInvalidValuesAllowed() != false) { @@ -1532,13 +1565,13 @@ public Builder mergeFrom( case 10: { columnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { invalidValuesAllowed_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -1558,6 +1591,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object columnName_ = ""; /** * string column_name = 1; @@ -1601,8 +1636,8 @@ public Builder setColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1612,8 +1647,8 @@ public Builder setColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearColumnName() { - columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1628,8 +1663,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1671,6 +1706,7 @@ public boolean getInvalidValuesAllowed() { public Builder setInvalidValuesAllowed(boolean value) { invalidValuesAllowed_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1689,7 +1725,7 @@ public Builder setInvalidValuesAllowed(boolean value) { * @return This builder for chaining. */ public Builder clearInvalidValuesAllowed() { - + bitField0_ = (bitField0_ & ~0x00000002); invalidValuesAllowed_ = false; onChanged(); return this; @@ -1847,7 +1883,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; /** * string column_name = 1; * @@ -2125,8 +2163,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; columnName_ = ""; - return this; } @@ -2166,11 +2204,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlTablesInputs.Transformation.CategoricalTransformation(this); - result.columnName_ = columnName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs + .Transformation.CategoricalTransformation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2231,6 +2281,7 @@ public Builder mergeFrom( .Transformation.CategoricalTransformation.getDefaultInstance()) return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -2262,7 +2313,7 @@ public Builder mergeFrom( case 10: { columnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -2282,6 +2333,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object columnName_ = ""; /** * string column_name = 1; @@ -2325,8 +2378,8 @@ public Builder setColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2336,8 +2389,8 @@ public Builder setColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearColumnName() { - columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2352,8 +2405,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2569,7 +2622,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; /** * string column_name = 1; * @@ -2606,7 +2661,9 @@ public com.google.protobuf.ByteString getColumnNameBytes() { } public static final int TIME_FORMAT_FIELD_NUMBER = 2; - private volatile java.lang.Object timeFormat_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeFormat_ = ""; /** * * @@ -2675,7 +2732,7 @@ public com.google.protobuf.ByteString getTimeFormatBytes() { } public static final int INVALID_VALUES_ALLOWED_FIELD_NUMBER = 3; - private boolean invalidValuesAllowed_; + private boolean invalidValuesAllowed_ = false; /** * * @@ -2953,12 +3010,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; columnName_ = ""; - timeFormat_ = ""; - invalidValuesAllowed_ = false; - return this; } @@ -2998,13 +3053,29 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlTablesInputs.Transformation.TimestampTransformation(this); - result.columnName_ = columnName_; - result.timeFormat_ = timeFormat_; - result.invalidValuesAllowed_ = invalidValuesAllowed_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs + .Transformation.TimestampTransformation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.timeFormat_ = timeFormat_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.invalidValuesAllowed_ = invalidValuesAllowed_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3065,10 +3136,12 @@ public Builder mergeFrom( .Transformation.TimestampTransformation.getDefaultInstance()) return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getTimeFormat().isEmpty()) { timeFormat_ = other.timeFormat_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getInvalidValuesAllowed() != false) { @@ -3103,19 +3176,19 @@ public Builder mergeFrom( case 10: { columnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { timeFormat_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { invalidValuesAllowed_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -3135,6 +3208,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object columnName_ = ""; /** * string column_name = 1; @@ -3178,8 +3253,8 @@ public Builder setColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3189,8 +3264,8 @@ public Builder setColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearColumnName() { - columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3205,8 +3280,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3302,8 +3377,8 @@ public Builder setTimeFormat(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeFormat_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3329,8 +3404,8 @@ public Builder setTimeFormat(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeFormat() { - timeFormat_ = getDefaultInstance().getTimeFormat(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3361,8 +3436,8 @@ public Builder setTimeFormatBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeFormat_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3404,6 +3479,7 @@ public boolean getInvalidValuesAllowed() { public Builder setInvalidValuesAllowed(boolean value) { invalidValuesAllowed_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3422,7 +3498,7 @@ public Builder setInvalidValuesAllowed(boolean value) { * @return This builder for chaining. */ public Builder clearInvalidValuesAllowed() { - + bitField0_ = (bitField0_ & ~0x00000004); invalidValuesAllowed_ = false; onChanged(); return this; @@ -3581,7 +3657,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; /** * string column_name = 1; * @@ -3861,8 +3939,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; columnName_ = ""; - return this; } @@ -3902,11 +3980,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlTablesInputs.Transformation.TextTransformation(this); - result.columnName_ = columnName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs + .Transformation.TextTransformation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3967,6 +4057,7 @@ public Builder mergeFrom( .Transformation.TextTransformation.getDefaultInstance()) return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -3998,7 +4089,7 @@ public Builder mergeFrom( case 10: { columnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -4018,6 +4109,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object columnName_ = ""; /** * string column_name = 1; @@ -4061,8 +4154,8 @@ public Builder setColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4072,8 +4165,8 @@ public Builder setColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearColumnName() { - columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -4088,8 +4181,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4259,7 +4352,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; /** * string column_name = 1; * @@ -4296,7 +4391,7 @@ public com.google.protobuf.ByteString getColumnNameBytes() { } public static final int INVALID_VALUES_ALLOWED_FIELD_NUMBER = 2; - private boolean invalidValuesAllowed_; + private boolean invalidValuesAllowed_ = false; /** * * @@ -4563,10 +4658,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; columnName_ = ""; - invalidValuesAllowed_ = false; - return this; } @@ -4606,12 +4700,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlTablesInputs.Transformation.NumericArrayTransformation(this); - result.columnName_ = columnName_; - result.invalidValuesAllowed_ = invalidValuesAllowed_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs + .Transformation.NumericArrayTransformation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.invalidValuesAllowed_ = invalidValuesAllowed_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -4672,6 +4780,7 @@ public Builder mergeFrom( .Transformation.NumericArrayTransformation.getDefaultInstance()) return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getInvalidValuesAllowed() != false) { @@ -4706,13 +4815,13 @@ public Builder mergeFrom( case 10: { columnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { invalidValuesAllowed_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -4732,6 +4841,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object columnName_ = ""; /** * string column_name = 1; @@ -4775,8 +4886,8 @@ public Builder setColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4786,8 +4897,8 @@ public Builder setColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearColumnName() { - columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -4802,8 +4913,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4845,6 +4956,7 @@ public boolean getInvalidValuesAllowed() { public Builder setInvalidValuesAllowed(boolean value) { invalidValuesAllowed_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4863,7 +4975,7 @@ public Builder setInvalidValuesAllowed(boolean value) { * @return This builder for chaining. */ public Builder clearInvalidValuesAllowed() { - + bitField0_ = (bitField0_ & ~0x00000002); invalidValuesAllowed_ = false; onChanged(); return this; @@ -5021,7 +5133,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; /** * string column_name = 1; * @@ -5298,8 +5412,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; columnName_ = ""; - return this; } @@ -5339,11 +5453,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlTablesInputs.Transformation.CategoricalArrayTransformation(this); - result.columnName_ = columnName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs + .Transformation.CategoricalArrayTransformation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -5404,6 +5530,7 @@ public Builder mergeFrom( .Transformation.CategoricalArrayTransformation.getDefaultInstance()) return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -5435,7 +5562,7 @@ public Builder mergeFrom( case 10: { columnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -5455,6 +5582,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object columnName_ = ""; /** * string column_name = 1; @@ -5498,8 +5627,8 @@ public Builder setColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5509,8 +5638,8 @@ public Builder setColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearColumnName() { - columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -5525,8 +5654,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5680,7 +5809,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; /** * string column_name = 1; * @@ -5956,8 +6087,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; columnName_ = ""; - return this; } @@ -5997,11 +6128,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlTablesInputs.Transformation.TextArrayTransformation(this); - result.columnName_ = columnName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs + .Transformation.TextArrayTransformation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -6062,6 +6205,7 @@ public Builder mergeFrom( .Transformation.TextArrayTransformation.getDefaultInstance()) return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -6093,7 +6237,7 @@ public Builder mergeFrom( case 10: { columnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -6113,6 +6257,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object columnName_ = ""; /** * string column_name = 1; @@ -6156,8 +6302,8 @@ public Builder setColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -6167,8 +6313,8 @@ public Builder setColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearColumnName() { - columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -6183,8 +6329,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -7119,6 +7265,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (autoBuilder_ != null) { autoBuilder_.clear(); } @@ -7184,65 +7331,51 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs .Transformation(this); - if (transformationDetailCase_ == 1) { - if (autoBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = autoBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (transformationDetailCase_ == 2) { - if (numericBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = numericBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs + .Transformation + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs + .Transformation + result) { + result.transformationDetailCase_ = transformationDetailCase_; + result.transformationDetail_ = this.transformationDetail_; + if (transformationDetailCase_ == 1 && autoBuilder_ != null) { + result.transformationDetail_ = autoBuilder_.build(); } - if (transformationDetailCase_ == 3) { - if (categoricalBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = categoricalBuilder_.build(); - } + if (transformationDetailCase_ == 2 && numericBuilder_ != null) { + result.transformationDetail_ = numericBuilder_.build(); } - if (transformationDetailCase_ == 4) { - if (timestampBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = timestampBuilder_.build(); - } + if (transformationDetailCase_ == 3 && categoricalBuilder_ != null) { + result.transformationDetail_ = categoricalBuilder_.build(); } - if (transformationDetailCase_ == 5) { - if (textBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = textBuilder_.build(); - } + if (transformationDetailCase_ == 4 && timestampBuilder_ != null) { + result.transformationDetail_ = timestampBuilder_.build(); } - if (transformationDetailCase_ == 6) { - if (repeatedNumericBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = repeatedNumericBuilder_.build(); - } + if (transformationDetailCase_ == 5 && textBuilder_ != null) { + result.transformationDetail_ = textBuilder_.build(); } - if (transformationDetailCase_ == 7) { - if (repeatedCategoricalBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = repeatedCategoricalBuilder_.build(); - } + if (transformationDetailCase_ == 6 && repeatedNumericBuilder_ != null) { + result.transformationDetail_ = repeatedNumericBuilder_.build(); } - if (transformationDetailCase_ == 8) { - if (repeatedTextBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = repeatedTextBuilder_.build(); - } + if (transformationDetailCase_ == 7 && repeatedCategoricalBuilder_ != null) { + result.transformationDetail_ = repeatedCategoricalBuilder_.build(); + } + if (transformationDetailCase_ == 8 && repeatedTextBuilder_ != null) { + result.transformationDetail_ = repeatedTextBuilder_.build(); } - result.transformationDetailCase_ = transformationDetailCase_; - onBuilt(); - return result; } @java.lang.Override @@ -7456,6 +7589,8 @@ public Builder clearTransformationDetail() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs .Transformation.AutoTransformation, @@ -7665,7 +7800,6 @@ public Builder clearAuto() { } transformationDetailCase_ = 1; onChanged(); - ; return autoBuilder_; } @@ -7878,7 +8012,6 @@ public Builder clearNumeric() { } transformationDetailCase_ = 2; onChanged(); - ; return numericBuilder_; } @@ -8091,7 +8224,6 @@ public Builder clearCategorical() { } transformationDetailCase_ = 3; onChanged(); - ; return categoricalBuilder_; } @@ -8304,7 +8436,6 @@ public Builder clearTimestamp() { } transformationDetailCase_ = 4; onChanged(); - ; return timestampBuilder_; } @@ -8517,7 +8648,6 @@ public Builder clearText() { } transformationDetailCase_ = 5; onChanged(); - ; return textBuilder_; } @@ -8730,7 +8860,6 @@ public Builder clearRepeatedNumeric() { } transformationDetailCase_ = 6; onChanged(); - ; return repeatedNumericBuilder_; } @@ -8943,7 +9072,6 @@ public Builder clearRepeatedCategorical() { } transformationDetailCase_ = 7; onChanged(); - ; return repeatedCategoricalBuilder_; } @@ -9156,7 +9284,6 @@ public Builder clearRepeatedText() { } transformationDetailCase_ = 8; onChanged(); - ; return repeatedTextBuilder_; } @@ -9355,7 +9482,9 @@ public float getOptimizationObjectivePrecisionValue() { } public static final int PREDICTION_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object predictionType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object predictionType_ = ""; /** * * @@ -9416,7 +9545,9 @@ public com.google.protobuf.ByteString getPredictionTypeBytes() { } public static final int TARGET_COLUMN_FIELD_NUMBER = 2; - private volatile java.lang.Object targetColumn_; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetColumn_ = ""; /** * * @@ -9465,6 +9596,8 @@ public com.google.protobuf.ByteString getTargetColumnBytes() { } public static final int TRANSFORMATIONS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs .Transformation> @@ -9572,7 +9705,9 @@ public int getTransformationsCount() { } public static final int OPTIMIZATION_OBJECTIVE_FIELD_NUMBER = 4; - private volatile java.lang.Object optimizationObjective_; + + @SuppressWarnings("serial") + private volatile java.lang.Object optimizationObjective_ = ""; /** * * @@ -9659,7 +9794,7 @@ public com.google.protobuf.ByteString getOptimizationObjectiveBytes() { } public static final int TRAIN_BUDGET_MILLI_NODE_HOURS_FIELD_NUMBER = 7; - private long trainBudgetMilliNodeHours_; + private long trainBudgetMilliNodeHours_ = 0L; /** * * @@ -9687,7 +9822,7 @@ public long getTrainBudgetMilliNodeHours() { } public static final int DISABLE_EARLY_STOPPING_FIELD_NUMBER = 8; - private boolean disableEarlyStopping_; + private boolean disableEarlyStopping_ = false; /** * * @@ -9707,7 +9842,9 @@ public boolean getDisableEarlyStopping() { } public static final int WEIGHT_COLUMN_NAME_FIELD_NUMBER = 9; - private volatile java.lang.Object weightColumnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object weightColumnName_ = ""; /** * * @@ -9825,10 +9962,15 @@ public boolean hasExportEvaluatedDataItemsConfig() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .ExportEvaluatedDataItemsConfigOrBuilder getExportEvaluatedDataItemsConfigOrBuilder() { - return getExportEvaluatedDataItemsConfig(); + return exportEvaluatedDataItemsConfig_ == null + ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .ExportEvaluatedDataItemsConfig.getDefaultInstance() + : exportEvaluatedDataItemsConfig_; } public static final int ADDITIONAL_EXPERIMENTS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList additionalExperiments_; /** * @@ -10228,33 +10370,27 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; predictionType_ = ""; - targetColumn_ = ""; - if (transformationsBuilder_ == null) { transformations_ = java.util.Collections.emptyList(); } else { transformations_ = null; transformationsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); optimizationObjective_ = ""; - trainBudgetMilliNodeHours_ = 0L; - disableEarlyStopping_ = false; - weightColumnName_ = ""; - - if (exportEvaluatedDataItemsConfigBuilder_ == null) { - exportEvaluatedDataItemsConfig_ = null; - } else { - exportEvaluatedDataItemsConfig_ = null; + exportEvaluatedDataItemsConfig_ = null; + if (exportEvaluatedDataItemsConfigBuilder_ != null) { + exportEvaluatedDataItemsConfigBuilder_.dispose(); exportEvaluatedDataItemsConfigBuilder_ = null; } additionalExperiments_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000400); additionalOptimizationObjectiveConfigCase_ = 0; additionalOptimizationObjectiveConfig_ = null; return this; @@ -10288,42 +10424,67 @@ public com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables buildPartial() { com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs(this); - int from_bitField0_ = bitField0_; - if (additionalOptimizationObjectiveConfigCase_ == 5) { - result.additionalOptimizationObjectiveConfig_ = additionalOptimizationObjectiveConfig_; - } - if (additionalOptimizationObjectiveConfigCase_ == 6) { - result.additionalOptimizationObjectiveConfig_ = additionalOptimizationObjectiveConfig_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.predictionType_ = predictionType_; - result.targetColumn_ = targetColumn_; + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs result) { if (transformationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { transformations_ = java.util.Collections.unmodifiableList(transformations_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } result.transformations_ = transformations_; } else { result.transformations_ = transformationsBuilder_.build(); } - result.optimizationObjective_ = optimizationObjective_; - result.trainBudgetMilliNodeHours_ = trainBudgetMilliNodeHours_; - result.disableEarlyStopping_ = disableEarlyStopping_; - result.weightColumnName_ = weightColumnName_; - if (exportEvaluatedDataItemsConfigBuilder_ == null) { - result.exportEvaluatedDataItemsConfig_ = exportEvaluatedDataItemsConfig_; - } else { - result.exportEvaluatedDataItemsConfig_ = exportEvaluatedDataItemsConfigBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { additionalExperiments_ = additionalExperiments_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000400); } result.additionalExperiments_ = additionalExperiments_; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.predictionType_ = predictionType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.targetColumn_ = targetColumn_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.optimizationObjective_ = optimizationObjective_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.trainBudgetMilliNodeHours_ = trainBudgetMilliNodeHours_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.disableEarlyStopping_ = disableEarlyStopping_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.weightColumnName_ = weightColumnName_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.exportEvaluatedDataItemsConfig_ = + exportEvaluatedDataItemsConfigBuilder_ == null + ? exportEvaluatedDataItemsConfig_ + : exportEvaluatedDataItemsConfigBuilder_.build(); + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs result) { result.additionalOptimizationObjectiveConfigCase_ = additionalOptimizationObjectiveConfigCase_; - onBuilt(); - return result; + result.additionalOptimizationObjectiveConfig_ = this.additionalOptimizationObjectiveConfig_; } @java.lang.Override @@ -10380,17 +10541,19 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getPredictionType().isEmpty()) { predictionType_ = other.predictionType_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getTargetColumn().isEmpty()) { targetColumn_ = other.targetColumn_; + bitField0_ |= 0x00000008; onChanged(); } if (transformationsBuilder_ == null) { if (!other.transformations_.isEmpty()) { if (transformations_.isEmpty()) { transformations_ = other.transformations_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureTransformationsIsMutable(); transformations_.addAll(other.transformations_); @@ -10403,7 +10566,7 @@ public Builder mergeFrom( transformationsBuilder_.dispose(); transformationsBuilder_ = null; transformations_ = other.transformations_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); transformationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransformationsFieldBuilder() @@ -10415,6 +10578,7 @@ public Builder mergeFrom( } if (!other.getOptimizationObjective().isEmpty()) { optimizationObjective_ = other.optimizationObjective_; + bitField0_ |= 0x00000020; onChanged(); } if (other.getTrainBudgetMilliNodeHours() != 0L) { @@ -10425,6 +10589,7 @@ public Builder mergeFrom( } if (!other.getWeightColumnName().isEmpty()) { weightColumnName_ = other.weightColumnName_; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasExportEvaluatedDataItemsConfig()) { @@ -10433,7 +10598,7 @@ public Builder mergeFrom( if (!other.additionalExperiments_.isEmpty()) { if (additionalExperiments_.isEmpty()) { additionalExperiments_ = other.additionalExperiments_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000400); } else { ensureAdditionalExperimentsIsMutable(); additionalExperiments_.addAll(other.additionalExperiments_); @@ -10485,13 +10650,13 @@ public Builder mergeFrom( case 10: { predictionType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 10 case 18: { targetColumn_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 18 case 26: @@ -10514,7 +10679,7 @@ public Builder mergeFrom( case 34: { optimizationObjective_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 34 case 45: @@ -10532,19 +10697,19 @@ public Builder mergeFrom( case 56: { trainBudgetMilliNodeHours_ = input.readInt64(); - + bitField0_ |= 0x00000040; break; } // case 56 case 64: { disableEarlyStopping_ = input.readBool(); - + bitField0_ |= 0x00000080; break; } // case 64 case 74: { weightColumnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 74 case 82: @@ -10552,7 +10717,7 @@ public Builder mergeFrom( input.readMessage( getExportEvaluatedDataItemsConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 82 case 90: @@ -10644,6 +10809,7 @@ public float getOptimizationObjectiveRecallValue() { * @return This builder for chaining. */ public Builder setOptimizationObjectiveRecallValue(float value) { + additionalOptimizationObjectiveConfigCase_ = 5; additionalOptimizationObjectiveConfig_ = value; onChanged(); @@ -10717,6 +10883,7 @@ public float getOptimizationObjectivePrecisionValue() { * @return This builder for chaining. */ public Builder setOptimizationObjectivePrecisionValue(float value) { + additionalOptimizationObjectiveConfigCase_ = 6; additionalOptimizationObjectiveConfig_ = value; onChanged(); @@ -10822,8 +10989,8 @@ public Builder setPredictionType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - predictionType_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -10845,8 +11012,8 @@ public Builder setPredictionType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPredictionType() { - predictionType_ = getDefaultInstance().getPredictionType(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -10873,8 +11040,8 @@ public Builder setPredictionTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - predictionType_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -10940,8 +11107,8 @@ public Builder setTargetColumn(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - targetColumn_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -10957,8 +11124,8 @@ public Builder setTargetColumn(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTargetColumn() { - targetColumn_ = getDefaultInstance().getTargetColumn(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -10979,8 +11146,8 @@ public Builder setTargetColumnBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - targetColumn_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -10991,12 +11158,12 @@ public Builder setTargetColumnBytes(com.google.protobuf.ByteString value) { transformations_ = java.util.Collections.emptyList(); private void ensureTransformationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { transformations_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs .Transformation>(transformations_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000010; } } @@ -11298,7 +11465,7 @@ public Builder addAllTransformations( public Builder clearTransformations() { if (transformationsBuilder_ == null) { transformations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { transformationsBuilder_.clear(); @@ -11480,7 +11647,7 @@ public Builder removeTransformations(int index) { com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs .TransformationOrBuilder>( transformations_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); transformations_ = null; @@ -11606,8 +11773,8 @@ public Builder setOptimizationObjective(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - optimizationObjective_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -11642,8 +11809,8 @@ public Builder setOptimizationObjective(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOptimizationObjective() { - optimizationObjective_ = getDefaultInstance().getOptimizationObjective(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -11683,8 +11850,8 @@ public Builder setOptimizationObjectiveBytes(com.google.protobuf.ByteString valu throw new NullPointerException(); } checkByteStringIsUtf8(value); - optimizationObjective_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -11740,6 +11907,7 @@ public long getTrainBudgetMilliNodeHours() { public Builder setTrainBudgetMilliNodeHours(long value) { trainBudgetMilliNodeHours_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -11765,7 +11933,7 @@ public Builder setTrainBudgetMilliNodeHours(long value) { * @return This builder for chaining. */ public Builder clearTrainBudgetMilliNodeHours() { - + bitField0_ = (bitField0_ & ~0x00000040); trainBudgetMilliNodeHours_ = 0L; onChanged(); return this; @@ -11806,6 +11974,7 @@ public boolean getDisableEarlyStopping() { public Builder setDisableEarlyStopping(boolean value) { disableEarlyStopping_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -11823,7 +11992,7 @@ public Builder setDisableEarlyStopping(boolean value) { * @return This builder for chaining. */ public Builder clearDisableEarlyStopping() { - + bitField0_ = (bitField0_ & ~0x00000080); disableEarlyStopping_ = false; onChanged(); return this; @@ -11905,8 +12074,8 @@ public Builder setWeightColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - weightColumnName_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -11927,8 +12096,8 @@ public Builder setWeightColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearWeightColumnName() { - weightColumnName_ = getDefaultInstance().getWeightColumnName(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -11954,8 +12123,8 @@ public Builder setWeightColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - weightColumnName_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -11986,8 +12155,7 @@ public Builder setWeightColumnNameBytes(com.google.protobuf.ByteString value) { * @return Whether the exportEvaluatedDataItemsConfig field is set. */ public boolean hasExportEvaluatedDataItemsConfig() { - return exportEvaluatedDataItemsConfigBuilder_ != null - || exportEvaluatedDataItemsConfig_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -12035,11 +12203,11 @@ public Builder setExportEvaluatedDataItemsConfig( throw new NullPointerException(); } exportEvaluatedDataItemsConfig_ = value; - onChanged(); } else { exportEvaluatedDataItemsConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -12060,11 +12228,11 @@ public Builder setExportEvaluatedDataItemsConfig( builderForValue) { if (exportEvaluatedDataItemsConfigBuilder_ == null) { exportEvaluatedDataItemsConfig_ = builderForValue.build(); - onChanged(); } else { exportEvaluatedDataItemsConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -12083,20 +12251,20 @@ public Builder mergeExportEvaluatedDataItemsConfig( com.google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig value) { if (exportEvaluatedDataItemsConfigBuilder_ == null) { - if (exportEvaluatedDataItemsConfig_ != null) { - exportEvaluatedDataItemsConfig_ = - com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig.newBuilder(exportEvaluatedDataItemsConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && exportEvaluatedDataItemsConfig_ != null + && exportEvaluatedDataItemsConfig_ + != com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .ExportEvaluatedDataItemsConfig.getDefaultInstance()) { + getExportEvaluatedDataItemsConfigBuilder().mergeFrom(value); } else { exportEvaluatedDataItemsConfig_ = value; } - onChanged(); } else { exportEvaluatedDataItemsConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -12112,14 +12280,13 @@ public Builder mergeExportEvaluatedDataItemsConfig( * */ public Builder clearExportEvaluatedDataItemsConfig() { - if (exportEvaluatedDataItemsConfigBuilder_ == null) { - exportEvaluatedDataItemsConfig_ = null; - onChanged(); - } else { - exportEvaluatedDataItemsConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + exportEvaluatedDataItemsConfig_ = null; + if (exportEvaluatedDataItemsConfigBuilder_ != null) { + exportEvaluatedDataItemsConfigBuilder_.dispose(); exportEvaluatedDataItemsConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -12137,7 +12304,7 @@ public Builder clearExportEvaluatedDataItemsConfig() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .ExportEvaluatedDataItemsConfig.Builder getExportEvaluatedDataItemsConfigBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getExportEvaluatedDataItemsConfigFieldBuilder().getBuilder(); } @@ -12204,10 +12371,10 @@ public Builder clearExportEvaluatedDataItemsConfig() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAdditionalExperimentsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000400) != 0)) { additionalExperiments_ = new com.google.protobuf.LazyStringArrayList(additionalExperiments_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000400; } } /** @@ -12342,7 +12509,7 @@ public Builder addAllAdditionalExperiments(java.lang.Iterable */ public Builder clearAdditionalExperiments() { additionalExperiments_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTablesMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTablesMetadata.java index 54c0344fcc43..0008f4850b0a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTablesMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTablesMetadata.java @@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRAIN_COST_MILLI_NODE_HOURS_FIELD_NUMBER = 1; - private long trainCostMilliNodeHours_; + private long trainCostMilliNodeHours_ = 0L; /** * * @@ -297,8 +297,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; trainCostMilliNodeHours_ = 0L; - return this; } @@ -332,11 +332,21 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata( this); - result.trainCostMilliNodeHours_ = trainCostMilliNodeHours_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trainCostMilliNodeHours_ = trainCostMilliNodeHours_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -421,7 +431,7 @@ public Builder mergeFrom( case 8: { trainCostMilliNodeHours_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -441,6 +451,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long trainCostMilliNodeHours_; /** * @@ -476,6 +488,7 @@ public long getTrainCostMilliNodeHours() { public Builder setTrainCostMilliNodeHours(long value) { trainCostMilliNodeHours_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -493,7 +506,7 @@ public Builder setTrainCostMilliNodeHours(long value) { * @return This builder for chaining. */ public Builder clearTrainCostMilliNodeHours() { - + bitField0_ = (bitField0_ & ~0x00000001); trainCostMilliNodeHours_ = 0L; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextClassification.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextClassification.java index 1d4fb15dd185..8827ee8a570d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextClassification.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextClassification.java @@ -127,7 +127,10 @@ public boolean hasInputs() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlTextClassificationInputsOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null + ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlTextClassificationInputs.getDefaultInstance() + : inputs_; } private byte memoizedIsInitialized = -1; @@ -361,10 +364,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + bitField0_ = 0; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } return this; @@ -401,15 +404,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification( this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -495,7 +505,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -515,6 +525,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlTextClassificationInputs inputs_; @@ -540,7 +552,7 @@ public Builder mergeFrom( * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -586,11 +598,11 @@ public Builder setInputs( throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -610,11 +622,11 @@ public Builder setInputs( builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -632,20 +644,20 @@ public Builder mergeInputs( com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlTextClassificationInputs.newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && inputs_ != null + && inputs_ + != com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlTextClassificationInputs.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -660,14 +672,13 @@ public Builder mergeInputs( * */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -684,7 +695,7 @@ public Builder clearInputs() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlTextClassificationInputs.Builder getInputsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputsFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextClassificationInputs.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextClassificationInputs.java index 9e5319d9bbd1..c2118bea0a29 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextClassificationInputs.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextClassificationInputs.java @@ -66,7 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MULTI_LABEL_FIELD_NUMBER = 1; - private boolean multiLabel_; + private boolean multiLabel_ = false; /** * bool multi_label = 1; * @@ -301,8 +301,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; multiLabel_ = false; - return this; } @@ -341,11 +341,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlTextClassificationInputs(this); - result.multiLabel_ = multiLabel_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.multiLabel_ = multiLabel_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -433,7 +444,7 @@ public Builder mergeFrom( case 8: { multiLabel_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -453,6 +464,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean multiLabel_; /** * bool multi_label = 1; @@ -472,6 +485,7 @@ public boolean getMultiLabel() { public Builder setMultiLabel(boolean value) { multiLabel_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -481,7 +495,7 @@ public Builder setMultiLabel(boolean value) { * @return This builder for chaining. */ public Builder clearMultiLabel() { - + bitField0_ = (bitField0_ & ~0x00000001); multiLabel_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextExtraction.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextExtraction.java index 10a1543fef09..d52c31f6f694 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextExtraction.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextExtraction.java @@ -123,7 +123,10 @@ public boolean hasInputs() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlTextExtractionInputsOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null + ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs + .getDefaultInstance() + : inputs_; } private byte memoizedIsInitialized = -1; @@ -341,10 +344,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + bitField0_ = 0; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } return this; @@ -380,15 +383,21 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction( this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -473,7 +482,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -493,6 +502,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs inputs_; private com.google.protobuf.SingleFieldBuilderV3< @@ -516,7 +527,7 @@ public Builder mergeFrom( * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -561,11 +572,11 @@ public Builder setInputs( throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -585,11 +596,11 @@ public Builder setInputs( builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -607,20 +618,20 @@ public Builder mergeInputs( com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlTextExtractionInputs.newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && inputs_ != null + && inputs_ + != com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlTextExtractionInputs.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -635,14 +646,13 @@ public Builder mergeInputs( * */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -659,7 +669,7 @@ public Builder clearInputs() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs .Builder getInputsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputsFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextSentiment.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextSentiment.java index 86fb32f858c9..237318af44c5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextSentiment.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextSentiment.java @@ -123,7 +123,10 @@ public boolean hasInputs() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlTextSentimentInputsOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null + ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs + .getDefaultInstance() + : inputs_; } private byte memoizedIsInitialized = -1; @@ -341,10 +344,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + bitField0_ = 0; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } return this; @@ -380,15 +383,21 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment( this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -473,7 +482,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -493,6 +502,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs inputs_; private com.google.protobuf.SingleFieldBuilderV3< @@ -516,7 +527,7 @@ public Builder mergeFrom( * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -561,11 +572,11 @@ public Builder setInputs( throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -585,11 +596,11 @@ public Builder setInputs( builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -607,20 +618,20 @@ public Builder mergeInputs( com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs - .newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && inputs_ != null + && inputs_ + != com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlTextSentimentInputs.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -635,14 +646,13 @@ public Builder mergeInputs( * */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -659,7 +669,7 @@ public Builder clearInputs() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs .Builder getInputsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputsFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextSentimentInputs.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextSentimentInputs.java index 437741f6f1f4..1661a38ff7be 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextSentimentInputs.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTextSentimentInputs.java @@ -63,7 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SENTIMENT_MAX_FIELD_NUMBER = 1; - private int sentimentMax_; + private int sentimentMax_ = 0; /** * * @@ -305,8 +305,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; sentimentMax_ = 0; - return this; } @@ -341,11 +341,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlTextSentimentInputs(this); - result.sentimentMax_ = sentimentMax_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sentimentMax_ = sentimentMax_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -431,7 +442,7 @@ public Builder mergeFrom( case 8: { sentimentMax_ = input.readInt32(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -451,6 +462,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int sentimentMax_; /** * @@ -494,6 +507,7 @@ public int getSentimentMax() { public Builder setSentimentMax(int value) { sentimentMax_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -515,7 +529,7 @@ public Builder setSentimentMax(int value) { * @return This builder for chaining. */ public Builder clearSentimentMax() { - + bitField0_ = (bitField0_ & ~0x00000001); sentimentMax_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoActionRecognition.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoActionRecognition.java index 5f15bd3b01d2..3e461eb2a849 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoActionRecognition.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoActionRecognition.java @@ -130,7 +130,10 @@ public boolean hasInputs() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoActionRecognitionInputsOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null + ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlVideoActionRecognitionInputs.getDefaultInstance() + : inputs_; } private byte memoizedIsInitialized = -1; @@ -369,10 +372,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + bitField0_ = 0; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } return this; @@ -410,15 +413,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoActionRecognition(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -506,7 +516,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -526,6 +536,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoActionRecognitionInputs inputs_; @@ -551,7 +563,7 @@ public Builder mergeFrom( * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -598,11 +610,11 @@ public Builder setInputs( throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -622,11 +634,11 @@ public Builder setInputs( builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -645,20 +657,20 @@ public Builder mergeInputs( .AutoMlVideoActionRecognitionInputs value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlVideoActionRecognitionInputs.newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && inputs_ != null + && inputs_ + != com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlVideoActionRecognitionInputs.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -673,14 +685,13 @@ public Builder mergeInputs( * */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -697,7 +708,7 @@ public Builder clearInputs() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoActionRecognitionInputs.Builder getInputsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputsFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java index 74f58e3965c0..56ae7bff0410 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java @@ -282,7 +282,7 @@ private ModelType(int value) { } public static final int MODEL_TYPE_FIELD_NUMBER = 1; - private int modelType_; + private int modelType_ = 0; /** * * .google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType model_type = 1; @@ -305,12 +305,11 @@ public int getModelTypeValue() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoActionRecognitionInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs .ModelType result = com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlVideoActionRecognitionInputs.ModelType.valueOf(modelType_); + .AutoMlVideoActionRecognitionInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoActionRecognitionInputs.ModelType.UNRECOGNIZED @@ -548,8 +547,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; modelType_ = 0; - return this; } @@ -590,11 +589,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoActionRecognitionInputs(this); - result.modelType_ = modelType_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlVideoActionRecognitionInputs + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelType_ = modelType_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -683,7 +694,7 @@ public Builder mergeFrom( case 8: { modelType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -703,6 +714,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int modelType_ = 0; /** * @@ -724,8 +737,8 @@ public int getModelTypeValue() { * @return This builder for chaining. */ public Builder setModelTypeValue(int value) { - modelType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -740,12 +753,11 @@ public Builder setModelTypeValue(int value) { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoActionRecognitionInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoActionRecognitionInputs.ModelType result = com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlVideoActionRecognitionInputs.ModelType.valueOf(modelType_); + .AutoMlVideoActionRecognitionInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoActionRecognitionInputs.ModelType.UNRECOGNIZED @@ -766,7 +778,7 @@ public Builder setModelType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; modelType_ = value.getNumber(); onChanged(); return this; @@ -779,7 +791,7 @@ public Builder setModelType( * @return This builder for chaining. */ public Builder clearModelType() { - + bitField0_ = (bitField0_ & ~0x00000001); modelType_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoClassification.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoClassification.java index 87c37d456cfa..f07234db6c64 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoClassification.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoClassification.java @@ -129,7 +129,10 @@ public boolean hasInputs() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoClassificationInputsOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null + ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlVideoClassificationInputs.getDefaultInstance() + : inputs_; } private byte memoizedIsInitialized = -1; @@ -364,10 +367,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + bitField0_ = 0; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } return this; @@ -405,15 +408,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoClassification(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -499,7 +509,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -519,6 +529,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoClassificationInputs inputs_; @@ -544,7 +556,7 @@ public Builder mergeFrom( * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -590,11 +602,11 @@ public Builder setInputs( throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -614,11 +626,11 @@ public Builder setInputs( builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -636,20 +648,20 @@ public Builder mergeInputs( com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlVideoClassificationInputs.newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && inputs_ != null + && inputs_ + != com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlVideoClassificationInputs.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -664,14 +676,13 @@ public Builder mergeInputs( * */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -688,7 +699,7 @@ public Builder clearInputs() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoClassificationInputs.Builder getInputsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputsFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoClassificationInputs.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoClassificationInputs.java index 8205c961e529..8336812ec47f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoClassificationInputs.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoClassificationInputs.java @@ -256,7 +256,7 @@ private ModelType(int value) { } public static final int MODEL_TYPE_FIELD_NUMBER = 1; - private int modelType_; + private int modelType_ = 0; /** * * .google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType model_type = 1; @@ -279,12 +279,11 @@ public int getModelTypeValue() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoClassificationInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs .ModelType result = com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlVideoClassificationInputs.ModelType.valueOf(modelType_); + .AutoMlVideoClassificationInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoClassificationInputs.ModelType.UNRECOGNIZED @@ -521,8 +520,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; modelType_ = 0; - return this; } @@ -561,11 +560,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoClassificationInputs(this); - result.modelType_ = modelType_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelType_ = modelType_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -653,7 +663,7 @@ public Builder mergeFrom( case 8: { modelType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -673,6 +683,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int modelType_ = 0; /** * @@ -694,8 +706,8 @@ public int getModelTypeValue() { * @return This builder for chaining. */ public Builder setModelTypeValue(int value) { - modelType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -710,12 +722,11 @@ public Builder setModelTypeValue(int value) { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoClassificationInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs .ModelType result = com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlVideoClassificationInputs.ModelType.valueOf(modelType_); + .AutoMlVideoClassificationInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoClassificationInputs.ModelType.UNRECOGNIZED @@ -736,7 +747,7 @@ public Builder setModelType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; modelType_ = value.getNumber(); onChanged(); return this; @@ -749,7 +760,7 @@ public Builder setModelType( * @return This builder for chaining. */ public Builder clearModelType() { - + bitField0_ = (bitField0_ & ~0x00000001); modelType_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoObjectTracking.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoObjectTracking.java index 95b8adaaf2f7..c2e331c86349 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoObjectTracking.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoObjectTracking.java @@ -129,7 +129,10 @@ public boolean hasInputs() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoObjectTrackingInputsOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null + ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlVideoObjectTrackingInputs.getDefaultInstance() + : inputs_; } private byte memoizedIsInitialized = -1; @@ -364,10 +367,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + bitField0_ = 0; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } return this; @@ -405,15 +408,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoObjectTracking(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -499,7 +509,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -519,6 +529,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoObjectTrackingInputs inputs_; @@ -544,7 +556,7 @@ public Builder mergeFrom( * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -590,11 +602,11 @@ public Builder setInputs( throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -614,11 +626,11 @@ public Builder setInputs( builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -636,20 +648,20 @@ public Builder mergeInputs( com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlVideoObjectTrackingInputs.newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && inputs_ != null + && inputs_ + != com.google.cloud.aiplatform.v1.schema.trainingjob.definition + .AutoMlVideoObjectTrackingInputs.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -664,14 +676,13 @@ public Builder mergeInputs( * */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -688,7 +699,7 @@ public Builder clearInputs() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoObjectTrackingInputs.Builder getInputsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputsFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoObjectTrackingInputs.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoObjectTrackingInputs.java index 36b19a817fba..906200960ada 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoObjectTrackingInputs.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoObjectTrackingInputs.java @@ -326,7 +326,7 @@ private ModelType(int value) { } public static final int MODEL_TYPE_FIELD_NUMBER = 1; - private int modelType_; + private int modelType_ = 0; /** * * .google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType model_type = 1; @@ -349,12 +349,11 @@ public int getModelTypeValue() { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoObjectTrackingInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs .ModelType result = com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlVideoObjectTrackingInputs.ModelType.valueOf(modelType_); + .AutoMlVideoObjectTrackingInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoObjectTrackingInputs.ModelType.UNRECOGNIZED @@ -591,8 +590,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; modelType_ = 0; - return this; } @@ -631,11 +630,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoObjectTrackingInputs(this); - result.modelType_ = modelType_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelType_ = modelType_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -723,7 +733,7 @@ public Builder mergeFrom( case 8: { modelType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -743,6 +753,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int modelType_ = 0; /** * @@ -764,8 +776,8 @@ public int getModelTypeValue() { * @return This builder for chaining. */ public Builder setModelTypeValue(int value) { - modelType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -780,12 +792,11 @@ public Builder setModelTypeValue(int value) { public com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoObjectTrackingInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs .ModelType result = com.google.cloud.aiplatform.v1.schema.trainingjob.definition - .AutoMlVideoObjectTrackingInputs.ModelType.valueOf(modelType_); + .AutoMlVideoObjectTrackingInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1.schema.trainingjob.definition .AutoMlVideoObjectTrackingInputs.ModelType.UNRECOGNIZED @@ -806,7 +817,7 @@ public Builder setModelType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; modelType_ = value.getNumber(); onChanged(); return this; @@ -819,7 +830,7 @@ public Builder setModelType( * @return This builder for chaining. */ public Builder clearModelType() { - + bitField0_ = (bitField0_ & ~0x00000001); modelType_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfig.java index d3b1c27d7238..282a8d81fc83 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfig.java @@ -75,7 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DESTINATION_BIGQUERY_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object destinationBigqueryUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationBigqueryUri_ = ""; /** * * @@ -132,7 +134,7 @@ public com.google.protobuf.ByteString getDestinationBigqueryUriBytes() { } public static final int OVERRIDE_EXISTING_TABLE_FIELD_NUMBER = 2; - private boolean overrideExistingTable_; + private boolean overrideExistingTable_ = false; /** * * @@ -390,10 +392,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; destinationBigqueryUri_ = ""; - overrideExistingTable_ = false; - return this; } @@ -432,12 +433,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1.schema.trainingjob.definition .ExportEvaluatedDataItemsConfig(this); - result.destinationBigqueryUri_ = destinationBigqueryUri_; - result.overrideExistingTable_ = overrideExistingTable_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.destinationBigqueryUri_ = destinationBigqueryUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.overrideExistingTable_ = overrideExistingTable_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -495,6 +509,7 @@ public Builder mergeFrom( .ExportEvaluatedDataItemsConfig.getDefaultInstance()) return this; if (!other.getDestinationBigqueryUri().isEmpty()) { destinationBigqueryUri_ = other.destinationBigqueryUri_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getOverrideExistingTable() != false) { @@ -529,13 +544,13 @@ public Builder mergeFrom( case 10: { destinationBigqueryUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { overrideExistingTable_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -555,6 +570,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object destinationBigqueryUri_ = ""; /** * @@ -628,8 +645,8 @@ public Builder setDestinationBigqueryUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - destinationBigqueryUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -649,8 +666,8 @@ public Builder setDestinationBigqueryUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDestinationBigqueryUri() { - destinationBigqueryUri_ = getDefaultInstance().getDestinationBigqueryUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -675,8 +692,8 @@ public Builder setDestinationBigqueryUriBytes(com.google.protobuf.ByteString val throw new NullPointerException(); } checkByteStringIsUtf8(value); - destinationBigqueryUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -716,6 +733,7 @@ public boolean getOverrideExistingTable() { public Builder setOverrideExistingTable(boolean value) { overrideExistingTable_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -733,7 +751,7 @@ public Builder setOverrideExistingTable(boolean value) { * @return This builder for chaining. */ public Builder clearOverrideExistingTable() { - + bitField0_ = (bitField0_ & ~0x00000002); overrideExistingTable_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto index 4dea46f0e10f..4c372da1b10d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto @@ -204,6 +204,18 @@ message CustomJobSpec { // (within // [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials]). bool enable_web_access = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether you want Vertex AI to enable access to the customized + // dashboard in training chief container. + // + // If set to `true`, you can access the dashboard at the URIs given + // by + // [CustomJob.web_access_uris][google.cloud.aiplatform.v1.CustomJob.web_access_uris] + // or + // [Trial.web_access_uris][google.cloud.aiplatform.v1.Trial.web_access_uris] + // (within + // [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials]). + bool enable_dashboard_access = 16 [(google.api.field_behavior) = OPTIONAL]; } // Represents the spec of a worker pool in a job. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActiveLearningConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActiveLearningConfig.java index d923666bd602..bf0f6fbd0ad3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActiveLearningConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActiveLearningConfig.java @@ -232,7 +232,9 @@ public com.google.cloud.aiplatform.v1beta1.SampleConfig getSampleConfig() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.SampleConfigOrBuilder getSampleConfigOrBuilder() { - return getSampleConfig(); + return sampleConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.SampleConfig.getDefaultInstance() + : sampleConfig_; } public static final int TRAINING_CONFIG_FIELD_NUMBER = 4; @@ -286,7 +288,9 @@ public com.google.cloud.aiplatform.v1beta1.TrainingConfig getTrainingConfig() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.TrainingConfigOrBuilder getTrainingConfigOrBuilder() { - return getTrainingConfig(); + return trainingConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.TrainingConfig.getDefaultInstance() + : trainingConfig_; } private byte memoizedIsInitialized = -1; @@ -547,16 +551,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (sampleConfigBuilder_ == null) { - sampleConfig_ = null; - } else { - sampleConfig_ = null; + bitField0_ = 0; + sampleConfig_ = null; + if (sampleConfigBuilder_ != null) { + sampleConfigBuilder_.dispose(); sampleConfigBuilder_ = null; } - if (trainingConfigBuilder_ == null) { - trainingConfig_ = null; - } else { - trainingConfig_ = null; + trainingConfig_ = null; + if (trainingConfigBuilder_ != null) { + trainingConfigBuilder_.dispose(); trainingConfigBuilder_ = null; } humanLabelingBudgetCase_ = 0; @@ -588,25 +591,30 @@ public com.google.cloud.aiplatform.v1beta1.ActiveLearningConfig build() { public com.google.cloud.aiplatform.v1beta1.ActiveLearningConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.ActiveLearningConfig result = new com.google.cloud.aiplatform.v1beta1.ActiveLearningConfig(this); - if (humanLabelingBudgetCase_ == 1) { - result.humanLabelingBudget_ = humanLabelingBudget_; - } - if (humanLabelingBudgetCase_ == 2) { - result.humanLabelingBudget_ = humanLabelingBudget_; + if (bitField0_ != 0) { + buildPartial0(result); } - if (sampleConfigBuilder_ == null) { - result.sampleConfig_ = sampleConfig_; - } else { - result.sampleConfig_ = sampleConfigBuilder_.build(); + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ActiveLearningConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sampleConfig_ = + sampleConfigBuilder_ == null ? sampleConfig_ : sampleConfigBuilder_.build(); } - if (trainingConfigBuilder_ == null) { - result.trainingConfig_ = trainingConfig_; - } else { - result.trainingConfig_ = trainingConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.trainingConfig_ = + trainingConfigBuilder_ == null ? trainingConfig_ : trainingConfigBuilder_.build(); } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.ActiveLearningConfig result) { result.humanLabelingBudgetCase_ = humanLabelingBudgetCase_; - onBuilt(); - return result; + result.humanLabelingBudget_ = this.humanLabelingBudget_; } @java.lang.Override @@ -718,13 +726,13 @@ public Builder mergeFrom( case 26: { input.readMessage(getSampleConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getTrainingConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -758,6 +766,8 @@ public Builder clearHumanLabelingBudget() { return this; } + private int bitField0_; + /** * * @@ -802,6 +812,7 @@ public long getMaxDataItemCount() { * @return This builder for chaining. */ public Builder setMaxDataItemCount(long value) { + humanLabelingBudgetCase_ = 1; humanLabelingBudget_ = value; onChanged(); @@ -871,6 +882,7 @@ public int getMaxDataItemPercentage() { * @return This builder for chaining. */ public Builder setMaxDataItemPercentage(int value) { + humanLabelingBudgetCase_ = 2; humanLabelingBudget_ = value; onChanged(); @@ -915,7 +927,7 @@ public Builder clearMaxDataItemPercentage() { * @return Whether the sampleConfig field is set. */ public boolean hasSampleConfig() { - return sampleConfigBuilder_ != null || sampleConfig_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -954,11 +966,11 @@ public Builder setSampleConfig(com.google.cloud.aiplatform.v1beta1.SampleConfig throw new NullPointerException(); } sampleConfig_ = value; - onChanged(); } else { sampleConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -975,11 +987,11 @@ public Builder setSampleConfig( com.google.cloud.aiplatform.v1beta1.SampleConfig.Builder builderForValue) { if (sampleConfigBuilder_ == null) { sampleConfig_ = builderForValue.build(); - onChanged(); } else { sampleConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -994,19 +1006,19 @@ public Builder setSampleConfig( */ public Builder mergeSampleConfig(com.google.cloud.aiplatform.v1beta1.SampleConfig value) { if (sampleConfigBuilder_ == null) { - if (sampleConfig_ != null) { - sampleConfig_ = - com.google.cloud.aiplatform.v1beta1.SampleConfig.newBuilder(sampleConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && sampleConfig_ != null + && sampleConfig_ + != com.google.cloud.aiplatform.v1beta1.SampleConfig.getDefaultInstance()) { + getSampleConfigBuilder().mergeFrom(value); } else { sampleConfig_ = value; } - onChanged(); } else { sampleConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1020,14 +1032,13 @@ public Builder mergeSampleConfig(com.google.cloud.aiplatform.v1beta1.SampleConfi * .google.cloud.aiplatform.v1beta1.SampleConfig sample_config = 3; */ public Builder clearSampleConfig() { - if (sampleConfigBuilder_ == null) { - sampleConfig_ = null; - onChanged(); - } else { - sampleConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + sampleConfig_ = null; + if (sampleConfigBuilder_ != null) { + sampleConfigBuilder_.dispose(); sampleConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1041,7 +1052,7 @@ public Builder clearSampleConfig() { * .google.cloud.aiplatform.v1beta1.SampleConfig sample_config = 3; */ public com.google.cloud.aiplatform.v1beta1.SampleConfig.Builder getSampleConfigBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getSampleConfigFieldBuilder().getBuilder(); } @@ -1111,7 +1122,7 @@ public com.google.cloud.aiplatform.v1beta1.SampleConfigOrBuilder getSampleConfig * @return Whether the trainingConfig field is set. */ public boolean hasTrainingConfig() { - return trainingConfigBuilder_ != null || trainingConfig_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1152,11 +1163,11 @@ public Builder setTrainingConfig(com.google.cloud.aiplatform.v1beta1.TrainingCon throw new NullPointerException(); } trainingConfig_ = value; - onChanged(); } else { trainingConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1174,11 +1185,11 @@ public Builder setTrainingConfig( com.google.cloud.aiplatform.v1beta1.TrainingConfig.Builder builderForValue) { if (trainingConfigBuilder_ == null) { trainingConfig_ = builderForValue.build(); - onChanged(); } else { trainingConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1194,19 +1205,19 @@ public Builder setTrainingConfig( */ public Builder mergeTrainingConfig(com.google.cloud.aiplatform.v1beta1.TrainingConfig value) { if (trainingConfigBuilder_ == null) { - if (trainingConfig_ != null) { - trainingConfig_ = - com.google.cloud.aiplatform.v1beta1.TrainingConfig.newBuilder(trainingConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && trainingConfig_ != null + && trainingConfig_ + != com.google.cloud.aiplatform.v1beta1.TrainingConfig.getDefaultInstance()) { + getTrainingConfigBuilder().mergeFrom(value); } else { trainingConfig_ = value; } - onChanged(); } else { trainingConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1221,14 +1232,13 @@ public Builder mergeTrainingConfig(com.google.cloud.aiplatform.v1beta1.TrainingC * .google.cloud.aiplatform.v1beta1.TrainingConfig training_config = 4; */ public Builder clearTrainingConfig() { - if (trainingConfigBuilder_ == null) { - trainingConfig_ = null; - onChanged(); - } else { - trainingConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + trainingConfig_ = null; + if (trainingConfigBuilder_ != null) { + trainingConfigBuilder_.dispose(); trainingConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1243,7 +1253,7 @@ public Builder clearTrainingConfig() { * .google.cloud.aiplatform.v1beta1.TrainingConfig training_config = 4; */ public com.google.cloud.aiplatform.v1beta1.TrainingConfig.Builder getTrainingConfigBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getTrainingConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextArtifactsAndExecutionsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextArtifactsAndExecutionsRequest.java index 37f1b2b44106..bb10ad20b73b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextArtifactsAndExecutionsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextArtifactsAndExecutionsRequest.java @@ -74,7 +74,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTEXT_FIELD_NUMBER = 1; - private volatile java.lang.Object context_; + + @SuppressWarnings("serial") + private volatile java.lang.Object context_ = ""; /** * * @@ -131,6 +133,8 @@ public com.google.protobuf.ByteString getContextBytes() { } public static final int ARTIFACTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList artifacts_; /** * @@ -200,6 +204,8 @@ public com.google.protobuf.ByteString getArtifactsBytes(int index) { } public static final int EXECUTIONS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList executions_; /** * @@ -512,12 +518,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; context_ = ""; - artifacts_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - executions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); + executions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -549,20 +555,34 @@ public com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsReque buildPartial() { com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest result = new com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest(this); - int from_bitField0_ = bitField0_; - result.context_ = context_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest result) { + if (((bitField0_ & 0x00000002) != 0)) { artifacts_ = artifacts_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.artifacts_ = artifacts_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { executions_ = executions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.executions_ = executions_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.context_ = context_; + } } @java.lang.Override @@ -617,12 +637,13 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getContext().isEmpty()) { context_ = other.context_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.artifacts_.isEmpty()) { if (artifacts_.isEmpty()) { artifacts_ = other.artifacts_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureArtifactsIsMutable(); artifacts_.addAll(other.artifacts_); @@ -632,7 +653,7 @@ public Builder mergeFrom( if (!other.executions_.isEmpty()) { if (executions_.isEmpty()) { executions_ = other.executions_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureExecutionsIsMutable(); executions_.addAll(other.executions_); @@ -668,7 +689,7 @@ public Builder mergeFrom( case 10: { context_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -777,8 +798,8 @@ public Builder setContext(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - context_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -798,8 +819,8 @@ public Builder setContext(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContext() { - context_ = getDefaultInstance().getContext(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -824,8 +845,8 @@ public Builder setContextBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - context_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -834,9 +855,9 @@ public Builder setContextBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArtifactsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { artifacts_ = new com.google.protobuf.LazyStringArrayList(artifacts_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -987,7 +1008,7 @@ public Builder addAllArtifacts(java.lang.Iterable values) { */ public Builder clearArtifacts() { artifacts_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1020,9 +1041,9 @@ public Builder addArtifactsBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExecutionsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { executions_ = new com.google.protobuf.LazyStringArrayList(executions_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } /** @@ -1181,7 +1202,7 @@ public Builder addAllExecutions(java.lang.Iterable values) { */ public Builder clearExecutions() { executions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextChildrenRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextChildrenRequest.java index 350cae3a2261..be41f17264b7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextChildrenRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddContextChildrenRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTEXT_FIELD_NUMBER = 1; - private volatile java.lang.Object context_; + + @SuppressWarnings("serial") + private volatile java.lang.Object context_ = ""; /** * * @@ -127,6 +129,8 @@ public com.google.protobuf.ByteString getContextBytes() { } public static final int CHILD_CONTEXTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList childContexts_; /** * @@ -402,10 +406,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; context_ = ""; - childContexts_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -434,17 +438,31 @@ public com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest build() { public com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest result = new com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest(this); - int from_bitField0_ = bitField0_; - result.context_ = context_; - if (((bitField0_ & 0x00000001) != 0)) { - childContexts_ = childContexts_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.childContexts_ = childContexts_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest result) { + if (((bitField0_ & 0x00000002) != 0)) { + childContexts_ = childContexts_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.childContexts_ = childContexts_; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.context_ = context_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -494,12 +512,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AddContextChildrenR return this; if (!other.getContext().isEmpty()) { context_ = other.context_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.childContexts_.isEmpty()) { if (childContexts_.isEmpty()) { childContexts_ = other.childContexts_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureChildContextsIsMutable(); childContexts_.addAll(other.childContexts_); @@ -535,7 +554,7 @@ public Builder mergeFrom( case 10: { context_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -637,8 +656,8 @@ public Builder setContext(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - context_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -658,8 +677,8 @@ public Builder setContext(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContext() { - context_ = getDefaultInstance().getContext(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -684,8 +703,8 @@ public Builder setContextBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - context_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -694,9 +713,9 @@ public Builder setContextBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureChildContextsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { childContexts_ = new com.google.protobuf.LazyStringArrayList(childContexts_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -831,7 +850,7 @@ public Builder addAllChildContexts(java.lang.Iterable values) */ public Builder clearChildContexts() { childContexts_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddExecutionEventsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddExecutionEventsRequest.java index f89733f8eed9..52273b5ece5f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddExecutionEventsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddExecutionEventsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int EXECUTION_FIELD_NUMBER = 1; - private volatile java.lang.Object execution_; + + @SuppressWarnings("serial") + private volatile java.lang.Object execution_ = ""; /** * * @@ -129,6 +131,8 @@ public com.google.protobuf.ByteString getExecutionBytes() { } public static final int EVENTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List events_; /** * @@ -407,15 +411,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; execution_ = ""; - if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); } else { events_ = null; eventsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -444,19 +448,33 @@ public com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest build() { public com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest result = new com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest(this); - int from_bitField0_ = bitField0_; - result.execution_ = execution_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest result) { if (eventsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { events_ = java.util.Collections.unmodifiableList(events_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.events_ = events_; } else { result.events_ = eventsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.execution_ = execution_; + } } @java.lang.Override @@ -508,13 +526,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AddExecutionEventsR return this; if (!other.getExecution().isEmpty()) { execution_ = other.execution_; + bitField0_ |= 0x00000001; onChanged(); } if (eventsBuilder_ == null) { if (!other.events_.isEmpty()) { if (events_.isEmpty()) { events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureEventsIsMutable(); events_.addAll(other.events_); @@ -527,7 +546,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AddExecutionEventsR eventsBuilder_.dispose(); eventsBuilder_ = null; events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); eventsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEventsFieldBuilder() @@ -566,7 +585,7 @@ public Builder mergeFrom( case 10: { execution_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -677,8 +696,8 @@ public Builder setExecution(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - execution_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -699,8 +718,8 @@ public Builder setExecution(java.lang.String value) { * @return This builder for chaining. */ public Builder clearExecution() { - execution_ = getDefaultInstance().getExecution(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -726,8 +745,8 @@ public Builder setExecutionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - execution_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -736,9 +755,9 @@ public Builder setExecutionBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureEventsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { events_ = new java.util.ArrayList(events_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -953,7 +972,7 @@ public Builder addAllEvents( public Builder clearEvents() { if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { eventsBuilder_.clear(); @@ -1075,7 +1094,7 @@ public com.google.cloud.aiplatform.v1beta1.Event.Builder addEventsBuilder(int in com.google.cloud.aiplatform.v1beta1.Event, com.google.cloud.aiplatform.v1beta1.Event.Builder, com.google.cloud.aiplatform.v1beta1.EventOrBuilder>( - events_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + events_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); events_ = null; } return eventsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddTrialMeasurementRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddTrialMeasurementRequest.java index 33bda1b95624..8c97dbb6dcbd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddTrialMeasurementRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AddTrialMeasurementRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRIAL_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object trialName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object trialName_ = ""; /** * * @@ -176,7 +178,9 @@ public com.google.cloud.aiplatform.v1beta1.Measurement getMeasurement() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.MeasurementOrBuilder getMeasurementOrBuilder() { - return getMeasurement(); + return measurement_ == null + ? com.google.cloud.aiplatform.v1beta1.Measurement.getDefaultInstance() + : measurement_; } private byte memoizedIsInitialized = -1; @@ -392,12 +396,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; trialName_ = ""; - - if (measurementBuilder_ == null) { - measurement_ = null; - } else { - measurement_ = null; + measurement_ = null; + if (measurementBuilder_ != null) { + measurementBuilder_.dispose(); measurementBuilder_ = null; } return this; @@ -428,16 +431,25 @@ public com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest build() { public com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest result = new com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest(this); - result.trialName_ = trialName_; - if (measurementBuilder_ == null) { - result.measurement_ = measurement_; - } else { - result.measurement_ = measurementBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trialName_ = trialName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.measurement_ = + measurementBuilder_ == null ? measurement_ : measurementBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -487,6 +499,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AddTrialMeasurement return this; if (!other.getTrialName().isEmpty()) { trialName_ = other.trialName_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasMeasurement()) { @@ -521,13 +534,13 @@ public Builder mergeFrom( case 10: { trialName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: { input.readMessage(getMeasurementFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 26 default: @@ -547,6 +560,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object trialName_ = ""; /** * @@ -620,8 +635,8 @@ public Builder setTrialName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - trialName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -641,8 +656,8 @@ public Builder setTrialName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTrialName() { - trialName_ = getDefaultInstance().getTrialName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -667,8 +682,8 @@ public Builder setTrialNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - trialName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -693,7 +708,7 @@ public Builder setTrialNameBytes(com.google.protobuf.ByteString value) { * @return Whether the measurement field is set. */ public boolean hasMeasurement() { - return measurementBuilder_ != null || measurement_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -734,11 +749,11 @@ public Builder setMeasurement(com.google.cloud.aiplatform.v1beta1.Measurement va throw new NullPointerException(); } measurement_ = value; - onChanged(); } else { measurementBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -756,11 +771,11 @@ public Builder setMeasurement( com.google.cloud.aiplatform.v1beta1.Measurement.Builder builderForValue) { if (measurementBuilder_ == null) { measurement_ = builderForValue.build(); - onChanged(); } else { measurementBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -776,19 +791,19 @@ public Builder setMeasurement( */ public Builder mergeMeasurement(com.google.cloud.aiplatform.v1beta1.Measurement value) { if (measurementBuilder_ == null) { - if (measurement_ != null) { - measurement_ = - com.google.cloud.aiplatform.v1beta1.Measurement.newBuilder(measurement_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && measurement_ != null + && measurement_ + != com.google.cloud.aiplatform.v1beta1.Measurement.getDefaultInstance()) { + getMeasurementBuilder().mergeFrom(value); } else { measurement_ = value; } - onChanged(); } else { measurementBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -803,14 +818,13 @@ public Builder mergeMeasurement(com.google.cloud.aiplatform.v1beta1.Measurement * */ public Builder clearMeasurement() { - if (measurementBuilder_ == null) { - measurement_ = null; - onChanged(); - } else { - measurement_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + measurement_ = null; + if (measurementBuilder_ != null) { + measurementBuilder_.dispose(); measurementBuilder_ = null; } - + onChanged(); return this; } /** @@ -825,7 +839,7 @@ public Builder clearMeasurement() { * */ public com.google.cloud.aiplatform.v1beta1.Measurement.Builder getMeasurementBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMeasurementFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Annotation.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Annotation.java index b11e9e1b19bc..4979272e7a15 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Annotation.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Annotation.java @@ -82,7 +82,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -131,7 +133,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int PAYLOAD_SCHEMA_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object payloadSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object payloadSchemaUri_ = ""; /** * * @@ -239,7 +243,7 @@ public com.google.protobuf.Value getPayload() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getPayloadOrBuilder() { - return getPayload(); + return payload_ == null ? com.google.protobuf.Value.getDefaultInstance() : payload_; } public static final int CREATE_TIME_FIELD_NUMBER = 4; @@ -288,7 +292,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 7; @@ -337,11 +341,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ETAG_FIELD_NUMBER = 8; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -443,7 +449,9 @@ public com.google.cloud.aiplatform.v1beta1.UserActionReference getAnnotationSour @java.lang.Override public com.google.cloud.aiplatform.v1beta1.UserActionReferenceOrBuilder getAnnotationSourceOrBuilder() { - return getAnnotationSource(); + return annotationSource_ == null + ? com.google.cloud.aiplatform.v1beta1.UserActionReference.getDefaultInstance() + : annotationSource_; } public static final int LABELS_FIELD_NUMBER = 6; @@ -459,6 +467,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -564,7 +573,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -917,34 +929,28 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - payloadSchemaUri_ = ""; - - if (payloadBuilder_ == null) { - payload_ = null; - } else { - payload_ = null; + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); payloadBuilder_ = null; } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } etag_ = ""; - - if (annotationSourceBuilder_ == null) { - annotationSource_ = null; - } else { - annotationSource_ = null; + annotationSource_ = null; + if (annotationSourceBuilder_ != null) { + annotationSourceBuilder_.dispose(); annotationSourceBuilder_ = null; } internalGetMutableLabels().clear(); @@ -975,34 +981,41 @@ public com.google.cloud.aiplatform.v1beta1.Annotation build() { public com.google.cloud.aiplatform.v1beta1.Annotation buildPartial() { com.google.cloud.aiplatform.v1beta1.Annotation result = new com.google.cloud.aiplatform.v1beta1.Annotation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Annotation result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - result.payloadSchemaUri_ = payloadSchemaUri_; - if (payloadBuilder_ == null) { - result.payload_ = payload_; - } else { - result.payload_ = payloadBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.payloadSchemaUri_ = payloadSchemaUri_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.payload_ = payloadBuilder_ == null ? payload_ : payloadBuilder_.build(); } - result.etag_ = etag_; - if (annotationSourceBuilder_ == null) { - result.annotationSource_ = annotationSource_; - } else { - result.annotationSource_ = annotationSourceBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.annotationSource_ = + annotationSourceBuilder_ == null ? annotationSource_ : annotationSourceBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - onBuilt(); - return result; } @java.lang.Override @@ -1052,10 +1065,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Annotation other) { if (other == com.google.cloud.aiplatform.v1beta1.Annotation.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getPayloadSchemaUri().isEmpty()) { payloadSchemaUri_ = other.payloadSchemaUri_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasPayload()) { @@ -1069,12 +1084,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Annotation other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasAnnotationSource()) { mergeAnnotationSource(other.getAnnotationSource()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000080; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1104,32 +1121,32 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { payloadSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getPayloadFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getAnnotationSourceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 42 case 50: @@ -1141,18 +1158,19 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; break; } // case 50 case 58: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 58 case 66: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 66 default: @@ -1235,8 +1253,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1252,8 +1270,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1274,8 +1292,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1362,8 +1380,8 @@ public Builder setPayloadSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - payloadSchemaUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1386,8 +1404,8 @@ public Builder setPayloadSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPayloadSchemaUri() { - payloadSchemaUri_ = getDefaultInstance().getPayloadSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1415,8 +1433,8 @@ public Builder setPayloadSchemaUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - payloadSchemaUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1440,7 +1458,7 @@ public Builder setPayloadSchemaUriBytes(com.google.protobuf.ByteString value) { * @return Whether the payload field is set. */ public boolean hasPayload() { - return payloadBuilder_ != null || payload_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1477,11 +1495,11 @@ public Builder setPayload(com.google.protobuf.Value value) { throw new NullPointerException(); } payload_ = value; - onChanged(); } else { payloadBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1497,11 +1515,11 @@ public Builder setPayload(com.google.protobuf.Value value) { public Builder setPayload(com.google.protobuf.Value.Builder builderForValue) { if (payloadBuilder_ == null) { payload_ = builderForValue.build(); - onChanged(); } else { payloadBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1516,16 +1534,18 @@ public Builder setPayload(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergePayload(com.google.protobuf.Value value) { if (payloadBuilder_ == null) { - if (payload_ != null) { - payload_ = com.google.protobuf.Value.newBuilder(payload_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && payload_ != null + && payload_ != com.google.protobuf.Value.getDefaultInstance()) { + getPayloadBuilder().mergeFrom(value); } else { payload_ = value; } - onChanged(); } else { payloadBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1539,14 +1559,13 @@ public Builder mergePayload(com.google.protobuf.Value value) { * .google.protobuf.Value payload = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPayload() { - if (payloadBuilder_ == null) { - payload_ = null; - onChanged(); - } else { - payload_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); payloadBuilder_ = null; } - + onChanged(); return this; } /** @@ -1560,7 +1579,7 @@ public Builder clearPayload() { * .google.protobuf.Value payload = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Value.Builder getPayloadBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getPayloadFieldBuilder().getBuilder(); } @@ -1628,7 +1647,7 @@ public com.google.protobuf.ValueOrBuilder getPayloadOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1669,11 +1688,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1690,11 +1709,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1710,17 +1729,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1735,14 +1755,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1757,7 +1776,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1829,7 +1848,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1870,11 +1889,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1891,11 +1910,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1911,17 +1930,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1936,14 +1956,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1958,7 +1977,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2074,8 +2093,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2092,8 +2111,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2115,8 +2134,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2141,7 +2160,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { * @return Whether the annotationSource field is set. */ public boolean hasAnnotationSource() { - return annotationSourceBuilder_ != null || annotationSource_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2183,11 +2202,11 @@ public Builder setAnnotationSource( throw new NullPointerException(); } annotationSource_ = value; - onChanged(); } else { annotationSourceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2205,11 +2224,11 @@ public Builder setAnnotationSource( com.google.cloud.aiplatform.v1beta1.UserActionReference.Builder builderForValue) { if (annotationSourceBuilder_ == null) { annotationSource_ = builderForValue.build(); - onChanged(); } else { annotationSourceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2226,19 +2245,19 @@ public Builder setAnnotationSource( public Builder mergeAnnotationSource( com.google.cloud.aiplatform.v1beta1.UserActionReference value) { if (annotationSourceBuilder_ == null) { - if (annotationSource_ != null) { - annotationSource_ = - com.google.cloud.aiplatform.v1beta1.UserActionReference.newBuilder(annotationSource_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && annotationSource_ != null + && annotationSource_ + != com.google.cloud.aiplatform.v1beta1.UserActionReference.getDefaultInstance()) { + getAnnotationSourceBuilder().mergeFrom(value); } else { annotationSource_ = value; } - onChanged(); } else { annotationSourceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2253,14 +2272,13 @@ public Builder mergeAnnotationSource( * */ public Builder clearAnnotationSource() { - if (annotationSourceBuilder_ == null) { - annotationSource_ = null; - onChanged(); - } else { - annotationSource_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + annotationSource_ = null; + if (annotationSourceBuilder_ != null) { + annotationSourceBuilder_.dispose(); annotationSourceBuilder_ = null; } - + onChanged(); return this; } /** @@ -2276,7 +2294,7 @@ public Builder clearAnnotationSource() { */ public com.google.cloud.aiplatform.v1beta1.UserActionReference.Builder getAnnotationSourceBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getAnnotationSourceFieldBuilder().getBuilder(); } @@ -2340,14 +2358,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000080; + onChanged(); return labels_; } @@ -2447,8 +2465,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2493,6 +2513,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000080); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -2531,6 +2552,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000080; return internalGetMutableLabels().getMutableMap(); } /** @@ -2565,8 +2587,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000080; return this; } /** @@ -2596,6 +2618,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000080; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationOrBuilder.java index e8d9cf8eef2f..a2100ffeb11b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationOrBuilder.java @@ -375,7 +375,6 @@ public interface AnnotationOrBuilder * * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpec.java index 21d4f8eddbcf..6e1ac9b54dd9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpec.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -119,7 +121,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -217,7 +221,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 4; @@ -266,11 +270,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ETAG_FIELD_NUMBER = 5; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -563,24 +569,20 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } etag_ = ""; - return this; } @@ -608,23 +610,32 @@ public com.google.cloud.aiplatform.v1beta1.AnnotationSpec build() { public com.google.cloud.aiplatform.v1beta1.AnnotationSpec buildPartial() { com.google.cloud.aiplatform.v1beta1.AnnotationSpec result = new com.google.cloud.aiplatform.v1beta1.AnnotationSpec(this); - result.name_ = name_; - result.displayName_ = displayName_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.etag_ = etag_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.AnnotationSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.etag_ = etag_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -673,10 +684,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AnnotationSpec othe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasCreateTime()) { @@ -687,6 +700,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AnnotationSpec othe } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -718,31 +732,31 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -762,6 +776,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -823,8 +839,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -840,8 +856,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -862,8 +878,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -935,8 +951,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -954,8 +970,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -978,8 +994,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1004,7 +1020,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1045,11 +1061,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1066,11 +1082,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1086,17 +1102,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1111,14 +1128,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1133,7 +1149,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1205,7 +1221,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1246,11 +1262,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1267,11 +1283,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1287,17 +1303,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1312,14 +1329,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1334,7 +1350,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -1450,8 +1466,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1468,8 +1484,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1491,8 +1507,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Artifact.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Artifact.java index cb176934616b..d2c93c39df52 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Artifact.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Artifact.java @@ -247,7 +247,9 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -296,7 +298,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -347,7 +351,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int URI_FIELD_NUMBER = 6; - private volatile java.lang.Object uri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; /** * * @@ -398,7 +404,9 @@ public com.google.protobuf.ByteString getUriBytes() { } public static final int ETAG_FIELD_NUMBER = 9; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -461,6 +469,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -533,7 +542,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 10; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -612,7 +624,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 12; @@ -661,11 +673,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int STATE_FIELD_NUMBER = 13; - private int state_; + private int state_ = 0; /** * * @@ -700,16 +712,17 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Artifact.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Artifact.State result = - com.google.cloud.aiplatform.v1beta1.Artifact.State.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.Artifact.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.Artifact.State.UNRECOGNIZED : result; } public static final int SCHEMA_TITLE_FIELD_NUMBER = 14; - private volatile java.lang.Object schemaTitle_; + + @SuppressWarnings("serial") + private volatile java.lang.Object schemaTitle_ = ""; /** * * @@ -764,7 +777,9 @@ public com.google.protobuf.ByteString getSchemaTitleBytes() { } public static final int SCHEMA_VERSION_FIELD_NUMBER = 15; - private volatile java.lang.Object schemaVersion_; + + @SuppressWarnings("serial") + private volatile java.lang.Object schemaVersion_ = ""; /** * * @@ -867,11 +882,13 @@ public com.google.protobuf.Struct getMetadata() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } public static final int DESCRIPTION_FIELD_NUMBER = 17; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -1260,41 +1277,31 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - uri_ = ""; - etag_ = ""; - internalGetMutableLabels().clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } state_ = 0; - schemaTitle_ = ""; - schemaVersion_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } description_ = ""; - return this; } @@ -1322,34 +1329,52 @@ public com.google.cloud.aiplatform.v1beta1.Artifact build() { public com.google.cloud.aiplatform.v1beta1.Artifact buildPartial() { com.google.cloud.aiplatform.v1beta1.Artifact result = new com.google.cloud.aiplatform.v1beta1.Artifact(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Artifact result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.uri_ = uri_; - result.etag_ = etag_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - result.state_ = state_; - result.schemaTitle_ = schemaTitle_; - result.schemaVersion_ = schemaVersion_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.schemaTitle_ = schemaTitle_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.schemaVersion_ = schemaVersion_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.description_ = description_; } - result.description_ = description_; - onBuilt(); - return result; } @java.lang.Override @@ -1399,21 +1424,26 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Artifact other) { if (other == com.google.cloud.aiplatform.v1beta1.Artifact.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getUri().isEmpty()) { uri_ = other.uri_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000008; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1425,10 +1455,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Artifact other) { } if (!other.getSchemaTitle().isEmpty()) { schemaTitle_ = other.schemaTitle_; + bitField0_ |= 0x00000100; onChanged(); } if (!other.getSchemaVersion().isEmpty()) { schemaVersion_ = other.schemaVersion_; + bitField0_ |= 0x00000200; onChanged(); } if (other.hasMetadata()) { @@ -1436,6 +1468,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Artifact other) { } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000800; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1467,25 +1500,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 50: { uri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 50 case 74: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 74 case 82: @@ -1497,48 +1530,49 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; break; } // case 82 case 90: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 90 case 98: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 98 case 104: { state_ = input.readEnum(); - + bitField0_ |= 0x00000080; break; } // case 104 case 114: { schemaTitle_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 114 case 122: { schemaVersion_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000200; break; } // case 122 case 130: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 130 case 138: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000800; break; } // case 138 default: @@ -1621,8 +1655,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1638,8 +1672,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1660,8 +1694,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1730,8 +1764,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1748,8 +1782,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1771,8 +1805,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1841,8 +1875,8 @@ public Builder setUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - uri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1859,8 +1893,8 @@ public Builder setUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearUri() { - uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1882,8 +1916,8 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - uri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1952,8 +1986,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1970,8 +2004,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1993,8 +2027,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2010,14 +2044,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000010; + onChanged(); return labels_; } @@ -2084,8 +2118,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 10; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2119,6 +2155,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -2146,6 +2183,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000010; return internalGetMutableLabels().getMutableMap(); } /** @@ -2169,8 +2207,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; return this; } /** @@ -2189,6 +2227,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; return this; } @@ -2212,7 +2251,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2253,11 +2292,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2274,11 +2313,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2294,17 +2333,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2319,14 +2359,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2341,7 +2380,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2413,7 +2452,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2454,11 +2493,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2475,11 +2514,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2495,17 +2534,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2520,14 +2560,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2542,7 +2581,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2629,8 +2668,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2650,9 +2689,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Artifact.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Artifact.State result = - com.google.cloud.aiplatform.v1beta1.Artifact.State.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.Artifact.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.Artifact.State.UNRECOGNIZED : result; @@ -2676,7 +2714,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.Artifact.State value if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000080; state_ = value.getNumber(); onChanged(); return this; @@ -2696,7 +2734,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.Artifact.State value * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000080); state_ = 0; onChanged(); return this; @@ -2772,8 +2810,8 @@ public Builder setSchemaTitle(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - schemaTitle_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2792,8 +2830,8 @@ public Builder setSchemaTitle(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSchemaTitle() { - schemaTitle_ = getDefaultInstance().getSchemaTitle(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2817,8 +2855,8 @@ public Builder setSchemaTitleBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - schemaTitle_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2893,8 +2931,8 @@ public Builder setSchemaVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - schemaVersion_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2913,8 +2951,8 @@ public Builder setSchemaVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSchemaVersion() { - schemaVersion_ = getDefaultInstance().getSchemaVersion(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -2938,8 +2976,8 @@ public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - schemaVersion_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2964,7 +3002,7 @@ public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -3003,11 +3041,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) { throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3024,11 +3062,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) { public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3044,17 +3082,18 @@ public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Struct value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3069,14 +3108,13 @@ public Builder mergeMetadata(com.google.protobuf.Struct value) { * .google.protobuf.Struct metadata = 16; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -3091,7 +3129,7 @@ public Builder clearMetadata() { * .google.protobuf.Struct metadata = 16; */ public com.google.protobuf.Struct.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -3202,8 +3240,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3219,8 +3257,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -3241,8 +3279,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactOrBuilder.java index 4961a3982164..734994684151 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactOrBuilder.java @@ -191,7 +191,6 @@ public interface ArtifactOrBuilder * * map<string, string> labels = 10; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Attribution.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Attribution.java index 0c163b853618..4fca332c0e5b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Attribution.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Attribution.java @@ -70,7 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int BASELINE_OUTPUT_VALUE_FIELD_NUMBER = 1; - private double baselineOutputValue_; + private double baselineOutputValue_ = 0D; /** * * @@ -96,7 +96,7 @@ public double getBaselineOutputValue() { } public static final int INSTANCE_OUTPUT_VALUE_FIELD_NUMBER = 2; - private double instanceOutputValue_; + private double instanceOutputValue_ = 0D; /** * * @@ -248,10 +248,14 @@ public com.google.protobuf.Value getFeatureAttributions() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getFeatureAttributionsOrBuilder() { - return getFeatureAttributions(); + return featureAttributions_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : featureAttributions_; } public static final int OUTPUT_INDEX_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList outputIndex_; /** * @@ -316,7 +320,9 @@ public int getOutputIndex(int index) { private int outputIndexMemoizedSerializedSize = -1; public static final int OUTPUT_DISPLAY_NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object outputDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputDisplayName_ = ""; /** * * @@ -377,7 +383,7 @@ public com.google.protobuf.ByteString getOutputDisplayNameBytes() { } public static final int APPROXIMATION_ERROR_FIELD_NUMBER = 6; - private double approximationError_; + private double approximationError_ = 0D; /** * * @@ -415,7 +421,9 @@ public double getApproximationError() { } public static final int OUTPUT_NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object outputName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputName_ = ""; /** * * @@ -750,24 +758,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; baselineOutputValue_ = 0D; - instanceOutputValue_ = 0D; - - if (featureAttributionsBuilder_ == null) { - featureAttributions_ = null; - } else { - featureAttributions_ = null; + featureAttributions_ = null; + if (featureAttributionsBuilder_ != null) { + featureAttributionsBuilder_.dispose(); featureAttributionsBuilder_ = null; } outputIndex_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); outputDisplayName_ = ""; - approximationError_ = 0D; - outputName_ = ""; - return this; } @@ -795,24 +797,46 @@ public com.google.cloud.aiplatform.v1beta1.Attribution build() { public com.google.cloud.aiplatform.v1beta1.Attribution buildPartial() { com.google.cloud.aiplatform.v1beta1.Attribution result = new com.google.cloud.aiplatform.v1beta1.Attribution(this); - int from_bitField0_ = bitField0_; - result.baselineOutputValue_ = baselineOutputValue_; - result.instanceOutputValue_ = instanceOutputValue_; - if (featureAttributionsBuilder_ == null) { - result.featureAttributions_ = featureAttributions_; - } else { - result.featureAttributions_ = featureAttributionsBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - if (((bitField0_ & 0x00000001) != 0)) { + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.Attribution result) { + if (((bitField0_ & 0x00000008) != 0)) { outputIndex_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.outputIndex_ = outputIndex_; - result.outputDisplayName_ = outputDisplayName_; - result.approximationError_ = approximationError_; - result.outputName_ = outputName_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Attribution result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.baselineOutputValue_ = baselineOutputValue_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.instanceOutputValue_ = instanceOutputValue_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.featureAttributions_ = + featureAttributionsBuilder_ == null + ? featureAttributions_ + : featureAttributionsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.outputDisplayName_ = outputDisplayName_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.approximationError_ = approximationError_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.outputName_ = outputName_; + } } @java.lang.Override @@ -873,7 +897,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Attribution other) if (!other.outputIndex_.isEmpty()) { if (outputIndex_.isEmpty()) { outputIndex_ = other.outputIndex_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureOutputIndexIsMutable(); outputIndex_.addAll(other.outputIndex_); @@ -882,6 +906,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Attribution other) } if (!other.getOutputDisplayName().isEmpty()) { outputDisplayName_ = other.outputDisplayName_; + bitField0_ |= 0x00000010; onChanged(); } if (other.getApproximationError() != 0D) { @@ -889,6 +914,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Attribution other) } if (!other.getOutputName().isEmpty()) { outputName_ = other.outputName_; + bitField0_ |= 0x00000040; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -920,20 +946,20 @@ public Builder mergeFrom( case 9: { baselineOutputValue_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 case 17: { instanceOutputValue_ = input.readDouble(); - + bitField0_ |= 0x00000002; break; } // case 17 case 26: { input.readMessage( getFeatureAttributionsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 32: @@ -957,19 +983,19 @@ public Builder mergeFrom( case 42: { outputDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 case 49: { approximationError_ = input.readDouble(); - + bitField0_ |= 0x00000020; break; } // case 49 case 58: { outputName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 58 default: @@ -1038,6 +1064,7 @@ public double getBaselineOutputValue() { public Builder setBaselineOutputValue(double value) { baselineOutputValue_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1061,7 +1088,7 @@ public Builder setBaselineOutputValue(double value) { * @return This builder for chaining. */ public Builder clearBaselineOutputValue() { - + bitField0_ = (bitField0_ & ~0x00000001); baselineOutputValue_ = 0D; onChanged(); return this; @@ -1110,6 +1137,7 @@ public double getInstanceOutputValue() { public Builder setInstanceOutputValue(double value) { instanceOutputValue_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1131,7 +1159,7 @@ public Builder setInstanceOutputValue(double value) { * @return This builder for chaining. */ public Builder clearInstanceOutputValue() { - + bitField0_ = (bitField0_ & ~0x00000002); instanceOutputValue_ = 0D; onChanged(); return this; @@ -1183,7 +1211,7 @@ public Builder clearInstanceOutputValue() { * @return Whether the featureAttributions field is set. */ public boolean hasFeatureAttributions() { - return featureAttributionsBuilder_ != null || featureAttributions_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1276,11 +1304,11 @@ public Builder setFeatureAttributions(com.google.protobuf.Value value) { throw new NullPointerException(); } featureAttributions_ = value; - onChanged(); } else { featureAttributionsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1323,11 +1351,11 @@ public Builder setFeatureAttributions(com.google.protobuf.Value value) { public Builder setFeatureAttributions(com.google.protobuf.Value.Builder builderForValue) { if (featureAttributionsBuilder_ == null) { featureAttributions_ = builderForValue.build(); - onChanged(); } else { featureAttributionsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1369,19 +1397,18 @@ public Builder setFeatureAttributions(com.google.protobuf.Value.Builder builderF */ public Builder mergeFeatureAttributions(com.google.protobuf.Value value) { if (featureAttributionsBuilder_ == null) { - if (featureAttributions_ != null) { - featureAttributions_ = - com.google.protobuf.Value.newBuilder(featureAttributions_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && featureAttributions_ != null + && featureAttributions_ != com.google.protobuf.Value.getDefaultInstance()) { + getFeatureAttributionsBuilder().mergeFrom(value); } else { featureAttributions_ = value; } - onChanged(); } else { featureAttributionsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1422,14 +1449,13 @@ public Builder mergeFeatureAttributions(com.google.protobuf.Value value) { * */ public Builder clearFeatureAttributions() { - if (featureAttributionsBuilder_ == null) { - featureAttributions_ = null; - onChanged(); - } else { - featureAttributions_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + featureAttributions_ = null; + if (featureAttributionsBuilder_ != null) { + featureAttributionsBuilder_.dispose(); featureAttributionsBuilder_ = null; } - + onChanged(); return this; } /** @@ -1470,7 +1496,7 @@ public Builder clearFeatureAttributions() { * */ public com.google.protobuf.Value.Builder getFeatureAttributionsBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getFeatureAttributionsFieldBuilder().getBuilder(); } @@ -1577,9 +1603,9 @@ public com.google.protobuf.ValueOrBuilder getFeatureAttributionsOrBuilder() { private com.google.protobuf.Internal.IntList outputIndex_ = emptyIntList(); private void ensureOutputIndexIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { outputIndex_ = mutableCopy(outputIndex_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } /** @@ -1599,7 +1625,7 @@ private void ensureOutputIndexIsMutable() { * @return A list containing the outputIndex. */ public java.util.List getOutputIndexList() { - return ((bitField0_ & 0x00000001) != 0) + return ((bitField0_ & 0x00000008) != 0) ? java.util.Collections.unmodifiableList(outputIndex_) : outputIndex_; } @@ -1661,6 +1687,7 @@ public int getOutputIndex(int index) { * @return This builder for chaining. */ public Builder setOutputIndex(int index, int value) { + ensureOutputIndexIsMutable(); outputIndex_.setInt(index, value); onChanged(); @@ -1684,6 +1711,7 @@ public Builder setOutputIndex(int index, int value) { * @return This builder for chaining. */ public Builder addOutputIndex(int value) { + ensureOutputIndexIsMutable(); outputIndex_.addInt(value); onChanged(); @@ -1730,7 +1758,7 @@ public Builder addAllOutputIndex(java.lang.Iterable */ public Builder clearOutputIndex() { outputIndex_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1814,8 +1842,8 @@ public Builder setOutputDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - outputDisplayName_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1837,8 +1865,8 @@ public Builder setOutputDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOutputDisplayName() { - outputDisplayName_ = getDefaultInstance().getOutputDisplayName(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1865,8 +1893,8 @@ public Builder setOutputDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - outputDisplayName_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1942,6 +1970,7 @@ public double getApproximationError() { public Builder setApproximationError(double value) { approximationError_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1977,7 +2006,7 @@ public Builder setApproximationError(double value) { * @return This builder for chaining. */ public Builder clearApproximationError() { - + bitField0_ = (bitField0_ & ~0x00000020); approximationError_ = 0D; onChanged(); return this; @@ -2047,8 +2076,8 @@ public Builder setOutputName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - outputName_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2065,8 +2094,8 @@ public Builder setOutputName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOutputName() { - outputName_ = getDefaultInstance().getOutputName(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2088,8 +2117,8 @@ public Builder setOutputNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - outputName_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutomaticResources.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutomaticResources.java index 050eb9718a19..d6e4950d45ca 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutomaticResources.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutomaticResources.java @@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MIN_REPLICA_COUNT_FIELD_NUMBER = 1; - private int minReplicaCount_; + private int minReplicaCount_ = 0; /** * * @@ -91,7 +91,7 @@ public int getMinReplicaCount() { } public static final int MAX_REPLICA_COUNT_FIELD_NUMBER = 2; - private int maxReplicaCount_; + private int maxReplicaCount_ = 0; /** * * @@ -325,10 +325,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; minReplicaCount_ = 0; - maxReplicaCount_ = 0; - return this; } @@ -356,12 +355,23 @@ public com.google.cloud.aiplatform.v1beta1.AutomaticResources build() { public com.google.cloud.aiplatform.v1beta1.AutomaticResources buildPartial() { com.google.cloud.aiplatform.v1beta1.AutomaticResources result = new com.google.cloud.aiplatform.v1beta1.AutomaticResources(this); - result.minReplicaCount_ = minReplicaCount_; - result.maxReplicaCount_ = maxReplicaCount_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.AutomaticResources result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.minReplicaCount_ = minReplicaCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxReplicaCount_ = maxReplicaCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -443,13 +453,13 @@ public Builder mergeFrom( case 8: { minReplicaCount_ = input.readInt32(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { maxReplicaCount_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -469,6 +479,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int minReplicaCount_; /** * @@ -510,6 +522,7 @@ public int getMinReplicaCount() { public Builder setMinReplicaCount(int value) { minReplicaCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -530,7 +543,7 @@ public Builder setMinReplicaCount(int value) { * @return This builder for chaining. */ public Builder clearMinReplicaCount() { - + bitField0_ = (bitField0_ & ~0x00000001); minReplicaCount_ = 0; onChanged(); return this; @@ -583,6 +596,7 @@ public int getMaxReplicaCount() { public Builder setMaxReplicaCount(int value) { maxReplicaCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -606,7 +620,7 @@ public Builder setMaxReplicaCount(int value) { * @return This builder for chaining. */ public Builder clearMaxReplicaCount() { - + bitField0_ = (bitField0_ & ~0x00000002); maxReplicaCount_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoscalingMetricSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoscalingMetricSpec.java index 1c57dda577ab..c2578866a251 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoscalingMetricSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoscalingMetricSpec.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int METRIC_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object metricName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metricName_ = ""; /** * * @@ -127,7 +129,7 @@ public com.google.protobuf.ByteString getMetricNameBytes() { } public static final int TARGET_FIELD_NUMBER = 2; - private int target_; + private int target_ = 0; /** * * @@ -356,10 +358,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; metricName_ = ""; - target_ = 0; - return this; } @@ -387,12 +388,23 @@ public com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec build() { public com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec buildPartial() { com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec result = new com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec(this); - result.metricName_ = metricName_; - result.target_ = target_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricName_ = metricName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.target_ = target_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -441,6 +453,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSp return this; if (!other.getMetricName().isEmpty()) { metricName_ = other.metricName_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getTarget() != 0) { @@ -475,13 +488,13 @@ public Builder mergeFrom( case 10: { metricName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { target_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -501,6 +514,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object metricName_ = ""; /** * @@ -574,8 +589,8 @@ public Builder setMetricName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metricName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -595,8 +610,8 @@ public Builder setMetricName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetricName() { - metricName_ = getDefaultInstance().getMetricName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -621,8 +636,8 @@ public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metricName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -664,6 +679,7 @@ public int getTarget() { public Builder setTarget(int value) { target_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -682,7 +698,7 @@ public Builder setTarget(int value) { * @return This builder for chaining. */ public Builder clearTarget() { - + bitField0_ = (bitField0_ & ~0x00000002); target_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AvroSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AvroSource.java index 4c93c5205933..39a663299241 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AvroSource.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AvroSource.java @@ -116,7 +116,9 @@ public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsSource() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { - return getGcsSource(); + return gcsSource_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance() + : gcsSource_; } private byte memoizedIsInitialized = -1; @@ -321,10 +323,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (gcsSourceBuilder_ == null) { - gcsSource_ = null; - } else { - gcsSource_ = null; + bitField0_ = 0; + gcsSource_ = null; + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.dispose(); gcsSourceBuilder_ = null; } return this; @@ -354,15 +356,20 @@ public com.google.cloud.aiplatform.v1beta1.AvroSource build() { public com.google.cloud.aiplatform.v1beta1.AvroSource buildPartial() { com.google.cloud.aiplatform.v1beta1.AvroSource result = new com.google.cloud.aiplatform.v1beta1.AvroSource(this); - if (gcsSourceBuilder_ == null) { - result.gcsSource_ = gcsSource_; - } else { - result.gcsSource_ = gcsSourceBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.AvroSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gcsSource_ = gcsSourceBuilder_ == null ? gcsSource_ : gcsSourceBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -440,7 +447,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -460,6 +467,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GcsSource gcsSource_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GcsSource, @@ -480,7 +489,7 @@ public Builder mergeFrom( * @return Whether the gcsSource field is set. */ public boolean hasGcsSource() { - return gcsSourceBuilder_ != null || gcsSource_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -521,11 +530,11 @@ public Builder setGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource value) throw new NullPointerException(); } gcsSource_ = value; - onChanged(); } else { gcsSourceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -543,11 +552,11 @@ public Builder setGcsSource( com.google.cloud.aiplatform.v1beta1.GcsSource.Builder builderForValue) { if (gcsSourceBuilder_ == null) { gcsSource_ = builderForValue.build(); - onChanged(); } else { gcsSourceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -563,19 +572,18 @@ public Builder setGcsSource( */ public Builder mergeGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource value) { if (gcsSourceBuilder_ == null) { - if (gcsSource_ != null) { - gcsSource_ = - com.google.cloud.aiplatform.v1beta1.GcsSource.newBuilder(gcsSource_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && gcsSource_ != null + && gcsSource_ != com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance()) { + getGcsSourceBuilder().mergeFrom(value); } else { gcsSource_ = value; } - onChanged(); } else { gcsSourceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -590,14 +598,13 @@ public Builder mergeGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource valu * */ public Builder clearGcsSource() { - if (gcsSourceBuilder_ == null) { - gcsSource_ = null; - onChanged(); - } else { - gcsSource_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + gcsSource_ = null; + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.dispose(); gcsSourceBuilder_ = null; } - + onChanged(); return this; } /** @@ -612,7 +619,7 @@ public Builder clearGcsSource() { * */ public com.google.cloud.aiplatform.v1beta1.GcsSource.Builder getGcsSourceBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGcsSourceFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesOperationMetadata.java index 644225546b3e..0282dabd6b4f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesOperationMetadata.java @@ -113,7 +113,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -323,10 +325,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -359,15 +361,22 @@ public com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata public com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -450,7 +459,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -470,6 +479,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -488,7 +499,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -526,11 +537,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -546,11 +557,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -565,20 +576,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -591,14 +602,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -612,7 +622,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesRequest.java index 87d4de6c5491..d839ea24a7fb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,6 +129,8 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List requests_; /** * @@ -437,15 +441,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); } else { requests_ = null; requestsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -474,19 +478,33 @@ public com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest build() { public com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest result = new com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest result) { if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.requests_ = requests_; } else { result.requests_ = requestsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } } @java.lang.Override @@ -538,13 +556,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.BatchCreateFeatures return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRequestsIsMutable(); requests_.addAll(other.requests_); @@ -557,7 +576,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.BatchCreateFeatures requestsBuilder_.dispose(); requestsBuilder_ = null; requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); requestsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRequestsFieldBuilder() @@ -596,7 +615,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -705,8 +724,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -726,8 +745,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -752,8 +771,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -762,11 +781,11 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { requests_ = new java.util.ArrayList( requests_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1054,7 +1073,7 @@ public Builder addAllRequests( public Builder clearRequests() { if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { requestsBuilder_.clear(); @@ -1224,7 +1243,7 @@ public com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.Builder addReque com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest, com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.Builder, com.google.cloud.aiplatform.v1beta1.CreateFeatureRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesResponse.java index 5d8f673740e5..4e3b8ffb9bd5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateFeaturesResponse.java @@ -69,6 +69,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int FEATURES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List features_; /** * @@ -338,6 +340,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (featuresBuilder_ == null) { features_ = java.util.Collections.emptyList(); } else { @@ -373,7 +376,16 @@ public com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse build() { public com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse result = new com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse result) { if (featuresBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); @@ -383,8 +395,11 @@ public com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse buildPart } else { result.features_ = featuresBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardRunsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardRunsRequest.java index 435d6f79ca26..b69ed81a9b1d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardRunsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardRunsRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -132,6 +134,8 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List requests_; /** * @@ -430,15 +434,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); } else { requests_ = null; requestsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -468,19 +472,33 @@ public com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest bui public com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest result = new com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest result) { if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.requests_ = requests_; } else { result.requests_ = requestsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } } @java.lang.Override @@ -534,13 +552,14 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRequestsIsMutable(); requests_.addAll(other.requests_); @@ -553,7 +572,7 @@ public Builder mergeFrom( requestsBuilder_.dispose(); requestsBuilder_ = null; requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); requestsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRequestsFieldBuilder() @@ -592,7 +611,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -707,8 +726,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -730,8 +749,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -758,8 +777,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -768,11 +787,11 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { requests_ = java.util.Collections.emptyList(); private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { requests_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest>(requests_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1029,7 +1048,7 @@ public Builder addAllRequests( public Builder clearRequests() { if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { requestsBuilder_.clear(); @@ -1180,7 +1199,7 @@ public Builder removeRequests(int index) { com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest, com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest.Builder, com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardRunsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardRunsResponse.java index fa57e4cc35fd..8e5ca3f8d5c7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardRunsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardRunsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_RUNS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List tensorboardRuns_; /** * @@ -343,6 +345,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (tensorboardRunsBuilder_ == null) { tensorboardRuns_ = java.util.Collections.emptyList(); } else { @@ -380,7 +383,16 @@ public com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsResponse bu public com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsResponse result = new com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsResponse result) { if (tensorboardRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { tensorboardRuns_ = java.util.Collections.unmodifiableList(tensorboardRuns_); @@ -390,8 +402,11 @@ public com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsResponse bu } else { result.tensorboardRuns_ = tensorboardRunsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardTimeSeriesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardTimeSeriesRequest.java index 790c29f8a021..818ca082cbd0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardTimeSeriesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardTimeSeriesRequest.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -138,6 +140,8 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List requests_; /** @@ -445,15 +449,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); } else { requests_ = null; requestsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -485,19 +489,33 @@ public com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesReque buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRequest result = new com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRequest result) { if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.requests_ = requests_; } else { result.requests_ = requestsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } } @java.lang.Override @@ -552,13 +570,14 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRequestsIsMutable(); requests_.addAll(other.requests_); @@ -571,7 +590,7 @@ public Builder mergeFrom( requestsBuilder_.dispose(); requestsBuilder_ = null; requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); requestsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRequestsFieldBuilder() @@ -610,7 +629,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -732,8 +751,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -757,8 +776,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -787,8 +806,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -797,11 +816,11 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { requests_ = java.util.Collections.emptyList(); private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { requests_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest>(requests_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1062,7 +1081,7 @@ public Builder addAllRequests( public Builder clearRequests() { if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { requestsBuilder_.clear(); @@ -1217,7 +1236,7 @@ public Builder removeRequests(int index) { com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest, com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest.Builder, com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardTimeSeriesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardTimeSeriesResponse.java index c0070b3d07e8..f4e4686bf501 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardTimeSeriesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardTimeSeriesResponse.java @@ -72,6 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_TIME_SERIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List tensorboardTimeSeries_; /** @@ -367,6 +369,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (tensorboardTimeSeriesBuilder_ == null) { tensorboardTimeSeries_ = java.util.Collections.emptyList(); } else { @@ -405,7 +408,16 @@ public com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRespo buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesResponse result = new com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesResponse result) { if (tensorboardTimeSeriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { tensorboardTimeSeries_ = java.util.Collections.unmodifiableList(tensorboardTimeSeries_); @@ -415,8 +427,11 @@ public com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRespo } else { result.tensorboardTimeSeries_ = tensorboardTimeSeriesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchDedicatedResources.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchDedicatedResources.java index 524cd201ed42..b28a8c6d8af0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchDedicatedResources.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchDedicatedResources.java @@ -117,11 +117,13 @@ public com.google.cloud.aiplatform.v1beta1.MachineSpec getMachineSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder getMachineSpecOrBuilder() { - return getMachineSpec(); + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.MachineSpec.getDefaultInstance() + : machineSpec_; } public static final int STARTING_REPLICA_COUNT_FIELD_NUMBER = 2; - private int startingReplicaCount_; + private int startingReplicaCount_ = 0; /** * * @@ -141,7 +143,7 @@ public int getStartingReplicaCount() { } public static final int MAX_REPLICA_COUNT_FIELD_NUMBER = 3; - private int maxReplicaCount_; + private int maxReplicaCount_ = 0; /** * * @@ -381,16 +383,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (machineSpecBuilder_ == null) { - machineSpec_ = null; - } else { - machineSpec_ = null; + bitField0_ = 0; + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); machineSpecBuilder_ = null; } startingReplicaCount_ = 0; - maxReplicaCount_ = 0; - return this; } @@ -418,17 +418,27 @@ public com.google.cloud.aiplatform.v1beta1.BatchDedicatedResources build() { public com.google.cloud.aiplatform.v1beta1.BatchDedicatedResources buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchDedicatedResources result = new com.google.cloud.aiplatform.v1beta1.BatchDedicatedResources(this); - if (machineSpecBuilder_ == null) { - result.machineSpec_ = machineSpec_; - } else { - result.machineSpec_ = machineSpecBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.startingReplicaCount_ = startingReplicaCount_; - result.maxReplicaCount_ = maxReplicaCount_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.BatchDedicatedResources result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.machineSpec_ = + machineSpecBuilder_ == null ? machineSpec_ : machineSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startingReplicaCount_ = startingReplicaCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxReplicaCount_ = maxReplicaCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -513,19 +523,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getMachineSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { startingReplicaCount_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { maxReplicaCount_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -545,6 +555,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.MachineSpec machineSpec_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.MachineSpec, @@ -565,7 +577,7 @@ public Builder mergeFrom( * @return Whether the machineSpec field is set. */ public boolean hasMachineSpec() { - return machineSpecBuilder_ != null || machineSpec_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -606,11 +618,11 @@ public Builder setMachineSpec(com.google.cloud.aiplatform.v1beta1.MachineSpec va throw new NullPointerException(); } machineSpec_ = value; - onChanged(); } else { machineSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -628,11 +640,11 @@ public Builder setMachineSpec( com.google.cloud.aiplatform.v1beta1.MachineSpec.Builder builderForValue) { if (machineSpecBuilder_ == null) { machineSpec_ = builderForValue.build(); - onChanged(); } else { machineSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -648,19 +660,19 @@ public Builder setMachineSpec( */ public Builder mergeMachineSpec(com.google.cloud.aiplatform.v1beta1.MachineSpec value) { if (machineSpecBuilder_ == null) { - if (machineSpec_ != null) { - machineSpec_ = - com.google.cloud.aiplatform.v1beta1.MachineSpec.newBuilder(machineSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && machineSpec_ != null + && machineSpec_ + != com.google.cloud.aiplatform.v1beta1.MachineSpec.getDefaultInstance()) { + getMachineSpecBuilder().mergeFrom(value); } else { machineSpec_ = value; } - onChanged(); } else { machineSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -675,14 +687,13 @@ public Builder mergeMachineSpec(com.google.cloud.aiplatform.v1beta1.MachineSpec * */ public Builder clearMachineSpec() { - if (machineSpecBuilder_ == null) { - machineSpec_ = null; - onChanged(); - } else { - machineSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); machineSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -697,7 +708,7 @@ public Builder clearMachineSpec() { * */ public com.google.cloud.aiplatform.v1beta1.MachineSpec.Builder getMachineSpecBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getMachineSpecFieldBuilder().getBuilder(); } @@ -784,6 +795,7 @@ public int getStartingReplicaCount() { public Builder setStartingReplicaCount(int value) { startingReplicaCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -801,7 +813,7 @@ public Builder setStartingReplicaCount(int value) { * @return This builder for chaining. */ public Builder clearStartingReplicaCount() { - + bitField0_ = (bitField0_ & ~0x00000002); startingReplicaCount_ = 0; onChanged(); return this; @@ -840,6 +852,7 @@ public int getMaxReplicaCount() { public Builder setMaxReplicaCount(int value) { maxReplicaCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -856,7 +869,7 @@ public Builder setMaxReplicaCount(int value) { * @return This builder for chaining. */ public Builder clearMaxReplicaCount() { - + bitField0_ = (bitField0_ & ~0x00000004); maxReplicaCount_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchImportModelEvaluationSlicesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchImportModelEvaluationSlicesRequest.java index f4dabab64b71..cf985870ef41 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchImportModelEvaluationSlicesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchImportModelEvaluationSlicesRequest.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -130,6 +132,8 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int MODEL_EVALUATION_SLICES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List modelEvaluationSlices_; /** @@ -433,15 +437,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - if (modelEvaluationSlicesBuilder_ == null) { modelEvaluationSlices_ = java.util.Collections.emptyList(); } else { modelEvaluationSlices_ = null; modelEvaluationSlicesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -473,19 +477,33 @@ public com.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesReque buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest result = new com.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest result) { if (modelEvaluationSlicesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { modelEvaluationSlices_ = java.util.Collections.unmodifiableList(modelEvaluationSlices_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.modelEvaluationSlices_ = modelEvaluationSlices_; } else { result.modelEvaluationSlices_ = modelEvaluationSlicesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } } @java.lang.Override @@ -540,13 +558,14 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (modelEvaluationSlicesBuilder_ == null) { if (!other.modelEvaluationSlices_.isEmpty()) { if (modelEvaluationSlices_.isEmpty()) { modelEvaluationSlices_ = other.modelEvaluationSlices_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureModelEvaluationSlicesIsMutable(); modelEvaluationSlices_.addAll(other.modelEvaluationSlices_); @@ -559,7 +578,7 @@ public Builder mergeFrom( modelEvaluationSlicesBuilder_.dispose(); modelEvaluationSlicesBuilder_ = null; modelEvaluationSlices_ = other.modelEvaluationSlices_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); modelEvaluationSlicesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getModelEvaluationSlicesFieldBuilder() @@ -598,7 +617,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -707,8 +726,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -728,8 +747,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -754,8 +773,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -764,11 +783,11 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { modelEvaluationSlices_ = java.util.Collections.emptyList(); private void ensureModelEvaluationSlicesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { modelEvaluationSlices_ = new java.util.ArrayList( modelEvaluationSlices_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1014,7 +1033,7 @@ public Builder addAllModelEvaluationSlices( public Builder clearModelEvaluationSlices() { if (modelEvaluationSlicesBuilder_ == null) { modelEvaluationSlices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { modelEvaluationSlicesBuilder_.clear(); @@ -1158,7 +1177,7 @@ public Builder removeModelEvaluationSlices(int index) { com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Builder, com.google.cloud.aiplatform.v1beta1.ModelEvaluationSliceOrBuilder>( modelEvaluationSlices_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); modelEvaluationSlices_ = null; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchImportModelEvaluationSlicesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchImportModelEvaluationSlicesResponse.java index b4a7394b44b5..a03d69773e20 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchImportModelEvaluationSlicesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchImportModelEvaluationSlicesResponse.java @@ -72,6 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int IMPORTED_MODEL_EVALUATION_SLICES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList importedModelEvaluationSlices_; /** * @@ -361,6 +363,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; importedModelEvaluationSlices_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; @@ -394,14 +397,26 @@ public com.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRespo buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse result = new com.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse result) { if (((bitField0_ & 0x00000001) != 0)) { importedModelEvaluationSlices_ = importedModelEvaluationSlices_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.importedModelEvaluationSlices_ = importedModelEvaluationSlices_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesOperationMetadata.java index 7204ef464cb9..8ba455f62790 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesOperationMetadata.java @@ -568,7 +568,9 @@ public com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest getRequest() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.MigrateResourceRequestOrBuilder getRequestOrBuilder() { - return getRequest(); + return request_ == null + ? com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.getDefaultInstance() + : request_; } private byte memoizedIsInitialized = -1; @@ -857,13 +859,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (errorBuilder_ != null) { errorBuilder_.clear(); } - if (requestBuilder_ == null) { - request_ = null; - } else { - request_ = null; + request_ = null; + if (requestBuilder_ != null) { + requestBuilder_.dispose(); requestBuilder_ = null; } resultCase_ = 0; @@ -905,29 +907,33 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata .PartialResult(this); - if (resultCase_ == 2) { - if (errorBuilder_ == null) { - result.result_ = result_; - } else { - result.result_ = errorBuilder_.build(); - } - } - if (resultCase_ == 3) { - result.result_ = result_; + if (bitField0_ != 0) { + buildPartial0(result); } - if (resultCase_ == 4) { - result.result_ = result_; - } - if (requestBuilder_ == null) { - result.request_ = request_; - } else { - result.request_ = requestBuilder_.build(); - } - result.resultCase_ = resultCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.request_ = requestBuilder_ == null ? request_ : requestBuilder_.build(); + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult + result) { + result.resultCase_ = resultCase_; + result.result_ = this.result_; + if (resultCase_ == 2 && errorBuilder_ != null) { + result.result_ = errorBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1042,7 +1048,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getRequestFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 10 case 18: @@ -1096,6 +1102,8 @@ public Builder clearResult() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; @@ -1293,7 +1301,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } resultCase_ = 2; onChanged(); - ; return errorBuilder_; } @@ -1584,7 +1591,7 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { * @return Whether the request field is set. */ public boolean hasRequest() { - return requestBuilder_ != null || request_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1623,11 +1630,11 @@ public Builder setRequest(com.google.cloud.aiplatform.v1beta1.MigrateResourceReq throw new NullPointerException(); } request_ = value; - onChanged(); } else { requestBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1644,11 +1651,11 @@ public Builder setRequest( com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.Builder builderForValue) { if (requestBuilder_ == null) { request_ = builderForValue.build(); - onChanged(); } else { requestBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1664,19 +1671,20 @@ public Builder setRequest( public Builder mergeRequest( com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest value) { if (requestBuilder_ == null) { - if (request_ != null) { - request_ = - com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.newBuilder(request_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && request_ != null + && request_ + != com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest + .getDefaultInstance()) { + getRequestBuilder().mergeFrom(value); } else { request_ = value; } - onChanged(); } else { requestBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1690,14 +1698,13 @@ public Builder mergeRequest( * .google.cloud.aiplatform.v1beta1.MigrateResourceRequest request = 1; */ public Builder clearRequest() { - if (requestBuilder_ == null) { - request_ = null; - onChanged(); - } else { - request_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + request_ = null; + if (requestBuilder_ != null) { + requestBuilder_.dispose(); requestBuilder_ = null; } - + onChanged(); return this; } /** @@ -1712,7 +1719,7 @@ public Builder clearRequest() { */ public com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.Builder getRequestBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getRequestFieldBuilder().getBuilder(); } @@ -1880,10 +1887,14 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } public static final int PARTIAL_RESULTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata.PartialResult> partialResults_; @@ -2196,10 +2207,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } if (partialResultsBuilder_ == null) { @@ -2208,7 +2219,7 @@ public Builder clear() { partialResults_ = null; partialResultsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -2240,23 +2251,34 @@ public com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadat buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata(this); - int from_bitField0_ = bitField0_; - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata result) { if (partialResultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { partialResults_ = java.util.Collections.unmodifiableList(partialResults_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.partialResults_ = partialResults_; } else { result.partialResults_ = partialResultsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } } @java.lang.Override @@ -2316,7 +2338,7 @@ public Builder mergeFrom( if (!other.partialResults_.isEmpty()) { if (partialResults_.isEmpty()) { partialResults_ = other.partialResults_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePartialResultsIsMutable(); partialResults_.addAll(other.partialResults_); @@ -2329,7 +2351,7 @@ public Builder mergeFrom( partialResultsBuilder_.dispose(); partialResultsBuilder_ = null; partialResults_ = other.partialResults_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); partialResultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPartialResultsFieldBuilder() @@ -2368,7 +2390,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -2425,7 +2447,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -2463,11 +2485,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2483,11 +2505,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2502,20 +2524,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2528,14 +2550,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -2549,7 +2570,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } @@ -2604,12 +2625,12 @@ public Builder clearGenericMetadata() { partialResults_ = java.util.Collections.emptyList(); private void ensurePartialResultsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { partialResults_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata .PartialResult>(partialResults_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -2874,7 +2895,7 @@ public Builder addAllPartialResults( public Builder clearPartialResults() { if (partialResultsBuilder_ == null) { partialResults_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { partialResultsBuilder_.clear(); @@ -3035,7 +3056,7 @@ public Builder removePartialResults(int index) { com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata .PartialResultOrBuilder>( partialResults_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); partialResults_ = null; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesRequest.java index 5617399922e3..972cd1e7dc35 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -125,6 +127,8 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int MIGRATE_RESOURCE_REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List migrateResourceRequests_; /** @@ -431,15 +435,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - if (migrateResourceRequestsBuilder_ == null) { migrateResourceRequests_ = java.util.Collections.emptyList(); } else { migrateResourceRequests_ = null; migrateResourceRequestsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -468,20 +472,34 @@ public com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest build() public com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest result = new com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest result) { if (migrateResourceRequestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { migrateResourceRequests_ = java.util.Collections.unmodifiableList(migrateResourceRequests_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.migrateResourceRequests_ = migrateResourceRequests_; } else { result.migrateResourceRequests_ = migrateResourceRequestsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } } @java.lang.Override @@ -534,13 +552,14 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (migrateResourceRequestsBuilder_ == null) { if (!other.migrateResourceRequests_.isEmpty()) { if (migrateResourceRequests_.isEmpty()) { migrateResourceRequests_ = other.migrateResourceRequests_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMigrateResourceRequestsIsMutable(); migrateResourceRequests_.addAll(other.migrateResourceRequests_); @@ -553,7 +572,7 @@ public Builder mergeFrom( migrateResourceRequestsBuilder_.dispose(); migrateResourceRequestsBuilder_ = null; migrateResourceRequests_ = other.migrateResourceRequests_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); migrateResourceRequestsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMigrateResourceRequestsFieldBuilder() @@ -592,7 +611,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -698,8 +717,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -718,8 +737,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -743,8 +762,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -753,11 +772,11 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { migrateResourceRequests_ = java.util.Collections.emptyList(); private void ensureMigrateResourceRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { migrateResourceRequests_ = new java.util.ArrayList( migrateResourceRequests_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1025,7 +1044,7 @@ public Builder addAllMigrateResourceRequests( public Builder clearMigrateResourceRequests() { if (migrateResourceRequestsBuilder_ == null) { migrateResourceRequests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { migrateResourceRequestsBuilder_.clear(); @@ -1184,7 +1203,7 @@ public Builder removeMigrateResourceRequests(int index) { com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.Builder, com.google.cloud.aiplatform.v1beta1.MigrateResourceRequestOrBuilder>( migrateResourceRequests_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); migrateResourceRequests_ = null; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesResponse.java index d0af1e13d6a0..ccddac1881a9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchMigrateResourcesResponse.java @@ -69,6 +69,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MIGRATE_RESOURCE_RESPONSES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List migrateResourceResponses_; /** @@ -358,6 +360,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (migrateResourceResponsesBuilder_ == null) { migrateResourceResponses_ = java.util.Collections.emptyList(); } else { @@ -393,7 +396,16 @@ public com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse build() public com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse result = new com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse result) { if (migrateResourceResponsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { migrateResourceResponses_ = @@ -404,8 +416,11 @@ public com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse buildPa } else { result.migrateResourceResponses_ = migrateResourceResponsesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java index 85a51a5a15b1..f82407e0cd6e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java @@ -426,7 +426,9 @@ public com.google.cloud.aiplatform.v1beta1.BigQuerySource getBigquerySource() { } public static final int INSTANCES_FORMAT_FIELD_NUMBER = 1; - private volatile java.lang.Object instancesFormat_; + + @SuppressWarnings("serial") + private volatile java.lang.Object instancesFormat_ = ""; /** * * @@ -724,6 +726,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (gcsSourceBuilder_ != null) { gcsSourceBuilder_.clear(); } @@ -731,7 +734,6 @@ public Builder clear() { bigquerySourceBuilder_.clear(); } instancesFormat_ = ""; - sourceCase_ = 0; source_ = null; return this; @@ -763,26 +765,34 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig build( public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig result = new com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig(this); - if (sourceCase_ == 2) { - if (gcsSourceBuilder_ == null) { - result.source_ = source_; - } else { - result.source_ = gcsSourceBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (sourceCase_ == 3) { - if (bigquerySourceBuilder_ == null) { - result.source_ = source_; - } else { - result.source_ = bigquerySourceBuilder_.build(); - } - } - result.instancesFormat_ = instancesFormat_; - result.sourceCase_ = sourceCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.instancesFormat_ = instancesFormat_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 2 && gcsSourceBuilder_ != null) { + result.source_ = gcsSourceBuilder_.build(); + } + if (sourceCase_ == 3 && bigquerySourceBuilder_ != null) { + result.source_ = bigquerySourceBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -836,6 +846,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getInstancesFormat().isEmpty()) { instancesFormat_ = other.instancesFormat_; + bitField0_ |= 0x00000004; onChanged(); } switch (other.getSourceCase()) { @@ -883,7 +894,7 @@ public Builder mergeFrom( case 10: { instancesFormat_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 10 case 18: @@ -930,6 +941,8 @@ public Builder clearSource() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GcsSource, com.google.cloud.aiplatform.v1beta1.GcsSource.Builder, @@ -1136,7 +1149,6 @@ public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuil } sourceCase_ = 2; onChanged(); - ; return gcsSourceBuilder_; } @@ -1384,7 +1396,6 @@ public com.google.cloud.aiplatform.v1beta1.BigQuerySource.Builder getBigquerySou } sourceCase_ = 3; onChanged(); - ; return bigquerySourceBuilder_; } @@ -1455,8 +1466,8 @@ public Builder setInstancesFormat(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - instancesFormat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1474,8 +1485,8 @@ public Builder setInstancesFormat(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInstancesFormat() { - instancesFormat_ = getDefaultInstance().getInstancesFormat(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1498,8 +1509,8 @@ public Builder setInstancesFormatBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - instancesFormat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1956,7 +1967,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INSTANCE_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object instanceType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceType_ = ""; /** * * @@ -2077,7 +2090,9 @@ public com.google.protobuf.ByteString getInstanceTypeBytes() { } public static final int KEY_FIELD_FIELD_NUMBER = 2; - private volatile java.lang.Object keyField_; + + @SuppressWarnings("serial") + private volatile java.lang.Object keyField_ = ""; /** * * @@ -2152,6 +2167,8 @@ public com.google.protobuf.ByteString getKeyFieldBytes() { } public static final int INCLUDED_FIELDS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList includedFields_; /** * @@ -2253,6 +2270,8 @@ public com.google.protobuf.ByteString getIncludedFieldsBytes(int index) { } public static final int EXCLUDED_FIELDS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList excludedFields_; /** * @@ -2594,14 +2613,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; instanceType_ = ""; - keyField_ = ""; - includedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); excludedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -2632,21 +2650,37 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig bui public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig result = new com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig(this); - int from_bitField0_ = bitField0_; - result.instanceType_ = instanceType_; - result.keyField_ = keyField_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig result) { + if (((bitField0_ & 0x00000004) != 0)) { includedFields_ = includedFields_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.includedFields_ = includedFields_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { excludedFields_ = excludedFields_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); } result.excludedFields_ = excludedFields_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceType_ = instanceType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.keyField_ = keyField_; + } } @java.lang.Override @@ -2703,16 +2737,18 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getInstanceType().isEmpty()) { instanceType_ = other.instanceType_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getKeyField().isEmpty()) { keyField_ = other.keyField_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.includedFields_.isEmpty()) { if (includedFields_.isEmpty()) { includedFields_ = other.includedFields_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureIncludedFieldsIsMutable(); includedFields_.addAll(other.includedFields_); @@ -2722,7 +2758,7 @@ public Builder mergeFrom( if (!other.excludedFields_.isEmpty()) { if (excludedFields_.isEmpty()) { excludedFields_ = other.excludedFields_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureExcludedFieldsIsMutable(); excludedFields_.addAll(other.excludedFields_); @@ -2758,13 +2794,13 @@ public Builder mergeFrom( case 10: { instanceType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { keyField_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -2969,8 +3005,8 @@ public Builder setInstanceType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - instanceType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3022,8 +3058,8 @@ public Builder setInstanceType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInstanceType() { - instanceType_ = getDefaultInstance().getInstanceType(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3080,8 +3116,8 @@ public Builder setInstanceTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - instanceType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3186,8 +3222,8 @@ public Builder setKeyField(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - keyField_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3216,8 +3252,8 @@ public Builder setKeyField(java.lang.String value) { * @return This builder for chaining. */ public Builder clearKeyField() { - keyField_ = getDefaultInstance().getKeyField(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3251,8 +3287,8 @@ public Builder setKeyFieldBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - keyField_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3261,9 +3297,9 @@ public Builder setKeyFieldBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureIncludedFieldsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { includedFields_ = new com.google.protobuf.LazyStringArrayList(includedFields_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } /** @@ -3478,7 +3514,7 @@ public Builder addAllIncludedFields(java.lang.Iterable values) */ public Builder clearIncludedFields() { includedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -3519,9 +3555,9 @@ public Builder addIncludedFieldsBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExcludedFieldsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { excludedFields_ = new com.google.protobuf.LazyStringArrayList(excludedFields_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; } } /** @@ -3728,7 +3764,7 @@ public Builder addAllExcludedFields(java.lang.Iterable values) */ public Builder clearExcludedFields() { excludedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -4388,7 +4424,9 @@ public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestin } public static final int PREDICTIONS_FORMAT_FIELD_NUMBER = 1; - private volatile java.lang.Object predictionsFormat_; + + @SuppressWarnings("serial") + private volatile java.lang.Object predictionsFormat_ = ""; /** * * @@ -4689,6 +4727,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (gcsDestinationBuilder_ != null) { gcsDestinationBuilder_.clear(); } @@ -4696,7 +4735,6 @@ public Builder clear() { bigqueryDestinationBuilder_.clear(); } predictionsFormat_ = ""; - destinationCase_ = 0; destination_ = null; return this; @@ -4728,26 +4766,34 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig build public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig result = new com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig(this); - if (destinationCase_ == 2) { - if (gcsDestinationBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = gcsDestinationBuilder_.build(); - } - } - if (destinationCase_ == 3) { - if (bigqueryDestinationBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = bigqueryDestinationBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - result.predictionsFormat_ = predictionsFormat_; - result.destinationCase_ = destinationCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.predictionsFormat_ = predictionsFormat_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + if (destinationCase_ == 2 && gcsDestinationBuilder_ != null) { + result.destination_ = gcsDestinationBuilder_.build(); + } + if (destinationCase_ == 3 && bigqueryDestinationBuilder_ != null) { + result.destination_ = bigqueryDestinationBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -4801,6 +4847,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getPredictionsFormat().isEmpty()) { predictionsFormat_ = other.predictionsFormat_; + bitField0_ |= 0x00000004; onChanged(); } switch (other.getDestinationCase()) { @@ -4848,7 +4895,7 @@ public Builder mergeFrom( case 10: { predictionsFormat_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 10 case 18: @@ -4896,6 +4943,8 @@ public Builder clearDestination() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GcsDestination, com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder, @@ -5293,7 +5342,6 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder getGcsDestinat } destinationCase_ = 2; onChanged(); - ; return gcsDestinationBuilder_; } @@ -5680,7 +5728,6 @@ public Builder clearBigqueryDestination() { } destinationCase_ = 3; onChanged(); - ; return bigqueryDestinationBuilder_; } @@ -5754,8 +5801,8 @@ public Builder setPredictionsFormat(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - predictionsFormat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -5774,8 +5821,8 @@ public Builder setPredictionsFormat(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPredictionsFormat() { - predictionsFormat_ = getDefaultInstance().getPredictionsFormat(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -5799,8 +5846,8 @@ public Builder setPredictionsFormatBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - predictionsFormat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -6242,7 +6289,9 @@ public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { } public static final int BIGQUERY_OUTPUT_TABLE_FIELD_NUMBER = 4; - private volatile java.lang.Object bigqueryOutputTable_; + + @SuppressWarnings("serial") + private volatile java.lang.Object bigqueryOutputTable_ = ""; /** * * @@ -6535,8 +6584,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; bigqueryOutputTable_ = ""; - outputLocationCase_ = 0; outputLocation_ = null; return this; @@ -6568,18 +6617,28 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo build() public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo result = new com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo(this); - if (outputLocationCase_ == 1) { - result.outputLocation_ = outputLocation_; - } - if (outputLocationCase_ == 2) { - result.outputLocation_ = outputLocation_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.bigqueryOutputTable_ = bigqueryOutputTable_; - result.outputLocationCase_ = outputLocationCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.bigqueryOutputTable_ = bigqueryOutputTable_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo result) { + result.outputLocationCase_ = outputLocationCase_; + result.outputLocation_ = this.outputLocation_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -6633,6 +6692,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getBigqueryOutputTable().isEmpty()) { bigqueryOutputTable_ = other.bigqueryOutputTable_; + bitField0_ |= 0x00000004; onChanged(); } switch (other.getOutputLocationCase()) { @@ -6698,7 +6758,7 @@ public Builder mergeFrom( case 34: { bigqueryOutputTable_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 34 default: @@ -6732,6 +6792,8 @@ public Builder clearOutputLocation() { return this; } + private int bitField0_; + /** * * @@ -7094,8 +7156,8 @@ public Builder setBigqueryOutputTable(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bigqueryOutputTable_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -7114,8 +7176,8 @@ public Builder setBigqueryOutputTable(java.lang.String value) { * @return This builder for chaining. */ public Builder clearBigqueryOutputTable() { - bigqueryOutputTable_ = getDefaultInstance().getBigqueryOutputTable(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -7139,8 +7201,8 @@ public Builder setBigqueryOutputTableBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - bigqueryOutputTable_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -7213,7 +7275,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -7262,7 +7326,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -7311,7 +7377,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int MODEL_FIELD_NUMBER = 3; - private volatile java.lang.Object model_; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; /** * * @@ -7372,7 +7440,9 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int MODEL_VERSION_ID_FIELD_NUMBER = 30; - private volatile java.lang.Object modelVersionId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelVersionId_ = ""; /** * * @@ -7477,7 +7547,9 @@ public com.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel getUnmanagedC @java.lang.Override public com.google.cloud.aiplatform.v1beta1.UnmanagedContainerModelOrBuilder getUnmanagedContainerModelOrBuilder() { - return getUnmanagedContainerModel(); + return unmanagedContainerModel_ == null + ? com.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.getDefaultInstance() + : unmanagedContainerModel_; } public static final int INPUT_CONFIG_FIELD_NUMBER = 4; @@ -7544,7 +7616,9 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig getInp @java.lang.Override public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfigOrBuilder getInputConfigOrBuilder() { - return getInputConfig(); + return inputConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.getDefaultInstance() + : inputConfig_; } public static final int INSTANCE_CONFIG_FIELD_NUMBER = 27; @@ -7599,7 +7673,9 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig get @java.lang.Override public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfigOrBuilder getInstanceConfigOrBuilder() { - return getInstanceConfig(); + return instanceConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.getDefaultInstance() + : instanceConfig_; } public static final int MODEL_PARAMETERS_FIELD_NUMBER = 5; @@ -7659,7 +7735,9 @@ public com.google.protobuf.Value getModelParameters() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getModelParametersOrBuilder() { - return getModelParameters(); + return modelParameters_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : modelParameters_; } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; @@ -7735,7 +7813,9 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig getOu @java.lang.Override public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfigOrBuilder getOutputConfigOrBuilder() { - return getOutputConfig(); + return outputConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.getDefaultInstance() + : outputConfig_; } public static final int DEDICATED_RESOURCES_FIELD_NUMBER = 7; @@ -7799,11 +7879,15 @@ public com.google.cloud.aiplatform.v1beta1.BatchDedicatedResources getDedicatedR @java.lang.Override public com.google.cloud.aiplatform.v1beta1.BatchDedicatedResourcesOrBuilder getDedicatedResourcesOrBuilder() { - return getDedicatedResources(); + return dedicatedResources_ == null + ? com.google.cloud.aiplatform.v1beta1.BatchDedicatedResources.getDefaultInstance() + : dedicatedResources_; } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 29; - private volatile java.lang.Object serviceAccount_; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; /** * * @@ -7924,11 +8008,13 @@ public boolean hasManualBatchTuningParameters() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParametersOrBuilder getManualBatchTuningParametersOrBuilder() { - return getManualBatchTuningParameters(); + return manualBatchTuningParameters_ == null + ? com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters.getDefaultInstance() + : manualBatchTuningParameters_; } public static final int GENERATE_EXPLANATION_FIELD_NUMBER = 23; - private boolean generateExplanation_; + private boolean generateExplanation_ = false; /** * * @@ -8044,7 +8130,9 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationSpec getExplanationSpec() @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ExplanationSpecOrBuilder getExplanationSpecOrBuilder() { - return getExplanationSpec(); + return explanationSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.ExplanationSpec.getDefaultInstance() + : explanationSpec_; } public static final int OUTPUT_INFO_FIELD_NUMBER = 9; @@ -8099,11 +8187,13 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo getOutp @java.lang.Override public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfoOrBuilder getOutputInfoOrBuilder() { - return getOutputInfo(); + return outputInfo_ == null + ? com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo.getDefaultInstance() + : outputInfo_; } public static final int STATE_FIELD_NUMBER = 10; - private int state_; + private int state_ = 0; /** * * @@ -8136,9 +8226,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.JobState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.JobState result = - com.google.cloud.aiplatform.v1beta1.JobState.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.JobState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.JobState.UNRECOGNIZED : result; } @@ -8188,10 +8277,12 @@ public com.google.rpc.Status getError() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return getError(); + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } public static final int PARTIAL_FAILURES_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") private java.util.List partialFailures_; /** * @@ -8349,7 +8440,9 @@ public com.google.cloud.aiplatform.v1beta1.ResourcesConsumed getResourcesConsume @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ResourcesConsumedOrBuilder getResourcesConsumedOrBuilder() { - return getResourcesConsumed(); + return resourcesConsumed_ == null + ? com.google.cloud.aiplatform.v1beta1.ResourcesConsumed.getDefaultInstance() + : resourcesConsumed_; } public static final int COMPLETION_STATS_FIELD_NUMBER = 14; @@ -8404,7 +8497,9 @@ public com.google.cloud.aiplatform.v1beta1.CompletionStats getCompletionStats() @java.lang.Override public com.google.cloud.aiplatform.v1beta1.CompletionStatsOrBuilder getCompletionStatsOrBuilder() { - return getCompletionStats(); + return completionStats_ == null + ? com.google.cloud.aiplatform.v1beta1.CompletionStats.getDefaultInstance() + : completionStats_; } public static final int CREATE_TIME_FIELD_NUMBER = 15; @@ -8453,7 +8548,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int START_TIME_FIELD_NUMBER = 16; @@ -8505,7 +8600,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 17; @@ -8557,7 +8652,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 18; @@ -8606,7 +8701,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int LABELS_FIELD_NUMBER = 19; @@ -8622,6 +8717,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -8691,7 +8787,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 19; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -8774,7 +8873,9 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } public static final int MODEL_MONITORING_CONFIG_FIELD_NUMBER = 26; @@ -8832,10 +8933,14 @@ public com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig getModelMonitor @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfigOrBuilder getModelMonitoringConfigOrBuilder() { - return getModelMonitoringConfig(); + return modelMonitoringConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.getDefaultInstance() + : modelMonitoringConfig_; } public static final int MODEL_MONITORING_STATS_ANOMALIES_FIELD_NUMBER = 31; + + @SuppressWarnings("serial") private java.util.List modelMonitoringStatsAnomalies_; /** @@ -8970,7 +9075,9 @@ public com.google.rpc.Status getModelMonitoringStatus() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getModelMonitoringStatusOrBuilder() { - return getModelMonitoringStatus(); + return modelMonitoringStatus_ == null + ? com.google.rpc.Status.getDefaultInstance() + : modelMonitoringStatus_; } private byte memoizedIsInitialized = -1; @@ -9565,78 +9672,62 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - model_ = ""; - modelVersionId_ = ""; - - if (unmanagedContainerModelBuilder_ == null) { - unmanagedContainerModel_ = null; - } else { - unmanagedContainerModel_ = null; + unmanagedContainerModel_ = null; + if (unmanagedContainerModelBuilder_ != null) { + unmanagedContainerModelBuilder_.dispose(); unmanagedContainerModelBuilder_ = null; } - if (inputConfigBuilder_ == null) { - inputConfig_ = null; - } else { - inputConfig_ = null; + inputConfig_ = null; + if (inputConfigBuilder_ != null) { + inputConfigBuilder_.dispose(); inputConfigBuilder_ = null; } - if (instanceConfigBuilder_ == null) { - instanceConfig_ = null; - } else { - instanceConfig_ = null; + instanceConfig_ = null; + if (instanceConfigBuilder_ != null) { + instanceConfigBuilder_.dispose(); instanceConfigBuilder_ = null; } - if (modelParametersBuilder_ == null) { - modelParameters_ = null; - } else { - modelParameters_ = null; + modelParameters_ = null; + if (modelParametersBuilder_ != null) { + modelParametersBuilder_.dispose(); modelParametersBuilder_ = null; } - if (outputConfigBuilder_ == null) { - outputConfig_ = null; - } else { - outputConfig_ = null; + outputConfig_ = null; + if (outputConfigBuilder_ != null) { + outputConfigBuilder_.dispose(); outputConfigBuilder_ = null; } - if (dedicatedResourcesBuilder_ == null) { - dedicatedResources_ = null; - } else { - dedicatedResources_ = null; + dedicatedResources_ = null; + if (dedicatedResourcesBuilder_ != null) { + dedicatedResourcesBuilder_.dispose(); dedicatedResourcesBuilder_ = null; } serviceAccount_ = ""; - - if (manualBatchTuningParametersBuilder_ == null) { - manualBatchTuningParameters_ = null; - } else { - manualBatchTuningParameters_ = null; + manualBatchTuningParameters_ = null; + if (manualBatchTuningParametersBuilder_ != null) { + manualBatchTuningParametersBuilder_.dispose(); manualBatchTuningParametersBuilder_ = null; } generateExplanation_ = false; - - if (explanationSpecBuilder_ == null) { - explanationSpec_ = null; - } else { - explanationSpec_ = null; + explanationSpec_ = null; + if (explanationSpecBuilder_ != null) { + explanationSpecBuilder_.dispose(); explanationSpecBuilder_ = null; } - if (outputInfoBuilder_ == null) { - outputInfo_ = null; - } else { - outputInfo_ = null; + outputInfo_ = null; + if (outputInfoBuilder_ != null) { + outputInfoBuilder_.dispose(); outputInfoBuilder_ = null; } state_ = 0; - - if (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } if (partialFailuresBuilder_ == null) { @@ -9645,54 +9736,46 @@ public Builder clear() { partialFailures_ = null; partialFailuresBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (resourcesConsumedBuilder_ == null) { - resourcesConsumed_ = null; - } else { - resourcesConsumed_ = null; + bitField0_ = (bitField0_ & ~0x00020000); + resourcesConsumed_ = null; + if (resourcesConsumedBuilder_ != null) { + resourcesConsumedBuilder_.dispose(); resourcesConsumedBuilder_ = null; } - if (completionStatsBuilder_ == null) { - completionStats_ = null; - } else { - completionStats_ = null; + completionStats_ = null; + if (completionStatsBuilder_ != null) { + completionStatsBuilder_.dispose(); completionStatsBuilder_ = null; } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - if (modelMonitoringConfigBuilder_ == null) { - modelMonitoringConfig_ = null; - } else { - modelMonitoringConfig_ = null; + modelMonitoringConfig_ = null; + if (modelMonitoringConfigBuilder_ != null) { + modelMonitoringConfigBuilder_.dispose(); modelMonitoringConfigBuilder_ = null; } if (modelMonitoringStatsAnomaliesBuilder_ == null) { @@ -9701,11 +9784,10 @@ public Builder clear() { modelMonitoringStatsAnomalies_ = null; modelMonitoringStatsAnomaliesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); - if (modelMonitoringStatusBuilder_ == null) { - modelMonitoringStatus_ = null; - } else { - modelMonitoringStatus_ = null; + bitField0_ = (bitField0_ & ~0x08000000); + modelMonitoringStatus_ = null; + if (modelMonitoringStatusBuilder_ != null) { + modelMonitoringStatusBuilder_.dispose(); modelMonitoringStatusBuilder_ = null; } return this; @@ -9735,132 +9817,146 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob build() { public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchPredictionJob result = new com.google.cloud.aiplatform.v1beta1.BatchPredictionJob(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.model_ = model_; - result.modelVersionId_ = modelVersionId_; - if (unmanagedContainerModelBuilder_ == null) { - result.unmanagedContainerModel_ = unmanagedContainerModel_; - } else { - result.unmanagedContainerModel_ = unmanagedContainerModelBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - if (inputConfigBuilder_ == null) { - result.inputConfig_ = inputConfig_; + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.BatchPredictionJob result) { + if (partialFailuresBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0)) { + partialFailures_ = java.util.Collections.unmodifiableList(partialFailures_); + bitField0_ = (bitField0_ & ~0x00020000); + } + result.partialFailures_ = partialFailures_; } else { - result.inputConfig_ = inputConfigBuilder_.build(); + result.partialFailures_ = partialFailuresBuilder_.build(); } - if (instanceConfigBuilder_ == null) { - result.instanceConfig_ = instanceConfig_; + if (modelMonitoringStatsAnomaliesBuilder_ == null) { + if (((bitField0_ & 0x08000000) != 0)) { + modelMonitoringStatsAnomalies_ = + java.util.Collections.unmodifiableList(modelMonitoringStatsAnomalies_); + bitField0_ = (bitField0_ & ~0x08000000); + } + result.modelMonitoringStatsAnomalies_ = modelMonitoringStatsAnomalies_; } else { - result.instanceConfig_ = instanceConfigBuilder_.build(); + result.modelMonitoringStatsAnomalies_ = modelMonitoringStatsAnomaliesBuilder_.build(); } - if (modelParametersBuilder_ == null) { - result.modelParameters_ = modelParameters_; - } else { - result.modelParameters_ = modelParametersBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.BatchPredictionJob result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (outputConfigBuilder_ == null) { - result.outputConfig_ = outputConfig_; - } else { - result.outputConfig_ = outputConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (dedicatedResourcesBuilder_ == null) { - result.dedicatedResources_ = dedicatedResources_; - } else { - result.dedicatedResources_ = dedicatedResourcesBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.model_ = model_; } - result.serviceAccount_ = serviceAccount_; - if (manualBatchTuningParametersBuilder_ == null) { - result.manualBatchTuningParameters_ = manualBatchTuningParameters_; - } else { - result.manualBatchTuningParameters_ = manualBatchTuningParametersBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.modelVersionId_ = modelVersionId_; } - result.generateExplanation_ = generateExplanation_; - if (explanationSpecBuilder_ == null) { - result.explanationSpec_ = explanationSpec_; - } else { - result.explanationSpec_ = explanationSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.unmanagedContainerModel_ = + unmanagedContainerModelBuilder_ == null + ? unmanagedContainerModel_ + : unmanagedContainerModelBuilder_.build(); } - if (outputInfoBuilder_ == null) { - result.outputInfo_ = outputInfo_; - } else { - result.outputInfo_ = outputInfoBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.inputConfig_ = + inputConfigBuilder_ == null ? inputConfig_ : inputConfigBuilder_.build(); } - result.state_ = state_; - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.build(); + if (((from_bitField0_ & 0x00000040) != 0)) { + result.instanceConfig_ = + instanceConfigBuilder_ == null ? instanceConfig_ : instanceConfigBuilder_.build(); } - if (partialFailuresBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - partialFailures_ = java.util.Collections.unmodifiableList(partialFailures_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.partialFailures_ = partialFailures_; - } else { - result.partialFailures_ = partialFailuresBuilder_.build(); + if (((from_bitField0_ & 0x00000080) != 0)) { + result.modelParameters_ = + modelParametersBuilder_ == null ? modelParameters_ : modelParametersBuilder_.build(); } - if (resourcesConsumedBuilder_ == null) { - result.resourcesConsumed_ = resourcesConsumed_; - } else { - result.resourcesConsumed_ = resourcesConsumedBuilder_.build(); + if (((from_bitField0_ & 0x00000100) != 0)) { + result.outputConfig_ = + outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); } - if (completionStatsBuilder_ == null) { - result.completionStats_ = completionStats_; - } else { - result.completionStats_ = completionStatsBuilder_.build(); + if (((from_bitField0_ & 0x00000200) != 0)) { + result.dedicatedResources_ = + dedicatedResourcesBuilder_ == null + ? dedicatedResources_ + : dedicatedResourcesBuilder_.build(); } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000400) != 0)) { + result.serviceAccount_ = serviceAccount_; } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000800) != 0)) { + result.manualBatchTuningParameters_ = + manualBatchTuningParametersBuilder_ == null + ? manualBatchTuningParameters_ + : manualBatchTuningParametersBuilder_.build(); } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (((from_bitField0_ & 0x00001000) != 0)) { + result.generateExplanation_ = generateExplanation_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00002000) != 0)) { + result.explanationSpec_ = + explanationSpecBuilder_ == null ? explanationSpec_ : explanationSpecBuilder_.build(); } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00004000) != 0)) { + result.outputInfo_ = outputInfoBuilder_ == null ? outputInfo_ : outputInfoBuilder_.build(); } - if (modelMonitoringConfigBuilder_ == null) { - result.modelMonitoringConfig_ = modelMonitoringConfig_; - } else { - result.modelMonitoringConfig_ = modelMonitoringConfigBuilder_.build(); + if (((from_bitField0_ & 0x00008000) != 0)) { + result.state_ = state_; } - if (modelMonitoringStatsAnomaliesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - modelMonitoringStatsAnomalies_ = - java.util.Collections.unmodifiableList(modelMonitoringStatsAnomalies_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.modelMonitoringStatsAnomalies_ = modelMonitoringStatsAnomalies_; - } else { - result.modelMonitoringStatsAnomalies_ = modelMonitoringStatsAnomaliesBuilder_.build(); + if (((from_bitField0_ & 0x00010000) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); } - if (modelMonitoringStatusBuilder_ == null) { - result.modelMonitoringStatus_ = modelMonitoringStatus_; - } else { - result.modelMonitoringStatus_ = modelMonitoringStatusBuilder_.build(); + if (((from_bitField0_ & 0x00040000) != 0)) { + result.resourcesConsumed_ = + resourcesConsumedBuilder_ == null + ? resourcesConsumed_ + : resourcesConsumedBuilder_.build(); + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.completionStats_ = + completionStatsBuilder_ == null ? completionStats_ : completionStatsBuilder_.build(); + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.modelMonitoringConfig_ = + modelMonitoringConfigBuilder_ == null + ? modelMonitoringConfig_ + : modelMonitoringConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.modelMonitoringStatus_ = + modelMonitoringStatusBuilder_ == null + ? modelMonitoringStatus_ + : modelMonitoringStatusBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -9911,18 +10007,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.BatchPredictionJob return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getModel().isEmpty()) { model_ = other.model_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getModelVersionId().isEmpty()) { modelVersionId_ = other.modelVersionId_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasUnmanagedContainerModel()) { @@ -9945,6 +10045,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.BatchPredictionJob } if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00000400; onChanged(); } if (other.hasManualBatchTuningParameters()) { @@ -9969,7 +10070,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.BatchPredictionJob if (!other.partialFailures_.isEmpty()) { if (partialFailures_.isEmpty()) { partialFailures_ = other.partialFailures_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00020000); } else { ensurePartialFailuresIsMutable(); partialFailures_.addAll(other.partialFailures_); @@ -9982,7 +10083,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.BatchPredictionJob partialFailuresBuilder_.dispose(); partialFailuresBuilder_ = null; partialFailures_ = other.partialFailures_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00020000); partialFailuresBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPartialFailuresFieldBuilder() @@ -10011,6 +10112,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.BatchPredictionJob mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x01000000; if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } @@ -10021,7 +10123,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.BatchPredictionJob if (!other.modelMonitoringStatsAnomalies_.isEmpty()) { if (modelMonitoringStatsAnomalies_.isEmpty()) { modelMonitoringStatsAnomalies_ = other.modelMonitoringStatsAnomalies_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x08000000); } else { ensureModelMonitoringStatsAnomaliesIsMutable(); modelMonitoringStatsAnomalies_.addAll(other.modelMonitoringStatsAnomalies_); @@ -10034,7 +10136,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.BatchPredictionJob modelMonitoringStatsAnomaliesBuilder_.dispose(); modelMonitoringStatsAnomaliesBuilder_ = null; modelMonitoringStatsAnomalies_ = other.modelMonitoringStatsAnomalies_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x08000000); modelMonitoringStatsAnomaliesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getModelMonitoringStatsAnomaliesFieldBuilder() @@ -10077,69 +10179,69 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { model_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getInputConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 34 case 42: { input.readMessage(getModelParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 42 case 50: { input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 50 case 58: { input.readMessage( getDedicatedResourcesFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 58 case 66: { input.readMessage( getManualBatchTuningParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000800; break; } // case 66 case 74: { input.readMessage(getOutputInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00004000; break; } // case 74 case 80: { state_ = input.readEnum(); - + bitField0_ |= 0x00008000; break; } // case 80 case 90: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00010000; break; } // case 90 case 98: @@ -10158,37 +10260,37 @@ public Builder mergeFrom( { input.readMessage( getResourcesConsumedFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00040000; break; } // case 106 case 114: { input.readMessage(getCompletionStatsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00080000; break; } // case 114 case 122: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00100000; break; } // case 122 case 130: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00200000; break; } // case 130 case 138: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00400000; break; } // case 138 case 146: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00800000; break; } // case 146 case 154: @@ -10200,56 +10302,57 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x01000000; break; } // case 154 case 184: { generateExplanation_ = input.readBool(); - + bitField0_ |= 0x00001000; break; } // case 184 case 194: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x02000000; break; } // case 194 case 202: { input.readMessage(getExplanationSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00002000; break; } // case 202 case 210: { input.readMessage( getModelMonitoringConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x04000000; break; } // case 210 case 218: { input.readMessage(getInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 218 case 226: { input.readMessage( getUnmanagedContainerModelFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 226 case 234: { serviceAccount_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000400; break; } // case 234 case 242: { modelVersionId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 242 case 250: @@ -10270,7 +10373,7 @@ public Builder mergeFrom( { input.readMessage( getModelMonitoringStatusFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x10000000; break; } // case 258 default: @@ -10353,8 +10456,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -10370,8 +10473,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -10392,8 +10495,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -10459,8 +10562,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -10476,8 +10579,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -10498,8 +10601,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -10583,8 +10686,8 @@ public Builder setModel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - model_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -10606,8 +10709,8 @@ public Builder setModel(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModel() { - model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -10634,8 +10737,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - model_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -10704,8 +10807,8 @@ public Builder setModelVersionId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelVersionId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -10722,8 +10825,8 @@ public Builder setModelVersionId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelVersionId() { - modelVersionId_ = getDefaultInstance().getModelVersionId(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -10745,8 +10848,8 @@ public Builder setModelVersionIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelVersionId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -10773,7 +10876,7 @@ public Builder setModelVersionIdBytes(com.google.protobuf.ByteString value) { * @return Whether the unmanagedContainerModel field is set. */ public boolean hasUnmanagedContainerModel() { - return unmanagedContainerModelBuilder_ != null || unmanagedContainerModel_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -10820,11 +10923,11 @@ public Builder setUnmanagedContainerModel( throw new NullPointerException(); } unmanagedContainerModel_ = value; - onChanged(); } else { unmanagedContainerModelBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -10844,11 +10947,11 @@ public Builder setUnmanagedContainerModel( com.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.Builder builderForValue) { if (unmanagedContainerModelBuilder_ == null) { unmanagedContainerModel_ = builderForValue.build(); - onChanged(); } else { unmanagedContainerModelBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -10867,20 +10970,20 @@ public Builder setUnmanagedContainerModel( public Builder mergeUnmanagedContainerModel( com.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel value) { if (unmanagedContainerModelBuilder_ == null) { - if (unmanagedContainerModel_ != null) { - unmanagedContainerModel_ = - com.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.newBuilder( - unmanagedContainerModel_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && unmanagedContainerModel_ != null + && unmanagedContainerModel_ + != com.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel + .getDefaultInstance()) { + getUnmanagedContainerModelBuilder().mergeFrom(value); } else { unmanagedContainerModel_ = value; } - onChanged(); } else { unmanagedContainerModelBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -10897,14 +11000,13 @@ public Builder mergeUnmanagedContainerModel( * */ public Builder clearUnmanagedContainerModel() { - if (unmanagedContainerModelBuilder_ == null) { - unmanagedContainerModel_ = null; - onChanged(); - } else { - unmanagedContainerModel_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + unmanagedContainerModel_ = null; + if (unmanagedContainerModelBuilder_ != null) { + unmanagedContainerModelBuilder_.dispose(); unmanagedContainerModelBuilder_ = null; } - + onChanged(); return this; } /** @@ -10922,7 +11024,7 @@ public Builder clearUnmanagedContainerModel() { */ public com.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.Builder getUnmanagedContainerModelBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getUnmanagedContainerModelFieldBuilder().getBuilder(); } @@ -11003,7 +11105,7 @@ public Builder clearUnmanagedContainerModel() { * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { - return inputConfigBuilder_ != null || inputConfig_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -11054,11 +11156,11 @@ public Builder setInputConfig( throw new NullPointerException(); } inputConfig_ = value; - onChanged(); } else { inputConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -11081,11 +11183,11 @@ public Builder setInputConfig( builderForValue) { if (inputConfigBuilder_ == null) { inputConfig_ = builderForValue.build(); - onChanged(); } else { inputConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -11106,20 +11208,20 @@ public Builder setInputConfig( public Builder mergeInputConfig( com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig value) { if (inputConfigBuilder_ == null) { - if (inputConfig_ != null) { - inputConfig_ = - com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.newBuilder( - inputConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && inputConfig_ != null + && inputConfig_ + != com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig + .getDefaultInstance()) { + getInputConfigBuilder().mergeFrom(value); } else { inputConfig_ = value; } - onChanged(); } else { inputConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -11138,14 +11240,13 @@ public Builder mergeInputConfig( * */ public Builder clearInputConfig() { - if (inputConfigBuilder_ == null) { - inputConfig_ = null; - onChanged(); - } else { - inputConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + inputConfig_ = null; + if (inputConfigBuilder_ != null) { + inputConfigBuilder_.dispose(); inputConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -11165,7 +11266,7 @@ public Builder clearInputConfig() { */ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.Builder getInputConfigBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getInputConfigFieldBuilder().getBuilder(); } @@ -11248,7 +11349,7 @@ public Builder clearInputConfig() { * @return Whether the instanceConfig field is set. */ public boolean hasInstanceConfig() { - return instanceConfigBuilder_ != null || instanceConfig_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -11294,11 +11395,11 @@ public Builder setInstanceConfig( throw new NullPointerException(); } instanceConfig_ = value; - onChanged(); } else { instanceConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -11318,11 +11419,11 @@ public Builder setInstanceConfig( builderForValue) { if (instanceConfigBuilder_ == null) { instanceConfig_ = builderForValue.build(); - onChanged(); } else { instanceConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -11340,20 +11441,20 @@ public Builder setInstanceConfig( public Builder mergeInstanceConfig( com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig value) { if (instanceConfigBuilder_ == null) { - if (instanceConfig_ != null) { - instanceConfig_ = - com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.newBuilder( - instanceConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && instanceConfig_ != null + && instanceConfig_ + != com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig + .getDefaultInstance()) { + getInstanceConfigBuilder().mergeFrom(value); } else { instanceConfig_ = value; } - onChanged(); } else { instanceConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -11369,14 +11470,13 @@ public Builder mergeInstanceConfig( * */ public Builder clearInstanceConfig() { - if (instanceConfigBuilder_ == null) { - instanceConfig_ = null; - onChanged(); - } else { - instanceConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + instanceConfig_ = null; + if (instanceConfigBuilder_ != null) { + instanceConfigBuilder_.dispose(); instanceConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -11393,7 +11493,7 @@ public Builder clearInstanceConfig() { */ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.Builder getInstanceConfigBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getInstanceConfigFieldBuilder().getBuilder(); } @@ -11471,7 +11571,7 @@ public Builder clearInstanceConfig() { * @return Whether the modelParameters field is set. */ public boolean hasModelParameters() { - return modelParametersBuilder_ != null || modelParameters_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -11516,11 +11616,11 @@ public Builder setModelParameters(com.google.protobuf.Value value) { throw new NullPointerException(); } modelParameters_ = value; - onChanged(); } else { modelParametersBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -11539,11 +11639,11 @@ public Builder setModelParameters(com.google.protobuf.Value value) { public Builder setModelParameters(com.google.protobuf.Value.Builder builderForValue) { if (modelParametersBuilder_ == null) { modelParameters_ = builderForValue.build(); - onChanged(); } else { modelParametersBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -11561,19 +11661,18 @@ public Builder setModelParameters(com.google.protobuf.Value.Builder builderForVa */ public Builder mergeModelParameters(com.google.protobuf.Value value) { if (modelParametersBuilder_ == null) { - if (modelParameters_ != null) { - modelParameters_ = - com.google.protobuf.Value.newBuilder(modelParameters_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && modelParameters_ != null + && modelParameters_ != com.google.protobuf.Value.getDefaultInstance()) { + getModelParametersBuilder().mergeFrom(value); } else { modelParameters_ = value; } - onChanged(); } else { modelParametersBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -11590,14 +11689,13 @@ public Builder mergeModelParameters(com.google.protobuf.Value value) { * .google.protobuf.Value model_parameters = 5; */ public Builder clearModelParameters() { - if (modelParametersBuilder_ == null) { - modelParameters_ = null; - onChanged(); - } else { - modelParameters_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + modelParameters_ = null; + if (modelParametersBuilder_ != null) { + modelParametersBuilder_.dispose(); modelParametersBuilder_ = null; } - + onChanged(); return this; } /** @@ -11614,7 +11712,7 @@ public Builder clearModelParameters() { * .google.protobuf.Value model_parameters = 5; */ public com.google.protobuf.Value.Builder getModelParametersBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getModelParametersFieldBuilder().getBuilder(); } @@ -11697,7 +11795,7 @@ public com.google.protobuf.ValueOrBuilder getModelParametersOrBuilder() { * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { - return outputConfigBuilder_ != null || outputConfig_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -11754,11 +11852,11 @@ public Builder setOutputConfig( throw new NullPointerException(); } outputConfig_ = value; - onChanged(); } else { outputConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -11784,11 +11882,11 @@ public Builder setOutputConfig( builderForValue) { if (outputConfigBuilder_ == null) { outputConfig_ = builderForValue.build(); - onChanged(); } else { outputConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -11812,20 +11910,20 @@ public Builder setOutputConfig( public Builder mergeOutputConfig( com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig value) { if (outputConfigBuilder_ == null) { - if (outputConfig_ != null) { - outputConfig_ = - com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.newBuilder( - outputConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig + .getDefaultInstance()) { + getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; } - onChanged(); } else { outputConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -11847,14 +11945,13 @@ public Builder mergeOutputConfig( * */ public Builder clearOutputConfig() { - if (outputConfigBuilder_ == null) { - outputConfig_ = null; - onChanged(); - } else { - outputConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + outputConfig_ = null; + if (outputConfigBuilder_ != null) { + outputConfigBuilder_.dispose(); outputConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -11877,7 +11974,7 @@ public Builder clearOutputConfig() { */ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.Builder getOutputConfigBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } @@ -11969,7 +12066,7 @@ public Builder clearOutputConfig() { * @return Whether the dedicatedResources field is set. */ public boolean hasDedicatedResources() { - return dedicatedResourcesBuilder_ != null || dedicatedResources_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -12019,11 +12116,11 @@ public Builder setDedicatedResources( throw new NullPointerException(); } dedicatedResources_ = value; - onChanged(); } else { dedicatedResourcesBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -12045,11 +12142,11 @@ public Builder setDedicatedResources( com.google.cloud.aiplatform.v1beta1.BatchDedicatedResources.Builder builderForValue) { if (dedicatedResourcesBuilder_ == null) { dedicatedResources_ = builderForValue.build(); - onChanged(); } else { dedicatedResourcesBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -12070,20 +12167,20 @@ public Builder setDedicatedResources( public Builder mergeDedicatedResources( com.google.cloud.aiplatform.v1beta1.BatchDedicatedResources value) { if (dedicatedResourcesBuilder_ == null) { - if (dedicatedResources_ != null) { - dedicatedResources_ = - com.google.cloud.aiplatform.v1beta1.BatchDedicatedResources.newBuilder( - dedicatedResources_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && dedicatedResources_ != null + && dedicatedResources_ + != com.google.cloud.aiplatform.v1beta1.BatchDedicatedResources + .getDefaultInstance()) { + getDedicatedResourcesBuilder().mergeFrom(value); } else { dedicatedResources_ = value; } - onChanged(); } else { dedicatedResourcesBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -12102,14 +12199,13 @@ public Builder mergeDedicatedResources( * */ public Builder clearDedicatedResources() { - if (dedicatedResourcesBuilder_ == null) { - dedicatedResources_ = null; - onChanged(); - } else { - dedicatedResources_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + dedicatedResources_ = null; + if (dedicatedResourcesBuilder_ != null) { + dedicatedResourcesBuilder_.dispose(); dedicatedResourcesBuilder_ = null; } - + onChanged(); return this; } /** @@ -12129,7 +12225,7 @@ public Builder clearDedicatedResources() { */ public com.google.cloud.aiplatform.v1beta1.BatchDedicatedResources.Builder getDedicatedResourcesBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getDedicatedResourcesFieldBuilder().getBuilder(); } @@ -12266,8 +12362,8 @@ public Builder setServiceAccount(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - serviceAccount_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -12288,8 +12384,8 @@ public Builder setServiceAccount(java.lang.String value) { * @return This builder for chaining. */ public Builder clearServiceAccount() { - serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -12315,8 +12411,8 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - serviceAccount_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -12345,7 +12441,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { * @return Whether the manualBatchTuningParameters field is set. */ public boolean hasManualBatchTuningParameters() { - return manualBatchTuningParametersBuilder_ != null || manualBatchTuningParameters_ != null; + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -12394,11 +12490,11 @@ public Builder setManualBatchTuningParameters( throw new NullPointerException(); } manualBatchTuningParameters_ = value; - onChanged(); } else { manualBatchTuningParametersBuilder_.setMessage(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -12419,11 +12515,11 @@ public Builder setManualBatchTuningParameters( com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters.Builder builderForValue) { if (manualBatchTuningParametersBuilder_ == null) { manualBatchTuningParameters_ = builderForValue.build(); - onChanged(); } else { manualBatchTuningParametersBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -12443,20 +12539,20 @@ public Builder setManualBatchTuningParameters( public Builder mergeManualBatchTuningParameters( com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters value) { if (manualBatchTuningParametersBuilder_ == null) { - if (manualBatchTuningParameters_ != null) { - manualBatchTuningParameters_ = - com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters.newBuilder( - manualBatchTuningParameters_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000800) != 0) + && manualBatchTuningParameters_ != null + && manualBatchTuningParameters_ + != com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters + .getDefaultInstance()) { + getManualBatchTuningParametersBuilder().mergeFrom(value); } else { manualBatchTuningParameters_ = value; } - onChanged(); } else { manualBatchTuningParametersBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -12474,14 +12570,13 @@ public Builder mergeManualBatchTuningParameters( * */ public Builder clearManualBatchTuningParameters() { - if (manualBatchTuningParametersBuilder_ == null) { - manualBatchTuningParameters_ = null; - onChanged(); - } else { - manualBatchTuningParameters_ = null; + bitField0_ = (bitField0_ & ~0x00000800); + manualBatchTuningParameters_ = null; + if (manualBatchTuningParametersBuilder_ != null) { + manualBatchTuningParametersBuilder_.dispose(); manualBatchTuningParametersBuilder_ = null; } - + onChanged(); return this; } /** @@ -12500,7 +12595,7 @@ public Builder clearManualBatchTuningParameters() { */ public com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters.Builder getManualBatchTuningParametersBuilder() { - + bitField0_ |= 0x00000800; onChanged(); return getManualBatchTuningParametersFieldBuilder().getBuilder(); } @@ -12624,6 +12719,7 @@ public boolean getGenerateExplanation() { public Builder setGenerateExplanation(boolean value) { generateExplanation_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -12656,7 +12752,7 @@ public Builder setGenerateExplanation(boolean value) { * @return This builder for chaining. */ public Builder clearGenerateExplanation() { - + bitField0_ = (bitField0_ & ~0x00001000); generateExplanation_ = false; onChanged(); return this; @@ -12692,7 +12788,7 @@ public Builder clearGenerateExplanation() { * @return Whether the explanationSpec field is set. */ public boolean hasExplanationSpec() { - return explanationSpecBuilder_ != null || explanationSpec_ != null; + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -12753,11 +12849,11 @@ public Builder setExplanationSpec(com.google.cloud.aiplatform.v1beta1.Explanatio throw new NullPointerException(); } explanationSpec_ = value; - onChanged(); } else { explanationSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -12785,11 +12881,11 @@ public Builder setExplanationSpec( com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder builderForValue) { if (explanationSpecBuilder_ == null) { explanationSpec_ = builderForValue.build(); - onChanged(); } else { explanationSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -12815,19 +12911,19 @@ public Builder setExplanationSpec( */ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1beta1.ExplanationSpec value) { if (explanationSpecBuilder_ == null) { - if (explanationSpec_ != null) { - explanationSpec_ = - com.google.cloud.aiplatform.v1beta1.ExplanationSpec.newBuilder(explanationSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00002000) != 0) + && explanationSpec_ != null + && explanationSpec_ + != com.google.cloud.aiplatform.v1beta1.ExplanationSpec.getDefaultInstance()) { + getExplanationSpecBuilder().mergeFrom(value); } else { explanationSpec_ = value; } - onChanged(); } else { explanationSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -12852,14 +12948,13 @@ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1beta1.Explanat * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 25; */ public Builder clearExplanationSpec() { - if (explanationSpecBuilder_ == null) { - explanationSpec_ = null; - onChanged(); - } else { - explanationSpec_ = null; + bitField0_ = (bitField0_ & ~0x00002000); + explanationSpec_ = null; + if (explanationSpecBuilder_ != null) { + explanationSpecBuilder_.dispose(); explanationSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -12884,7 +12979,7 @@ public Builder clearExplanationSpec() { * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 25; */ public com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder getExplanationSpecBuilder() { - + bitField0_ |= 0x00002000; onChanged(); return getExplanationSpecFieldBuilder().getBuilder(); } @@ -12977,7 +13072,7 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder getExplanatio * @return Whether the outputInfo field is set. */ public boolean hasOutputInfo() { - return outputInfoBuilder_ != null || outputInfo_ != null; + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -13019,11 +13114,11 @@ public Builder setOutputInfo( throw new NullPointerException(); } outputInfo_ = value; - onChanged(); } else { outputInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -13041,11 +13136,11 @@ public Builder setOutputInfo( com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo.Builder builderForValue) { if (outputInfoBuilder_ == null) { outputInfo_ = builderForValue.build(); - onChanged(); } else { outputInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -13062,20 +13157,20 @@ public Builder setOutputInfo( public Builder mergeOutputInfo( com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo value) { if (outputInfoBuilder_ == null) { - if (outputInfo_ != null) { - outputInfo_ = - com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo.newBuilder( - outputInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00004000) != 0) + && outputInfo_ != null + && outputInfo_ + != com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo + .getDefaultInstance()) { + getOutputInfoBuilder().mergeFrom(value); } else { outputInfo_ = value; } - onChanged(); } else { outputInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -13090,14 +13185,13 @@ public Builder mergeOutputInfo( * */ public Builder clearOutputInfo() { - if (outputInfoBuilder_ == null) { - outputInfo_ = null; - onChanged(); - } else { - outputInfo_ = null; + bitField0_ = (bitField0_ & ~0x00004000); + outputInfo_ = null; + if (outputInfoBuilder_ != null) { + outputInfoBuilder_.dispose(); outputInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -13113,7 +13207,7 @@ public Builder clearOutputInfo() { */ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo.Builder getOutputInfoBuilder() { - + bitField0_ |= 0x00004000; onChanged(); return getOutputInfoFieldBuilder().getBuilder(); } @@ -13199,8 +13293,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -13219,9 +13313,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.JobState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.JobState result = - com.google.cloud.aiplatform.v1beta1.JobState.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.JobState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.JobState.UNRECOGNIZED : result; } /** @@ -13242,7 +13335,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00008000; state_ = value.getNumber(); onChanged(); return this; @@ -13261,7 +13354,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00008000); state_ = 0; onChanged(); return this; @@ -13284,7 +13377,7 @@ public Builder clearState() { * @return Whether the error field is set. */ public boolean hasError() { - return errorBuilder_ != null || error_ != null; + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -13321,11 +13414,11 @@ public Builder setError(com.google.rpc.Status value) { throw new NullPointerException(); } error_ = value; - onChanged(); } else { errorBuilder_.setMessage(value); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -13341,11 +13434,11 @@ public Builder setError(com.google.rpc.Status value) { public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); - onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -13360,16 +13453,18 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (error_ != null) { - error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00010000) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); } else { error_ = value; } - onChanged(); } else { errorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -13383,14 +13478,13 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; + bitField0_ = (bitField0_ & ~0x00010000); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } - + onChanged(); return this; } /** @@ -13404,7 +13498,7 @@ public Builder clearError() { * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + bitField0_ |= 0x00010000; onChanged(); return getErrorFieldBuilder().getBuilder(); } @@ -13453,9 +13547,9 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { java.util.Collections.emptyList(); private void ensurePartialFailuresIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00020000) != 0)) { partialFailures_ = new java.util.ArrayList(partialFailures_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00020000; } } @@ -13721,7 +13815,7 @@ public Builder addAllPartialFailures( public Builder clearPartialFailures() { if (partialFailuresBuilder_ == null) { partialFailures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); } else { partialFailuresBuilder_.clear(); @@ -13876,7 +13970,7 @@ public java.util.List getPartialFailuresBuilderLi com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( partialFailures_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00020000) != 0), getParentForChildren(), isClean()); partialFailures_ = null; @@ -13908,7 +14002,7 @@ public java.util.List getPartialFailuresBuilderLi * @return Whether the resourcesConsumed field is set. */ public boolean hasResourcesConsumed() { - return resourcesConsumedBuilder_ != null || resourcesConsumed_ != null; + return ((bitField0_ & 0x00040000) != 0); } /** * @@ -13958,11 +14052,11 @@ public Builder setResourcesConsumed( throw new NullPointerException(); } resourcesConsumed_ = value; - onChanged(); } else { resourcesConsumedBuilder_.setMessage(value); } - + bitField0_ |= 0x00040000; + onChanged(); return this; } /** @@ -13984,11 +14078,11 @@ public Builder setResourcesConsumed( com.google.cloud.aiplatform.v1beta1.ResourcesConsumed.Builder builderForValue) { if (resourcesConsumedBuilder_ == null) { resourcesConsumed_ = builderForValue.build(); - onChanged(); } else { resourcesConsumedBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00040000; + onChanged(); return this; } /** @@ -14009,19 +14103,19 @@ public Builder setResourcesConsumed( public Builder mergeResourcesConsumed( com.google.cloud.aiplatform.v1beta1.ResourcesConsumed value) { if (resourcesConsumedBuilder_ == null) { - if (resourcesConsumed_ != null) { - resourcesConsumed_ = - com.google.cloud.aiplatform.v1beta1.ResourcesConsumed.newBuilder(resourcesConsumed_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00040000) != 0) + && resourcesConsumed_ != null + && resourcesConsumed_ + != com.google.cloud.aiplatform.v1beta1.ResourcesConsumed.getDefaultInstance()) { + getResourcesConsumedBuilder().mergeFrom(value); } else { resourcesConsumed_ = value; } - onChanged(); } else { resourcesConsumedBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00040000; + onChanged(); return this; } /** @@ -14040,14 +14134,13 @@ public Builder mergeResourcesConsumed( * */ public Builder clearResourcesConsumed() { - if (resourcesConsumedBuilder_ == null) { - resourcesConsumed_ = null; - onChanged(); - } else { - resourcesConsumed_ = null; + bitField0_ = (bitField0_ & ~0x00040000); + resourcesConsumed_ = null; + if (resourcesConsumedBuilder_ != null) { + resourcesConsumedBuilder_.dispose(); resourcesConsumedBuilder_ = null; } - + onChanged(); return this; } /** @@ -14067,7 +14160,7 @@ public Builder clearResourcesConsumed() { */ public com.google.cloud.aiplatform.v1beta1.ResourcesConsumed.Builder getResourcesConsumedBuilder() { - + bitField0_ |= 0x00040000; onChanged(); return getResourcesConsumedFieldBuilder().getBuilder(); } @@ -14148,7 +14241,7 @@ public Builder clearResourcesConsumed() { * @return Whether the completionStats field is set. */ public boolean hasCompletionStats() { - return completionStatsBuilder_ != null || completionStats_ != null; + return ((bitField0_ & 0x00080000) != 0); } /** * @@ -14189,11 +14282,11 @@ public Builder setCompletionStats(com.google.cloud.aiplatform.v1beta1.Completion throw new NullPointerException(); } completionStats_ = value; - onChanged(); } else { completionStatsBuilder_.setMessage(value); } - + bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -14211,11 +14304,11 @@ public Builder setCompletionStats( com.google.cloud.aiplatform.v1beta1.CompletionStats.Builder builderForValue) { if (completionStatsBuilder_ == null) { completionStats_ = builderForValue.build(); - onChanged(); } else { completionStatsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -14231,19 +14324,19 @@ public Builder setCompletionStats( */ public Builder mergeCompletionStats(com.google.cloud.aiplatform.v1beta1.CompletionStats value) { if (completionStatsBuilder_ == null) { - if (completionStats_ != null) { - completionStats_ = - com.google.cloud.aiplatform.v1beta1.CompletionStats.newBuilder(completionStats_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00080000) != 0) + && completionStats_ != null + && completionStats_ + != com.google.cloud.aiplatform.v1beta1.CompletionStats.getDefaultInstance()) { + getCompletionStatsBuilder().mergeFrom(value); } else { completionStats_ = value; } - onChanged(); } else { completionStatsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -14258,14 +14351,13 @@ public Builder mergeCompletionStats(com.google.cloud.aiplatform.v1beta1.Completi * */ public Builder clearCompletionStats() { - if (completionStatsBuilder_ == null) { - completionStats_ = null; - onChanged(); - } else { - completionStats_ = null; + bitField0_ = (bitField0_ & ~0x00080000); + completionStats_ = null; + if (completionStatsBuilder_ != null) { + completionStatsBuilder_.dispose(); completionStatsBuilder_ = null; } - + onChanged(); return this; } /** @@ -14280,7 +14372,7 @@ public Builder clearCompletionStats() { * */ public com.google.cloud.aiplatform.v1beta1.CompletionStats.Builder getCompletionStatsBuilder() { - + bitField0_ |= 0x00080000; onChanged(); return getCompletionStatsFieldBuilder().getBuilder(); } @@ -14353,7 +14445,7 @@ public com.google.cloud.aiplatform.v1beta1.CompletionStats.Builder getCompletion * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00100000) != 0); } /** * @@ -14394,11 +14486,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00100000; + onChanged(); return this; } /** @@ -14415,11 +14507,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00100000; + onChanged(); return this; } /** @@ -14435,17 +14527,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00100000) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00100000; + onChanged(); return this; } /** @@ -14460,14 +14553,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00100000); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -14482,7 +14574,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00100000; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -14555,7 +14647,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00200000) != 0); } /** * @@ -14596,11 +14688,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00200000; + onChanged(); return this; } /** @@ -14618,11 +14710,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00200000; + onChanged(); return this; } /** @@ -14639,17 +14731,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00200000) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00200000; + onChanged(); return this; } /** @@ -14665,14 +14758,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00200000); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -14688,7 +14780,7 @@ public Builder clearStartTime() { * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00200000; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -14760,7 +14852,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00400000) != 0); } /** * @@ -14799,11 +14891,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00400000; + onChanged(); return this; } /** @@ -14820,11 +14912,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00400000; + onChanged(); return this; } /** @@ -14840,17 +14932,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00400000) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00400000; + onChanged(); return this; } /** @@ -14865,14 +14958,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00400000); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -14887,7 +14979,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00400000; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -14957,7 +15049,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00800000) != 0); } /** * @@ -14998,11 +15090,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00800000; + onChanged(); return this; } /** @@ -15019,11 +15111,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00800000; + onChanged(); return this; } /** @@ -15039,17 +15131,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00800000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00800000; + onChanged(); return this; } /** @@ -15064,14 +15157,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00800000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -15086,7 +15178,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00800000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -15149,14 +15241,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x01000000; + onChanged(); return labels_; } @@ -15220,8 +15312,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 19; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -15254,6 +15348,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x01000000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -15280,6 +15375,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x01000000; return internalGetMutableLabels().getMutableMap(); } /** @@ -15302,8 +15398,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x01000000; return this; } /** @@ -15321,6 +15417,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x01000000; return this; } @@ -15344,7 +15441,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x02000000) != 0); } /** * @@ -15385,11 +15482,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x02000000; + onChanged(); return this; } /** @@ -15407,11 +15504,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x02000000; + onChanged(); return this; } /** @@ -15427,19 +15524,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1beta1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x02000000) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x02000000; + onChanged(); return this; } /** @@ -15454,14 +15551,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 24; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x02000000); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -15476,7 +15572,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 24; */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x02000000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -15550,7 +15646,7 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionS * @return Whether the modelMonitoringConfig field is set. */ public boolean hasModelMonitoringConfig() { - return modelMonitoringConfigBuilder_ != null || modelMonitoringConfig_ != null; + return ((bitField0_ & 0x04000000) != 0); } /** * @@ -15594,11 +15690,11 @@ public Builder setModelMonitoringConfig( throw new NullPointerException(); } modelMonitoringConfig_ = value; - onChanged(); } else { modelMonitoringConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x04000000; + onChanged(); return this; } /** @@ -15617,11 +15713,11 @@ public Builder setModelMonitoringConfig( com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.Builder builderForValue) { if (modelMonitoringConfigBuilder_ == null) { modelMonitoringConfig_ = builderForValue.build(); - onChanged(); } else { modelMonitoringConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x04000000; + onChanged(); return this; } /** @@ -15639,20 +15735,19 @@ public Builder setModelMonitoringConfig( public Builder mergeModelMonitoringConfig( com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig value) { if (modelMonitoringConfigBuilder_ == null) { - if (modelMonitoringConfig_ != null) { - modelMonitoringConfig_ = - com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.newBuilder( - modelMonitoringConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x04000000) != 0) + && modelMonitoringConfig_ != null + && modelMonitoringConfig_ + != com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.getDefaultInstance()) { + getModelMonitoringConfigBuilder().mergeFrom(value); } else { modelMonitoringConfig_ = value; } - onChanged(); } else { modelMonitoringConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x04000000; + onChanged(); return this; } /** @@ -15668,14 +15763,13 @@ public Builder mergeModelMonitoringConfig( * */ public Builder clearModelMonitoringConfig() { - if (modelMonitoringConfigBuilder_ == null) { - modelMonitoringConfig_ = null; - onChanged(); - } else { - modelMonitoringConfig_ = null; + bitField0_ = (bitField0_ & ~0x04000000); + modelMonitoringConfig_ = null; + if (modelMonitoringConfigBuilder_ != null) { + modelMonitoringConfigBuilder_.dispose(); modelMonitoringConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -15692,7 +15786,7 @@ public Builder clearModelMonitoringConfig() { */ public com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.Builder getModelMonitoringConfigBuilder() { - + bitField0_ |= 0x04000000; onChanged(); return getModelMonitoringConfigFieldBuilder().getBuilder(); } @@ -15751,12 +15845,12 @@ public Builder clearModelMonitoringConfig() { modelMonitoringStatsAnomalies_ = java.util.Collections.emptyList(); private void ensureModelMonitoringStatsAnomaliesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x08000000) != 0)) { modelMonitoringStatsAnomalies_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies>( modelMonitoringStatsAnomalies_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x08000000; } } @@ -16004,7 +16098,7 @@ public Builder addAllModelMonitoringStatsAnomalies( public Builder clearModelMonitoringStatsAnomalies() { if (modelMonitoringStatsAnomaliesBuilder_ == null) { modelMonitoringStatsAnomalies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x08000000); onChanged(); } else { modelMonitoringStatsAnomaliesBuilder_.clear(); @@ -16151,7 +16245,7 @@ public Builder removeModelMonitoringStatsAnomalies(int index) { com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.Builder, com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomaliesOrBuilder>( modelMonitoringStatsAnomalies_, - ((bitField0_ & 0x00000004) != 0), + ((bitField0_ & 0x08000000) != 0), getParentForChildren(), isClean()); modelMonitoringStatsAnomalies_ = null; @@ -16177,7 +16271,7 @@ public Builder removeModelMonitoringStatsAnomalies(int index) { * @return Whether the modelMonitoringStatus field is set. */ public boolean hasModelMonitoringStatus() { - return modelMonitoringStatusBuilder_ != null || modelMonitoringStatus_ != null; + return ((bitField0_ & 0x10000000) != 0); } /** * @@ -16218,11 +16312,11 @@ public Builder setModelMonitoringStatus(com.google.rpc.Status value) { throw new NullPointerException(); } modelMonitoringStatus_ = value; - onChanged(); } else { modelMonitoringStatusBuilder_.setMessage(value); } - + bitField0_ |= 0x10000000; + onChanged(); return this; } /** @@ -16239,11 +16333,11 @@ public Builder setModelMonitoringStatus(com.google.rpc.Status value) { public Builder setModelMonitoringStatus(com.google.rpc.Status.Builder builderForValue) { if (modelMonitoringStatusBuilder_ == null) { modelMonitoringStatus_ = builderForValue.build(); - onChanged(); } else { modelMonitoringStatusBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x10000000; + onChanged(); return this; } /** @@ -16259,19 +16353,18 @@ public Builder setModelMonitoringStatus(com.google.rpc.Status.Builder builderFor */ public Builder mergeModelMonitoringStatus(com.google.rpc.Status value) { if (modelMonitoringStatusBuilder_ == null) { - if (modelMonitoringStatus_ != null) { - modelMonitoringStatus_ = - com.google.rpc.Status.newBuilder(modelMonitoringStatus_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x10000000) != 0) + && modelMonitoringStatus_ != null + && modelMonitoringStatus_ != com.google.rpc.Status.getDefaultInstance()) { + getModelMonitoringStatusBuilder().mergeFrom(value); } else { modelMonitoringStatus_ = value; } - onChanged(); } else { modelMonitoringStatusBuilder_.mergeFrom(value); } - + bitField0_ |= 0x10000000; + onChanged(); return this; } /** @@ -16286,14 +16379,13 @@ public Builder mergeModelMonitoringStatus(com.google.rpc.Status value) { * */ public Builder clearModelMonitoringStatus() { - if (modelMonitoringStatusBuilder_ == null) { - modelMonitoringStatus_ = null; - onChanged(); - } else { - modelMonitoringStatus_ = null; + bitField0_ = (bitField0_ & ~0x10000000); + modelMonitoringStatus_ = null; + if (modelMonitoringStatusBuilder_ != null) { + modelMonitoringStatusBuilder_.dispose(); modelMonitoringStatusBuilder_ = null; } - + onChanged(); return this; } /** @@ -16308,7 +16400,7 @@ public Builder clearModelMonitoringStatus() { * */ public com.google.rpc.Status.Builder getModelMonitoringStatusBuilder() { - + bitField0_ |= 0x10000000; onChanged(); return getModelMonitoringStatusFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobOrBuilder.java index 1392f5c56c97..5eb4ddb5da5e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobOrBuilder.java @@ -1121,7 +1121,6 @@ public interface BatchPredictionJobOrBuilder * * map<string, string> labels = 19; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesOperationMetadata.java index 2572f015027e..4315e4b8f270 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesOperationMetadata.java @@ -114,7 +114,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -329,10 +331,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -366,15 +368,22 @@ public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetada buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -457,7 +466,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -477,6 +486,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -495,7 +506,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -533,11 +544,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -553,11 +564,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -572,20 +583,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -598,14 +609,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -619,7 +629,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesRequest.java index fe1308a22a76..994a15e4ddd4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesRequest.java @@ -157,7 +157,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int FIELD_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object fieldName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldName_ = ""; /** * * @@ -423,8 +425,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; fieldName_ = ""; - return this; } @@ -458,11 +460,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField result = new com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField( this); - result.fieldName_ = fieldName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fieldName_ = fieldName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -520,6 +533,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getFieldName().isEmpty()) { fieldName_ = other.fieldName_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -551,7 +565,7 @@ public Builder mergeFrom( case 10: { fieldName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -571,6 +585,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object fieldName_ = ""; /** * @@ -638,8 +654,8 @@ public Builder setFieldName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - fieldName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -657,8 +673,8 @@ public Builder setFieldName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFieldName() { - fieldName_ = getDefaultInstance().getFieldName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -681,8 +697,8 @@ public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - fieldName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -949,7 +965,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENTITY_TYPE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object entityTypeId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityTypeId_ = ""; /** * * @@ -1058,10 +1076,14 @@ public com.google.cloud.aiplatform.v1beta1.FeatureSelector getFeatureSelector() @java.lang.Override public com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder getFeatureSelectorOrBuilder() { - return getFeatureSelector(); + return featureSelector_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureSelector.getDefaultInstance() + : featureSelector_; } public static final int SETTINGS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List settings_; /** * @@ -1377,12 +1399,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; entityTypeId_ = ""; - - if (featureSelectorBuilder_ == null) { - featureSelector_ = null; - } else { - featureSelector_ = null; + featureSelector_ = null; + if (featureSelectorBuilder_ != null) { + featureSelectorBuilder_.dispose(); featureSelectorBuilder_ = null; } if (settingsBuilder_ == null) { @@ -1391,7 +1412,7 @@ public Builder clear() { settings_ = null; settingsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -1425,24 +1446,37 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec result = new com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec( this); - int from_bitField0_ = bitField0_; - result.entityTypeId_ = entityTypeId_; - if (featureSelectorBuilder_ == null) { - result.featureSelector_ = featureSelector_; - } else { - result.featureSelector_ = featureSelectorBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec result) { if (settingsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { settings_ = java.util.Collections.unmodifiableList(settings_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.settings_ = settings_; } else { result.settings_ = settingsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityTypeId_ = entityTypeId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.featureSelector_ = + featureSelectorBuilder_ == null ? featureSelector_ : featureSelectorBuilder_.build(); + } } @java.lang.Override @@ -1501,6 +1535,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getEntityTypeId().isEmpty()) { entityTypeId_ = other.entityTypeId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasFeatureSelector()) { @@ -1510,7 +1545,7 @@ public Builder mergeFrom( if (!other.settings_.isEmpty()) { if (settings_.isEmpty()) { settings_ = other.settings_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureSettingsIsMutable(); settings_.addAll(other.settings_); @@ -1523,7 +1558,7 @@ public Builder mergeFrom( settingsBuilder_.dispose(); settingsBuilder_ = null; settings_ = other.settings_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); settingsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSettingsFieldBuilder() @@ -1562,14 +1597,14 @@ public Builder mergeFrom( case 10: { entityTypeId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getFeatureSelectorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -1675,8 +1710,8 @@ public Builder setEntityTypeId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityTypeId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1695,8 +1730,8 @@ public Builder setEntityTypeId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityTypeId() { - entityTypeId_ = getDefaultInstance().getEntityTypeId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1720,8 +1755,8 @@ public Builder setEntityTypeIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityTypeId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1747,7 +1782,7 @@ public Builder setEntityTypeIdBytes(com.google.protobuf.ByteString value) { * @return Whether the featureSelector field is set. */ public boolean hasFeatureSelector() { - return featureSelectorBuilder_ != null || featureSelector_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1790,11 +1825,11 @@ public Builder setFeatureSelector(com.google.cloud.aiplatform.v1beta1.FeatureSel throw new NullPointerException(); } featureSelector_ = value; - onChanged(); } else { featureSelectorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1813,11 +1848,11 @@ public Builder setFeatureSelector( com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder builderForValue) { if (featureSelectorBuilder_ == null) { featureSelector_ = builderForValue.build(); - onChanged(); } else { featureSelectorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1835,19 +1870,19 @@ public Builder setFeatureSelector( public Builder mergeFeatureSelector( com.google.cloud.aiplatform.v1beta1.FeatureSelector value) { if (featureSelectorBuilder_ == null) { - if (featureSelector_ != null) { - featureSelector_ = - com.google.cloud.aiplatform.v1beta1.FeatureSelector.newBuilder(featureSelector_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && featureSelector_ != null + && featureSelector_ + != com.google.cloud.aiplatform.v1beta1.FeatureSelector.getDefaultInstance()) { + getFeatureSelectorBuilder().mergeFrom(value); } else { featureSelector_ = value; } - onChanged(); } else { featureSelectorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1863,14 +1898,13 @@ public Builder mergeFeatureSelector( * */ public Builder clearFeatureSelector() { - if (featureSelectorBuilder_ == null) { - featureSelector_ = null; - onChanged(); - } else { - featureSelector_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + featureSelector_ = null; + if (featureSelectorBuilder_ != null) { + featureSelectorBuilder_.dispose(); featureSelectorBuilder_ = null; } - + onChanged(); return this; } /** @@ -1887,7 +1921,7 @@ public Builder clearFeatureSelector() { */ public com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder getFeatureSelectorBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getFeatureSelectorFieldBuilder().getBuilder(); } @@ -1946,11 +1980,11 @@ public Builder clearFeatureSelector() { settings_ = java.util.Collections.emptyList(); private void ensureSettingsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { settings_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting>(settings_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -2185,7 +2219,7 @@ public Builder addAllSettings( public Builder clearSettings() { if (settingsBuilder_ == null) { settings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { settingsBuilder_.clear(); @@ -2322,7 +2356,7 @@ public Builder removeSettings(int index) { com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting, com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder, com.google.cloud.aiplatform.v1beta1.DestinationFeatureSettingOrBuilder>( - settings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + settings_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); settings_ = null; } return settingsBuilder_; @@ -2596,7 +2630,9 @@ public com.google.cloud.aiplatform.v1beta1.BigQuerySource getBigqueryReadInstanc } public static final int FEATURESTORE_FIELD_NUMBER = 1; - private volatile java.lang.Object featurestore_; + + @SuppressWarnings("serial") + private volatile java.lang.Object featurestore_ = ""; /** * * @@ -2704,10 +2740,14 @@ public com.google.cloud.aiplatform.v1beta1.FeatureValueDestination getDestinatio @java.lang.Override public com.google.cloud.aiplatform.v1beta1.FeatureValueDestinationOrBuilder getDestinationOrBuilder() { - return getDestination(); + return destination_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.getDefaultInstance() + : destination_; } public static final int PASS_THROUGH_FIELDS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField> passThroughFields_; @@ -2821,6 +2861,8 @@ public int getPassThroughFieldsCount() { } public static final int ENTITY_TYPE_SPECS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec> entityTypeSpecs_; @@ -2980,7 +3022,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } private byte memoizedIsInitialized = -1; @@ -3274,6 +3316,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (csvReadInstancesBuilder_ != null) { csvReadInstancesBuilder_.clear(); } @@ -3281,11 +3324,9 @@ public Builder clear() { bigqueryReadInstancesBuilder_.clear(); } featurestore_ = ""; - - if (destinationBuilder_ == null) { - destination_ = null; - } else { - destination_ = null; + destination_ = null; + if (destinationBuilder_ != null) { + destinationBuilder_.dispose(); destinationBuilder_ = null; } if (passThroughFieldsBuilder_ == null) { @@ -3294,18 +3335,17 @@ public Builder clear() { passThroughFields_ = null; passThroughFieldsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); if (entityTypeSpecsBuilder_ == null) { entityTypeSpecs_ = java.util.Collections.emptyList(); } else { entityTypeSpecs_ = null; entityTypeSpecsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } readOptionCase_ = 0; @@ -3338,53 +3378,62 @@ public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest build() public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest result = new com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest(this); - int from_bitField0_ = bitField0_; - if (readOptionCase_ == 3) { - if (csvReadInstancesBuilder_ == null) { - result.readOption_ = readOption_; - } else { - result.readOption_ = csvReadInstancesBuilder_.build(); - } - } - if (readOptionCase_ == 5) { - if (bigqueryReadInstancesBuilder_ == null) { - result.readOption_ = readOption_; - } else { - result.readOption_ = bigqueryReadInstancesBuilder_.build(); - } - } - result.featurestore_ = featurestore_; - if (destinationBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = destinationBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest result) { if (passThroughFieldsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { passThroughFields_ = java.util.Collections.unmodifiableList(passThroughFields_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } result.passThroughFields_ = passThroughFields_; } else { result.passThroughFields_ = passThroughFieldsBuilder_.build(); } if (entityTypeSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { entityTypeSpecs_ = java.util.Collections.unmodifiableList(entityTypeSpecs_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } result.entityTypeSpecs_ = entityTypeSpecs_; } else { result.entityTypeSpecs_ = entityTypeSpecsBuilder_.build(); } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.featurestore_ = featurestore_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.destination_ = + destinationBuilder_ == null ? destination_ : destinationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest result) { result.readOptionCase_ = readOptionCase_; - onBuilt(); - return result; + result.readOption_ = this.readOption_; + if (readOptionCase_ == 3 && csvReadInstancesBuilder_ != null) { + result.readOption_ = csvReadInstancesBuilder_.build(); + } + if (readOptionCase_ == 5 && bigqueryReadInstancesBuilder_ != null) { + result.readOption_ = bigqueryReadInstancesBuilder_.build(); + } } @java.lang.Override @@ -3437,6 +3486,7 @@ public Builder mergeFrom( return this; if (!other.getFeaturestore().isEmpty()) { featurestore_ = other.featurestore_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasDestination()) { @@ -3446,7 +3496,7 @@ public Builder mergeFrom( if (!other.passThroughFields_.isEmpty()) { if (passThroughFields_.isEmpty()) { passThroughFields_ = other.passThroughFields_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensurePassThroughFieldsIsMutable(); passThroughFields_.addAll(other.passThroughFields_); @@ -3459,7 +3509,7 @@ public Builder mergeFrom( passThroughFieldsBuilder_.dispose(); passThroughFieldsBuilder_ = null; passThroughFields_ = other.passThroughFields_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); passThroughFieldsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPassThroughFieldsFieldBuilder() @@ -3473,7 +3523,7 @@ public Builder mergeFrom( if (!other.entityTypeSpecs_.isEmpty()) { if (entityTypeSpecs_.isEmpty()) { entityTypeSpecs_ = other.entityTypeSpecs_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureEntityTypeSpecsIsMutable(); entityTypeSpecs_.addAll(other.entityTypeSpecs_); @@ -3486,7 +3536,7 @@ public Builder mergeFrom( entityTypeSpecsBuilder_.dispose(); entityTypeSpecsBuilder_ = null; entityTypeSpecs_ = other.entityTypeSpecs_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); entityTypeSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntityTypeSpecsFieldBuilder() @@ -3544,7 +3594,7 @@ public Builder mergeFrom( case 10: { featurestore_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 10 case 26: @@ -3557,7 +3607,7 @@ public Builder mergeFrom( case 34: { input.readMessage(getDestinationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: @@ -3601,7 +3651,7 @@ public Builder mergeFrom( case 90: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 90 default: @@ -3987,7 +4037,6 @@ public com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder getCsvReadInstance } readOptionCase_ = 3; onChanged(); - ; return csvReadInstancesBuilder_; } @@ -4202,7 +4251,6 @@ public Builder clearBigqueryReadInstances() { } readOptionCase_ = 5; onChanged(); - ; return bigqueryReadInstancesBuilder_; } @@ -4279,8 +4327,8 @@ public Builder setFeaturestore(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - featurestore_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4300,8 +4348,8 @@ public Builder setFeaturestore(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFeaturestore() { - featurestore_ = getDefaultInstance().getFeaturestore(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -4326,8 +4374,8 @@ public Builder setFeaturestoreBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - featurestore_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4352,7 +4400,7 @@ public Builder setFeaturestoreBytes(com.google.protobuf.ByteString value) { * @return Whether the destination field is set. */ public boolean hasDestination() { - return destinationBuilder_ != null || destination_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -4394,11 +4442,11 @@ public Builder setDestination( throw new NullPointerException(); } destination_ = value; - onChanged(); } else { destinationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4416,11 +4464,11 @@ public Builder setDestination( com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder builderForValue) { if (destinationBuilder_ == null) { destination_ = builderForValue.build(); - onChanged(); } else { destinationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4437,19 +4485,20 @@ public Builder setDestination( public Builder mergeDestination( com.google.cloud.aiplatform.v1beta1.FeatureValueDestination value) { if (destinationBuilder_ == null) { - if (destination_ != null) { - destination_ = - com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.newBuilder(destination_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && destination_ != null + && destination_ + != com.google.cloud.aiplatform.v1beta1.FeatureValueDestination + .getDefaultInstance()) { + getDestinationBuilder().mergeFrom(value); } else { destination_ = value; } - onChanged(); } else { destinationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4464,14 +4513,13 @@ public Builder mergeDestination( * */ public Builder clearDestination() { - if (destinationBuilder_ == null) { - destination_ = null; - onChanged(); - } else { - destination_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + destination_ = null; + if (destinationBuilder_ != null) { + destinationBuilder_.dispose(); destinationBuilder_ = null; } - + onChanged(); return this; } /** @@ -4487,7 +4535,7 @@ public Builder clearDestination() { */ public com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder getDestinationBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getDestinationFieldBuilder().getBuilder(); } @@ -4545,12 +4593,12 @@ public Builder clearDestination() { passThroughFields_ = java.util.Collections.emptyList(); private void ensurePassThroughFieldsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { passThroughFields_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField>( passThroughFields_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000010; } } @@ -4862,7 +4910,7 @@ public Builder addAllPassThroughFields( public Builder clearPassThroughFields() { if (passThroughFieldsBuilder_ == null) { passThroughFields_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { passThroughFieldsBuilder_.clear(); @@ -5056,7 +5104,7 @@ public Builder removePassThroughFields(int index) { com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest .PassThroughFieldOrBuilder>( passThroughFields_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); passThroughFields_ = null; @@ -5069,12 +5117,12 @@ public Builder removePassThroughFields(int index) { entityTypeSpecs_ = java.util.Collections.emptyList(); private void ensureEntityTypeSpecsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { entityTypeSpecs_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec>( entityTypeSpecs_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000020; } } @@ -5375,7 +5423,7 @@ public Builder addAllEntityTypeSpecs( public Builder clearEntityTypeSpecs() { if (entityTypeSpecsBuilder_ == null) { entityTypeSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { entityTypeSpecsBuilder_.clear(); @@ -5558,7 +5606,7 @@ public Builder removeEntityTypeSpecs(int index) { com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest .EntityTypeSpecOrBuilder>( entityTypeSpecs_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); entityTypeSpecs_ = null; @@ -5587,7 +5635,7 @@ public Builder removeEntityTypeSpecs(int index) { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -5628,11 +5676,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -5650,11 +5698,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -5671,17 +5719,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -5697,14 +5746,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -5720,7 +5768,7 @@ public Builder clearStartTime() { * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadTensorboardTimeSeriesDataRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadTensorboardTimeSeriesDataRequest.java index ef75e3f1bb05..b8f7484b8cde 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadTensorboardTimeSeriesDataRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadTensorboardTimeSeriesDataRequest.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_FIELD_NUMBER = 1; - private volatile java.lang.Object tensorboard_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboard_ = ""; /** * * @@ -136,6 +138,8 @@ public com.google.protobuf.ByteString getTensorboardBytes() { } public static final int TIME_SERIES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList timeSeries_; /** * @@ -436,10 +440,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; tensorboard_ = ""; - timeSeries_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -471,17 +475,31 @@ public com.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataReq buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRequest result = new com.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRequest(this); - int from_bitField0_ = bitField0_; - result.tensorboard_ = tensorboard_; - if (((bitField0_ & 0x00000001) != 0)) { - timeSeries_ = timeSeries_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.timeSeries_ = timeSeries_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRequest result) { + if (((bitField0_ & 0x00000002) != 0)) { + timeSeries_ = timeSeries_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.timeSeries_ = timeSeries_; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tensorboard_ = tensorboard_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -535,12 +553,13 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getTensorboard().isEmpty()) { tensorboard_ = other.tensorboard_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.timeSeries_.isEmpty()) { if (timeSeries_.isEmpty()) { timeSeries_ = other.timeSeries_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTimeSeriesIsMutable(); timeSeries_.addAll(other.timeSeries_); @@ -576,7 +595,7 @@ public Builder mergeFrom( case 10: { tensorboard_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -687,8 +706,8 @@ public Builder setTensorboard(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboard_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -711,8 +730,8 @@ public Builder setTensorboard(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboard() { - tensorboard_ = getDefaultInstance().getTensorboard(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -740,8 +759,8 @@ public Builder setTensorboardBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboard_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -750,9 +769,9 @@ public Builder setTensorboardBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTimeSeriesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { timeSeries_ = new com.google.protobuf.LazyStringArrayList(timeSeries_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -919,7 +938,7 @@ public Builder addAllTimeSeries(java.lang.Iterable values) { */ public Builder clearTimeSeries() { timeSeries_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadTensorboardTimeSeriesDataResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadTensorboardTimeSeriesDataResponse.java index d3a6b651092a..396379dfd646 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadTensorboardTimeSeriesDataResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadTensorboardTimeSeriesDataResponse.java @@ -72,6 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TIME_SERIES_DATA_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List timeSeriesData_; /** * @@ -354,6 +356,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (timeSeriesDataBuilder_ == null) { timeSeriesData_ = java.util.Collections.emptyList(); } else { @@ -392,7 +395,16 @@ public com.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRes buildPartial() { com.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataResponse result = new com.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataResponse result) { if (timeSeriesDataBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { timeSeriesData_ = java.util.Collections.unmodifiableList(timeSeriesData_); @@ -402,8 +414,11 @@ public com.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRes } else { result.timeSeriesData_ = timeSeriesDataBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BigQueryDestination.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BigQueryDestination.java index 32a5a71d227d..38e77ecefc7b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BigQueryDestination.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BigQueryDestination.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int OUTPUT_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object outputUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputUri_ = ""; /** * * @@ -328,8 +330,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; outputUri_ = ""; - return this; } @@ -357,11 +359,20 @@ public com.google.cloud.aiplatform.v1beta1.BigQueryDestination build() { public com.google.cloud.aiplatform.v1beta1.BigQueryDestination buildPartial() { com.google.cloud.aiplatform.v1beta1.BigQueryDestination result = new com.google.cloud.aiplatform.v1beta1.BigQueryDestination(this); - result.outputUri_ = outputUri_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.BigQueryDestination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.outputUri_ = outputUri_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -410,6 +421,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.BigQueryDestination return this; if (!other.getOutputUri().isEmpty()) { outputUri_ = other.outputUri_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -441,7 +453,7 @@ public Builder mergeFrom( case 10: { outputUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -461,6 +473,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object outputUri_ = ""; /** * @@ -543,8 +557,8 @@ public Builder setOutputUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - outputUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -567,8 +581,8 @@ public Builder setOutputUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOutputUri() { - outputUri_ = getDefaultInstance().getOutputUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -596,8 +610,8 @@ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - outputUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BigQuerySource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BigQuerySource.java index 9a89dc02c64e..6eb3d6af0a64 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BigQuerySource.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BigQuerySource.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INPUT_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object inputUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object inputUri_ = ""; /** * * @@ -317,8 +319,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; inputUri_ = ""; - return this; } @@ -346,11 +348,20 @@ public com.google.cloud.aiplatform.v1beta1.BigQuerySource build() { public com.google.cloud.aiplatform.v1beta1.BigQuerySource buildPartial() { com.google.cloud.aiplatform.v1beta1.BigQuerySource result = new com.google.cloud.aiplatform.v1beta1.BigQuerySource(this); - result.inputUri_ = inputUri_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.BigQuerySource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputUri_ = inputUri_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -399,6 +410,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.BigQuerySource othe return this; if (!other.getInputUri().isEmpty()) { inputUri_ = other.inputUri_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -430,7 +442,7 @@ public Builder mergeFrom( case 10: { inputUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -450,6 +462,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object inputUri_ = ""; /** * @@ -517,8 +531,8 @@ public Builder setInputUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - inputUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -536,8 +550,8 @@ public Builder setInputUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInputUri() { - inputUri_ = getDefaultInstance().getInputUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -560,8 +574,8 @@ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - inputUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BlurBaselineConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BlurBaselineConfig.java index 244b9d2c3b94..9bcc274ab596 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BlurBaselineConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BlurBaselineConfig.java @@ -70,7 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MAX_BLUR_SIGMA_FIELD_NUMBER = 1; - private float maxBlurSigma_; + private float maxBlurSigma_ = 0F; /** * * @@ -293,8 +293,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; maxBlurSigma_ = 0F; - return this; } @@ -322,11 +322,20 @@ public com.google.cloud.aiplatform.v1beta1.BlurBaselineConfig build() { public com.google.cloud.aiplatform.v1beta1.BlurBaselineConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.BlurBaselineConfig result = new com.google.cloud.aiplatform.v1beta1.BlurBaselineConfig(this); - result.maxBlurSigma_ = maxBlurSigma_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.BlurBaselineConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxBlurSigma_ = maxBlurSigma_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -405,7 +414,7 @@ public Builder mergeFrom( case 13: { maxBlurSigma_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 default: @@ -425,6 +434,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float maxBlurSigma_; /** * @@ -462,6 +473,7 @@ public float getMaxBlurSigma() { public Builder setMaxBlurSigma(float value) { maxBlurSigma_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -480,7 +492,7 @@ public Builder setMaxBlurSigma(float value) { * @return This builder for chaining. */ public Builder clearMaxBlurSigma() { - + bitField0_ = (bitField0_ & ~0x00000001); maxBlurSigma_ = 0F; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BoolArray.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BoolArray.java index 74607827c7dd..b52a86383454 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BoolArray.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BoolArray.java @@ -68,6 +68,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.BooleanList values_; /** * @@ -327,8 +329,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; values_ = emptyBooleanList(); - bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -356,14 +358,24 @@ public com.google.cloud.aiplatform.v1beta1.BoolArray build() { public com.google.cloud.aiplatform.v1beta1.BoolArray buildPartial() { com.google.cloud.aiplatform.v1beta1.BoolArray result = new com.google.cloud.aiplatform.v1beta1.BoolArray(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.BoolArray result) { if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.BoolArray result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -551,6 +563,7 @@ public boolean getValues(int index) { * @return This builder for chaining. */ public Builder setValues(int index, boolean value) { + ensureValuesIsMutable(); values_.setBoolean(index, value); onChanged(); @@ -569,6 +582,7 @@ public Builder setValues(int index, boolean value) { * @return This builder for chaining. */ public Builder addValues(boolean value) { + ensureValuesIsMutable(); values_.addBoolean(value); onChanged(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelBatchPredictionJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelBatchPredictionJobRequest.java index 383c62f2c727..e4bc70b4941d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelBatchPredictionJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelBatchPredictionJobRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -327,8 +329,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -358,11 +360,21 @@ public com.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest build public com.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest result = new com.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -414,6 +426,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -445,7 +458,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -465,6 +478,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -538,8 +553,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -559,8 +574,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -585,8 +600,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelCustomJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelCustomJobRequest.java index 2747f4c1c844..c3e4efd6952f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelCustomJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelCustomJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest build() { public com.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest result = new com.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CancelCustomJobRequ return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelDataLabelingJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelDataLabelingJobRequest.java index 10afaff5899a..566c53835ade 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelDataLabelingJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelDataLabelingJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -354,11 +356,21 @@ public com.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest build() public com.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest result = new com.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -409,6 +421,7 @@ public Builder mergeFrom( return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -440,7 +453,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -460,6 +473,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -533,8 +548,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -554,8 +569,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -580,8 +595,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelHyperparameterTuningJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelHyperparameterTuningJobRequest.java index af3092a3278e..cfc4b2374774 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelHyperparameterTuningJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelHyperparameterTuningJobRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -330,8 +332,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -362,11 +364,21 @@ public com.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest public com.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest result = new com.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -419,6 +431,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -450,7 +463,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -470,6 +483,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -543,8 +558,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -564,8 +579,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -590,8 +605,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelPipelineJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelPipelineJobRequest.java index 6a7b70c7abfe..6ecca9cf023b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelPipelineJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelPipelineJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -354,11 +356,21 @@ public com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest build() { public com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest result = new com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -408,6 +420,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -439,7 +452,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +472,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -532,8 +547,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -553,8 +568,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -579,8 +594,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelTrainingPipelineRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelTrainingPipelineRequest.java index 9a06d54e4f42..eab922caf953 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelTrainingPipelineRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CancelTrainingPipelineRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -326,8 +328,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -356,11 +358,21 @@ public com.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest build() public com.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest result = new com.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -411,6 +423,7 @@ public Builder mergeFrom( return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -442,7 +455,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -462,6 +475,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -535,8 +550,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -556,8 +571,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -582,8 +597,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateMetatdata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateMetatdata.java index cf5e53228987..96fad9b13303 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateMetatdata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateMetatdata.java @@ -119,11 +119,15 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } public static final int STUDY_FIELD_NUMBER = 2; - private volatile java.lang.Object study_; + + @SuppressWarnings("serial") + private volatile java.lang.Object study_ = ""; /** * * @@ -172,7 +176,9 @@ public com.google.protobuf.ByteString getStudyBytes() { } public static final int TRIAL_FIELD_NUMBER = 3; - private volatile java.lang.Object trial_; + + @SuppressWarnings("serial") + private volatile java.lang.Object trial_ = ""; /** * * @@ -447,16 +453,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } study_ = ""; - trial_ = ""; - return this; } @@ -488,17 +492,28 @@ public com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata buildPartial() { com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata result = new com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.study_ = study_; - result.trial_ = trial_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.study_ = study_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.trial_ = trial_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -554,10 +569,12 @@ public Builder mergeFrom( } if (!other.getStudy().isEmpty()) { study_ = other.study_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getTrial().isEmpty()) { trial_ = other.trial_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -589,19 +606,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { study_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { trial_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -621,6 +638,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -639,7 +658,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -677,11 +696,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -697,11 +716,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -716,20 +735,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -742,14 +761,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -763,7 +781,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } @@ -873,8 +891,8 @@ public Builder setStudy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - study_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -890,8 +908,8 @@ public Builder setStudy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearStudy() { - study_ = getDefaultInstance().getStudy(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -912,8 +930,8 @@ public Builder setStudyBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - study_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -979,8 +997,8 @@ public Builder setTrial(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - trial_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -996,8 +1014,8 @@ public Builder setTrial(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTrial() { - trial_ = getDefaultInstance().getTrial(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1018,8 +1036,8 @@ public Builder setTrialBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - trial_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateRequest.java index d3873d1231a1..777a4f1b427c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRIAL_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object trialName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object trialName_ = ""; /** * * @@ -329,8 +331,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; trialName_ = ""; - return this; } @@ -361,11 +363,21 @@ public com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest b public com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest result = new com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest(this); - result.trialName_ = trialName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trialName_ = trialName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -418,6 +430,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getTrialName().isEmpty()) { trialName_ = other.trialName_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -449,7 +462,7 @@ public Builder mergeFrom( case 10: { trialName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -469,6 +482,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object trialName_ = ""; /** * @@ -542,8 +557,8 @@ public Builder setTrialName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - trialName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -563,8 +578,8 @@ public Builder setTrialName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTrialName() { - trialName_ = getDefaultInstance().getTrialName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -589,8 +604,8 @@ public Builder setTrialNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - trialName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateResponse.java index 26828c89667b..6db669071ffc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CheckTrialEarlyStoppingStateResponse.java @@ -69,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SHOULD_STOP_FIELD_NUMBER = 1; - private boolean shouldStop_; + private boolean shouldStop_ = false; /** * * @@ -289,8 +289,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; shouldStop_ = false; - return this; } @@ -321,11 +321,21 @@ public com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse public com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse result = new com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse(this); - result.shouldStop_ = shouldStop_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.shouldStop_ = shouldStop_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -408,7 +418,7 @@ public Builder mergeFrom( case 8: { shouldStop_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -428,6 +438,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean shouldStop_; /** * @@ -459,6 +471,7 @@ public boolean getShouldStop() { public Builder setShouldStop(boolean value) { shouldStop_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -474,7 +487,7 @@ public Builder setShouldStop(boolean value) { * @return This builder for chaining. */ public Builder clearShouldStop() { - + bitField0_ = (bitField0_ & ~0x00000001); shouldStop_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompleteTrialRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompleteTrialRequest.java index 6dd2e133de1e..d828f1875182 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompleteTrialRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompleteTrialRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -183,11 +185,13 @@ public com.google.cloud.aiplatform.v1beta1.Measurement getFinalMeasurement() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.MeasurementOrBuilder getFinalMeasurementOrBuilder() { - return getFinalMeasurement(); + return finalMeasurement_ == null + ? com.google.cloud.aiplatform.v1beta1.Measurement.getDefaultInstance() + : finalMeasurement_; } public static final int TRIAL_INFEASIBLE_FIELD_NUMBER = 3; - private boolean trialInfeasible_; + private boolean trialInfeasible_ = false; /** * * @@ -206,7 +210,9 @@ public boolean getTrialInfeasible() { } public static final int INFEASIBLE_REASON_FIELD_NUMBER = 4; - private volatile java.lang.Object infeasibleReason_; + + @SuppressWarnings("serial") + private volatile java.lang.Object infeasibleReason_ = ""; /** * * @@ -487,18 +493,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - - if (finalMeasurementBuilder_ == null) { - finalMeasurement_ = null; - } else { - finalMeasurement_ = null; + finalMeasurement_ = null; + if (finalMeasurementBuilder_ != null) { + finalMeasurementBuilder_.dispose(); finalMeasurementBuilder_ = null; } trialInfeasible_ = false; - infeasibleReason_ = ""; - return this; } @@ -526,18 +529,30 @@ public com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest build() { public com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest result = new com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest(this); - result.name_ = name_; - if (finalMeasurementBuilder_ == null) { - result.finalMeasurement_ = finalMeasurement_; - } else { - result.finalMeasurement_ = finalMeasurementBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.trialInfeasible_ = trialInfeasible_; - result.infeasibleReason_ = infeasibleReason_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.finalMeasurement_ = + finalMeasurementBuilder_ == null ? finalMeasurement_ : finalMeasurementBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.trialInfeasible_ = trialInfeasible_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.infeasibleReason_ = infeasibleReason_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -586,6 +601,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CompleteTrialReques return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasFinalMeasurement()) { @@ -596,6 +612,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CompleteTrialReques } if (!other.getInfeasibleReason().isEmpty()) { infeasibleReason_ = other.infeasibleReason_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -627,26 +644,26 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getFinalMeasurementFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { trialInfeasible_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { infeasibleReason_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -666,6 +683,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -739,8 +758,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -760,8 +779,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -786,8 +805,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -814,7 +833,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the finalMeasurement field is set. */ public boolean hasFinalMeasurement() { - return finalMeasurementBuilder_ != null || finalMeasurement_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -859,11 +878,11 @@ public Builder setFinalMeasurement(com.google.cloud.aiplatform.v1beta1.Measureme throw new NullPointerException(); } finalMeasurement_ = value; - onChanged(); } else { finalMeasurementBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -883,11 +902,11 @@ public Builder setFinalMeasurement( com.google.cloud.aiplatform.v1beta1.Measurement.Builder builderForValue) { if (finalMeasurementBuilder_ == null) { finalMeasurement_ = builderForValue.build(); - onChanged(); } else { finalMeasurementBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -905,19 +924,19 @@ public Builder setFinalMeasurement( */ public Builder mergeFinalMeasurement(com.google.cloud.aiplatform.v1beta1.Measurement value) { if (finalMeasurementBuilder_ == null) { - if (finalMeasurement_ != null) { - finalMeasurement_ = - com.google.cloud.aiplatform.v1beta1.Measurement.newBuilder(finalMeasurement_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && finalMeasurement_ != null + && finalMeasurement_ + != com.google.cloud.aiplatform.v1beta1.Measurement.getDefaultInstance()) { + getFinalMeasurementBuilder().mergeFrom(value); } else { finalMeasurement_ = value; } - onChanged(); } else { finalMeasurementBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -934,14 +953,13 @@ public Builder mergeFinalMeasurement(com.google.cloud.aiplatform.v1beta1.Measure * */ public Builder clearFinalMeasurement() { - if (finalMeasurementBuilder_ == null) { - finalMeasurement_ = null; - onChanged(); - } else { - finalMeasurement_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + finalMeasurement_ = null; + if (finalMeasurementBuilder_ != null) { + finalMeasurementBuilder_.dispose(); finalMeasurementBuilder_ = null; } - + onChanged(); return this; } /** @@ -958,7 +976,7 @@ public Builder clearFinalMeasurement() { * */ public com.google.cloud.aiplatform.v1beta1.Measurement.Builder getFinalMeasurementBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getFinalMeasurementFieldBuilder().getBuilder(); } @@ -1047,6 +1065,7 @@ public boolean getTrialInfeasible() { public Builder setTrialInfeasible(boolean value) { trialInfeasible_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1063,7 +1082,7 @@ public Builder setTrialInfeasible(boolean value) { * @return This builder for chaining. */ public Builder clearTrialInfeasible() { - + bitField0_ = (bitField0_ & ~0x00000004); trialInfeasible_ = false; onChanged(); return this; @@ -1133,8 +1152,8 @@ public Builder setInfeasibleReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - infeasibleReason_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1151,8 +1170,8 @@ public Builder setInfeasibleReason(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInfeasibleReason() { - infeasibleReason_ = getDefaultInstance().getInfeasibleReason(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1174,8 +1193,8 @@ public Builder setInfeasibleReasonBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - infeasibleReason_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStats.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStats.java index 5344ee5fb41f..cb0767895d28 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStats.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStats.java @@ -67,7 +67,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SUCCESSFUL_COUNT_FIELD_NUMBER = 1; - private long successfulCount_; + private long successfulCount_ = 0L; /** * * @@ -85,7 +85,7 @@ public long getSuccessfulCount() { } public static final int FAILED_COUNT_FIELD_NUMBER = 2; - private long failedCount_; + private long failedCount_ = 0L; /** * * @@ -103,7 +103,7 @@ public long getFailedCount() { } public static final int INCOMPLETE_COUNT_FIELD_NUMBER = 3; - private long incompleteCount_; + private long incompleteCount_ = 0L; /** * * @@ -125,7 +125,7 @@ public long getIncompleteCount() { } public static final int SUCCESSFUL_FORECAST_POINT_COUNT_FIELD_NUMBER = 5; - private long successfulForecastPointCount_; + private long successfulForecastPointCount_ = 0L; /** * * @@ -371,14 +371,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; successfulCount_ = 0L; - failedCount_ = 0L; - incompleteCount_ = 0L; - successfulForecastPointCount_ = 0L; - return this; } @@ -406,14 +403,29 @@ public com.google.cloud.aiplatform.v1beta1.CompletionStats build() { public com.google.cloud.aiplatform.v1beta1.CompletionStats buildPartial() { com.google.cloud.aiplatform.v1beta1.CompletionStats result = new com.google.cloud.aiplatform.v1beta1.CompletionStats(this); - result.successfulCount_ = successfulCount_; - result.failedCount_ = failedCount_; - result.incompleteCount_ = incompleteCount_; - result.successfulForecastPointCount_ = successfulForecastPointCount_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CompletionStats result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.successfulCount_ = successfulCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.failedCount_ = failedCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.incompleteCount_ = incompleteCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.successfulForecastPointCount_ = successfulForecastPointCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -501,25 +513,25 @@ public Builder mergeFrom( case 8: { successfulCount_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { failedCount_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { incompleteCount_ = input.readInt64(); - + bitField0_ |= 0x00000004; break; } // case 24 case 40: { successfulForecastPointCount_ = input.readInt64(); - + bitField0_ |= 0x00000008; break; } // case 40 default: @@ -539,6 +551,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long successfulCount_; /** * @@ -570,6 +584,7 @@ public long getSuccessfulCount() { public Builder setSuccessfulCount(long value) { successfulCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -585,7 +600,7 @@ public Builder setSuccessfulCount(long value) { * @return This builder for chaining. */ public Builder clearSuccessfulCount() { - + bitField0_ = (bitField0_ & ~0x00000001); successfulCount_ = 0L; onChanged(); return this; @@ -622,6 +637,7 @@ public long getFailedCount() { public Builder setFailedCount(long value) { failedCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -637,7 +653,7 @@ public Builder setFailedCount(long value) { * @return This builder for chaining. */ public Builder clearFailedCount() { - + bitField0_ = (bitField0_ & ~0x00000002); failedCount_ = 0L; onChanged(); return this; @@ -682,6 +698,7 @@ public long getIncompleteCount() { public Builder setIncompleteCount(long value) { incompleteCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -701,7 +718,7 @@ public Builder setIncompleteCount(long value) { * @return This builder for chaining. */ public Builder clearIncompleteCount() { - + bitField0_ = (bitField0_ & ~0x00000004); incompleteCount_ = 0L; onChanged(); return this; @@ -744,6 +761,7 @@ public long getSuccessfulForecastPointCount() { public Builder setSuccessfulForecastPointCount(long value) { successfulForecastPointCount_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -762,7 +780,7 @@ public Builder setSuccessfulForecastPointCount(long value) { * @return This builder for chaining. */ public Builder clearSuccessfulForecastPointCount() { - + bitField0_ = (bitField0_ & ~0x00000008); successfulForecastPointCount_ = 0L; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerRegistryDestination.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerRegistryDestination.java index 34073d7c0c89..330dd74be1eb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerRegistryDestination.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerRegistryDestination.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int OUTPUT_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object outputUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputUri_ = ""; /** * * @@ -328,8 +330,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; outputUri_ = ""; - return this; } @@ -358,11 +360,21 @@ public com.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination build() public com.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination buildPartial() { com.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination result = new com.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination(this); - result.outputUri_ = outputUri_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.outputUri_ = outputUri_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -413,6 +425,7 @@ public Builder mergeFrom( return this; if (!other.getOutputUri().isEmpty()) { outputUri_ = other.outputUri_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -444,7 +457,7 @@ public Builder mergeFrom( case 10: { outputUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -464,6 +477,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object outputUri_ = ""; /** * @@ -546,8 +561,8 @@ public Builder setOutputUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - outputUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -570,8 +585,8 @@ public Builder setOutputUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOutputUri() { - outputUri_ = getDefaultInstance().getOutputUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -599,8 +614,8 @@ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - outputUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerSpec.java index 6bc27ee484ed..545cee5232af 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerSpec.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int IMAGE_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object imageUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object imageUri_ = ""; /** * * @@ -122,6 +124,8 @@ public com.google.protobuf.ByteString getImageUriBytes() { } public static final int COMMAND_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList command_; /** * @@ -187,6 +191,8 @@ public com.google.protobuf.ByteString getCommandBytes(int index) { } public static final int ARGS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList args_; /** * @@ -248,6 +254,8 @@ public com.google.protobuf.ByteString getArgsBytes(int index) { } public static final int ENV_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List env_; /** * @@ -561,19 +569,19 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; imageUri_ = ""; - command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); if (envBuilder_ == null) { env_ = java.util.Collections.emptyList(); } else { env_ = null; envBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -601,29 +609,42 @@ public com.google.cloud.aiplatform.v1beta1.ContainerSpec build() { public com.google.cloud.aiplatform.v1beta1.ContainerSpec buildPartial() { com.google.cloud.aiplatform.v1beta1.ContainerSpec result = new com.google.cloud.aiplatform.v1beta1.ContainerSpec(this); - int from_bitField0_ = bitField0_; - result.imageUri_ = imageUri_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ContainerSpec result) { + if (((bitField0_ & 0x00000002) != 0)) { command_ = command_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.command_ = command_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { args_ = args_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.args_ = args_; if (envBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { env_ = java.util.Collections.unmodifiableList(env_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } result.env_ = env_; } else { result.env_ = envBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ContainerSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.imageUri_ = imageUri_; + } } @java.lang.Override @@ -674,12 +695,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ContainerSpec other return this; if (!other.getImageUri().isEmpty()) { imageUri_ = other.imageUri_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.command_.isEmpty()) { if (command_.isEmpty()) { command_ = other.command_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCommandIsMutable(); command_.addAll(other.command_); @@ -689,7 +711,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ContainerSpec other if (!other.args_.isEmpty()) { if (args_.isEmpty()) { args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureArgsIsMutable(); args_.addAll(other.args_); @@ -700,7 +722,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ContainerSpec other if (!other.env_.isEmpty()) { if (env_.isEmpty()) { env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureEnvIsMutable(); env_.addAll(other.env_); @@ -713,7 +735,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ContainerSpec other envBuilder_.dispose(); envBuilder_ = null; env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); envBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEnvFieldBuilder() @@ -752,7 +774,7 @@ public Builder mergeFrom( case 10: { imageUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -865,8 +887,8 @@ public Builder setImageUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - imageUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -883,8 +905,8 @@ public Builder setImageUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearImageUri() { - imageUri_ = getDefaultInstance().getImageUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -906,8 +928,8 @@ public Builder setImageUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - imageUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -916,9 +938,9 @@ public Builder setImageUriBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCommandIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { command_ = new com.google.protobuf.LazyStringArrayList(command_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -1061,7 +1083,7 @@ public Builder addAllCommand(java.lang.Iterable values) { */ public Builder clearCommand() { command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1093,9 +1115,9 @@ public Builder addCommandBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } /** @@ -1230,7 +1252,7 @@ public Builder addAllArgs(java.lang.Iterable values) { */ public Builder clearArgs() { args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1261,9 +1283,9 @@ public Builder addArgsBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureEnvIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { env_ = new java.util.ArrayList(env_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } @@ -1489,7 +1511,7 @@ public Builder addAllEnv( public Builder clearEnv() { if (envBuilder_ == null) { env_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { envBuilder_.clear(); @@ -1617,7 +1639,7 @@ public java.util.List getEnv com.google.cloud.aiplatform.v1beta1.EnvVar, com.google.cloud.aiplatform.v1beta1.EnvVar.Builder, com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder>( - env_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + env_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); env_ = null; } return envBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Context.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Context.java index 4a95c25bde68..874cd7ea9e62 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Context.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Context.java @@ -85,7 +85,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -134,7 +136,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -185,7 +189,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int ETAG_FIELD_NUMBER = 8; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -248,6 +254,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -320,7 +327,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -399,7 +409,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 11; @@ -448,10 +458,12 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int PARENT_CONTEXTS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList parentContexts_; /** * @@ -525,7 +537,9 @@ public com.google.protobuf.ByteString getParentContextsBytes(int index) { } public static final int SCHEMA_TITLE_FIELD_NUMBER = 13; - private volatile java.lang.Object schemaTitle_; + + @SuppressWarnings("serial") + private volatile java.lang.Object schemaTitle_ = ""; /** * * @@ -580,7 +594,9 @@ public com.google.protobuf.ByteString getSchemaTitleBytes() { } public static final int SCHEMA_VERSION_FIELD_NUMBER = 14; - private volatile java.lang.Object schemaVersion_; + + @SuppressWarnings("serial") + private volatile java.lang.Object schemaVersion_ = ""; /** * * @@ -683,11 +699,13 @@ public com.google.protobuf.Struct getMetadata() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } public static final int DESCRIPTION_FIELD_NUMBER = 16; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -1072,39 +1090,31 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - etag_ = ""; - internalGetMutableLabels().clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } parentContexts_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000040); schemaTitle_ = ""; - schemaVersion_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } description_ = ""; - return this; } @@ -1132,37 +1142,55 @@ public com.google.cloud.aiplatform.v1beta1.Context build() { public com.google.cloud.aiplatform.v1beta1.Context buildPartial() { com.google.cloud.aiplatform.v1beta1.Context result = new com.google.cloud.aiplatform.v1beta1.Context(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.etag_ = etag_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.Context result) { + if (((bitField0_ & 0x00000040) != 0)) { parentContexts_ = parentContexts_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000040); } result.parentContexts_ = parentContexts_; - result.schemaTitle_ = schemaTitle_; - result.schemaVersion_ = schemaVersion_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Context result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.schemaTitle_ = schemaTitle_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.schemaVersion_ = schemaVersion_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.description_ = description_; } - result.description_ = description_; - onBuilt(); - return result; } @java.lang.Override @@ -1212,17 +1240,21 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Context other) { if (other == com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000004; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1232,7 +1264,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Context other) { if (!other.parentContexts_.isEmpty()) { if (parentContexts_.isEmpty()) { parentContexts_ = other.parentContexts_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000040); } else { ensureParentContextsIsMutable(); parentContexts_.addAll(other.parentContexts_); @@ -1241,10 +1273,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Context other) { } if (!other.getSchemaTitle().isEmpty()) { schemaTitle_ = other.schemaTitle_; + bitField0_ |= 0x00000080; onChanged(); } if (!other.getSchemaVersion().isEmpty()) { schemaVersion_ = other.schemaVersion_; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasMetadata()) { @@ -1252,6 +1286,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Context other) { } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000400; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1283,19 +1318,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 66: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 66 case 74: @@ -1307,18 +1342,19 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; break; } // case 74 case 82: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 82 case 90: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 90 case 98: @@ -1331,25 +1367,25 @@ public Builder mergeFrom( case 106: { schemaTitle_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 106 case 114: { schemaVersion_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 114 case 122: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 122 case 130: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000400; break; } // case 130 default: @@ -1432,8 +1468,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1449,8 +1485,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1471,8 +1507,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1541,8 +1577,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1559,8 +1595,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1582,8 +1618,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1652,8 +1688,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1670,8 +1706,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1693,8 +1729,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1710,14 +1746,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000008; + onChanged(); return labels_; } @@ -1784,8 +1820,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1819,6 +1857,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -1846,6 +1885,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** @@ -1869,8 +1909,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; return this; } /** @@ -1889,6 +1929,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; return this; } @@ -1912,7 +1953,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1953,11 +1994,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1974,11 +2015,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1994,17 +2035,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2019,14 +2061,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2041,7 +2082,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2113,7 +2154,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2154,11 +2195,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2175,11 +2216,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2195,17 +2236,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2220,14 +2262,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2242,7 +2283,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2298,9 +2339,9 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureParentContextsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000040) != 0)) { parentContexts_ = new com.google.protobuf.LazyStringArrayList(parentContexts_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000040; } } /** @@ -2459,7 +2500,7 @@ public Builder addAllParentContexts(java.lang.Iterable values) */ public Builder clearParentContexts() { parentContexts_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2559,8 +2600,8 @@ public Builder setSchemaTitle(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - schemaTitle_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2579,8 +2620,8 @@ public Builder setSchemaTitle(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSchemaTitle() { - schemaTitle_ = getDefaultInstance().getSchemaTitle(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -2604,8 +2645,8 @@ public Builder setSchemaTitleBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - schemaTitle_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2680,8 +2721,8 @@ public Builder setSchemaVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - schemaVersion_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2700,8 +2741,8 @@ public Builder setSchemaVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSchemaVersion() { - schemaVersion_ = getDefaultInstance().getSchemaVersion(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2725,8 +2766,8 @@ public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - schemaVersion_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2751,7 +2792,7 @@ public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -2790,11 +2831,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) { throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -2811,11 +2852,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) { public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -2831,17 +2872,18 @@ public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Struct value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -2856,14 +2898,13 @@ public Builder mergeMetadata(com.google.protobuf.Struct value) { * .google.protobuf.Struct metadata = 15; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -2878,7 +2919,7 @@ public Builder clearMetadata() { * .google.protobuf.Struct metadata = 15; */ public com.google.protobuf.Struct.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -2989,8 +3030,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3006,8 +3047,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -3028,8 +3069,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextOrBuilder.java index bb7b8b2ff71d..4d9e33970e4b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextOrBuilder.java @@ -164,7 +164,6 @@ public interface ContextOrBuilder * * map<string, string> labels = 9; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateArtifactRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateArtifactRequest.java index 0e60e31dbbfd..64d5888cef72 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateArtifactRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateArtifactRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -179,11 +181,15 @@ public com.google.cloud.aiplatform.v1beta1.Artifact getArtifact() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder getArtifactOrBuilder() { - return getArtifact(); + return artifact_ == null + ? com.google.cloud.aiplatform.v1beta1.Artifact.getDefaultInstance() + : artifact_; } public static final int ARTIFACT_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object artifactId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object artifactId_ = ""; /** * * @@ -465,16 +471,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (artifactBuilder_ == null) { - artifact_ = null; - } else { - artifact_ = null; + artifact_ = null; + if (artifactBuilder_ != null) { + artifactBuilder_.dispose(); artifactBuilder_ = null; } artifactId_ = ""; - return this; } @@ -502,17 +506,26 @@ public com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest build() { public com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest result = new com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest(this); - result.parent_ = parent_; - if (artifactBuilder_ == null) { - result.artifact_ = artifact_; - } else { - result.artifact_ = artifactBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.artifactId_ = artifactId_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.artifact_ = artifactBuilder_ == null ? artifact_ : artifactBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.artifactId_ = artifactId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -561,6 +574,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateArtifactReque return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasArtifact()) { @@ -568,6 +582,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateArtifactReque } if (!other.getArtifactId().isEmpty()) { artifactId_ = other.artifactId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -599,19 +614,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getArtifactFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { artifactId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -631,6 +646,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -707,8 +724,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -729,8 +746,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -756,8 +773,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -782,7 +799,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the artifact field is set. */ public boolean hasArtifact() { - return artifactBuilder_ != null || artifact_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -823,11 +840,11 @@ public Builder setArtifact(com.google.cloud.aiplatform.v1beta1.Artifact value) { throw new NullPointerException(); } artifact_ = value; - onChanged(); } else { artifactBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -845,11 +862,11 @@ public Builder setArtifact( com.google.cloud.aiplatform.v1beta1.Artifact.Builder builderForValue) { if (artifactBuilder_ == null) { artifact_ = builderForValue.build(); - onChanged(); } else { artifactBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -865,19 +882,18 @@ public Builder setArtifact( */ public Builder mergeArtifact(com.google.cloud.aiplatform.v1beta1.Artifact value) { if (artifactBuilder_ == null) { - if (artifact_ != null) { - artifact_ = - com.google.cloud.aiplatform.v1beta1.Artifact.newBuilder(artifact_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && artifact_ != null + && artifact_ != com.google.cloud.aiplatform.v1beta1.Artifact.getDefaultInstance()) { + getArtifactBuilder().mergeFrom(value); } else { artifact_ = value; } - onChanged(); } else { artifactBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -892,14 +908,13 @@ public Builder mergeArtifact(com.google.cloud.aiplatform.v1beta1.Artifact value) * */ public Builder clearArtifact() { - if (artifactBuilder_ == null) { - artifact_ = null; - onChanged(); - } else { - artifact_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + artifact_ = null; + if (artifactBuilder_ != null) { + artifactBuilder_.dispose(); artifactBuilder_ = null; } - + onChanged(); return this; } /** @@ -914,7 +929,7 @@ public Builder clearArtifact() { * */ public com.google.cloud.aiplatform.v1beta1.Artifact.Builder getArtifactBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getArtifactFieldBuilder().getBuilder(); } @@ -1045,8 +1060,8 @@ public Builder setArtifactId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - artifactId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1068,8 +1083,8 @@ public Builder setArtifactId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearArtifactId() { - artifactId_ = getDefaultInstance().getArtifactId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1096,8 +1111,8 @@ public Builder setArtifactIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - artifactId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateBatchPredictionJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateBatchPredictionJobRequest.java index 92911b5e77cf..465b331b4f31 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateBatchPredictionJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateBatchPredictionJobRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -176,7 +178,9 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob getBatchPrediction @java.lang.Override public com.google.cloud.aiplatform.v1beta1.BatchPredictionJobOrBuilder getBatchPredictionJobOrBuilder() { - return getBatchPredictionJob(); + return batchPredictionJob_ == null + ? com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.getDefaultInstance() + : batchPredictionJob_; } private byte memoizedIsInitialized = -1; @@ -394,12 +398,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (batchPredictionJobBuilder_ == null) { - batchPredictionJob_ = null; - } else { - batchPredictionJob_ = null; + batchPredictionJob_ = null; + if (batchPredictionJobBuilder_ != null) { + batchPredictionJobBuilder_.dispose(); batchPredictionJobBuilder_ = null; } return this; @@ -431,16 +434,27 @@ public com.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest build public com.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest result = new com.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest(this); - result.parent_ = parent_; - if (batchPredictionJobBuilder_ == null) { - result.batchPredictionJob_ = batchPredictionJob_; - } else { - result.batchPredictionJob_ = batchPredictionJobBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.batchPredictionJob_ = + batchPredictionJobBuilder_ == null + ? batchPredictionJob_ + : batchPredictionJobBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -492,6 +506,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasBatchPredictionJob()) { @@ -526,14 +541,14 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getBatchPredictionJobFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -553,6 +568,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -623,8 +640,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -643,8 +660,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -668,8 +685,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -694,7 +711,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the batchPredictionJob field is set. */ public boolean hasBatchPredictionJob() { - return batchPredictionJobBuilder_ != null || batchPredictionJob_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -736,11 +753,11 @@ public Builder setBatchPredictionJob( throw new NullPointerException(); } batchPredictionJob_ = value; - onChanged(); } else { batchPredictionJobBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -758,11 +775,11 @@ public Builder setBatchPredictionJob( com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.Builder builderForValue) { if (batchPredictionJobBuilder_ == null) { batchPredictionJob_ = builderForValue.build(); - onChanged(); } else { batchPredictionJobBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -779,19 +796,19 @@ public Builder setBatchPredictionJob( public Builder mergeBatchPredictionJob( com.google.cloud.aiplatform.v1beta1.BatchPredictionJob value) { if (batchPredictionJobBuilder_ == null) { - if (batchPredictionJob_ != null) { - batchPredictionJob_ = - com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.newBuilder(batchPredictionJob_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && batchPredictionJob_ != null + && batchPredictionJob_ + != com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.getDefaultInstance()) { + getBatchPredictionJobBuilder().mergeFrom(value); } else { batchPredictionJob_ = value; } - onChanged(); } else { batchPredictionJobBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -806,14 +823,13 @@ public Builder mergeBatchPredictionJob( * */ public Builder clearBatchPredictionJob() { - if (batchPredictionJobBuilder_ == null) { - batchPredictionJob_ = null; - onChanged(); - } else { - batchPredictionJob_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + batchPredictionJob_ = null; + if (batchPredictionJobBuilder_ != null) { + batchPredictionJobBuilder_.dispose(); batchPredictionJobBuilder_ = null; } - + onChanged(); return this; } /** @@ -829,7 +845,7 @@ public Builder clearBatchPredictionJob() { */ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.Builder getBatchPredictionJobBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getBatchPredictionJobFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateContextRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateContextRequest.java index 0ec87845934b..df8ff4e539f9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateContextRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateContextRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -177,11 +179,15 @@ public com.google.cloud.aiplatform.v1beta1.Context getContext() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getContextOrBuilder() { - return getContext(); + return context_ == null + ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance() + : context_; } public static final int CONTEXT_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object contextId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object contextId_ = ""; /** * * @@ -463,16 +469,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (contextBuilder_ == null) { - context_ = null; - } else { - context_ = null; + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); contextBuilder_ = null; } contextId_ = ""; - return this; } @@ -500,17 +504,26 @@ public com.google.cloud.aiplatform.v1beta1.CreateContextRequest build() { public com.google.cloud.aiplatform.v1beta1.CreateContextRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateContextRequest result = new com.google.cloud.aiplatform.v1beta1.CreateContextRequest(this); - result.parent_ = parent_; - if (contextBuilder_ == null) { - result.context_ = context_; - } else { - result.context_ = contextBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.contextId_ = contextId_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CreateContextRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.context_ = contextBuilder_ == null ? context_ : contextBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.contextId_ = contextId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -559,6 +572,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateContextReques return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasContext()) { @@ -566,6 +580,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateContextReques } if (!other.getContextId().isEmpty()) { contextId_ = other.contextId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -597,19 +612,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getContextFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { contextId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -629,6 +644,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -702,8 +719,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -723,8 +740,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -749,8 +766,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -775,7 +792,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the context field is set. */ public boolean hasContext() { - return contextBuilder_ != null || context_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -816,11 +833,11 @@ public Builder setContext(com.google.cloud.aiplatform.v1beta1.Context value) { throw new NullPointerException(); } context_ = value; - onChanged(); } else { contextBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -837,11 +854,11 @@ public Builder setContext(com.google.cloud.aiplatform.v1beta1.Context value) { public Builder setContext(com.google.cloud.aiplatform.v1beta1.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); - onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -857,19 +874,18 @@ public Builder setContext(com.google.cloud.aiplatform.v1beta1.Context.Builder bu */ public Builder mergeContext(com.google.cloud.aiplatform.v1beta1.Context value) { if (contextBuilder_ == null) { - if (context_ != null) { - context_ = - com.google.cloud.aiplatform.v1beta1.Context.newBuilder(context_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && context_ != null + && context_ != com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance()) { + getContextBuilder().mergeFrom(value); } else { context_ = value; } - onChanged(); } else { contextBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -884,14 +900,13 @@ public Builder mergeContext(com.google.cloud.aiplatform.v1beta1.Context value) { * */ public Builder clearContext() { - if (contextBuilder_ == null) { - context_ = null; - onChanged(); - } else { - context_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); contextBuilder_ = null; } - + onChanged(); return this; } /** @@ -906,7 +921,7 @@ public Builder clearContext() { * */ public com.google.cloud.aiplatform.v1beta1.Context.Builder getContextBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getContextFieldBuilder().getBuilder(); } @@ -1037,8 +1052,8 @@ public Builder setContextId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - contextId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1060,8 +1075,8 @@ public Builder setContextId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContextId() { - contextId_ = getDefaultInstance().getContextId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1088,8 +1103,8 @@ public Builder setContextIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - contextId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateCustomJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateCustomJobRequest.java index 0ce4b004398f..58e74000599d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateCustomJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateCustomJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -174,7 +176,9 @@ public com.google.cloud.aiplatform.v1beta1.CustomJob getCustomJob() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.CustomJobOrBuilder getCustomJobOrBuilder() { - return getCustomJob(); + return customJob_ == null + ? com.google.cloud.aiplatform.v1beta1.CustomJob.getDefaultInstance() + : customJob_; } private byte memoizedIsInitialized = -1; @@ -390,12 +394,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (customJobBuilder_ == null) { - customJob_ = null; - } else { - customJob_ = null; + customJob_ = null; + if (customJobBuilder_ != null) { + customJobBuilder_.dispose(); customJobBuilder_ = null; } return this; @@ -425,16 +428,23 @@ public com.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest build() { public com.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest result = new com.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest(this); - result.parent_ = parent_; - if (customJobBuilder_ == null) { - result.customJob_ = customJob_; - } else { - result.customJob_ = customJobBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customJob_ = customJobBuilder_ == null ? customJob_ : customJobBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -483,6 +493,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateCustomJobRequ return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasCustomJob()) { @@ -517,13 +528,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getCustomJobFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -543,6 +554,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -613,8 +626,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -633,8 +646,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -658,8 +671,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -684,7 +697,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the customJob field is set. */ public boolean hasCustomJob() { - return customJobBuilder_ != null || customJob_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -725,11 +738,11 @@ public Builder setCustomJob(com.google.cloud.aiplatform.v1beta1.CustomJob value) throw new NullPointerException(); } customJob_ = value; - onChanged(); } else { customJobBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -747,11 +760,11 @@ public Builder setCustomJob( com.google.cloud.aiplatform.v1beta1.CustomJob.Builder builderForValue) { if (customJobBuilder_ == null) { customJob_ = builderForValue.build(); - onChanged(); } else { customJobBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -767,19 +780,18 @@ public Builder setCustomJob( */ public Builder mergeCustomJob(com.google.cloud.aiplatform.v1beta1.CustomJob value) { if (customJobBuilder_ == null) { - if (customJob_ != null) { - customJob_ = - com.google.cloud.aiplatform.v1beta1.CustomJob.newBuilder(customJob_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && customJob_ != null + && customJob_ != com.google.cloud.aiplatform.v1beta1.CustomJob.getDefaultInstance()) { + getCustomJobBuilder().mergeFrom(value); } else { customJob_ = value; } - onChanged(); } else { customJobBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -794,14 +806,13 @@ public Builder mergeCustomJob(com.google.cloud.aiplatform.v1beta1.CustomJob valu * */ public Builder clearCustomJob() { - if (customJobBuilder_ == null) { - customJob_ = null; - onChanged(); - } else { - customJob_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + customJob_ = null; + if (customJobBuilder_ != null) { + customJobBuilder_.dispose(); customJobBuilder_ = null; } - + onChanged(); return this; } /** @@ -816,7 +827,7 @@ public Builder clearCustomJob() { * */ public com.google.cloud.aiplatform.v1beta1.CustomJob.Builder getCustomJobBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getCustomJobFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDataLabelingJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDataLabelingJobRequest.java index e831d2a63227..24acbe296d08 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDataLabelingJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDataLabelingJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -175,7 +177,9 @@ public com.google.cloud.aiplatform.v1beta1.DataLabelingJob getDataLabelingJob() @java.lang.Override public com.google.cloud.aiplatform.v1beta1.DataLabelingJobOrBuilder getDataLabelingJobOrBuilder() { - return getDataLabelingJob(); + return dataLabelingJob_ == null + ? com.google.cloud.aiplatform.v1beta1.DataLabelingJob.getDefaultInstance() + : dataLabelingJob_; } private byte memoizedIsInitialized = -1; @@ -391,12 +395,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (dataLabelingJobBuilder_ == null) { - dataLabelingJob_ = null; - } else { - dataLabelingJob_ = null; + dataLabelingJob_ = null; + if (dataLabelingJobBuilder_ != null) { + dataLabelingJobBuilder_.dispose(); dataLabelingJobBuilder_ = null; } return this; @@ -427,16 +430,25 @@ public com.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest build() public com.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest result = new com.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest(this); - result.parent_ = parent_; - if (dataLabelingJobBuilder_ == null) { - result.dataLabelingJob_ = dataLabelingJob_; - } else { - result.dataLabelingJob_ = dataLabelingJobBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataLabelingJob_ = + dataLabelingJobBuilder_ == null ? dataLabelingJob_ : dataLabelingJobBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -487,6 +499,7 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasDataLabelingJob()) { @@ -521,13 +534,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getDataLabelingJobFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -547,6 +560,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -617,8 +632,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -637,8 +652,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -662,8 +677,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -688,7 +703,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the dataLabelingJob field is set. */ public boolean hasDataLabelingJob() { - return dataLabelingJobBuilder_ != null || dataLabelingJob_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -729,11 +744,11 @@ public Builder setDataLabelingJob(com.google.cloud.aiplatform.v1beta1.DataLabeli throw new NullPointerException(); } dataLabelingJob_ = value; - onChanged(); } else { dataLabelingJobBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -751,11 +766,11 @@ public Builder setDataLabelingJob( com.google.cloud.aiplatform.v1beta1.DataLabelingJob.Builder builderForValue) { if (dataLabelingJobBuilder_ == null) { dataLabelingJob_ = builderForValue.build(); - onChanged(); } else { dataLabelingJobBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -771,19 +786,19 @@ public Builder setDataLabelingJob( */ public Builder mergeDataLabelingJob(com.google.cloud.aiplatform.v1beta1.DataLabelingJob value) { if (dataLabelingJobBuilder_ == null) { - if (dataLabelingJob_ != null) { - dataLabelingJob_ = - com.google.cloud.aiplatform.v1beta1.DataLabelingJob.newBuilder(dataLabelingJob_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && dataLabelingJob_ != null + && dataLabelingJob_ + != com.google.cloud.aiplatform.v1beta1.DataLabelingJob.getDefaultInstance()) { + getDataLabelingJobBuilder().mergeFrom(value); } else { dataLabelingJob_ = value; } - onChanged(); } else { dataLabelingJobBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -798,14 +813,13 @@ public Builder mergeDataLabelingJob(com.google.cloud.aiplatform.v1beta1.DataLabe * */ public Builder clearDataLabelingJob() { - if (dataLabelingJobBuilder_ == null) { - dataLabelingJob_ = null; - onChanged(); - } else { - dataLabelingJob_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + dataLabelingJob_ = null; + if (dataLabelingJobBuilder_ != null) { + dataLabelingJobBuilder_.dispose(); dataLabelingJobBuilder_ = null; } - + onChanged(); return this; } /** @@ -820,7 +834,7 @@ public Builder clearDataLabelingJob() { * */ public com.google.cloud.aiplatform.v1beta1.DataLabelingJob.Builder getDataLabelingJobBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getDataLabelingJobFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetOperationMetadata.java index 70ce31bb4800..329b0c058dc4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetOperationMetadata.java @@ -113,7 +113,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -322,10 +324,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -357,15 +359,22 @@ public com.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata build( public com.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -447,7 +456,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -467,6 +476,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -485,7 +496,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -523,11 +534,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -543,11 +554,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -562,20 +573,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -588,14 +599,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -609,7 +619,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetRequest.java index 8b7bd8e6bb76..109f5f939956 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -174,7 +176,9 @@ public com.google.cloud.aiplatform.v1beta1.Dataset getDataset() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { - return getDataset(); + return dataset_ == null + ? com.google.cloud.aiplatform.v1beta1.Dataset.getDefaultInstance() + : dataset_; } private byte memoizedIsInitialized = -1; @@ -390,12 +394,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (datasetBuilder_ == null) { - dataset_ = null; - } else { - dataset_ = null; + dataset_ = null; + if (datasetBuilder_ != null) { + datasetBuilder_.dispose(); datasetBuilder_ = null; } return this; @@ -425,16 +428,23 @@ public com.google.cloud.aiplatform.v1beta1.CreateDatasetRequest build() { public com.google.cloud.aiplatform.v1beta1.CreateDatasetRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateDatasetRequest result = new com.google.cloud.aiplatform.v1beta1.CreateDatasetRequest(this); - result.parent_ = parent_; - if (datasetBuilder_ == null) { - result.dataset_ = dataset_; - } else { - result.dataset_ = datasetBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CreateDatasetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataset_ = datasetBuilder_ == null ? dataset_ : datasetBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -483,6 +493,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateDatasetReques return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasDataset()) { @@ -517,13 +528,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getDatasetFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -543,6 +554,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -613,8 +626,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -633,8 +646,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -658,8 +671,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -684,7 +697,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the dataset field is set. */ public boolean hasDataset() { - return datasetBuilder_ != null || dataset_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -725,11 +738,11 @@ public Builder setDataset(com.google.cloud.aiplatform.v1beta1.Dataset value) { throw new NullPointerException(); } dataset_ = value; - onChanged(); } else { datasetBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -746,11 +759,11 @@ public Builder setDataset(com.google.cloud.aiplatform.v1beta1.Dataset value) { public Builder setDataset(com.google.cloud.aiplatform.v1beta1.Dataset.Builder builderForValue) { if (datasetBuilder_ == null) { dataset_ = builderForValue.build(); - onChanged(); } else { datasetBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -766,19 +779,18 @@ public Builder setDataset(com.google.cloud.aiplatform.v1beta1.Dataset.Builder bu */ public Builder mergeDataset(com.google.cloud.aiplatform.v1beta1.Dataset value) { if (datasetBuilder_ == null) { - if (dataset_ != null) { - dataset_ = - com.google.cloud.aiplatform.v1beta1.Dataset.newBuilder(dataset_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && dataset_ != null + && dataset_ != com.google.cloud.aiplatform.v1beta1.Dataset.getDefaultInstance()) { + getDatasetBuilder().mergeFrom(value); } else { dataset_ = value; } - onChanged(); } else { datasetBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -793,14 +805,13 @@ public Builder mergeDataset(com.google.cloud.aiplatform.v1beta1.Dataset value) { * */ public Builder clearDataset() { - if (datasetBuilder_ == null) { - dataset_ = null; - onChanged(); - } else { - dataset_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + dataset_ = null; + if (datasetBuilder_ != null) { + datasetBuilder_.dispose(); datasetBuilder_ = null; } - + onChanged(); return this; } /** @@ -815,7 +826,7 @@ public Builder clearDataset() { * */ public com.google.cloud.aiplatform.v1beta1.Dataset.Builder getDatasetBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getDatasetFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolOperationMetadata.java index 63c442542d52..8b4658a0a9b5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolOperationMetadata.java @@ -115,7 +115,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -333,10 +335,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -372,15 +374,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata( this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -465,7 +474,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -485,6 +494,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -503,7 +514,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -541,11 +552,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -561,11 +572,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -580,20 +591,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -606,14 +617,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -627,7 +637,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolRequest.java index a40834926710..1260a7bfed44 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -177,11 +179,15 @@ public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool getDeploymentR @java.lang.Override public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolOrBuilder getDeploymentResourcePoolOrBuilder() { - return getDeploymentResourcePool(); + return deploymentResourcePool_ == null + ? com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.getDefaultInstance() + : deploymentResourcePool_; } public static final int DEPLOYMENT_RESOURCE_POOL_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object deploymentResourcePoolId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentResourcePoolId_ = ""; /** * * @@ -463,16 +469,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (deploymentResourcePoolBuilder_ == null) { - deploymentResourcePool_ = null; - } else { - deploymentResourcePool_ = null; + deploymentResourcePool_ = null; + if (deploymentResourcePoolBuilder_ != null) { + deploymentResourcePoolBuilder_.dispose(); deploymentResourcePoolBuilder_ = null; } deploymentResourcePoolId_ = ""; - return this; } @@ -503,17 +507,30 @@ public com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest b public com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest result = new com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest(this); - result.parent_ = parent_; - if (deploymentResourcePoolBuilder_ == null) { - result.deploymentResourcePool_ = deploymentResourcePool_; - } else { - result.deploymentResourcePool_ = deploymentResourcePoolBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.deploymentResourcePoolId_ = deploymentResourcePoolId_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deploymentResourcePool_ = + deploymentResourcePoolBuilder_ == null + ? deploymentResourcePool_ + : deploymentResourcePoolBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.deploymentResourcePoolId_ = deploymentResourcePoolId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -566,6 +583,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasDeploymentResourcePool()) { @@ -573,6 +591,7 @@ public Builder mergeFrom( } if (!other.getDeploymentResourcePoolId().isEmpty()) { deploymentResourcePoolId_ = other.deploymentResourcePoolId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -604,20 +623,20 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getDeploymentResourcePoolFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { deploymentResourcePoolId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -637,6 +656,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -707,8 +728,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -727,8 +748,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -752,8 +773,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -778,7 +799,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the deploymentResourcePool field is set. */ public boolean hasDeploymentResourcePool() { - return deploymentResourcePoolBuilder_ != null || deploymentResourcePool_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -820,11 +841,11 @@ public Builder setDeploymentResourcePool( throw new NullPointerException(); } deploymentResourcePool_ = value; - onChanged(); } else { deploymentResourcePoolBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -842,11 +863,11 @@ public Builder setDeploymentResourcePool( com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.Builder builderForValue) { if (deploymentResourcePoolBuilder_ == null) { deploymentResourcePool_ = builderForValue.build(); - onChanged(); } else { deploymentResourcePoolBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -863,20 +884,20 @@ public Builder setDeploymentResourcePool( public Builder mergeDeploymentResourcePool( com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool value) { if (deploymentResourcePoolBuilder_ == null) { - if (deploymentResourcePool_ != null) { - deploymentResourcePool_ = - com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.newBuilder( - deploymentResourcePool_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && deploymentResourcePool_ != null + && deploymentResourcePool_ + != com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool + .getDefaultInstance()) { + getDeploymentResourcePoolBuilder().mergeFrom(value); } else { deploymentResourcePool_ = value; } - onChanged(); } else { deploymentResourcePoolBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -891,14 +912,13 @@ public Builder mergeDeploymentResourcePool( * */ public Builder clearDeploymentResourcePool() { - if (deploymentResourcePoolBuilder_ == null) { - deploymentResourcePool_ = null; - onChanged(); - } else { - deploymentResourcePool_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + deploymentResourcePool_ = null; + if (deploymentResourcePoolBuilder_ != null) { + deploymentResourcePoolBuilder_.dispose(); deploymentResourcePoolBuilder_ = null; } - + onChanged(); return this; } /** @@ -914,7 +934,7 @@ public Builder clearDeploymentResourcePool() { */ public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.Builder getDeploymentResourcePoolBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getDeploymentResourcePoolFieldBuilder().getBuilder(); } @@ -1043,8 +1063,8 @@ public Builder setDeploymentResourcePoolId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deploymentResourcePoolId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1065,8 +1085,8 @@ public Builder setDeploymentResourcePoolId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeploymentResourcePoolId() { - deploymentResourcePoolId_ = getDefaultInstance().getDeploymentResourcePoolId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1092,8 +1112,8 @@ public Builder setDeploymentResourcePoolIdBytes(com.google.protobuf.ByteString v throw new NullPointerException(); } checkByteStringIsUtf8(value); - deploymentResourcePoolId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEndpointOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEndpointOperationMetadata.java index 2712c5c97c1a..e8c0fd5f1136 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEndpointOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEndpointOperationMetadata.java @@ -113,7 +113,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -322,10 +324,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -357,15 +359,22 @@ public com.google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata build public com.google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -447,7 +456,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -467,6 +476,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -485,7 +496,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -523,11 +534,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -543,11 +554,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -562,20 +573,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -588,14 +599,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -609,7 +619,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEndpointRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEndpointRequest.java index 918e59ed296e..1d9df272d368 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEndpointRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEndpointRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -175,11 +177,15 @@ public com.google.cloud.aiplatform.v1beta1.Endpoint getEndpoint() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.EndpointOrBuilder getEndpointOrBuilder() { - return getEndpoint(); + return endpoint_ == null + ? com.google.cloud.aiplatform.v1beta1.Endpoint.getDefaultInstance() + : endpoint_; } public static final int ENDPOINT_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object endpointId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpointId_ = ""; /** * * @@ -461,16 +467,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (endpointBuilder_ == null) { - endpoint_ = null; - } else { - endpoint_ = null; + endpoint_ = null; + if (endpointBuilder_ != null) { + endpointBuilder_.dispose(); endpointBuilder_ = null; } endpointId_ = ""; - return this; } @@ -498,17 +502,26 @@ public com.google.cloud.aiplatform.v1beta1.CreateEndpointRequest build() { public com.google.cloud.aiplatform.v1beta1.CreateEndpointRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateEndpointRequest result = new com.google.cloud.aiplatform.v1beta1.CreateEndpointRequest(this); - result.parent_ = parent_; - if (endpointBuilder_ == null) { - result.endpoint_ = endpoint_; - } else { - result.endpoint_ = endpointBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.endpointId_ = endpointId_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CreateEndpointRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endpoint_ = endpointBuilder_ == null ? endpoint_ : endpointBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endpointId_ = endpointId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -557,6 +570,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateEndpointReque return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasEndpoint()) { @@ -564,6 +578,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateEndpointReque } if (!other.getEndpointId().isEmpty()) { endpointId_ = other.endpointId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -595,19 +610,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getEndpointFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 34: { endpointId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 34 default: @@ -627,6 +642,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -697,8 +714,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -717,8 +734,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -742,8 +759,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -768,7 +785,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the endpoint field is set. */ public boolean hasEndpoint() { - return endpointBuilder_ != null || endpoint_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -809,11 +826,11 @@ public Builder setEndpoint(com.google.cloud.aiplatform.v1beta1.Endpoint value) { throw new NullPointerException(); } endpoint_ = value; - onChanged(); } else { endpointBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -831,11 +848,11 @@ public Builder setEndpoint( com.google.cloud.aiplatform.v1beta1.Endpoint.Builder builderForValue) { if (endpointBuilder_ == null) { endpoint_ = builderForValue.build(); - onChanged(); } else { endpointBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -851,19 +868,18 @@ public Builder setEndpoint( */ public Builder mergeEndpoint(com.google.cloud.aiplatform.v1beta1.Endpoint value) { if (endpointBuilder_ == null) { - if (endpoint_ != null) { - endpoint_ = - com.google.cloud.aiplatform.v1beta1.Endpoint.newBuilder(endpoint_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && endpoint_ != null + && endpoint_ != com.google.cloud.aiplatform.v1beta1.Endpoint.getDefaultInstance()) { + getEndpointBuilder().mergeFrom(value); } else { endpoint_ = value; } - onChanged(); } else { endpointBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -878,14 +894,13 @@ public Builder mergeEndpoint(com.google.cloud.aiplatform.v1beta1.Endpoint value) * */ public Builder clearEndpoint() { - if (endpointBuilder_ == null) { - endpoint_ = null; - onChanged(); - } else { - endpoint_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + endpoint_ = null; + if (endpointBuilder_ != null) { + endpointBuilder_.dispose(); endpointBuilder_ = null; } - + onChanged(); return this; } /** @@ -900,7 +915,7 @@ public Builder clearEndpoint() { * */ public com.google.cloud.aiplatform.v1beta1.Endpoint.Builder getEndpointBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getEndpointFieldBuilder().getBuilder(); } @@ -1031,8 +1046,8 @@ public Builder setEndpointId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - endpointId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1054,8 +1069,8 @@ public Builder setEndpointId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEndpointId() { - endpointId_ = getDefaultInstance().getEndpointId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1082,8 +1097,8 @@ public Builder setEndpointIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - endpointId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeOperationMetadata.java index f193eddae2f6..2749ceb21c56 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeOperationMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -320,10 +322,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -355,15 +357,22 @@ public com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata bui public com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -445,7 +454,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -465,6 +474,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -483,7 +494,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -521,11 +532,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -541,11 +552,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -560,20 +571,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -586,14 +597,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -607,7 +617,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeRequest.java index b457385d2554..41941ac1d607 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateEntityTypeRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -171,11 +173,15 @@ public com.google.cloud.aiplatform.v1beta1.EntityType getEntityType() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder getEntityTypeOrBuilder() { - return getEntityType(); + return entityType_ == null + ? com.google.cloud.aiplatform.v1beta1.EntityType.getDefaultInstance() + : entityType_; } public static final int ENTITY_TYPE_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object entityTypeId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityTypeId_ = ""; /** * * @@ -453,16 +459,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (entityTypeBuilder_ == null) { - entityType_ = null; - } else { - entityType_ = null; + entityType_ = null; + if (entityTypeBuilder_ != null) { + entityTypeBuilder_.dispose(); entityTypeBuilder_ = null; } entityTypeId_ = ""; - return this; } @@ -490,17 +494,26 @@ public com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest build() { public com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest result = new com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest(this); - result.parent_ = parent_; - if (entityTypeBuilder_ == null) { - result.entityType_ = entityType_; - } else { - result.entityType_ = entityTypeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.entityTypeId_ = entityTypeId_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.entityType_ = entityTypeBuilder_ == null ? entityType_ : entityTypeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.entityTypeId_ = entityTypeId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -549,6 +562,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateEntityTypeReq return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasEntityType()) { @@ -556,6 +570,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateEntityTypeReq } if (!other.getEntityTypeId().isEmpty()) { entityTypeId_ = other.entityTypeId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -587,19 +602,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getEntityTypeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { entityTypeId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -619,6 +634,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -692,8 +709,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -713,8 +730,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -739,8 +756,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -763,7 +780,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the entityType field is set. */ public boolean hasEntityType() { - return entityTypeBuilder_ != null || entityType_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -800,11 +817,11 @@ public Builder setEntityType(com.google.cloud.aiplatform.v1beta1.EntityType valu throw new NullPointerException(); } entityType_ = value; - onChanged(); } else { entityTypeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -820,11 +837,11 @@ public Builder setEntityType( com.google.cloud.aiplatform.v1beta1.EntityType.Builder builderForValue) { if (entityTypeBuilder_ == null) { entityType_ = builderForValue.build(); - onChanged(); } else { entityTypeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -838,19 +855,18 @@ public Builder setEntityType( */ public Builder mergeEntityType(com.google.cloud.aiplatform.v1beta1.EntityType value) { if (entityTypeBuilder_ == null) { - if (entityType_ != null) { - entityType_ = - com.google.cloud.aiplatform.v1beta1.EntityType.newBuilder(entityType_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && entityType_ != null + && entityType_ != com.google.cloud.aiplatform.v1beta1.EntityType.getDefaultInstance()) { + getEntityTypeBuilder().mergeFrom(value); } else { entityType_ = value; } - onChanged(); } else { entityTypeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -863,14 +879,13 @@ public Builder mergeEntityType(com.google.cloud.aiplatform.v1beta1.EntityType va * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 2; */ public Builder clearEntityType() { - if (entityTypeBuilder_ == null) { - entityType_ = null; - onChanged(); - } else { - entityType_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + entityType_ = null; + if (entityTypeBuilder_ != null) { + entityTypeBuilder_.dispose(); entityTypeBuilder_ = null; } - + onChanged(); return this; } /** @@ -883,7 +898,7 @@ public Builder clearEntityType() { * .google.cloud.aiplatform.v1beta1.EntityType entity_type = 2; */ public com.google.cloud.aiplatform.v1beta1.EntityType.Builder getEntityTypeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getEntityTypeFieldBuilder().getBuilder(); } @@ -1004,8 +1019,8 @@ public Builder setEntityTypeId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityTypeId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1025,8 +1040,8 @@ public Builder setEntityTypeId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityTypeId() { - entityTypeId_ = getDefaultInstance().getEntityTypeId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1051,8 +1066,8 @@ public Builder setEntityTypeIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityTypeId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateExecutionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateExecutionRequest.java index 7559fea4deec..f1125f913a6f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateExecutionRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateExecutionRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -179,11 +181,15 @@ public com.google.cloud.aiplatform.v1beta1.Execution getExecution() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionOrBuilder() { - return getExecution(); + return execution_ == null + ? com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance() + : execution_; } public static final int EXECUTION_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object executionId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object executionId_ = ""; /** * * @@ -467,16 +473,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (executionBuilder_ == null) { - execution_ = null; - } else { - execution_ = null; + execution_ = null; + if (executionBuilder_ != null) { + executionBuilder_.dispose(); executionBuilder_ = null; } executionId_ = ""; - return this; } @@ -504,17 +508,26 @@ public com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest build() { public com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest result = new com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest(this); - result.parent_ = parent_; - if (executionBuilder_ == null) { - result.execution_ = execution_; - } else { - result.execution_ = executionBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.executionId_ = executionId_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CreateExecutionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.execution_ = executionBuilder_ == null ? execution_ : executionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.executionId_ = executionId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -563,6 +576,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateExecutionRequ return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasExecution()) { @@ -570,6 +584,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateExecutionRequ } if (!other.getExecutionId().isEmpty()) { executionId_ = other.executionId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -601,19 +616,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getExecutionFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { executionId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -633,6 +648,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -709,8 +726,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -731,8 +748,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -758,8 +775,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -784,7 +801,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the execution field is set. */ public boolean hasExecution() { - return executionBuilder_ != null || execution_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -825,11 +842,11 @@ public Builder setExecution(com.google.cloud.aiplatform.v1beta1.Execution value) throw new NullPointerException(); } execution_ = value; - onChanged(); } else { executionBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -847,11 +864,11 @@ public Builder setExecution( com.google.cloud.aiplatform.v1beta1.Execution.Builder builderForValue) { if (executionBuilder_ == null) { execution_ = builderForValue.build(); - onChanged(); } else { executionBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -867,19 +884,18 @@ public Builder setExecution( */ public Builder mergeExecution(com.google.cloud.aiplatform.v1beta1.Execution value) { if (executionBuilder_ == null) { - if (execution_ != null) { - execution_ = - com.google.cloud.aiplatform.v1beta1.Execution.newBuilder(execution_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && execution_ != null + && execution_ != com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance()) { + getExecutionBuilder().mergeFrom(value); } else { execution_ = value; } - onChanged(); } else { executionBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -894,14 +910,13 @@ public Builder mergeExecution(com.google.cloud.aiplatform.v1beta1.Execution valu * */ public Builder clearExecution() { - if (executionBuilder_ == null) { - execution_ = null; - onChanged(); - } else { - execution_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + execution_ = null; + if (executionBuilder_ != null) { + executionBuilder_.dispose(); executionBuilder_ = null; } - + onChanged(); return this; } /** @@ -916,7 +931,7 @@ public Builder clearExecution() { * */ public com.google.cloud.aiplatform.v1beta1.Execution.Builder getExecutionBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getExecutionFieldBuilder().getBuilder(); } @@ -1050,8 +1065,8 @@ public Builder setExecutionId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - executionId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1074,8 +1089,8 @@ public Builder setExecutionId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearExecutionId() { - executionId_ = getDefaultInstance().getExecutionId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1103,8 +1118,8 @@ public Builder setExecutionIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - executionId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureOperationMetadata.java index f7cd3ed7f88e..2e9f55b3bcab 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureOperationMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -320,10 +322,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -355,15 +357,22 @@ public com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata build( public com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -445,7 +454,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -465,6 +474,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -483,7 +494,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -521,11 +532,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -541,11 +552,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -560,20 +571,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -586,14 +597,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -607,7 +617,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureRequest.java index a9ae2620ae09..40adef666586 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -177,11 +179,15 @@ public com.google.cloud.aiplatform.v1beta1.Feature getFeature() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeatureOrBuilder() { - return getFeature(); + return feature_ == null + ? com.google.cloud.aiplatform.v1beta1.Feature.getDefaultInstance() + : feature_; } public static final int FEATURE_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object featureId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object featureId_ = ""; /** * * @@ -459,16 +465,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (featureBuilder_ == null) { - feature_ = null; - } else { - feature_ = null; + feature_ = null; + if (featureBuilder_ != null) { + featureBuilder_.dispose(); featureBuilder_ = null; } featureId_ = ""; - return this; } @@ -496,17 +500,26 @@ public com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest build() { public com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest result = new com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest(this); - result.parent_ = parent_; - if (featureBuilder_ == null) { - result.feature_ = feature_; - } else { - result.feature_ = featureBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.featureId_ = featureId_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CreateFeatureRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.feature_ = featureBuilder_ == null ? feature_ : featureBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.featureId_ = featureId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -555,6 +568,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateFeatureReques return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasFeature()) { @@ -562,6 +576,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateFeatureReques } if (!other.getFeatureId().isEmpty()) { featureId_ = other.featureId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -593,19 +608,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getFeatureFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { featureId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -625,6 +640,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -698,8 +715,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -719,8 +736,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -745,8 +762,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -771,7 +788,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the feature field is set. */ public boolean hasFeature() { - return featureBuilder_ != null || feature_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -812,11 +829,11 @@ public Builder setFeature(com.google.cloud.aiplatform.v1beta1.Feature value) { throw new NullPointerException(); } feature_ = value; - onChanged(); } else { featureBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -833,11 +850,11 @@ public Builder setFeature(com.google.cloud.aiplatform.v1beta1.Feature value) { public Builder setFeature(com.google.cloud.aiplatform.v1beta1.Feature.Builder builderForValue) { if (featureBuilder_ == null) { feature_ = builderForValue.build(); - onChanged(); } else { featureBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -853,19 +870,18 @@ public Builder setFeature(com.google.cloud.aiplatform.v1beta1.Feature.Builder bu */ public Builder mergeFeature(com.google.cloud.aiplatform.v1beta1.Feature value) { if (featureBuilder_ == null) { - if (feature_ != null) { - feature_ = - com.google.cloud.aiplatform.v1beta1.Feature.newBuilder(feature_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && feature_ != null + && feature_ != com.google.cloud.aiplatform.v1beta1.Feature.getDefaultInstance()) { + getFeatureBuilder().mergeFrom(value); } else { feature_ = value; } - onChanged(); } else { featureBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -880,14 +896,13 @@ public Builder mergeFeature(com.google.cloud.aiplatform.v1beta1.Feature value) { * */ public Builder clearFeature() { - if (featureBuilder_ == null) { - feature_ = null; - onChanged(); - } else { - feature_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + feature_ = null; + if (featureBuilder_ != null) { + featureBuilder_.dispose(); featureBuilder_ = null; } - + onChanged(); return this; } /** @@ -902,7 +917,7 @@ public Builder clearFeature() { * */ public com.google.cloud.aiplatform.v1beta1.Feature.Builder getFeatureBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getFeatureFieldBuilder().getBuilder(); } @@ -1027,8 +1042,8 @@ public Builder setFeatureId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - featureId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1048,8 +1063,8 @@ public Builder setFeatureId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFeatureId() { - featureId_ = getDefaultInstance().getFeatureId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1074,8 +1089,8 @@ public Builder setFeatureIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - featureId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreOperationMetadata.java index c57d7e7565c2..f20c2f0d4022 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreOperationMetadata.java @@ -113,7 +113,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -322,10 +324,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -358,15 +360,22 @@ public com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata b public com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -449,7 +458,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -469,6 +478,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -487,7 +498,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -525,11 +536,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -545,11 +556,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -564,20 +575,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -590,14 +601,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -611,7 +621,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreRequest.java index 073e0460afaa..009dca6519e2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeaturestoreRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -177,11 +179,15 @@ public com.google.cloud.aiplatform.v1beta1.Featurestore getFeaturestore() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder getFeaturestoreOrBuilder() { - return getFeaturestore(); + return featurestore_ == null + ? com.google.cloud.aiplatform.v1beta1.Featurestore.getDefaultInstance() + : featurestore_; } public static final int FEATURESTORE_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object featurestoreId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object featurestoreId_ = ""; /** * * @@ -459,16 +465,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (featurestoreBuilder_ == null) { - featurestore_ = null; - } else { - featurestore_ = null; + featurestore_ = null; + if (featurestoreBuilder_ != null) { + featurestoreBuilder_.dispose(); featurestoreBuilder_ = null; } featurestoreId_ = ""; - return this; } @@ -497,17 +501,28 @@ public com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest build() { public com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest result = new com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest(this); - result.parent_ = parent_; - if (featurestoreBuilder_ == null) { - result.featurestore_ = featurestore_; - } else { - result.featurestore_ = featurestoreBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.featurestoreId_ = featurestoreId_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.featurestore_ = + featurestoreBuilder_ == null ? featurestore_ : featurestoreBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.featurestoreId_ = featurestoreId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -557,6 +572,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreR return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasFeaturestore()) { @@ -564,6 +580,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreR } if (!other.getFeaturestoreId().isEmpty()) { featurestoreId_ = other.featurestoreId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -595,19 +612,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getFeaturestoreFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { featurestoreId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -627,6 +644,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -700,8 +719,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -721,8 +740,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -747,8 +766,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -773,7 +792,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the featurestore field is set. */ public boolean hasFeaturestore() { - return featurestoreBuilder_ != null || featurestore_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -814,11 +833,11 @@ public Builder setFeaturestore(com.google.cloud.aiplatform.v1beta1.Featurestore throw new NullPointerException(); } featurestore_ = value; - onChanged(); } else { featurestoreBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -836,11 +855,11 @@ public Builder setFeaturestore( com.google.cloud.aiplatform.v1beta1.Featurestore.Builder builderForValue) { if (featurestoreBuilder_ == null) { featurestore_ = builderForValue.build(); - onChanged(); } else { featurestoreBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -856,19 +875,19 @@ public Builder setFeaturestore( */ public Builder mergeFeaturestore(com.google.cloud.aiplatform.v1beta1.Featurestore value) { if (featurestoreBuilder_ == null) { - if (featurestore_ != null) { - featurestore_ = - com.google.cloud.aiplatform.v1beta1.Featurestore.newBuilder(featurestore_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && featurestore_ != null + && featurestore_ + != com.google.cloud.aiplatform.v1beta1.Featurestore.getDefaultInstance()) { + getFeaturestoreBuilder().mergeFrom(value); } else { featurestore_ = value; } - onChanged(); } else { featurestoreBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -883,14 +902,13 @@ public Builder mergeFeaturestore(com.google.cloud.aiplatform.v1beta1.Featurestor * */ public Builder clearFeaturestore() { - if (featurestoreBuilder_ == null) { - featurestore_ = null; - onChanged(); - } else { - featurestore_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + featurestore_ = null; + if (featurestoreBuilder_ != null) { + featurestoreBuilder_.dispose(); featurestoreBuilder_ = null; } - + onChanged(); return this; } /** @@ -905,7 +923,7 @@ public Builder clearFeaturestore() { * */ public com.google.cloud.aiplatform.v1beta1.Featurestore.Builder getFeaturestoreBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getFeaturestoreFieldBuilder().getBuilder(); } @@ -1030,8 +1048,8 @@ public Builder setFeaturestoreId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - featurestoreId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1051,8 +1069,8 @@ public Builder setFeaturestoreId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFeaturestoreId() { - featurestoreId_ = getDefaultInstance().getFeaturestoreId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1077,8 +1095,8 @@ public Builder setFeaturestoreIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - featurestoreId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateHyperparameterTuningJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateHyperparameterTuningJobRequest.java index 72655820279e..3da034a538c2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateHyperparameterTuningJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateHyperparameterTuningJobRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -179,7 +181,9 @@ public com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob getHyperparam @java.lang.Override public com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJobOrBuilder getHyperparameterTuningJobOrBuilder() { - return getHyperparameterTuningJob(); + return hyperparameterTuningJob_ == null + ? com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.getDefaultInstance() + : hyperparameterTuningJob_; } private byte memoizedIsInitialized = -1; @@ -400,12 +404,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (hyperparameterTuningJobBuilder_ == null) { - hyperparameterTuningJob_ = null; - } else { - hyperparameterTuningJob_ = null; + hyperparameterTuningJob_ = null; + if (hyperparameterTuningJobBuilder_ != null) { + hyperparameterTuningJobBuilder_.dispose(); hyperparameterTuningJobBuilder_ = null; } return this; @@ -438,16 +441,27 @@ public com.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest public com.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest result = new com.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest(this); - result.parent_ = parent_; - if (hyperparameterTuningJobBuilder_ == null) { - result.hyperparameterTuningJob_ = hyperparameterTuningJob_; - } else { - result.hyperparameterTuningJob_ = hyperparameterTuningJobBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.hyperparameterTuningJob_ = + hyperparameterTuningJobBuilder_ == null + ? hyperparameterTuningJob_ + : hyperparameterTuningJobBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -500,6 +514,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasHyperparameterTuningJob()) { @@ -534,14 +549,14 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getHyperparameterTuningJobFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -561,6 +576,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -634,8 +651,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -655,8 +672,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -681,8 +698,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -707,7 +724,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the hyperparameterTuningJob field is set. */ public boolean hasHyperparameterTuningJob() { - return hyperparameterTuningJobBuilder_ != null || hyperparameterTuningJob_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -750,11 +767,11 @@ public Builder setHyperparameterTuningJob( throw new NullPointerException(); } hyperparameterTuningJob_ = value; - onChanged(); } else { hyperparameterTuningJobBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -772,11 +789,11 @@ public Builder setHyperparameterTuningJob( com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.Builder builderForValue) { if (hyperparameterTuningJobBuilder_ == null) { hyperparameterTuningJob_ = builderForValue.build(); - onChanged(); } else { hyperparameterTuningJobBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -793,20 +810,20 @@ public Builder setHyperparameterTuningJob( public Builder mergeHyperparameterTuningJob( com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob value) { if (hyperparameterTuningJobBuilder_ == null) { - if (hyperparameterTuningJob_ != null) { - hyperparameterTuningJob_ = - com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.newBuilder( - hyperparameterTuningJob_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && hyperparameterTuningJob_ != null + && hyperparameterTuningJob_ + != com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + .getDefaultInstance()) { + getHyperparameterTuningJobBuilder().mergeFrom(value); } else { hyperparameterTuningJob_ = value; } - onChanged(); } else { hyperparameterTuningJobBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -821,14 +838,13 @@ public Builder mergeHyperparameterTuningJob( * */ public Builder clearHyperparameterTuningJob() { - if (hyperparameterTuningJobBuilder_ == null) { - hyperparameterTuningJob_ = null; - onChanged(); - } else { - hyperparameterTuningJob_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + hyperparameterTuningJob_ = null; + if (hyperparameterTuningJobBuilder_ != null) { + hyperparameterTuningJobBuilder_.dispose(); hyperparameterTuningJobBuilder_ = null; } - + onChanged(); return this; } /** @@ -844,7 +860,7 @@ public Builder clearHyperparameterTuningJob() { */ public com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.Builder getHyperparameterTuningJobBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getHyperparameterTuningJobFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointOperationMetadata.java index f2e0095cf72f..a1a62fab5f2a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointOperationMetadata.java @@ -114,7 +114,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -325,10 +327,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -361,15 +363,22 @@ public com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata public com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -452,7 +461,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -472,6 +481,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -490,7 +501,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -528,11 +539,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -548,11 +559,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -567,20 +578,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -593,14 +604,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -614,7 +624,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointRequest.java index 2981aaeda5ae..fbdb02eaa780 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexEndpointRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -174,7 +176,9 @@ public com.google.cloud.aiplatform.v1beta1.IndexEndpoint getIndexEndpoint() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder getIndexEndpointOrBuilder() { - return getIndexEndpoint(); + return indexEndpoint_ == null + ? com.google.cloud.aiplatform.v1beta1.IndexEndpoint.getDefaultInstance() + : indexEndpoint_; } private byte memoizedIsInitialized = -1; @@ -390,12 +394,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (indexEndpointBuilder_ == null) { - indexEndpoint_ = null; - } else { - indexEndpoint_ = null; + indexEndpoint_ = null; + if (indexEndpointBuilder_ != null) { + indexEndpointBuilder_.dispose(); indexEndpointBuilder_ = null; } return this; @@ -426,16 +429,25 @@ public com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest build() { public com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest result = new com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest(this); - result.parent_ = parent_; - if (indexEndpointBuilder_ == null) { - result.indexEndpoint_ = indexEndpoint_; - } else { - result.indexEndpoint_ = indexEndpointBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.indexEndpoint_ = + indexEndpointBuilder_ == null ? indexEndpoint_ : indexEndpointBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -485,6 +497,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateIndexEndpoint return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasIndexEndpoint()) { @@ -519,13 +532,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getIndexEndpointFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -545,6 +558,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -615,8 +630,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -635,8 +650,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -660,8 +675,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -686,7 +701,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the indexEndpoint field is set. */ public boolean hasIndexEndpoint() { - return indexEndpointBuilder_ != null || indexEndpoint_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -727,11 +742,11 @@ public Builder setIndexEndpoint(com.google.cloud.aiplatform.v1beta1.IndexEndpoin throw new NullPointerException(); } indexEndpoint_ = value; - onChanged(); } else { indexEndpointBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -749,11 +764,11 @@ public Builder setIndexEndpoint( com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder builderForValue) { if (indexEndpointBuilder_ == null) { indexEndpoint_ = builderForValue.build(); - onChanged(); } else { indexEndpointBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -769,19 +784,19 @@ public Builder setIndexEndpoint( */ public Builder mergeIndexEndpoint(com.google.cloud.aiplatform.v1beta1.IndexEndpoint value) { if (indexEndpointBuilder_ == null) { - if (indexEndpoint_ != null) { - indexEndpoint_ = - com.google.cloud.aiplatform.v1beta1.IndexEndpoint.newBuilder(indexEndpoint_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && indexEndpoint_ != null + && indexEndpoint_ + != com.google.cloud.aiplatform.v1beta1.IndexEndpoint.getDefaultInstance()) { + getIndexEndpointBuilder().mergeFrom(value); } else { indexEndpoint_ = value; } - onChanged(); } else { indexEndpointBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -796,14 +811,13 @@ public Builder mergeIndexEndpoint(com.google.cloud.aiplatform.v1beta1.IndexEndpo * */ public Builder clearIndexEndpoint() { - if (indexEndpointBuilder_ == null) { - indexEndpoint_ = null; - onChanged(); - } else { - indexEndpoint_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + indexEndpoint_ = null; + if (indexEndpointBuilder_ != null) { + indexEndpointBuilder_.dispose(); indexEndpointBuilder_ = null; } - + onChanged(); return this; } /** @@ -818,7 +832,7 @@ public Builder clearIndexEndpoint() { * */ public com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder getIndexEndpointBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getIndexEndpointFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexOperationMetadata.java index 70a29660066b..639e2dfef79b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexOperationMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } public static final int NEAREST_NEIGHBOR_SEARCH_OPERATION_METADATA_FIELD_NUMBER = 2; @@ -170,7 +172,10 @@ public boolean hasNearestNeighborSearchOperationMetadata() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadataOrBuilder getNearestNeighborSearchOperationMetadataOrBuilder() { - return getNearestNeighborSearchOperationMetadata(); + return nearestNeighborSearchOperationMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .getDefaultInstance() + : nearestNeighborSearchOperationMetadata_; } private byte memoizedIsInitialized = -1; @@ -395,16 +400,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - if (nearestNeighborSearchOperationMetadataBuilder_ == null) { - nearestNeighborSearchOperationMetadata_ = null; - } else { - nearestNeighborSearchOperationMetadata_ = null; + nearestNeighborSearchOperationMetadata_ = null; + if (nearestNeighborSearchOperationMetadataBuilder_ != null) { + nearestNeighborSearchOperationMetadataBuilder_.dispose(); nearestNeighborSearchOperationMetadataBuilder_ = null; } return this; @@ -435,21 +439,28 @@ public com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata build() public com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); - } - if (nearestNeighborSearchOperationMetadataBuilder_ == null) { - result.nearestNeighborSearchOperationMetadata_ = nearestNeighborSearchOperationMetadata_; - } else { - result.nearestNeighborSearchOperationMetadata_ = - nearestNeighborSearchOperationMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nearestNeighborSearchOperationMetadata_ = + nearestNeighborSearchOperationMetadataBuilder_ == null + ? nearestNeighborSearchOperationMetadata_ + : nearestNeighborSearchOperationMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -534,7 +545,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -542,7 +553,7 @@ public Builder mergeFrom( input.readMessage( getNearestNeighborSearchOperationMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -562,6 +573,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -580,7 +593,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -618,11 +631,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -638,11 +651,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -657,20 +670,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -683,14 +696,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -704,7 +716,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } @@ -774,8 +786,7 @@ public Builder clearGenericMetadata() { * @return Whether the nearestNeighborSearchOperationMetadata field is set. */ public boolean hasNearestNeighborSearchOperationMetadata() { - return nearestNeighborSearchOperationMetadataBuilder_ != null - || nearestNeighborSearchOperationMetadata_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -819,11 +830,11 @@ public Builder setNearestNeighborSearchOperationMetadata( throw new NullPointerException(); } nearestNeighborSearchOperationMetadata_ = value; - onChanged(); } else { nearestNeighborSearchOperationMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -842,11 +853,11 @@ public Builder setNearestNeighborSearchOperationMetadata( builderForValue) { if (nearestNeighborSearchOperationMetadataBuilder_ == null) { nearestNeighborSearchOperationMetadata_ = builderForValue.build(); - onChanged(); } else { nearestNeighborSearchOperationMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -863,20 +874,20 @@ public Builder setNearestNeighborSearchOperationMetadata( public Builder mergeNearestNeighborSearchOperationMetadata( com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata value) { if (nearestNeighborSearchOperationMetadataBuilder_ == null) { - if (nearestNeighborSearchOperationMetadata_ != null) { - nearestNeighborSearchOperationMetadata_ = - com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.newBuilder( - nearestNeighborSearchOperationMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && nearestNeighborSearchOperationMetadata_ != null + && nearestNeighborSearchOperationMetadata_ + != com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .getDefaultInstance()) { + getNearestNeighborSearchOperationMetadataBuilder().mergeFrom(value); } else { nearestNeighborSearchOperationMetadata_ = value; } - onChanged(); } else { nearestNeighborSearchOperationMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -891,14 +902,13 @@ public Builder mergeNearestNeighborSearchOperationMetadata( * */ public Builder clearNearestNeighborSearchOperationMetadata() { - if (nearestNeighborSearchOperationMetadataBuilder_ == null) { - nearestNeighborSearchOperationMetadata_ = null; - onChanged(); - } else { - nearestNeighborSearchOperationMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + nearestNeighborSearchOperationMetadata_ = null; + if (nearestNeighborSearchOperationMetadataBuilder_ != null) { + nearestNeighborSearchOperationMetadataBuilder_.dispose(); nearestNeighborSearchOperationMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -914,7 +924,7 @@ public Builder clearNearestNeighborSearchOperationMetadata() { */ public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.Builder getNearestNeighborSearchOperationMetadataBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getNearestNeighborSearchOperationMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexRequest.java index ba350e6fc3ff..6863ec1fbe38 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateIndexRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -172,7 +174,7 @@ public com.google.cloud.aiplatform.v1beta1.Index getIndex() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.IndexOrBuilder getIndexOrBuilder() { - return getIndex(); + return index_ == null ? com.google.cloud.aiplatform.v1beta1.Index.getDefaultInstance() : index_; } private byte memoizedIsInitialized = -1; @@ -388,12 +390,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (indexBuilder_ == null) { - index_ = null; - } else { - index_ = null; + index_ = null; + if (indexBuilder_ != null) { + indexBuilder_.dispose(); indexBuilder_ = null; } return this; @@ -423,16 +424,23 @@ public com.google.cloud.aiplatform.v1beta1.CreateIndexRequest build() { public com.google.cloud.aiplatform.v1beta1.CreateIndexRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateIndexRequest result = new com.google.cloud.aiplatform.v1beta1.CreateIndexRequest(this); - result.parent_ = parent_; - if (indexBuilder_ == null) { - result.index_ = index_; - } else { - result.index_ = indexBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CreateIndexRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.index_ = indexBuilder_ == null ? index_ : indexBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -481,6 +489,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateIndexRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasIndex()) { @@ -515,13 +524,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getIndexFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -541,6 +550,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -611,8 +622,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -631,8 +642,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -656,8 +667,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -682,7 +693,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the index field is set. */ public boolean hasIndex() { - return indexBuilder_ != null || index_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -723,11 +734,11 @@ public Builder setIndex(com.google.cloud.aiplatform.v1beta1.Index value) { throw new NullPointerException(); } index_ = value; - onChanged(); } else { indexBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -744,11 +755,11 @@ public Builder setIndex(com.google.cloud.aiplatform.v1beta1.Index value) { public Builder setIndex(com.google.cloud.aiplatform.v1beta1.Index.Builder builderForValue) { if (indexBuilder_ == null) { index_ = builderForValue.build(); - onChanged(); } else { indexBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -764,19 +775,18 @@ public Builder setIndex(com.google.cloud.aiplatform.v1beta1.Index.Builder builde */ public Builder mergeIndex(com.google.cloud.aiplatform.v1beta1.Index value) { if (indexBuilder_ == null) { - if (index_ != null) { - index_ = - com.google.cloud.aiplatform.v1beta1.Index.newBuilder(index_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && index_ != null + && index_ != com.google.cloud.aiplatform.v1beta1.Index.getDefaultInstance()) { + getIndexBuilder().mergeFrom(value); } else { index_ = value; } - onChanged(); } else { indexBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -791,14 +801,13 @@ public Builder mergeIndex(com.google.cloud.aiplatform.v1beta1.Index value) { * */ public Builder clearIndex() { - if (indexBuilder_ == null) { - index_ = null; - onChanged(); - } else { - index_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + index_ = null; + if (indexBuilder_ != null) { + indexBuilder_.dispose(); indexBuilder_ = null; } - + onChanged(); return this; } /** @@ -813,7 +822,7 @@ public Builder clearIndex() { * */ public com.google.cloud.aiplatform.v1beta1.Index.Builder getIndexBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getIndexFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataSchemaRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataSchemaRequest.java index f471335b5ed4..359f192f14f4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataSchemaRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataSchemaRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -177,11 +179,15 @@ public com.google.cloud.aiplatform.v1beta1.MetadataSchema getMetadataSchema() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.MetadataSchemaOrBuilder getMetadataSchemaOrBuilder() { - return getMetadataSchema(); + return metadataSchema_ == null + ? com.google.cloud.aiplatform.v1beta1.MetadataSchema.getDefaultInstance() + : metadataSchema_; } public static final int METADATA_SCHEMA_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object metadataSchemaId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metadataSchemaId_ = ""; /** * * @@ -465,16 +471,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (metadataSchemaBuilder_ == null) { - metadataSchema_ = null; - } else { - metadataSchema_ = null; + metadataSchema_ = null; + if (metadataSchemaBuilder_ != null) { + metadataSchemaBuilder_.dispose(); metadataSchemaBuilder_ = null; } metadataSchemaId_ = ""; - return this; } @@ -503,17 +507,28 @@ public com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest build() { public com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest result = new com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest(this); - result.parent_ = parent_; - if (metadataSchemaBuilder_ == null) { - result.metadataSchema_ = metadataSchema_; - } else { - result.metadataSchema_ = metadataSchemaBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.metadataSchemaId_ = metadataSchemaId_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metadataSchema_ = + metadataSchemaBuilder_ == null ? metadataSchema_ : metadataSchemaBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadataSchemaId_ = metadataSchemaId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -564,6 +579,7 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasMetadataSchema()) { @@ -571,6 +587,7 @@ public Builder mergeFrom( } if (!other.getMetadataSchemaId().isEmpty()) { metadataSchemaId_ = other.metadataSchemaId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -602,19 +619,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMetadataSchemaFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { metadataSchemaId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -634,6 +651,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -707,8 +726,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -728,8 +747,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -754,8 +773,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -780,7 +799,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the metadataSchema field is set. */ public boolean hasMetadataSchema() { - return metadataSchemaBuilder_ != null || metadataSchema_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -821,11 +840,11 @@ public Builder setMetadataSchema(com.google.cloud.aiplatform.v1beta1.MetadataSch throw new NullPointerException(); } metadataSchema_ = value; - onChanged(); } else { metadataSchemaBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -843,11 +862,11 @@ public Builder setMetadataSchema( com.google.cloud.aiplatform.v1beta1.MetadataSchema.Builder builderForValue) { if (metadataSchemaBuilder_ == null) { metadataSchema_ = builderForValue.build(); - onChanged(); } else { metadataSchemaBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -863,19 +882,19 @@ public Builder setMetadataSchema( */ public Builder mergeMetadataSchema(com.google.cloud.aiplatform.v1beta1.MetadataSchema value) { if (metadataSchemaBuilder_ == null) { - if (metadataSchema_ != null) { - metadataSchema_ = - com.google.cloud.aiplatform.v1beta1.MetadataSchema.newBuilder(metadataSchema_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && metadataSchema_ != null + && metadataSchema_ + != com.google.cloud.aiplatform.v1beta1.MetadataSchema.getDefaultInstance()) { + getMetadataSchemaBuilder().mergeFrom(value); } else { metadataSchema_ = value; } - onChanged(); } else { metadataSchemaBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -890,14 +909,13 @@ public Builder mergeMetadataSchema(com.google.cloud.aiplatform.v1beta1.MetadataS * */ public Builder clearMetadataSchema() { - if (metadataSchemaBuilder_ == null) { - metadataSchema_ = null; - onChanged(); - } else { - metadataSchema_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + metadataSchema_ = null; + if (metadataSchemaBuilder_ != null) { + metadataSchemaBuilder_.dispose(); metadataSchemaBuilder_ = null; } - + onChanged(); return this; } /** @@ -912,7 +930,7 @@ public Builder clearMetadataSchema() { * */ public com.google.cloud.aiplatform.v1beta1.MetadataSchema.Builder getMetadataSchemaBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMetadataSchemaFieldBuilder().getBuilder(); } @@ -1047,8 +1065,8 @@ public Builder setMetadataSchemaId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metadataSchemaId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1071,8 +1089,8 @@ public Builder setMetadataSchemaId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetadataSchemaId() { - metadataSchemaId_ = getDefaultInstance().getMetadataSchemaId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1100,8 +1118,8 @@ public Builder setMetadataSchemaIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metadataSchemaId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreOperationMetadata.java index a384514d3e19..03605796585d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreOperationMetadata.java @@ -114,7 +114,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -325,10 +327,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -361,15 +363,22 @@ public com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata public com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -452,7 +461,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -472,6 +481,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -490,7 +501,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -528,11 +539,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -548,11 +559,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -567,20 +578,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -593,14 +604,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -614,7 +624,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreRequest.java index 86679ef77952..74facdcd9572 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateMetadataStoreRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -177,11 +179,15 @@ public com.google.cloud.aiplatform.v1beta1.MetadataStore getMetadataStore() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.MetadataStoreOrBuilder getMetadataStoreOrBuilder() { - return getMetadataStore(); + return metadataStore_ == null + ? com.google.cloud.aiplatform.v1beta1.MetadataStore.getDefaultInstance() + : metadataStore_; } public static final int METADATA_STORE_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object metadataStoreId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metadataStoreId_ = ""; /** * * @@ -465,16 +471,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (metadataStoreBuilder_ == null) { - metadataStore_ = null; - } else { - metadataStore_ = null; + metadataStore_ = null; + if (metadataStoreBuilder_ != null) { + metadataStoreBuilder_.dispose(); metadataStoreBuilder_ = null; } metadataStoreId_ = ""; - return this; } @@ -503,17 +507,28 @@ public com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest build() { public com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest result = new com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest(this); - result.parent_ = parent_; - if (metadataStoreBuilder_ == null) { - result.metadataStore_ = metadataStore_; - } else { - result.metadataStore_ = metadataStoreBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.metadataStoreId_ = metadataStoreId_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metadataStore_ = + metadataStoreBuilder_ == null ? metadataStore_ : metadataStoreBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadataStoreId_ = metadataStoreId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -563,6 +578,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateMetadataStore return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasMetadataStore()) { @@ -570,6 +586,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateMetadataStore } if (!other.getMetadataStoreId().isEmpty()) { metadataStoreId_ = other.metadataStoreId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -601,19 +618,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMetadataStoreFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { metadataStoreId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -633,6 +650,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -706,8 +725,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -727,8 +746,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -753,8 +772,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -779,7 +798,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the metadataStore field is set. */ public boolean hasMetadataStore() { - return metadataStoreBuilder_ != null || metadataStore_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -820,11 +839,11 @@ public Builder setMetadataStore(com.google.cloud.aiplatform.v1beta1.MetadataStor throw new NullPointerException(); } metadataStore_ = value; - onChanged(); } else { metadataStoreBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -842,11 +861,11 @@ public Builder setMetadataStore( com.google.cloud.aiplatform.v1beta1.MetadataStore.Builder builderForValue) { if (metadataStoreBuilder_ == null) { metadataStore_ = builderForValue.build(); - onChanged(); } else { metadataStoreBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -862,19 +881,19 @@ public Builder setMetadataStore( */ public Builder mergeMetadataStore(com.google.cloud.aiplatform.v1beta1.MetadataStore value) { if (metadataStoreBuilder_ == null) { - if (metadataStore_ != null) { - metadataStore_ = - com.google.cloud.aiplatform.v1beta1.MetadataStore.newBuilder(metadataStore_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && metadataStore_ != null + && metadataStore_ + != com.google.cloud.aiplatform.v1beta1.MetadataStore.getDefaultInstance()) { + getMetadataStoreBuilder().mergeFrom(value); } else { metadataStore_ = value; } - onChanged(); } else { metadataStoreBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -889,14 +908,13 @@ public Builder mergeMetadataStore(com.google.cloud.aiplatform.v1beta1.MetadataSt * */ public Builder clearMetadataStore() { - if (metadataStoreBuilder_ == null) { - metadataStore_ = null; - onChanged(); - } else { - metadataStore_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + metadataStore_ = null; + if (metadataStoreBuilder_ != null) { + metadataStoreBuilder_.dispose(); metadataStoreBuilder_ = null; } - + onChanged(); return this; } /** @@ -911,7 +929,7 @@ public Builder clearMetadataStore() { * */ public com.google.cloud.aiplatform.v1beta1.MetadataStore.Builder getMetadataStoreBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMetadataStoreFieldBuilder().getBuilder(); } @@ -1045,8 +1063,8 @@ public Builder setMetadataStoreId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metadataStoreId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1069,8 +1087,8 @@ public Builder setMetadataStoreId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetadataStoreId() { - metadataStoreId_ = getDefaultInstance().getMetadataStoreId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1098,8 +1116,8 @@ public Builder setMetadataStoreIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metadataStoreId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateModelDeploymentMonitoringJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateModelDeploymentMonitoringJobRequest.java index 15189639984f..2173a0a24687 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateModelDeploymentMonitoringJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateModelDeploymentMonitoringJobRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -180,7 +182,9 @@ public boolean hasModelDeploymentMonitoringJob() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder getModelDeploymentMonitoringJobOrBuilder() { - return getModelDeploymentMonitoringJob(); + return modelDeploymentMonitoringJob_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.getDefaultInstance() + : modelDeploymentMonitoringJob_; } private byte memoizedIsInitialized = -1; @@ -408,12 +412,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (modelDeploymentMonitoringJobBuilder_ == null) { - modelDeploymentMonitoringJob_ = null; - } else { - modelDeploymentMonitoringJob_ = null; + modelDeploymentMonitoringJob_ = null; + if (modelDeploymentMonitoringJobBuilder_ != null) { + modelDeploymentMonitoringJobBuilder_.dispose(); modelDeploymentMonitoringJobBuilder_ = null; } return this; @@ -447,16 +450,27 @@ public com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobReq buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest result = new com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest(this); - result.parent_ = parent_; - if (modelDeploymentMonitoringJobBuilder_ == null) { - result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_; - } else { - result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJobBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelDeploymentMonitoringJob_ = + modelDeploymentMonitoringJobBuilder_ == null + ? modelDeploymentMonitoringJob_ + : modelDeploymentMonitoringJobBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -510,6 +524,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasModelDeploymentMonitoringJob()) { @@ -544,14 +559,14 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getModelDeploymentMonitoringJobFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -571,6 +586,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -641,8 +658,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -661,8 +678,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -686,8 +703,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -713,7 +730,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the modelDeploymentMonitoringJob field is set. */ public boolean hasModelDeploymentMonitoringJob() { - return modelDeploymentMonitoringJobBuilder_ != null || modelDeploymentMonitoringJob_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -756,11 +773,11 @@ public Builder setModelDeploymentMonitoringJob( throw new NullPointerException(); } modelDeploymentMonitoringJob_ = value; - onChanged(); } else { modelDeploymentMonitoringJobBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -778,11 +795,11 @@ public Builder setModelDeploymentMonitoringJob( com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder builderForValue) { if (modelDeploymentMonitoringJobBuilder_ == null) { modelDeploymentMonitoringJob_ = builderForValue.build(); - onChanged(); } else { modelDeploymentMonitoringJobBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -799,20 +816,20 @@ public Builder setModelDeploymentMonitoringJob( public Builder mergeModelDeploymentMonitoringJob( com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob value) { if (modelDeploymentMonitoringJobBuilder_ == null) { - if (modelDeploymentMonitoringJob_ != null) { - modelDeploymentMonitoringJob_ = - com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.newBuilder( - modelDeploymentMonitoringJob_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && modelDeploymentMonitoringJob_ != null + && modelDeploymentMonitoringJob_ + != com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .getDefaultInstance()) { + getModelDeploymentMonitoringJobBuilder().mergeFrom(value); } else { modelDeploymentMonitoringJob_ = value; } - onChanged(); } else { modelDeploymentMonitoringJobBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -827,14 +844,13 @@ public Builder mergeModelDeploymentMonitoringJob( * */ public Builder clearModelDeploymentMonitoringJob() { - if (modelDeploymentMonitoringJobBuilder_ == null) { - modelDeploymentMonitoringJob_ = null; - onChanged(); - } else { - modelDeploymentMonitoringJob_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + modelDeploymentMonitoringJob_ = null; + if (modelDeploymentMonitoringJobBuilder_ != null) { + modelDeploymentMonitoringJobBuilder_.dispose(); modelDeploymentMonitoringJobBuilder_ = null; } - + onChanged(); return this; } /** @@ -850,7 +866,7 @@ public Builder clearModelDeploymentMonitoringJob() { */ public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder getModelDeploymentMonitoringJobBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getModelDeploymentMonitoringJobFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequest.java index a33ac4e8f2dd..9acdad0cb52b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -175,11 +177,15 @@ public com.google.cloud.aiplatform.v1beta1.PipelineJob getPipelineJob() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.PipelineJobOrBuilder getPipelineJobOrBuilder() { - return getPipelineJob(); + return pipelineJob_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineJob.getDefaultInstance() + : pipelineJob_; } public static final int PIPELINE_JOB_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object pipelineJobId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pipelineJobId_ = ""; /** * * @@ -457,16 +463,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (pipelineJobBuilder_ == null) { - pipelineJob_ = null; - } else { - pipelineJob_ = null; + pipelineJob_ = null; + if (pipelineJobBuilder_ != null) { + pipelineJobBuilder_.dispose(); pipelineJobBuilder_ = null; } pipelineJobId_ = ""; - return this; } @@ -495,17 +499,28 @@ public com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest build() { public com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest result = new com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest(this); - result.parent_ = parent_; - if (pipelineJobBuilder_ == null) { - result.pipelineJob_ = pipelineJob_; - } else { - result.pipelineJob_ = pipelineJobBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.pipelineJobId_ = pipelineJobId_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pipelineJob_ = + pipelineJobBuilder_ == null ? pipelineJob_ : pipelineJobBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pipelineJobId_ = pipelineJobId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -555,6 +570,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRe return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasPipelineJob()) { @@ -562,6 +578,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRe } if (!other.getPipelineJobId().isEmpty()) { pipelineJobId_ = other.pipelineJobId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -593,19 +610,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getPipelineJobFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { pipelineJobId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -625,6 +642,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -695,8 +714,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -715,8 +734,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -740,8 +759,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -766,7 +785,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the pipelineJob field is set. */ public boolean hasPipelineJob() { - return pipelineJobBuilder_ != null || pipelineJob_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -807,11 +826,11 @@ public Builder setPipelineJob(com.google.cloud.aiplatform.v1beta1.PipelineJob va throw new NullPointerException(); } pipelineJob_ = value; - onChanged(); } else { pipelineJobBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -829,11 +848,11 @@ public Builder setPipelineJob( com.google.cloud.aiplatform.v1beta1.PipelineJob.Builder builderForValue) { if (pipelineJobBuilder_ == null) { pipelineJob_ = builderForValue.build(); - onChanged(); } else { pipelineJobBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -849,19 +868,19 @@ public Builder setPipelineJob( */ public Builder mergePipelineJob(com.google.cloud.aiplatform.v1beta1.PipelineJob value) { if (pipelineJobBuilder_ == null) { - if (pipelineJob_ != null) { - pipelineJob_ = - com.google.cloud.aiplatform.v1beta1.PipelineJob.newBuilder(pipelineJob_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && pipelineJob_ != null + && pipelineJob_ + != com.google.cloud.aiplatform.v1beta1.PipelineJob.getDefaultInstance()) { + getPipelineJobBuilder().mergeFrom(value); } else { pipelineJob_ = value; } - onChanged(); } else { pipelineJobBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -876,14 +895,13 @@ public Builder mergePipelineJob(com.google.cloud.aiplatform.v1beta1.PipelineJob * */ public Builder clearPipelineJob() { - if (pipelineJobBuilder_ == null) { - pipelineJob_ = null; - onChanged(); - } else { - pipelineJob_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + pipelineJob_ = null; + if (pipelineJobBuilder_ != null) { + pipelineJobBuilder_.dispose(); pipelineJobBuilder_ = null; } - + onChanged(); return this; } /** @@ -898,7 +916,7 @@ public Builder clearPipelineJob() { * */ public com.google.cloud.aiplatform.v1beta1.PipelineJob.Builder getPipelineJobBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getPipelineJobFieldBuilder().getBuilder(); } @@ -1023,8 +1041,8 @@ public Builder setPipelineJobId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pipelineJobId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1044,8 +1062,8 @@ public Builder setPipelineJobId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPipelineJobId() { - pipelineJobId_ = getDefaultInstance().getPipelineJobId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1070,8 +1088,8 @@ public Builder setPipelineJobIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pipelineJobId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSpecialistPoolOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSpecialistPoolOperationMetadata.java index 42a77ee37bc7..12adf4c0345d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSpecialistPoolOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSpecialistPoolOperationMetadata.java @@ -115,7 +115,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -326,10 +328,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -363,15 +365,22 @@ public com.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -454,7 +463,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -474,6 +483,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -492,7 +503,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -530,11 +541,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -550,11 +561,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -569,20 +580,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -595,14 +606,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -616,7 +626,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSpecialistPoolRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSpecialistPoolRequest.java index cae5c24d2dd4..0fdcb437845f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSpecialistPoolRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateSpecialistPoolRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -174,7 +176,9 @@ public com.google.cloud.aiplatform.v1beta1.SpecialistPool getSpecialistPool() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.SpecialistPoolOrBuilder getSpecialistPoolOrBuilder() { - return getSpecialistPool(); + return specialistPool_ == null + ? com.google.cloud.aiplatform.v1beta1.SpecialistPool.getDefaultInstance() + : specialistPool_; } private byte memoizedIsInitialized = -1; @@ -390,12 +394,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (specialistPoolBuilder_ == null) { - specialistPool_ = null; - } else { - specialistPool_ = null; + specialistPool_ = null; + if (specialistPoolBuilder_ != null) { + specialistPoolBuilder_.dispose(); specialistPoolBuilder_ = null; } return this; @@ -426,16 +429,25 @@ public com.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest build() { public com.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest result = new com.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest(this); - result.parent_ = parent_; - if (specialistPoolBuilder_ == null) { - result.specialistPool_ = specialistPool_; - } else { - result.specialistPool_ = specialistPoolBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.specialistPool_ = + specialistPoolBuilder_ == null ? specialistPool_ : specialistPoolBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -486,6 +498,7 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasSpecialistPool()) { @@ -520,13 +533,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getSpecialistPoolFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -546,6 +559,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -616,8 +631,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -636,8 +651,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -661,8 +676,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -687,7 +702,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the specialistPool field is set. */ public boolean hasSpecialistPool() { - return specialistPoolBuilder_ != null || specialistPool_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -728,11 +743,11 @@ public Builder setSpecialistPool(com.google.cloud.aiplatform.v1beta1.SpecialistP throw new NullPointerException(); } specialistPool_ = value; - onChanged(); } else { specialistPoolBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -750,11 +765,11 @@ public Builder setSpecialistPool( com.google.cloud.aiplatform.v1beta1.SpecialistPool.Builder builderForValue) { if (specialistPoolBuilder_ == null) { specialistPool_ = builderForValue.build(); - onChanged(); } else { specialistPoolBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -770,19 +785,19 @@ public Builder setSpecialistPool( */ public Builder mergeSpecialistPool(com.google.cloud.aiplatform.v1beta1.SpecialistPool value) { if (specialistPoolBuilder_ == null) { - if (specialistPool_ != null) { - specialistPool_ = - com.google.cloud.aiplatform.v1beta1.SpecialistPool.newBuilder(specialistPool_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && specialistPool_ != null + && specialistPool_ + != com.google.cloud.aiplatform.v1beta1.SpecialistPool.getDefaultInstance()) { + getSpecialistPoolBuilder().mergeFrom(value); } else { specialistPool_ = value; } - onChanged(); } else { specialistPoolBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -797,14 +812,13 @@ public Builder mergeSpecialistPool(com.google.cloud.aiplatform.v1beta1.Specialis * */ public Builder clearSpecialistPool() { - if (specialistPoolBuilder_ == null) { - specialistPool_ = null; - onChanged(); - } else { - specialistPool_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + specialistPool_ = null; + if (specialistPoolBuilder_ != null) { + specialistPoolBuilder_.dispose(); specialistPoolBuilder_ = null; } - + onChanged(); return this; } /** @@ -819,7 +833,7 @@ public Builder clearSpecialistPool() { * */ public com.google.cloud.aiplatform.v1beta1.SpecialistPool.Builder getSpecialistPoolBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getSpecialistPoolFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateStudyRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateStudyRequest.java index e83679f24bc5..8ab6902d043c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateStudyRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateStudyRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -172,7 +174,7 @@ public com.google.cloud.aiplatform.v1beta1.Study getStudy() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.StudyOrBuilder getStudyOrBuilder() { - return getStudy(); + return study_ == null ? com.google.cloud.aiplatform.v1beta1.Study.getDefaultInstance() : study_; } private byte memoizedIsInitialized = -1; @@ -388,12 +390,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (studyBuilder_ == null) { - study_ = null; - } else { - study_ = null; + study_ = null; + if (studyBuilder_ != null) { + studyBuilder_.dispose(); studyBuilder_ = null; } return this; @@ -423,16 +424,23 @@ public com.google.cloud.aiplatform.v1beta1.CreateStudyRequest build() { public com.google.cloud.aiplatform.v1beta1.CreateStudyRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateStudyRequest result = new com.google.cloud.aiplatform.v1beta1.CreateStudyRequest(this); - result.parent_ = parent_; - if (studyBuilder_ == null) { - result.study_ = study_; - } else { - result.study_ = studyBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CreateStudyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.study_ = studyBuilder_ == null ? study_ : studyBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -481,6 +489,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateStudyRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasStudy()) { @@ -515,13 +524,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getStudyFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -541,6 +550,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -611,8 +622,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -631,8 +642,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -656,8 +667,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -682,7 +693,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the study field is set. */ public boolean hasStudy() { - return studyBuilder_ != null || study_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -723,11 +734,11 @@ public Builder setStudy(com.google.cloud.aiplatform.v1beta1.Study value) { throw new NullPointerException(); } study_ = value; - onChanged(); } else { studyBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -744,11 +755,11 @@ public Builder setStudy(com.google.cloud.aiplatform.v1beta1.Study value) { public Builder setStudy(com.google.cloud.aiplatform.v1beta1.Study.Builder builderForValue) { if (studyBuilder_ == null) { study_ = builderForValue.build(); - onChanged(); } else { studyBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -764,19 +775,18 @@ public Builder setStudy(com.google.cloud.aiplatform.v1beta1.Study.Builder builde */ public Builder mergeStudy(com.google.cloud.aiplatform.v1beta1.Study value) { if (studyBuilder_ == null) { - if (study_ != null) { - study_ = - com.google.cloud.aiplatform.v1beta1.Study.newBuilder(study_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && study_ != null + && study_ != com.google.cloud.aiplatform.v1beta1.Study.getDefaultInstance()) { + getStudyBuilder().mergeFrom(value); } else { study_ = value; } - onChanged(); } else { studyBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -791,14 +801,13 @@ public Builder mergeStudy(com.google.cloud.aiplatform.v1beta1.Study value) { * */ public Builder clearStudy() { - if (studyBuilder_ == null) { - study_ = null; - onChanged(); - } else { - study_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + study_ = null; + if (studyBuilder_ != null) { + studyBuilder_.dispose(); studyBuilder_ = null; } - + onChanged(); return this; } /** @@ -813,7 +822,7 @@ public Builder clearStudy() { * */ public com.google.cloud.aiplatform.v1beta1.Study.Builder getStudyBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getStudyFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequest.java index 0f3115edbab4..b318e0218ebf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -173,11 +175,15 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment getTensorboardE @java.lang.Override public com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder getTensorboardExperimentOrBuilder() { - return getTensorboardExperiment(); + return tensorboardExperiment_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.getDefaultInstance() + : tensorboardExperiment_; } public static final int TENSORBOARD_EXPERIMENT_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object tensorboardExperimentId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboardExperimentId_ = ""; /** * * @@ -456,16 +462,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (tensorboardExperimentBuilder_ == null) { - tensorboardExperiment_ = null; - } else { - tensorboardExperiment_ = null; + tensorboardExperiment_ = null; + if (tensorboardExperimentBuilder_ != null) { + tensorboardExperimentBuilder_.dispose(); tensorboardExperimentBuilder_ = null; } tensorboardExperimentId_ = ""; - return this; } @@ -496,17 +500,30 @@ public com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest bu public com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest result = new com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest(this); - result.parent_ = parent_; - if (tensorboardExperimentBuilder_ == null) { - result.tensorboardExperiment_ = tensorboardExperiment_; - } else { - result.tensorboardExperiment_ = tensorboardExperimentBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.tensorboardExperimentId_ = tensorboardExperimentId_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tensorboardExperiment_ = + tensorboardExperimentBuilder_ == null + ? tensorboardExperiment_ + : tensorboardExperimentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tensorboardExperimentId_ = tensorboardExperimentId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -558,6 +575,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTensorboardExperiment()) { @@ -565,6 +583,7 @@ public Builder mergeFrom( } if (!other.getTensorboardExperimentId().isEmpty()) { tensorboardExperimentId_ = other.tensorboardExperimentId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -596,20 +615,20 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTensorboardExperimentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { tensorboardExperimentId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -629,6 +648,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -702,8 +723,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -723,8 +744,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -749,8 +770,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -774,7 +795,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the tensorboardExperiment field is set. */ public boolean hasTensorboardExperiment() { - return tensorboardExperimentBuilder_ != null || tensorboardExperiment_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -814,11 +835,11 @@ public Builder setTensorboardExperiment( throw new NullPointerException(); } tensorboardExperiment_ = value; - onChanged(); } else { tensorboardExperimentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -835,11 +856,11 @@ public Builder setTensorboardExperiment( com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder builderForValue) { if (tensorboardExperimentBuilder_ == null) { tensorboardExperiment_ = builderForValue.build(); - onChanged(); } else { tensorboardExperimentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -855,20 +876,19 @@ public Builder setTensorboardExperiment( public Builder mergeTensorboardExperiment( com.google.cloud.aiplatform.v1beta1.TensorboardExperiment value) { if (tensorboardExperimentBuilder_ == null) { - if (tensorboardExperiment_ != null) { - tensorboardExperiment_ = - com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.newBuilder( - tensorboardExperiment_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && tensorboardExperiment_ != null + && tensorboardExperiment_ + != com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.getDefaultInstance()) { + getTensorboardExperimentBuilder().mergeFrom(value); } else { tensorboardExperiment_ = value; } - onChanged(); } else { tensorboardExperimentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -882,14 +902,13 @@ public Builder mergeTensorboardExperiment( * */ public Builder clearTensorboardExperiment() { - if (tensorboardExperimentBuilder_ == null) { - tensorboardExperiment_ = null; - onChanged(); - } else { - tensorboardExperiment_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + tensorboardExperiment_ = null; + if (tensorboardExperimentBuilder_ != null) { + tensorboardExperimentBuilder_.dispose(); tensorboardExperimentBuilder_ = null; } - + onChanged(); return this; } /** @@ -904,7 +923,7 @@ public Builder clearTensorboardExperiment() { */ public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder getTensorboardExperimentBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTensorboardExperimentFieldBuilder().getBuilder(); } @@ -1025,8 +1044,8 @@ public Builder setTensorboardExperimentId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboardExperimentId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1045,8 +1064,8 @@ public Builder setTensorboardExperimentId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboardExperimentId() { - tensorboardExperimentId_ = getDefaultInstance().getTensorboardExperimentId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1070,8 +1089,8 @@ public Builder setTensorboardExperimentIdBytes(com.google.protobuf.ByteString va throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboardExperimentId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardOperationMetadata.java index 0af021f3741b..ab0b4b86124d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardOperationMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -320,10 +322,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -356,15 +358,22 @@ public com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata bu public com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -446,7 +455,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -466,6 +475,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -484,7 +495,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -522,11 +533,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -542,11 +553,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -561,20 +572,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -587,14 +598,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -608,7 +618,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRequest.java index cb1cd1dc2b67..89a7ac3822e1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -174,7 +176,9 @@ public com.google.cloud.aiplatform.v1beta1.Tensorboard getTensorboard() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder getTensorboardOrBuilder() { - return getTensorboard(); + return tensorboard_ == null + ? com.google.cloud.aiplatform.v1beta1.Tensorboard.getDefaultInstance() + : tensorboard_; } private byte memoizedIsInitialized = -1; @@ -390,12 +394,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (tensorboardBuilder_ == null) { - tensorboard_ = null; - } else { - tensorboard_ = null; + tensorboard_ = null; + if (tensorboardBuilder_ != null) { + tensorboardBuilder_.dispose(); tensorboardBuilder_ = null; } return this; @@ -426,16 +429,25 @@ public com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest build() { public com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest result = new com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest(this); - result.parent_ = parent_; - if (tensorboardBuilder_ == null) { - result.tensorboard_ = tensorboard_; - } else { - result.tensorboard_ = tensorboardBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tensorboard_ = + tensorboardBuilder_ == null ? tensorboard_ : tensorboardBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -485,6 +497,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateTensorboardRe return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTensorboard()) { @@ -519,13 +532,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getTensorboardFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -545,6 +558,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -615,8 +630,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -635,8 +650,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -660,8 +675,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -686,7 +701,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the tensorboard field is set. */ public boolean hasTensorboard() { - return tensorboardBuilder_ != null || tensorboard_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -727,11 +742,11 @@ public Builder setTensorboard(com.google.cloud.aiplatform.v1beta1.Tensorboard va throw new NullPointerException(); } tensorboard_ = value; - onChanged(); } else { tensorboardBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -749,11 +764,11 @@ public Builder setTensorboard( com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder builderForValue) { if (tensorboardBuilder_ == null) { tensorboard_ = builderForValue.build(); - onChanged(); } else { tensorboardBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -769,19 +784,19 @@ public Builder setTensorboard( */ public Builder mergeTensorboard(com.google.cloud.aiplatform.v1beta1.Tensorboard value) { if (tensorboardBuilder_ == null) { - if (tensorboard_ != null) { - tensorboard_ = - com.google.cloud.aiplatform.v1beta1.Tensorboard.newBuilder(tensorboard_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && tensorboard_ != null + && tensorboard_ + != com.google.cloud.aiplatform.v1beta1.Tensorboard.getDefaultInstance()) { + getTensorboardBuilder().mergeFrom(value); } else { tensorboard_ = value; } - onChanged(); } else { tensorboardBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -796,14 +811,13 @@ public Builder mergeTensorboard(com.google.cloud.aiplatform.v1beta1.Tensorboard * */ public Builder clearTensorboard() { - if (tensorboardBuilder_ == null) { - tensorboard_ = null; - onChanged(); - } else { - tensorboard_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + tensorboard_ = null; + if (tensorboardBuilder_ != null) { + tensorboardBuilder_.dispose(); tensorboardBuilder_ = null; } - + onChanged(); return this; } /** @@ -818,7 +832,7 @@ public Builder clearTensorboard() { * */ public com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder getTensorboardBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTensorboardFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequest.java index a2acebfc8a49..b425398f4763 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -177,11 +179,15 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardRun getTensorboardRun() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder getTensorboardRunOrBuilder() { - return getTensorboardRun(); + return tensorboardRun_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardRun.getDefaultInstance() + : tensorboardRun_; } public static final int TENSORBOARD_RUN_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object tensorboardRunId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboardRunId_ = ""; /** * * @@ -457,16 +463,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (tensorboardRunBuilder_ == null) { - tensorboardRun_ = null; - } else { - tensorboardRun_ = null; + tensorboardRun_ = null; + if (tensorboardRunBuilder_ != null) { + tensorboardRunBuilder_.dispose(); tensorboardRunBuilder_ = null; } tensorboardRunId_ = ""; - return this; } @@ -495,17 +499,28 @@ public com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest build() { public com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest result = new com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest(this); - result.parent_ = parent_; - if (tensorboardRunBuilder_ == null) { - result.tensorboardRun_ = tensorboardRun_; - } else { - result.tensorboardRun_ = tensorboardRunBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.tensorboardRunId_ = tensorboardRunId_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tensorboardRun_ = + tensorboardRunBuilder_ == null ? tensorboardRun_ : tensorboardRunBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tensorboardRunId_ = tensorboardRunId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -556,6 +571,7 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTensorboardRun()) { @@ -563,6 +579,7 @@ public Builder mergeFrom( } if (!other.getTensorboardRunId().isEmpty()) { tensorboardRunId_ = other.tensorboardRunId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -594,19 +611,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getTensorboardRunFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { tensorboardRunId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -626,6 +643,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -699,8 +718,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -720,8 +739,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -746,8 +765,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -772,7 +791,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the tensorboardRun field is set. */ public boolean hasTensorboardRun() { - return tensorboardRunBuilder_ != null || tensorboardRun_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -813,11 +832,11 @@ public Builder setTensorboardRun(com.google.cloud.aiplatform.v1beta1.Tensorboard throw new NullPointerException(); } tensorboardRun_ = value; - onChanged(); } else { tensorboardRunBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -835,11 +854,11 @@ public Builder setTensorboardRun( com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder builderForValue) { if (tensorboardRunBuilder_ == null) { tensorboardRun_ = builderForValue.build(); - onChanged(); } else { tensorboardRunBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -855,19 +874,19 @@ public Builder setTensorboardRun( */ public Builder mergeTensorboardRun(com.google.cloud.aiplatform.v1beta1.TensorboardRun value) { if (tensorboardRunBuilder_ == null) { - if (tensorboardRun_ != null) { - tensorboardRun_ = - com.google.cloud.aiplatform.v1beta1.TensorboardRun.newBuilder(tensorboardRun_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && tensorboardRun_ != null + && tensorboardRun_ + != com.google.cloud.aiplatform.v1beta1.TensorboardRun.getDefaultInstance()) { + getTensorboardRunBuilder().mergeFrom(value); } else { tensorboardRun_ = value; } - onChanged(); } else { tensorboardRunBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -882,14 +901,13 @@ public Builder mergeTensorboardRun(com.google.cloud.aiplatform.v1beta1.Tensorboa * */ public Builder clearTensorboardRun() { - if (tensorboardRunBuilder_ == null) { - tensorboardRun_ = null; - onChanged(); - } else { - tensorboardRun_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + tensorboardRun_ = null; + if (tensorboardRunBuilder_ != null) { + tensorboardRunBuilder_.dispose(); tensorboardRunBuilder_ = null; } - + onChanged(); return this; } /** @@ -904,7 +922,7 @@ public Builder clearTensorboardRun() { * */ public com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder getTensorboardRunBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTensorboardRunFieldBuilder().getBuilder(); } @@ -1027,8 +1045,8 @@ public Builder setTensorboardRunId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboardRunId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1047,8 +1065,8 @@ public Builder setTensorboardRunId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboardRunId() { - tensorboardRunId_ = getDefaultInstance().getTensorboardRunId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1072,8 +1090,8 @@ public Builder setTensorboardRunIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboardRunId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardTimeSeriesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardTimeSeriesRequest.java index eaf93daa3571..d26ce3414738 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardTimeSeriesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardTimeSeriesRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -130,7 +132,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int TENSORBOARD_TIME_SERIES_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object tensorboardTimeSeriesId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboardTimeSeriesId_ = ""; /** * * @@ -236,7 +240,9 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries getTensorboardT @java.lang.Override public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder getTensorboardTimeSeriesOrBuilder() { - return getTensorboardTimeSeries(); + return tensorboardTimeSeries_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.getDefaultInstance() + : tensorboardTimeSeries_; } private byte memoizedIsInitialized = -1; @@ -464,14 +470,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - tensorboardTimeSeriesId_ = ""; - - if (tensorboardTimeSeriesBuilder_ == null) { - tensorboardTimeSeries_ = null; - } else { - tensorboardTimeSeries_ = null; + tensorboardTimeSeries_ = null; + if (tensorboardTimeSeriesBuilder_ != null) { + tensorboardTimeSeriesBuilder_.dispose(); tensorboardTimeSeriesBuilder_ = null; } return this; @@ -504,17 +508,30 @@ public com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest bu public com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest result = new com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest(this); - result.parent_ = parent_; - result.tensorboardTimeSeriesId_ = tensorboardTimeSeriesId_; - if (tensorboardTimeSeriesBuilder_ == null) { - result.tensorboardTimeSeries_ = tensorboardTimeSeries_; - } else { - result.tensorboardTimeSeries_ = tensorboardTimeSeriesBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tensorboardTimeSeriesId_ = tensorboardTimeSeriesId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tensorboardTimeSeries_ = + tensorboardTimeSeriesBuilder_ == null + ? tensorboardTimeSeries_ + : tensorboardTimeSeriesBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -566,10 +583,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getTensorboardTimeSeriesId().isEmpty()) { tensorboardTimeSeriesId_ = other.tensorboardTimeSeriesId_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasTensorboardTimeSeries()) { @@ -604,20 +623,20 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTensorboardTimeSeriesFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 18 case 26: { tensorboardTimeSeriesId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 26 default: @@ -637,6 +656,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -713,8 +734,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -735,8 +756,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -762,8 +783,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -838,8 +859,8 @@ public Builder setTensorboardTimeSeriesId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboardTimeSeriesId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -858,8 +879,8 @@ public Builder setTensorboardTimeSeriesId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboardTimeSeriesId() { - tensorboardTimeSeriesId_ = getDefaultInstance().getTensorboardTimeSeriesId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -883,8 +904,8 @@ public Builder setTensorboardTimeSeriesIdBytes(com.google.protobuf.ByteString va throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboardTimeSeriesId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -909,7 +930,7 @@ public Builder setTensorboardTimeSeriesIdBytes(com.google.protobuf.ByteString va * @return Whether the tensorboardTimeSeries field is set. */ public boolean hasTensorboardTimeSeries() { - return tensorboardTimeSeriesBuilder_ != null || tensorboardTimeSeries_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -951,11 +972,11 @@ public Builder setTensorboardTimeSeries( throw new NullPointerException(); } tensorboardTimeSeries_ = value; - onChanged(); } else { tensorboardTimeSeriesBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -973,11 +994,11 @@ public Builder setTensorboardTimeSeries( com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder builderForValue) { if (tensorboardTimeSeriesBuilder_ == null) { tensorboardTimeSeries_ = builderForValue.build(); - onChanged(); } else { tensorboardTimeSeriesBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -994,20 +1015,19 @@ public Builder setTensorboardTimeSeries( public Builder mergeTensorboardTimeSeries( com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries value) { if (tensorboardTimeSeriesBuilder_ == null) { - if (tensorboardTimeSeries_ != null) { - tensorboardTimeSeries_ = - com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.newBuilder( - tensorboardTimeSeries_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && tensorboardTimeSeries_ != null + && tensorboardTimeSeries_ + != com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.getDefaultInstance()) { + getTensorboardTimeSeriesBuilder().mergeFrom(value); } else { tensorboardTimeSeries_ = value; } - onChanged(); } else { tensorboardTimeSeriesBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1022,14 +1042,13 @@ public Builder mergeTensorboardTimeSeries( * */ public Builder clearTensorboardTimeSeries() { - if (tensorboardTimeSeriesBuilder_ == null) { - tensorboardTimeSeries_ = null; - onChanged(); - } else { - tensorboardTimeSeries_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + tensorboardTimeSeries_ = null; + if (tensorboardTimeSeriesBuilder_ != null) { + tensorboardTimeSeriesBuilder_.dispose(); tensorboardTimeSeriesBuilder_ = null; } - + onChanged(); return this; } /** @@ -1045,7 +1064,7 @@ public Builder clearTensorboardTimeSeries() { */ public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder getTensorboardTimeSeriesBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getTensorboardTimeSeriesFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTrainingPipelineRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTrainingPipelineRequest.java index 2f708ca107c5..ad93f11a665d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTrainingPipelineRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTrainingPipelineRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -175,7 +177,9 @@ public com.google.cloud.aiplatform.v1beta1.TrainingPipeline getTrainingPipeline( @java.lang.Override public com.google.cloud.aiplatform.v1beta1.TrainingPipelineOrBuilder getTrainingPipelineOrBuilder() { - return getTrainingPipeline(); + return trainingPipeline_ == null + ? com.google.cloud.aiplatform.v1beta1.TrainingPipeline.getDefaultInstance() + : trainingPipeline_; } private byte memoizedIsInitialized = -1; @@ -393,12 +397,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (trainingPipelineBuilder_ == null) { - trainingPipeline_ = null; - } else { - trainingPipeline_ = null; + trainingPipeline_ = null; + if (trainingPipelineBuilder_ != null) { + trainingPipelineBuilder_.dispose(); trainingPipelineBuilder_ = null; } return this; @@ -429,16 +432,25 @@ public com.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest build() public com.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest result = new com.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest(this); - result.parent_ = parent_; - if (trainingPipelineBuilder_ == null) { - result.trainingPipeline_ = trainingPipeline_; - } else { - result.trainingPipeline_ = trainingPipelineBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.trainingPipeline_ = + trainingPipelineBuilder_ == null ? trainingPipeline_ : trainingPipelineBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -489,6 +501,7 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTrainingPipeline()) { @@ -523,14 +536,14 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTrainingPipelineFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -550,6 +563,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -620,8 +635,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -640,8 +655,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -665,8 +680,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -691,7 +706,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the trainingPipeline field is set. */ public boolean hasTrainingPipeline() { - return trainingPipelineBuilder_ != null || trainingPipeline_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -732,11 +747,11 @@ public Builder setTrainingPipeline(com.google.cloud.aiplatform.v1beta1.TrainingP throw new NullPointerException(); } trainingPipeline_ = value; - onChanged(); } else { trainingPipelineBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -754,11 +769,11 @@ public Builder setTrainingPipeline( com.google.cloud.aiplatform.v1beta1.TrainingPipeline.Builder builderForValue) { if (trainingPipelineBuilder_ == null) { trainingPipeline_ = builderForValue.build(); - onChanged(); } else { trainingPipelineBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -775,19 +790,19 @@ public Builder setTrainingPipeline( public Builder mergeTrainingPipeline( com.google.cloud.aiplatform.v1beta1.TrainingPipeline value) { if (trainingPipelineBuilder_ == null) { - if (trainingPipeline_ != null) { - trainingPipeline_ = - com.google.cloud.aiplatform.v1beta1.TrainingPipeline.newBuilder(trainingPipeline_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && trainingPipeline_ != null + && trainingPipeline_ + != com.google.cloud.aiplatform.v1beta1.TrainingPipeline.getDefaultInstance()) { + getTrainingPipelineBuilder().mergeFrom(value); } else { trainingPipeline_ = value; } - onChanged(); } else { trainingPipelineBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -802,14 +817,13 @@ public Builder mergeTrainingPipeline( * */ public Builder clearTrainingPipeline() { - if (trainingPipelineBuilder_ == null) { - trainingPipeline_ = null; - onChanged(); - } else { - trainingPipeline_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + trainingPipeline_ = null; + if (trainingPipelineBuilder_ != null) { + trainingPipelineBuilder_.dispose(); trainingPipelineBuilder_ = null; } - + onChanged(); return this; } /** @@ -825,7 +839,7 @@ public Builder clearTrainingPipeline() { */ public com.google.cloud.aiplatform.v1beta1.TrainingPipeline.Builder getTrainingPipelineBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTrainingPipelineFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTrialRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTrialRequest.java index 08f6d3da1ae4..4a0fa1b91190 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTrialRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTrialRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -172,7 +174,7 @@ public com.google.cloud.aiplatform.v1beta1.Trial getTrial() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.TrialOrBuilder getTrialOrBuilder() { - return getTrial(); + return trial_ == null ? com.google.cloud.aiplatform.v1beta1.Trial.getDefaultInstance() : trial_; } private byte memoizedIsInitialized = -1; @@ -388,12 +390,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (trialBuilder_ == null) { - trial_ = null; - } else { - trial_ = null; + trial_ = null; + if (trialBuilder_ != null) { + trialBuilder_.dispose(); trialBuilder_ = null; } return this; @@ -423,16 +424,23 @@ public com.google.cloud.aiplatform.v1beta1.CreateTrialRequest build() { public com.google.cloud.aiplatform.v1beta1.CreateTrialRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.CreateTrialRequest result = new com.google.cloud.aiplatform.v1beta1.CreateTrialRequest(this); - result.parent_ = parent_; - if (trialBuilder_ == null) { - result.trial_ = trial_; - } else { - result.trial_ = trialBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CreateTrialRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.trial_ = trialBuilder_ == null ? trial_ : trialBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -481,6 +489,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreateTrialRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTrial()) { @@ -515,13 +524,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getTrialFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -541,6 +550,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -611,8 +622,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -631,8 +642,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -656,8 +667,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -682,7 +693,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the trial field is set. */ public boolean hasTrial() { - return trialBuilder_ != null || trial_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -723,11 +734,11 @@ public Builder setTrial(com.google.cloud.aiplatform.v1beta1.Trial value) { throw new NullPointerException(); } trial_ = value; - onChanged(); } else { trialBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -744,11 +755,11 @@ public Builder setTrial(com.google.cloud.aiplatform.v1beta1.Trial value) { public Builder setTrial(com.google.cloud.aiplatform.v1beta1.Trial.Builder builderForValue) { if (trialBuilder_ == null) { trial_ = builderForValue.build(); - onChanged(); } else { trialBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -764,19 +775,18 @@ public Builder setTrial(com.google.cloud.aiplatform.v1beta1.Trial.Builder builde */ public Builder mergeTrial(com.google.cloud.aiplatform.v1beta1.Trial value) { if (trialBuilder_ == null) { - if (trial_ != null) { - trial_ = - com.google.cloud.aiplatform.v1beta1.Trial.newBuilder(trial_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && trial_ != null + && trial_ != com.google.cloud.aiplatform.v1beta1.Trial.getDefaultInstance()) { + getTrialBuilder().mergeFrom(value); } else { trial_ = value; } - onChanged(); } else { trialBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -791,14 +801,13 @@ public Builder mergeTrial(com.google.cloud.aiplatform.v1beta1.Trial value) { * */ public Builder clearTrial() { - if (trialBuilder_ == null) { - trial_ = null; - onChanged(); - } else { - trial_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + trial_ = null; + if (trialBuilder_ != null) { + trialBuilder_.dispose(); trialBuilder_ = null; } - + onChanged(); return this; } /** @@ -813,7 +822,7 @@ public Builder clearTrial() { * */ public com.google.cloud.aiplatform.v1beta1.Trial.Builder getTrialBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTrialFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvDestination.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvDestination.java index 39d68e3633f1..cf169316ee17 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvDestination.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvDestination.java @@ -116,7 +116,9 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination getGcsDestination() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { - return getGcsDestination(); + return gcsDestination_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance() + : gcsDestination_; } private byte memoizedIsInitialized = -1; @@ -321,10 +323,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (gcsDestinationBuilder_ == null) { - gcsDestination_ = null; - } else { - gcsDestination_ = null; + bitField0_ = 0; + gcsDestination_ = null; + if (gcsDestinationBuilder_ != null) { + gcsDestinationBuilder_.dispose(); gcsDestinationBuilder_ = null; } return this; @@ -354,15 +356,21 @@ public com.google.cloud.aiplatform.v1beta1.CsvDestination build() { public com.google.cloud.aiplatform.v1beta1.CsvDestination buildPartial() { com.google.cloud.aiplatform.v1beta1.CsvDestination result = new com.google.cloud.aiplatform.v1beta1.CsvDestination(this); - if (gcsDestinationBuilder_ == null) { - result.gcsDestination_ = gcsDestination_; - } else { - result.gcsDestination_ = gcsDestinationBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CsvDestination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gcsDestination_ = + gcsDestinationBuilder_ == null ? gcsDestination_ : gcsDestinationBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -441,7 +449,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -461,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GcsDestination gcsDestination_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GcsDestination, @@ -481,7 +491,7 @@ public Builder mergeFrom( * @return Whether the gcsDestination field is set. */ public boolean hasGcsDestination() { - return gcsDestinationBuilder_ != null || gcsDestination_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -522,11 +532,11 @@ public Builder setGcsDestination(com.google.cloud.aiplatform.v1beta1.GcsDestinat throw new NullPointerException(); } gcsDestination_ = value; - onChanged(); } else { gcsDestinationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -544,11 +554,11 @@ public Builder setGcsDestination( com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder builderForValue) { if (gcsDestinationBuilder_ == null) { gcsDestination_ = builderForValue.build(); - onChanged(); } else { gcsDestinationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -564,19 +574,19 @@ public Builder setGcsDestination( */ public Builder mergeGcsDestination(com.google.cloud.aiplatform.v1beta1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (gcsDestination_ != null) { - gcsDestination_ = - com.google.cloud.aiplatform.v1beta1.GcsDestination.newBuilder(gcsDestination_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && gcsDestination_ != null + && gcsDestination_ + != com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance()) { + getGcsDestinationBuilder().mergeFrom(value); } else { gcsDestination_ = value; } - onChanged(); } else { gcsDestinationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -591,14 +601,13 @@ public Builder mergeGcsDestination(com.google.cloud.aiplatform.v1beta1.GcsDestin * */ public Builder clearGcsDestination() { - if (gcsDestinationBuilder_ == null) { - gcsDestination_ = null; - onChanged(); - } else { - gcsDestination_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + gcsDestination_ = null; + if (gcsDestinationBuilder_ != null) { + gcsDestinationBuilder_.dispose(); gcsDestinationBuilder_ = null; } - + onChanged(); return this; } /** @@ -613,7 +622,7 @@ public Builder clearGcsDestination() { * */ public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder getGcsDestinationBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGcsDestinationFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvSource.java index fda034128095..db793dacf8d5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvSource.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CsvSource.java @@ -116,7 +116,9 @@ public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsSource() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { - return getGcsSource(); + return gcsSource_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance() + : gcsSource_; } private byte memoizedIsInitialized = -1; @@ -321,10 +323,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (gcsSourceBuilder_ == null) { - gcsSource_ = null; - } else { - gcsSource_ = null; + bitField0_ = 0; + gcsSource_ = null; + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.dispose(); gcsSourceBuilder_ = null; } return this; @@ -354,15 +356,20 @@ public com.google.cloud.aiplatform.v1beta1.CsvSource build() { public com.google.cloud.aiplatform.v1beta1.CsvSource buildPartial() { com.google.cloud.aiplatform.v1beta1.CsvSource result = new com.google.cloud.aiplatform.v1beta1.CsvSource(this); - if (gcsSourceBuilder_ == null) { - result.gcsSource_ = gcsSource_; - } else { - result.gcsSource_ = gcsSourceBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CsvSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gcsSource_ = gcsSourceBuilder_ == null ? gcsSource_ : gcsSourceBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -440,7 +447,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -460,6 +467,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GcsSource gcsSource_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GcsSource, @@ -480,7 +489,7 @@ public Builder mergeFrom( * @return Whether the gcsSource field is set. */ public boolean hasGcsSource() { - return gcsSourceBuilder_ != null || gcsSource_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -521,11 +530,11 @@ public Builder setGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource value) throw new NullPointerException(); } gcsSource_ = value; - onChanged(); } else { gcsSourceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -543,11 +552,11 @@ public Builder setGcsSource( com.google.cloud.aiplatform.v1beta1.GcsSource.Builder builderForValue) { if (gcsSourceBuilder_ == null) { gcsSource_ = builderForValue.build(); - onChanged(); } else { gcsSourceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -563,19 +572,18 @@ public Builder setGcsSource( */ public Builder mergeGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource value) { if (gcsSourceBuilder_ == null) { - if (gcsSource_ != null) { - gcsSource_ = - com.google.cloud.aiplatform.v1beta1.GcsSource.newBuilder(gcsSource_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && gcsSource_ != null + && gcsSource_ != com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance()) { + getGcsSourceBuilder().mergeFrom(value); } else { gcsSource_ = value; } - onChanged(); } else { gcsSourceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -590,14 +598,13 @@ public Builder mergeGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource valu * */ public Builder clearGcsSource() { - if (gcsSourceBuilder_ == null) { - gcsSource_ = null; - onChanged(); - } else { - gcsSource_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + gcsSource_ = null; + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.dispose(); gcsSourceBuilder_ = null; } - + onChanged(); return this; } /** @@ -612,7 +619,7 @@ public Builder clearGcsSource() { * */ public com.google.cloud.aiplatform.v1beta1.GcsSource.Builder getGcsSourceBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGcsSourceFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJob.java index 8a0b12adc97f..b1f336685621 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJob.java @@ -86,7 +86,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -135,7 +137,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -238,11 +242,13 @@ public com.google.cloud.aiplatform.v1beta1.CustomJobSpec getJobSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.CustomJobSpecOrBuilder getJobSpecOrBuilder() { - return getJobSpec(); + return jobSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.CustomJobSpec.getDefaultInstance() + : jobSpec_; } public static final int STATE_FIELD_NUMBER = 5; - private int state_; + private int state_ = 0; /** * * @@ -275,9 +281,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.JobState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.JobState result = - com.google.cloud.aiplatform.v1beta1.JobState.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.JobState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.JobState.UNRECOGNIZED : result; } @@ -327,7 +332,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int START_TIME_FIELD_NUMBER = 7; @@ -379,7 +384,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 8; @@ -431,7 +436,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 9; @@ -480,7 +485,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ERROR_FIELD_NUMBER = 10; @@ -529,7 +534,7 @@ public com.google.rpc.Status getError() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return getError(); + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } public static final int LABELS_FIELD_NUMBER = 11; @@ -545,6 +550,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -614,7 +620,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -697,7 +706,9 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } public static final int WEB_ACCESS_URIS_FIELD_NUMBER = 16; @@ -713,6 +724,7 @@ private static final class WebAccessUrisDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField webAccessUris_; private com.google.protobuf.MapField @@ -805,8 +817,10 @@ public java.util.Map getWebAccessUrisMap() { * */ @java.lang.Override - public java.lang.String getWebAccessUrisOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getWebAccessUrisOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1219,53 +1233,44 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - - if (jobSpecBuilder_ == null) { - jobSpec_ = null; - } else { - jobSpec_ = null; + jobSpec_ = null; + if (jobSpecBuilder_ != null) { + jobSpecBuilder_.dispose(); jobSpecBuilder_ = null; } state_ = 0; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - if (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } internalGetMutableLabels().clear(); - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } internalGetMutableWebAccessUris().clear(); @@ -1296,51 +1301,54 @@ public com.google.cloud.aiplatform.v1beta1.CustomJob build() { public com.google.cloud.aiplatform.v1beta1.CustomJob buildPartial() { com.google.cloud.aiplatform.v1beta1.CustomJob result = new com.google.cloud.aiplatform.v1beta1.CustomJob(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CustomJob result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - if (jobSpecBuilder_ == null) { - result.jobSpec_ = jobSpec_; - } else { - result.jobSpec_ = jobSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - result.state_ = state_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.jobSpec_ = jobSpecBuilder_ == null ? jobSpec_ : jobSpecBuilder_.build(); } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000040) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.webAccessUris_ = internalGetWebAccessUris(); + result.webAccessUris_.makeImmutable(); } - result.webAccessUris_ = internalGetWebAccessUris(); - result.webAccessUris_.makeImmutable(); - onBuilt(); - return result; } @java.lang.Override @@ -1390,10 +1398,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CustomJob other) { if (other == com.google.cloud.aiplatform.v1beta1.CustomJob.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasJobSpec()) { @@ -1418,10 +1428,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CustomJob other) { mergeError(other.getError()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000200; if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } internalGetMutableWebAccessUris().mergeFrom(other.internalGetWebAccessUris()); + bitField0_ |= 0x00000800; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1451,55 +1463,55 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 34: { input.readMessage(getJobSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 34 case 40: { state_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 40 case 50: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 50 case 58: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 58 case 66: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 66 case 74: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 74 case 82: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 82 case 90: @@ -1511,12 +1523,13 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000200; break; } // case 90 case 98: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 98 case 130: @@ -1528,6 +1541,7 @@ public Builder mergeFrom( internalGetMutableWebAccessUris() .getMutableMap() .put(webAccessUris__.getKey(), webAccessUris__.getValue()); + bitField0_ |= 0x00000800; break; } // case 130 default: @@ -1610,8 +1624,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1627,8 +1641,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1649,8 +1663,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1722,8 +1736,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1741,8 +1755,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1765,8 +1779,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1791,7 +1805,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the jobSpec field is set. */ public boolean hasJobSpec() { - return jobSpecBuilder_ != null || jobSpec_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1832,11 +1846,11 @@ public Builder setJobSpec(com.google.cloud.aiplatform.v1beta1.CustomJobSpec valu throw new NullPointerException(); } jobSpec_ = value; - onChanged(); } else { jobSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1854,11 +1868,11 @@ public Builder setJobSpec( com.google.cloud.aiplatform.v1beta1.CustomJobSpec.Builder builderForValue) { if (jobSpecBuilder_ == null) { jobSpec_ = builderForValue.build(); - onChanged(); } else { jobSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1874,19 +1888,18 @@ public Builder setJobSpec( */ public Builder mergeJobSpec(com.google.cloud.aiplatform.v1beta1.CustomJobSpec value) { if (jobSpecBuilder_ == null) { - if (jobSpec_ != null) { - jobSpec_ = - com.google.cloud.aiplatform.v1beta1.CustomJobSpec.newBuilder(jobSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && jobSpec_ != null + && jobSpec_ != com.google.cloud.aiplatform.v1beta1.CustomJobSpec.getDefaultInstance()) { + getJobSpecBuilder().mergeFrom(value); } else { jobSpec_ = value; } - onChanged(); } else { jobSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1901,14 +1914,13 @@ public Builder mergeJobSpec(com.google.cloud.aiplatform.v1beta1.CustomJobSpec va * */ public Builder clearJobSpec() { - if (jobSpecBuilder_ == null) { - jobSpec_ = null; - onChanged(); - } else { - jobSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + jobSpec_ = null; + if (jobSpecBuilder_ != null) { + jobSpecBuilder_.dispose(); jobSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -1923,7 +1935,7 @@ public Builder clearJobSpec() { * */ public com.google.cloud.aiplatform.v1beta1.CustomJobSpec.Builder getJobSpecBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getJobSpecFieldBuilder().getBuilder(); } @@ -2008,8 +2020,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2028,9 +2040,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.JobState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.JobState result = - com.google.cloud.aiplatform.v1beta1.JobState.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.JobState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.JobState.UNRECOGNIZED : result; } /** @@ -2051,7 +2062,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; state_ = value.getNumber(); onChanged(); return this; @@ -2070,7 +2081,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000008); state_ = 0; onChanged(); return this; @@ -2096,7 +2107,7 @@ public Builder clearState() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2137,11 +2148,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2158,11 +2169,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2178,17 +2189,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2203,14 +2215,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2225,7 +2236,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2297,7 +2308,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2336,11 +2347,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2357,11 +2368,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2377,17 +2388,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2402,14 +2414,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2424,7 +2435,7 @@ public Builder clearStartTime() { * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -2494,7 +2505,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2533,11 +2544,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2554,11 +2565,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2574,17 +2585,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2599,14 +2611,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2621,7 +2632,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -2691,7 +2702,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2732,11 +2743,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2753,11 +2764,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2773,17 +2784,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2798,14 +2810,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2820,7 +2831,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2889,7 +2900,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the error field is set. */ public boolean hasError() { - return errorBuilder_ != null || error_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -2926,11 +2937,11 @@ public Builder setError(com.google.rpc.Status value) { throw new NullPointerException(); } error_ = value; - onChanged(); } else { errorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -2946,11 +2957,11 @@ public Builder setError(com.google.rpc.Status value) { public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); - onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -2965,16 +2976,18 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (error_ != null) { - error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); } else { error_ = value; } - onChanged(); } else { errorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -2988,14 +3001,13 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } - + onChanged(); return this; } /** @@ -3009,7 +3021,7 @@ public Builder clearError() { * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getErrorFieldBuilder().getBuilder(); } @@ -3065,14 +3077,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000200; + onChanged(); return labels_; } @@ -3136,8 +3148,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3170,6 +3184,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -3196,6 +3211,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000200; return internalGetMutableLabels().getMutableMap(); } /** @@ -3218,8 +3234,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000200; return this; } /** @@ -3237,6 +3253,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000200; return this; } @@ -3260,7 +3277,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -3301,11 +3318,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3323,11 +3340,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3343,19 +3360,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1beta1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3370,14 +3387,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 12; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -3392,7 +3408,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 12; */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -3458,8 +3474,6 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionS private com.google.protobuf.MapField internalGetMutableWebAccessUris() { - onChanged(); - ; if (webAccessUris_ == null) { webAccessUris_ = com.google.protobuf.MapField.newMapField(WebAccessUrisDefaultEntryHolder.defaultEntry); @@ -3467,6 +3481,8 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionS if (!webAccessUris_.isMutable()) { webAccessUris_ = webAccessUris_.copy(); } + bitField0_ |= 0x00000800; + onChanged(); return webAccessUris_; } @@ -3551,8 +3567,10 @@ public java.util.Map getWebAccessUrisMap() { * */ @java.lang.Override - public java.lang.String getWebAccessUrisOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getWebAccessUrisOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3592,6 +3610,7 @@ public java.lang.String getWebAccessUrisOrThrow(java.lang.String key) { } public Builder clearWebAccessUris() { + bitField0_ = (bitField0_ & ~0x00000800); internalGetMutableWebAccessUris().getMutableMap().clear(); return this; } @@ -3625,6 +3644,7 @@ public Builder removeWebAccessUris(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableWebAccessUris() { + bitField0_ |= 0x00000800; return internalGetMutableWebAccessUris().getMutableMap(); } /** @@ -3654,8 +3674,8 @@ public Builder putWebAccessUris(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableWebAccessUris().getMutableMap().put(key, value); + bitField0_ |= 0x00000800; return this; } /** @@ -3680,6 +3700,7 @@ public Builder putWebAccessUris(java.lang.String key, java.lang.String value) { */ public Builder putAllWebAccessUris(java.util.Map values) { internalGetMutableWebAccessUris().getMutableMap().putAll(values); + bitField0_ |= 0x00000800; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobOrBuilder.java index f9f29dca6ca0..4019015d2625 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobOrBuilder.java @@ -401,7 +401,6 @@ public interface CustomJobOrBuilder * * map<string, string> labels = 11; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, @@ -549,7 +548,6 @@ java.lang.String getLabelsOrDefault( * map<string, string> web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - /* nullable */ java.lang.String getWebAccessUrisOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java index 9733c0daf441..e9cc1f94c5e9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java @@ -102,7 +102,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:i\352Af\n#aipl" + "atform.googleapis.com/CustomJob\022?project" + "s/{project}/locations/{location}/customJ" - + "obs/{custom_job}\"\310\003\n\rCustomJobSpec\022O\n\021wo" + + "obs/{custom_job}\"\356\003\n\rCustomJobSpec\022O\n\021wo" + "rker_pool_specs\030\001 \003(\0132/.google.cloud.aip" + "latform.v1beta1.WorkerPoolSpecB\003\340A\002\022?\n\ns" + "cheduling\030\003 \001(\0132+.google.cloud.aiplatfor" @@ -113,34 +113,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030\006 \001(\0132/.google.cloud.aiplatform.v1beta1" + ".GcsDestination\022B\n\013tensorboard\030\007 \001(\tB-\340A" + "\001\372A\'\n%aiplatform.googleapis.com/Tensorbo" - + "ard\022\036\n\021enable_web_access\030\n \001(\010B\003\340A\001\"\237\003\n\016" - + "WorkerPoolSpec\022H\n\016container_spec\030\006 \001(\0132." - + ".google.cloud.aiplatform.v1beta1.Contain" - + "erSpecH\000\022Q\n\023python_package_spec\030\007 \001(\01322." - + "google.cloud.aiplatform.v1beta1.PythonPa" - + "ckageSpecH\000\022J\n\014machine_spec\030\001 \001(\0132,.goog" - + "le.cloud.aiplatform.v1beta1.MachineSpecB" - + "\006\340A\001\340A\005\022\032\n\rreplica_count\030\002 \001(\003B\003\340A\001\022B\n\nn" - + "fs_mounts\030\004 \003(\0132).google.cloud.aiplatfor" - + "m.v1beta1.NfsMountB\003\340A\001\022<\n\tdisk_spec\030\005 \001" - + "(\0132).google.cloud.aiplatform.v1beta1.Dis" - + "kSpecB\006\n\004task\"|\n\rContainerSpec\022\026\n\timage_" - + "uri\030\001 \001(\tB\003\340A\002\022\017\n\007command\030\002 \003(\t\022\014\n\004args\030" - + "\003 \003(\t\0224\n\003env\030\004 \003(\0132\'.google.cloud.aiplat" - + "form.v1beta1.EnvVar\"\257\001\n\021PythonPackageSpe" - + "c\022\037\n\022executor_image_uri\030\001 \001(\tB\003\340A\002\022\031\n\014pa" - + "ckage_uris\030\002 \003(\tB\003\340A\002\022\032\n\rpython_module\030\003" - + " \001(\tB\003\340A\002\022\014\n\004args\030\004 \003(\t\0224\n\003env\030\005 \003(\0132\'.g" - + "oogle.cloud.aiplatform.v1beta1.EnvVar\"_\n" - + "\nScheduling\022*\n\007timeout\030\001 \001(\0132\031.google.pr" - + "otobuf.Duration\022%\n\035restart_job_on_worker" - + "_restart\030\003 \001(\010B\353\001\n#com.google.cloud.aipl" - + "atform.v1beta1B\016CustomJobProtoP\001ZIgoogle" - + ".golang.org/genproto/googleapis/cloud/ai" - + "platform/v1beta1;aiplatform\252\002\037Google.Clo" - + "ud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIP" - + "latform\\V1beta1\352\002\"Google::Cloud::AIPlatf" - + "orm::V1beta1b\006proto3" + + "ard\022\036\n\021enable_web_access\030\n \001(\010B\003\340A\001\022$\n\027e" + + "nable_dashboard_access\030\020 \001(\010B\003\340A\001\"\237\003\n\016Wo" + + "rkerPoolSpec\022H\n\016container_spec\030\006 \001(\0132..g" + + "oogle.cloud.aiplatform.v1beta1.Container" + + "SpecH\000\022Q\n\023python_package_spec\030\007 \001(\01322.go" + + "ogle.cloud.aiplatform.v1beta1.PythonPack" + + "ageSpecH\000\022J\n\014machine_spec\030\001 \001(\0132,.google" + + ".cloud.aiplatform.v1beta1.MachineSpecB\006\340" + + "A\001\340A\005\022\032\n\rreplica_count\030\002 \001(\003B\003\340A\001\022B\n\nnfs" + + "_mounts\030\004 \003(\0132).google.cloud.aiplatform." + + "v1beta1.NfsMountB\003\340A\001\022<\n\tdisk_spec\030\005 \001(\013" + + "2).google.cloud.aiplatform.v1beta1.DiskS" + + "pecB\006\n\004task\"|\n\rContainerSpec\022\026\n\timage_ur" + + "i\030\001 \001(\tB\003\340A\002\022\017\n\007command\030\002 \003(\t\022\014\n\004args\030\003 " + + "\003(\t\0224\n\003env\030\004 \003(\0132\'.google.cloud.aiplatfo" + + "rm.v1beta1.EnvVar\"\257\001\n\021PythonPackageSpec\022" + + "\037\n\022executor_image_uri\030\001 \001(\tB\003\340A\002\022\031\n\014pack" + + "age_uris\030\002 \003(\tB\003\340A\002\022\032\n\rpython_module\030\003 \001" + + "(\tB\003\340A\002\022\014\n\004args\030\004 \003(\t\0224\n\003env\030\005 \003(\0132\'.goo" + + "gle.cloud.aiplatform.v1beta1.EnvVar\"_\n\nS" + + "cheduling\022*\n\007timeout\030\001 \001(\0132\031.google.prot" + + "obuf.Duration\022%\n\035restart_job_on_worker_r" + + "estart\030\003 \001(\010B\353\001\n#com.google.cloud.aiplat" + + "form.v1beta1B\016CustomJobProtoP\001ZIgoogle.g" + + "olang.org/genproto/googleapis/cloud/aipl" + + "atform/v1beta1;aiplatform\252\002\037Google.Cloud" + + ".AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPla" + + "tform\\V1beta1\352\002\"Google::Cloud::AIPlatfor" + + "m::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -210,6 +211,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BaseOutputDirectory", "Tensorboard", "EnableWebAccess", + "EnableDashboardAccess", }); internal_static_google_cloud_aiplatform_v1beta1_WorkerPoolSpec_descriptor = getDescriptor().getMessageTypes().get(2); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpec.java index 3b28297fa186..206352c2d479 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpec.java @@ -72,6 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int WORKER_POOL_SPECS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List workerPoolSpecs_; /** * @@ -207,11 +209,15 @@ public com.google.cloud.aiplatform.v1beta1.Scheduling getScheduling() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.SchedulingOrBuilder getSchedulingOrBuilder() { - return getScheduling(); + return scheduling_ == null + ? com.google.cloud.aiplatform.v1beta1.Scheduling.getDefaultInstance() + : scheduling_; } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 4; - private volatile java.lang.Object serviceAccount_; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; /** * * @@ -268,7 +274,9 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } public static final int NETWORK_FIELD_NUMBER = 5; - private volatile java.lang.Object network_; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; /** * * @@ -341,6 +349,8 @@ public com.google.protobuf.ByteString getNetworkBytes() { } public static final int RESERVED_IP_RANGES_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList reservedIpRanges_; /** * @@ -512,11 +522,15 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination getBaseOutputDirectory @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder getBaseOutputDirectoryOrBuilder() { - return getBaseOutputDirectory(); + return baseOutputDirectory_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance() + : baseOutputDirectory_; } public static final int TENSORBOARD_FIELD_NUMBER = 7; - private volatile java.lang.Object tensorboard_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboard_ = ""; /** * * @@ -575,7 +589,7 @@ public com.google.protobuf.ByteString getTensorboardBytes() { } public static final int ENABLE_WEB_ACCESS_FIELD_NUMBER = 10; - private boolean enableWebAccess_; + private boolean enableWebAccess_ = false; /** * * @@ -601,6 +615,32 @@ public boolean getEnableWebAccess() { return enableWebAccess_; } + public static final int ENABLE_DASHBOARD_ACCESS_FIELD_NUMBER = 16; + private boolean enableDashboardAccess_ = false; + /** + * + * + *
+   * Optional. Whether you want Vertex AI to enable access to the customized
+   * dashboard in training chief container.
+   * If set to `true`, you can access the dashboard at the URIs given
+   * by
+   * [CustomJob.web_access_uris][google.cloud.aiplatform.v1beta1.CustomJob.web_access_uris]
+   * or
+   * [Trial.web_access_uris][google.cloud.aiplatform.v1beta1.Trial.web_access_uris]
+   * (within
+   * [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.trials]).
+   * 
+ * + * bool enable_dashboard_access = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableDashboardAccess. + */ + @java.lang.Override + public boolean getEnableDashboardAccess() { + return enableDashboardAccess_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -639,6 +679,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < reservedIpRanges_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, reservedIpRanges_.getRaw(i)); } + if (enableDashboardAccess_ != false) { + output.writeBool(16, enableDashboardAccess_); + } getUnknownFields().writeTo(output); } @@ -677,6 +720,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getReservedIpRangesList().size(); } + if (enableDashboardAccess_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, enableDashboardAccess_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -707,6 +753,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getTensorboard().equals(other.getTensorboard())) return false; if (getEnableWebAccess() != other.getEnableWebAccess()) return false; + if (getEnableDashboardAccess() != other.getEnableDashboardAccess()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -742,6 +789,8 @@ public int hashCode() { hash = (53 * hash) + getTensorboard().hashCode(); hash = (37 * hash) + ENABLE_WEB_ACCESS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableWebAccess()); + hash = (37 * hash) + ENABLE_DASHBOARD_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableDashboardAccess()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -880,6 +929,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (workerPoolSpecsBuilder_ == null) { workerPoolSpecs_ = java.util.Collections.emptyList(); } else { @@ -887,28 +937,23 @@ public Builder clear() { workerPoolSpecsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); - if (schedulingBuilder_ == null) { - scheduling_ = null; - } else { - scheduling_ = null; + scheduling_ = null; + if (schedulingBuilder_ != null) { + schedulingBuilder_.dispose(); schedulingBuilder_ = null; } serviceAccount_ = ""; - network_ = ""; - reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - if (baseOutputDirectoryBuilder_ == null) { - baseOutputDirectory_ = null; - } else { - baseOutputDirectory_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + baseOutputDirectory_ = null; + if (baseOutputDirectoryBuilder_ != null) { + baseOutputDirectoryBuilder_.dispose(); baseOutputDirectoryBuilder_ = null; } tensorboard_ = ""; - enableWebAccess_ = false; - + enableDashboardAccess_ = false; return this; } @@ -936,7 +981,16 @@ public com.google.cloud.aiplatform.v1beta1.CustomJobSpec build() { public com.google.cloud.aiplatform.v1beta1.CustomJobSpec buildPartial() { com.google.cloud.aiplatform.v1beta1.CustomJobSpec result = new com.google.cloud.aiplatform.v1beta1.CustomJobSpec(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.CustomJobSpec result) { if (workerPoolSpecsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workerPoolSpecs_ = java.util.Collections.unmodifiableList(workerPoolSpecs_); @@ -946,27 +1000,39 @@ public com.google.cloud.aiplatform.v1beta1.CustomJobSpec buildPartial() { } else { result.workerPoolSpecs_ = workerPoolSpecsBuilder_.build(); } - if (schedulingBuilder_ == null) { - result.scheduling_ = scheduling_; - } else { - result.scheduling_ = schedulingBuilder_.build(); - } - result.serviceAccount_ = serviceAccount_; - result.network_ = network_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { reservedIpRanges_ = reservedIpRanges_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); } result.reservedIpRanges_ = reservedIpRanges_; - if (baseOutputDirectoryBuilder_ == null) { - result.baseOutputDirectory_ = baseOutputDirectory_; - } else { - result.baseOutputDirectory_ = baseOutputDirectoryBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CustomJobSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.scheduling_ = schedulingBuilder_ == null ? scheduling_ : schedulingBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.baseOutputDirectory_ = + baseOutputDirectoryBuilder_ == null + ? baseOutputDirectory_ + : baseOutputDirectoryBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.tensorboard_ = tensorboard_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.enableWebAccess_ = enableWebAccess_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.enableDashboardAccess_ = enableDashboardAccess_; } - result.tensorboard_ = tensorboard_; - result.enableWebAccess_ = enableWebAccess_; - onBuilt(); - return result; } @java.lang.Override @@ -1047,16 +1113,18 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CustomJobSpec other } if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getNetwork().isEmpty()) { network_ = other.network_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.reservedIpRanges_.isEmpty()) { if (reservedIpRanges_.isEmpty()) { reservedIpRanges_ = other.reservedIpRanges_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureReservedIpRangesIsMutable(); reservedIpRanges_.addAll(other.reservedIpRanges_); @@ -1068,11 +1136,15 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CustomJobSpec other } if (!other.getTensorboard().isEmpty()) { tensorboard_ = other.tensorboard_; + bitField0_ |= 0x00000040; onChanged(); } if (other.getEnableWebAccess() != false) { setEnableWebAccess(other.getEnableWebAccess()); } + if (other.getEnableDashboardAccess() != false) { + setEnableDashboardAccess(other.getEnableDashboardAccess()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1116,38 +1188,38 @@ public Builder mergeFrom( case 26: { input.readMessage(getSchedulingFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 26 case 34: { serviceAccount_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 34 case 42: { network_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 42 case 50: { input.readMessage( getBaseOutputDirectoryFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 case 58: { tensorboard_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 58 case 80: { enableWebAccess_ = input.readBool(); - + bitField0_ |= 0x00000080; break; } // case 80 case 106: @@ -1157,6 +1229,12 @@ public Builder mergeFrom( reservedIpRanges_.add(s); break; } // case 106 + case 128: + { + enableDashboardAccess_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 128 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1628,7 +1706,7 @@ public com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec.Builder addWorkerPoolS * @return Whether the scheduling field is set. */ public boolean hasScheduling() { - return schedulingBuilder_ != null || scheduling_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1665,11 +1743,11 @@ public Builder setScheduling(com.google.cloud.aiplatform.v1beta1.Scheduling valu throw new NullPointerException(); } scheduling_ = value; - onChanged(); } else { schedulingBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1685,11 +1763,11 @@ public Builder setScheduling( com.google.cloud.aiplatform.v1beta1.Scheduling.Builder builderForValue) { if (schedulingBuilder_ == null) { scheduling_ = builderForValue.build(); - onChanged(); } else { schedulingBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1703,19 +1781,18 @@ public Builder setScheduling( */ public Builder mergeScheduling(com.google.cloud.aiplatform.v1beta1.Scheduling value) { if (schedulingBuilder_ == null) { - if (scheduling_ != null) { - scheduling_ = - com.google.cloud.aiplatform.v1beta1.Scheduling.newBuilder(scheduling_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && scheduling_ != null + && scheduling_ != com.google.cloud.aiplatform.v1beta1.Scheduling.getDefaultInstance()) { + getSchedulingBuilder().mergeFrom(value); } else { scheduling_ = value; } - onChanged(); } else { schedulingBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1728,14 +1805,13 @@ public Builder mergeScheduling(com.google.cloud.aiplatform.v1beta1.Scheduling va * .google.cloud.aiplatform.v1beta1.Scheduling scheduling = 3; */ public Builder clearScheduling() { - if (schedulingBuilder_ == null) { - scheduling_ = null; - onChanged(); - } else { - scheduling_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + scheduling_ = null; + if (schedulingBuilder_ != null) { + schedulingBuilder_.dispose(); schedulingBuilder_ = null; } - + onChanged(); return this; } /** @@ -1748,7 +1824,7 @@ public Builder clearScheduling() { * .google.cloud.aiplatform.v1beta1.Scheduling scheduling = 3; */ public com.google.cloud.aiplatform.v1beta1.Scheduling.Builder getSchedulingBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getSchedulingFieldBuilder().getBuilder(); } @@ -1869,8 +1945,8 @@ public Builder setServiceAccount(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - serviceAccount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1890,8 +1966,8 @@ public Builder setServiceAccount(java.lang.String value) { * @return This builder for chaining. */ public Builder clearServiceAccount() { - serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1916,8 +1992,8 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - serviceAccount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2019,8 +2095,8 @@ public Builder setNetwork(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - network_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2048,8 +2124,8 @@ public Builder setNetwork(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNetwork() { - network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2082,8 +2158,8 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - network_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2092,9 +2168,9 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureReservedIpRangesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { reservedIpRanges_ = new com.google.protobuf.LazyStringArrayList(reservedIpRanges_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; } } /** @@ -2277,7 +2353,7 @@ public Builder addAllReservedIpRanges(java.lang.Iterable value */ public Builder clearReservedIpRanges() { reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2343,7 +2419,7 @@ public Builder addReservedIpRangesBytes(com.google.protobuf.ByteString value) { * @return Whether the baseOutputDirectory field is set. */ public boolean hasBaseOutputDirectory() { - return baseOutputDirectoryBuilder_ != null || baseOutputDirectory_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2411,11 +2487,11 @@ public Builder setBaseOutputDirectory( throw new NullPointerException(); } baseOutputDirectory_ = value; - onChanged(); } else { baseOutputDirectoryBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2446,11 +2522,11 @@ public Builder setBaseOutputDirectory( com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder builderForValue) { if (baseOutputDirectoryBuilder_ == null) { baseOutputDirectory_ = builderForValue.build(); - onChanged(); } else { baseOutputDirectoryBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2480,19 +2556,19 @@ public Builder setBaseOutputDirectory( public Builder mergeBaseOutputDirectory( com.google.cloud.aiplatform.v1beta1.GcsDestination value) { if (baseOutputDirectoryBuilder_ == null) { - if (baseOutputDirectory_ != null) { - baseOutputDirectory_ = - com.google.cloud.aiplatform.v1beta1.GcsDestination.newBuilder(baseOutputDirectory_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && baseOutputDirectory_ != null + && baseOutputDirectory_ + != com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance()) { + getBaseOutputDirectoryBuilder().mergeFrom(value); } else { baseOutputDirectory_ = value; } - onChanged(); } else { baseOutputDirectoryBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2520,14 +2596,13 @@ public Builder mergeBaseOutputDirectory( * .google.cloud.aiplatform.v1beta1.GcsDestination base_output_directory = 6; */ public Builder clearBaseOutputDirectory() { - if (baseOutputDirectoryBuilder_ == null) { - baseOutputDirectory_ = null; - onChanged(); - } else { - baseOutputDirectory_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + baseOutputDirectory_ = null; + if (baseOutputDirectoryBuilder_ != null) { + baseOutputDirectoryBuilder_.dispose(); baseOutputDirectoryBuilder_ = null; } - + onChanged(); return this; } /** @@ -2556,7 +2631,7 @@ public Builder clearBaseOutputDirectory() { */ public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder getBaseOutputDirectoryBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getBaseOutputDirectoryFieldBuilder().getBuilder(); } @@ -2711,8 +2786,8 @@ public Builder setTensorboard(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboard_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2733,8 +2808,8 @@ public Builder setTensorboard(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboard() { - tensorboard_ = getDefaultInstance().getTensorboard(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2760,8 +2835,8 @@ public Builder setTensorboardBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboard_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2815,6 +2890,7 @@ public boolean getEnableWebAccess() { public Builder setEnableWebAccess(boolean value) { enableWebAccess_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2839,12 +2915,89 @@ public Builder setEnableWebAccess(boolean value) { * @return This builder for chaining. */ public Builder clearEnableWebAccess() { - + bitField0_ = (bitField0_ & ~0x00000080); enableWebAccess_ = false; onChanged(); return this; } + private boolean enableDashboardAccess_; + /** + * + * + *
+     * Optional. Whether you want Vertex AI to enable access to the customized
+     * dashboard in training chief container.
+     * If set to `true`, you can access the dashboard at the URIs given
+     * by
+     * [CustomJob.web_access_uris][google.cloud.aiplatform.v1beta1.CustomJob.web_access_uris]
+     * or
+     * [Trial.web_access_uris][google.cloud.aiplatform.v1beta1.Trial.web_access_uris]
+     * (within
+     * [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.trials]).
+     * 
+ * + * bool enable_dashboard_access = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableDashboardAccess. + */ + @java.lang.Override + public boolean getEnableDashboardAccess() { + return enableDashboardAccess_; + } + /** + * + * + *
+     * Optional. Whether you want Vertex AI to enable access to the customized
+     * dashboard in training chief container.
+     * If set to `true`, you can access the dashboard at the URIs given
+     * by
+     * [CustomJob.web_access_uris][google.cloud.aiplatform.v1beta1.CustomJob.web_access_uris]
+     * or
+     * [Trial.web_access_uris][google.cloud.aiplatform.v1beta1.Trial.web_access_uris]
+     * (within
+     * [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.trials]).
+     * 
+ * + * bool enable_dashboard_access = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableDashboardAccess to set. + * @return This builder for chaining. + */ + public Builder setEnableDashboardAccess(boolean value) { + + enableDashboardAccess_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Whether you want Vertex AI to enable access to the customized
+     * dashboard in training chief container.
+     * If set to `true`, you can access the dashboard at the URIs given
+     * by
+     * [CustomJob.web_access_uris][google.cloud.aiplatform.v1beta1.CustomJob.web_access_uris]
+     * or
+     * [Trial.web_access_uris][google.cloud.aiplatform.v1beta1.Trial.web_access_uris]
+     * (within
+     * [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.trials]).
+     * 
+ * + * bool enable_dashboard_access = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableDashboardAccess() { + bitField0_ = (bitField0_ & ~0x00000100); + enableDashboardAccess_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpecOrBuilder.java index 8532a3047a3e..d6786f14765f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpecOrBuilder.java @@ -420,4 +420,25 @@ com.google.cloud.aiplatform.v1beta1.WorkerPoolSpecOrBuilder getWorkerPoolSpecsOr * @return The enableWebAccess. */ boolean getEnableWebAccess(); + + /** + * + * + *
+   * Optional. Whether you want Vertex AI to enable access to the customized
+   * dashboard in training chief container.
+   * If set to `true`, you can access the dashboard at the URIs given
+   * by
+   * [CustomJob.web_access_uris][google.cloud.aiplatform.v1beta1.CustomJob.web_access_uris]
+   * or
+   * [Trial.web_access_uris][google.cloud.aiplatform.v1beta1.Trial.web_access_uris]
+   * (within
+   * [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.trials]).
+   * 
+ * + * bool enable_dashboard_access = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableDashboardAccess. + */ + boolean getEnableDashboardAccess(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItem.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItem.java index ce0075a459a8..30932de31814 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItem.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItem.java @@ -81,7 +81,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -175,7 +177,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 6; @@ -224,7 +226,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int LABELS_FIELD_NUMBER = 3; @@ -240,6 +242,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -321,7 +324,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -412,11 +418,13 @@ public com.google.protobuf.Value getPayload() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getPayloadOrBuilder() { - return getPayload(); + return payload_ == null ? com.google.protobuf.Value.getDefaultInstance() : payload_; } public static final int ETAG_FIELD_NUMBER = 7; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -752,29 +760,25 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); - if (payloadBuilder_ == null) { - payload_ = null; - } else { - payload_ = null; + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); payloadBuilder_ = null; } etag_ = ""; - return this; } @@ -802,28 +806,34 @@ public com.google.cloud.aiplatform.v1beta1.DataItem build() { public com.google.cloud.aiplatform.v1beta1.DataItem buildPartial() { com.google.cloud.aiplatform.v1beta1.DataItem result = new com.google.cloud.aiplatform.v1beta1.DataItem(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DataItem result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (payloadBuilder_ == null) { - result.payload_ = payload_; - } else { - result.payload_ = payloadBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.payload_ = payloadBuilder_ == null ? payload_ : payloadBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.etag_ = etag_; } - result.etag_ = etag_; - onBuilt(); - return result; } @java.lang.Override @@ -873,6 +883,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DataItem other) { if (other == com.google.cloud.aiplatform.v1beta1.DataItem.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasCreateTime()) { @@ -882,11 +893,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DataItem other) { mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; if (other.hasPayload()) { mergePayload(other.getPayload()); } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -918,13 +931,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -936,24 +949,25 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage(getPayloadFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 34 case 50: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 50 case 58: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 58 default: @@ -1036,8 +1050,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1053,8 +1067,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1075,8 +1089,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1101,7 +1115,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1142,11 +1156,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1163,11 +1177,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1183,17 +1197,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1208,14 +1223,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1230,7 +1244,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1302,7 +1316,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1343,11 +1357,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1364,11 +1378,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1384,17 +1398,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1409,14 +1424,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1431,7 +1445,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -1494,14 +1508,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000008; + onChanged(); return labels_; } @@ -1577,8 +1591,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1615,6 +1631,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -1645,6 +1662,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** @@ -1671,8 +1689,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; return this; } /** @@ -1694,6 +1712,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; return this; } @@ -1719,7 +1738,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the payload field is set. */ public boolean hasPayload() { - return payloadBuilder_ != null || payload_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1762,11 +1781,11 @@ public Builder setPayload(com.google.protobuf.Value value) { throw new NullPointerException(); } payload_ = value; - onChanged(); } else { payloadBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1785,11 +1804,11 @@ public Builder setPayload(com.google.protobuf.Value value) { public Builder setPayload(com.google.protobuf.Value.Builder builderForValue) { if (payloadBuilder_ == null) { payload_ = builderForValue.build(); - onChanged(); } else { payloadBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1807,16 +1826,18 @@ public Builder setPayload(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergePayload(com.google.protobuf.Value value) { if (payloadBuilder_ == null) { - if (payload_ != null) { - payload_ = com.google.protobuf.Value.newBuilder(payload_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && payload_ != null + && payload_ != com.google.protobuf.Value.getDefaultInstance()) { + getPayloadBuilder().mergeFrom(value); } else { payload_ = value; } - onChanged(); } else { payloadBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1833,14 +1854,13 @@ public Builder mergePayload(com.google.protobuf.Value value) { * .google.protobuf.Value payload = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPayload() { - if (payloadBuilder_ == null) { - payload_ = null; - onChanged(); - } else { - payload_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); payloadBuilder_ = null; } - + onChanged(); return this; } /** @@ -1857,7 +1877,7 @@ public Builder clearPayload() { * .google.protobuf.Value payload = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Value.Builder getPayloadBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getPayloadFieldBuilder().getBuilder(); } @@ -1975,8 +1995,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1993,8 +2013,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2016,8 +2036,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemOrBuilder.java index 1d79c7a1d1cf..43c6e6308aef 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemOrBuilder.java @@ -198,7 +198,6 @@ public interface DataItemOrBuilder * * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemView.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemView.java index 94ca47e12a03..4cd885c35eae 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemView.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemView.java @@ -112,10 +112,14 @@ public com.google.cloud.aiplatform.v1beta1.DataItem getDataItem() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.DataItemOrBuilder getDataItemOrBuilder() { - return getDataItem(); + return dataItem_ == null + ? com.google.cloud.aiplatform.v1beta1.DataItem.getDefaultInstance() + : dataItem_; } public static final int ANNOTATIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List annotations_; /** * @@ -196,7 +200,7 @@ public com.google.cloud.aiplatform.v1beta1.AnnotationOrBuilder getAnnotationsOrB } public static final int HAS_TRUNCATED_ANNOTATIONS_FIELD_NUMBER = 3; - private boolean hasTruncatedAnnotations_; + private boolean hasTruncatedAnnotations_ = false; /** * * @@ -440,10 +444,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (dataItemBuilder_ == null) { - dataItem_ = null; - } else { - dataItem_ = null; + bitField0_ = 0; + dataItem_ = null; + if (dataItemBuilder_ != null) { + dataItemBuilder_.dispose(); dataItemBuilder_ = null; } if (annotationsBuilder_ == null) { @@ -452,9 +456,8 @@ public Builder clear() { annotations_ = null; annotationsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); hasTruncatedAnnotations_ = false; - return this; } @@ -482,24 +485,35 @@ public com.google.cloud.aiplatform.v1beta1.DataItemView build() { public com.google.cloud.aiplatform.v1beta1.DataItemView buildPartial() { com.google.cloud.aiplatform.v1beta1.DataItemView result = new com.google.cloud.aiplatform.v1beta1.DataItemView(this); - int from_bitField0_ = bitField0_; - if (dataItemBuilder_ == null) { - result.dataItem_ = dataItem_; - } else { - result.dataItem_ = dataItemBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.DataItemView result) { if (annotationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { annotations_ = java.util.Collections.unmodifiableList(annotations_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.annotations_ = annotations_; } else { result.annotations_ = annotationsBuilder_.build(); } - result.hasTruncatedAnnotations_ = hasTruncatedAnnotations_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DataItemView result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataItem_ = dataItemBuilder_ == null ? dataItem_ : dataItemBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.hasTruncatedAnnotations_ = hasTruncatedAnnotations_; + } } @java.lang.Override @@ -555,7 +569,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DataItemView other) if (!other.annotations_.isEmpty()) { if (annotations_.isEmpty()) { annotations_ = other.annotations_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAnnotationsIsMutable(); annotations_.addAll(other.annotations_); @@ -568,7 +582,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DataItemView other) annotationsBuilder_.dispose(); annotationsBuilder_ = null; annotations_ = other.annotations_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); annotationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAnnotationsFieldBuilder() @@ -610,7 +624,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getDataItemFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -629,7 +643,7 @@ public Builder mergeFrom( case 24: { hasTruncatedAnnotations_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -669,7 +683,7 @@ public Builder mergeFrom( * @return Whether the dataItem field is set. */ public boolean hasDataItem() { - return dataItemBuilder_ != null || dataItem_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -706,11 +720,11 @@ public Builder setDataItem(com.google.cloud.aiplatform.v1beta1.DataItem value) { throw new NullPointerException(); } dataItem_ = value; - onChanged(); } else { dataItemBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -726,11 +740,11 @@ public Builder setDataItem( com.google.cloud.aiplatform.v1beta1.DataItem.Builder builderForValue) { if (dataItemBuilder_ == null) { dataItem_ = builderForValue.build(); - onChanged(); } else { dataItemBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -744,19 +758,18 @@ public Builder setDataItem( */ public Builder mergeDataItem(com.google.cloud.aiplatform.v1beta1.DataItem value) { if (dataItemBuilder_ == null) { - if (dataItem_ != null) { - dataItem_ = - com.google.cloud.aiplatform.v1beta1.DataItem.newBuilder(dataItem_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && dataItem_ != null + && dataItem_ != com.google.cloud.aiplatform.v1beta1.DataItem.getDefaultInstance()) { + getDataItemBuilder().mergeFrom(value); } else { dataItem_ = value; } - onChanged(); } else { dataItemBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -769,14 +782,13 @@ public Builder mergeDataItem(com.google.cloud.aiplatform.v1beta1.DataItem value) * .google.cloud.aiplatform.v1beta1.DataItem data_item = 1; */ public Builder clearDataItem() { - if (dataItemBuilder_ == null) { - dataItem_ = null; - onChanged(); - } else { - dataItem_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + dataItem_ = null; + if (dataItemBuilder_ != null) { + dataItemBuilder_.dispose(); dataItemBuilder_ = null; } - + onChanged(); return this; } /** @@ -789,7 +801,7 @@ public Builder clearDataItem() { * .google.cloud.aiplatform.v1beta1.DataItem data_item = 1; */ public com.google.cloud.aiplatform.v1beta1.DataItem.Builder getDataItemBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getDataItemFieldBuilder().getBuilder(); } @@ -841,10 +853,10 @@ public com.google.cloud.aiplatform.v1beta1.DataItemOrBuilder getDataItemOrBuilde java.util.Collections.emptyList(); private void ensureAnnotationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { annotations_ = new java.util.ArrayList(annotations_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1082,7 +1094,7 @@ public Builder addAllAnnotations( public Builder clearAnnotations() { if (annotationsBuilder_ == null) { annotations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { annotationsBuilder_.clear(); @@ -1219,7 +1231,7 @@ public com.google.cloud.aiplatform.v1beta1.Annotation.Builder addAnnotationsBuil com.google.cloud.aiplatform.v1beta1.Annotation, com.google.cloud.aiplatform.v1beta1.Annotation.Builder, com.google.cloud.aiplatform.v1beta1.AnnotationOrBuilder>( - annotations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + annotations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); annotations_ = null; } return annotationsBuilder_; @@ -1266,6 +1278,7 @@ public boolean getHasTruncatedAnnotations() { public Builder setHasTruncatedAnnotations(boolean value) { hasTruncatedAnnotations_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1286,7 +1299,7 @@ public Builder setHasTruncatedAnnotations(boolean value) { * @return This builder for chaining. */ public Builder clearHasTruncatedAnnotations() { - + bitField0_ = (bitField0_ & ~0x00000004); hasTruncatedAnnotations_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJob.java index 3d4755ff82fc..83895638e020 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJob.java @@ -88,7 +88,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -137,7 +139,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -192,6 +196,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DATASETS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList datasets_; /** * @@ -281,6 +287,7 @@ private static final class AnnotationLabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField annotationLabels_; private com.google.protobuf.MapField @@ -358,8 +365,10 @@ public java.util.Map getAnnotationLabelsMap( * map<string, string> annotation_labels = 12; */ @java.lang.Override - public java.lang.String getAnnotationLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getAnnotationLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -394,7 +403,7 @@ public java.lang.String getAnnotationLabelsOrThrow(java.lang.String key) { } public static final int LABELER_COUNT_FIELD_NUMBER = 4; - private int labelerCount_; + private int labelerCount_ = 0; /** * * @@ -412,7 +421,9 @@ public int getLabelerCount() { } public static final int INSTRUCTION_URI_FIELD_NUMBER = 5; - private volatile java.lang.Object instructionUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object instructionUri_ = ""; /** * * @@ -465,7 +476,9 @@ public com.google.protobuf.ByteString getInstructionUriBytes() { } public static final int INPUTS_SCHEMA_URI_FIELD_NUMBER = 6; - private volatile java.lang.Object inputsSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object inputsSchemaUri_ = ""; /** * * @@ -564,11 +577,11 @@ public com.google.protobuf.Value getInputs() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null ? com.google.protobuf.Value.getDefaultInstance() : inputs_; } public static final int STATE_FIELD_NUMBER = 8; - private int state_; + private int state_ = 0; /** * * @@ -601,14 +614,13 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.JobState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.JobState result = - com.google.cloud.aiplatform.v1beta1.JobState.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.JobState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.JobState.UNRECOGNIZED : result; } public static final int LABELING_PROGRESS_FIELD_NUMBER = 13; - private int labelingProgress_; + private int labelingProgress_ = 0; /** * * @@ -675,7 +687,7 @@ public com.google.type.Money getCurrentSpend() { */ @java.lang.Override public com.google.type.MoneyOrBuilder getCurrentSpendOrBuilder() { - return getCurrentSpend(); + return currentSpend_ == null ? com.google.type.Money.getDefaultInstance() : currentSpend_; } public static final int CREATE_TIME_FIELD_NUMBER = 9; @@ -724,7 +736,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 10; @@ -773,7 +785,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ERROR_FIELD_NUMBER = 22; @@ -822,7 +834,7 @@ public com.google.rpc.Status getError() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return getError(); + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } public static final int LABELS_FIELD_NUMBER = 11; @@ -838,6 +850,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -922,7 +935,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -960,6 +976,8 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int SPECIALIST_POOLS_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList specialistPools_; /** * @@ -1074,7 +1092,9 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } public static final int ACTIVE_LEARNING_CONFIG_FIELD_NUMBER = 21; @@ -1129,7 +1149,9 @@ public com.google.cloud.aiplatform.v1beta1.ActiveLearningConfig getActiveLearnin @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ActiveLearningConfigOrBuilder getActiveLearningConfigOrBuilder() { - return getActiveLearningConfig(); + return activeLearningConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ActiveLearningConfig.getDefaultInstance() + : activeLearningConfig_; } private byte memoizedIsInitialized = -1; @@ -1573,66 +1595,53 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - datasets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableAnnotationLabels().clear(); labelerCount_ = 0; - instructionUri_ = ""; - inputsSchemaUri_ = ""; - - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } state_ = 0; - labelingProgress_ = 0; - - if (currentSpendBuilder_ == null) { - currentSpend_ = null; - } else { - currentSpend_ = null; + currentSpend_ = null; + if (currentSpendBuilder_ != null) { + currentSpendBuilder_.dispose(); currentSpendBuilder_ = null; } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - if (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } internalGetMutableLabels().clear(); specialistPools_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00008000); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - if (activeLearningConfigBuilder_ == null) { - activeLearningConfig_ = null; - } else { - activeLearningConfig_ = null; + activeLearningConfig_ = null; + if (activeLearningConfigBuilder_ != null) { + activeLearningConfigBuilder_.dispose(); activeLearningConfigBuilder_ = null; } return this; @@ -1662,65 +1671,85 @@ public com.google.cloud.aiplatform.v1beta1.DataLabelingJob build() { public com.google.cloud.aiplatform.v1beta1.DataLabelingJob buildPartial() { com.google.cloud.aiplatform.v1beta1.DataLabelingJob result = new com.google.cloud.aiplatform.v1beta1.DataLabelingJob(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.DataLabelingJob result) { + if (((bitField0_ & 0x00000004) != 0)) { datasets_ = datasets_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.datasets_ = datasets_; - result.annotationLabels_ = internalGetAnnotationLabels(); - result.annotationLabels_.makeImmutable(); - result.labelerCount_ = labelerCount_; - result.instructionUri_ = instructionUri_; - result.inputsSchemaUri_ = inputsSchemaUri_; - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); + if (((bitField0_ & 0x00008000) != 0)) { + specialistPools_ = specialistPools_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00008000); } - result.state_ = state_; - result.labelingProgress_ = labelingProgress_; - if (currentSpendBuilder_ == null) { - result.currentSpend_ = currentSpend_; - } else { - result.currentSpend_ = currentSpendBuilder_.build(); + result.specialistPools_ = specialistPools_; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DataLabelingJob result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.annotationLabels_ = internalGetAnnotationLabels(); + result.annotationLabels_.makeImmutable(); } - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labelerCount_ = labelerCount_; } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (((bitField0_ & 0x00000008) != 0)) { - specialistPools_ = specialistPools_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.instructionUri_ = instructionUri_; } - result.specialistPools_ = specialistPools_; - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000040) != 0)) { + result.inputsSchemaUri_ = inputsSchemaUri_; } - if (activeLearningConfigBuilder_ == null) { - result.activeLearningConfig_ = activeLearningConfig_; - } else { - result.activeLearningConfig_ = activeLearningConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000080) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.labelingProgress_ = labelingProgress_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.currentSpend_ = + currentSpendBuilder_ == null ? currentSpend_ : currentSpendBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.activeLearningConfig_ = + activeLearningConfigBuilder_ == null + ? activeLearningConfig_ + : activeLearningConfigBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -1771,16 +1800,18 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DataLabelingJob oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.datasets_.isEmpty()) { if (datasets_.isEmpty()) { datasets_ = other.datasets_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDatasetsIsMutable(); datasets_.addAll(other.datasets_); @@ -1788,15 +1819,18 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DataLabelingJob oth onChanged(); } internalGetMutableAnnotationLabels().mergeFrom(other.internalGetAnnotationLabels()); + bitField0_ |= 0x00000008; if (other.getLabelerCount() != 0) { setLabelerCount(other.getLabelerCount()); } if (!other.getInstructionUri().isEmpty()) { instructionUri_ = other.instructionUri_; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getInputsSchemaUri().isEmpty()) { inputsSchemaUri_ = other.inputsSchemaUri_; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasInputs()) { @@ -1821,10 +1855,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DataLabelingJob oth mergeError(other.getError()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00004000; if (!other.specialistPools_.isEmpty()) { if (specialistPools_.isEmpty()) { specialistPools_ = other.specialistPools_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00008000); } else { ensureSpecialistPoolsIsMutable(); specialistPools_.addAll(other.specialistPools_); @@ -1866,13 +1901,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -1885,43 +1920,43 @@ public Builder mergeFrom( case 32: { labelerCount_ = input.readInt32(); - + bitField0_ |= 0x00000010; break; } // case 32 case 42: { instructionUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 42 case 50: { inputsSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 50 case 58: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 58 case 64: { state_ = input.readEnum(); - + bitField0_ |= 0x00000100; break; } // case 64 case 74: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000800; break; } // case 74 case 82: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00001000; break; } // case 82 case 90: @@ -1933,6 +1968,7 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00004000; break; } // case 90 case 98: @@ -1945,18 +1981,19 @@ public Builder mergeFrom( internalGetMutableAnnotationLabels() .getMutableMap() .put(annotationLabels__.getKey(), annotationLabels__.getValue()); + bitField0_ |= 0x00000008; break; } // case 98 case 104: { labelingProgress_ = input.readInt32(); - + bitField0_ |= 0x00000200; break; } // case 104 case 114: { input.readMessage(getCurrentSpendFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 114 case 130: @@ -1969,20 +2006,20 @@ public Builder mergeFrom( case 162: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00010000; break; } // case 162 case 170: { input.readMessage( getActiveLearningConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00020000; break; } // case 170 case 178: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00002000; break; } // case 178 default: @@ -2065,8 +2102,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2082,8 +2119,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2104,8 +2141,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2180,8 +2217,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2200,8 +2237,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2225,8 +2262,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2235,9 +2272,9 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDatasetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { datasets_ = new com.google.protobuf.LazyStringArrayList(datasets_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } /** @@ -2404,7 +2441,7 @@ public Builder addAllDatasets(java.lang.Iterable values) { */ public Builder clearDatasets() { datasets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2448,8 +2485,6 @@ public Builder addDatasetsBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.MapField internalGetMutableAnnotationLabels() { - onChanged(); - ; if (annotationLabels_ == null) { annotationLabels_ = com.google.protobuf.MapField.newMapField( @@ -2458,6 +2493,8 @@ public Builder addDatasetsBytes(com.google.protobuf.ByteString value) { if (!annotationLabels_.isMutable()) { annotationLabels_ = annotationLabels_.copy(); } + bitField0_ |= 0x00000008; + onChanged(); return annotationLabels_; } @@ -2527,8 +2564,10 @@ public java.util.Map getAnnotationLabelsMap( * map<string, string> annotation_labels = 12; */ @java.lang.Override - public java.lang.String getAnnotationLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getAnnotationLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2565,6 +2604,7 @@ public java.lang.String getAnnotationLabelsOrThrow(java.lang.String key) { } public Builder clearAnnotationLabels() { + bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableAnnotationLabels().getMutableMap().clear(); return this; } @@ -2593,6 +2633,7 @@ public Builder removeAnnotationLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAnnotationLabels() { + bitField0_ |= 0x00000008; return internalGetMutableAnnotationLabels().getMutableMap(); } /** @@ -2617,8 +2658,8 @@ public Builder putAnnotationLabels(java.lang.String key, java.lang.String value) if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAnnotationLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; return this; } /** @@ -2639,6 +2680,7 @@ public Builder putAnnotationLabels(java.lang.String key, java.lang.String value) public Builder putAllAnnotationLabels( java.util.Map values) { internalGetMutableAnnotationLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; return this; } @@ -2673,6 +2715,7 @@ public int getLabelerCount() { public Builder setLabelerCount(int value) { labelerCount_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2688,7 +2731,7 @@ public Builder setLabelerCount(int value) { * @return This builder for chaining. */ public Builder clearLabelerCount() { - + bitField0_ = (bitField0_ & ~0x00000010); labelerCount_ = 0; onChanged(); return this; @@ -2761,8 +2804,8 @@ public Builder setInstructionUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - instructionUri_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2780,8 +2823,8 @@ public Builder setInstructionUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInstructionUri() { - instructionUri_ = getDefaultInstance().getInstructionUri(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2804,8 +2847,8 @@ public Builder setInstructionUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - instructionUri_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2883,8 +2926,8 @@ public Builder setInputsSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - inputsSchemaUri_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2904,8 +2947,8 @@ public Builder setInputsSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInputsSchemaUri() { - inputsSchemaUri_ = getDefaultInstance().getInputsSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2930,8 +2973,8 @@ public Builder setInputsSchemaUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - inputsSchemaUri_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2954,7 +2997,7 @@ public Builder setInputsSchemaUriBytes(com.google.protobuf.ByteString value) { * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2989,11 +3032,11 @@ public Builder setInputs(com.google.protobuf.Value value) { throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3008,11 +3051,11 @@ public Builder setInputs(com.google.protobuf.Value value) { public Builder setInputs(com.google.protobuf.Value.Builder builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3026,16 +3069,18 @@ public Builder setInputs(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeInputs(com.google.protobuf.Value value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = com.google.protobuf.Value.newBuilder(inputs_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && inputs_ != null + && inputs_ != com.google.protobuf.Value.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3048,14 +3093,13 @@ public Builder mergeInputs(com.google.protobuf.Value value) { * .google.protobuf.Value inputs = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -3068,7 +3112,7 @@ public Builder clearInputs() { * .google.protobuf.Value inputs = 7 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Value.Builder getInputsBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getInputsFieldBuilder().getBuilder(); } @@ -3146,8 +3190,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3166,9 +3210,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.JobState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.JobState result = - com.google.cloud.aiplatform.v1beta1.JobState.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.JobState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.JobState.UNRECOGNIZED : result; } /** @@ -3189,7 +3232,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000100; state_ = value.getNumber(); onChanged(); return this; @@ -3208,7 +3251,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000100); state_ = 0; onChanged(); return this; @@ -3247,6 +3290,7 @@ public int getLabelingProgress() { public Builder setLabelingProgress(int value) { labelingProgress_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3263,7 +3307,7 @@ public Builder setLabelingProgress(int value) { * @return This builder for chaining. */ public Builder clearLabelingProgress() { - + bitField0_ = (bitField0_ & ~0x00000200); labelingProgress_ = 0; onChanged(); return this; @@ -3287,7 +3331,7 @@ public Builder clearLabelingProgress() { * @return Whether the currentSpend field is set. */ public boolean hasCurrentSpend() { - return currentSpendBuilder_ != null || currentSpend_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -3326,11 +3370,11 @@ public Builder setCurrentSpend(com.google.type.Money value) { throw new NullPointerException(); } currentSpend_ = value; - onChanged(); } else { currentSpendBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3347,11 +3391,11 @@ public Builder setCurrentSpend(com.google.type.Money value) { public Builder setCurrentSpend(com.google.type.Money.Builder builderForValue) { if (currentSpendBuilder_ == null) { currentSpend_ = builderForValue.build(); - onChanged(); } else { currentSpendBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3367,17 +3411,18 @@ public Builder setCurrentSpend(com.google.type.Money.Builder builderForValue) { */ public Builder mergeCurrentSpend(com.google.type.Money value) { if (currentSpendBuilder_ == null) { - if (currentSpend_ != null) { - currentSpend_ = - com.google.type.Money.newBuilder(currentSpend_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && currentSpend_ != null + && currentSpend_ != com.google.type.Money.getDefaultInstance()) { + getCurrentSpendBuilder().mergeFrom(value); } else { currentSpend_ = value; } - onChanged(); } else { currentSpendBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3392,14 +3437,13 @@ public Builder mergeCurrentSpend(com.google.type.Money value) { * */ public Builder clearCurrentSpend() { - if (currentSpendBuilder_ == null) { - currentSpend_ = null; - onChanged(); - } else { - currentSpend_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + currentSpend_ = null; + if (currentSpendBuilder_ != null) { + currentSpendBuilder_.dispose(); currentSpendBuilder_ = null; } - + onChanged(); return this; } /** @@ -3414,7 +3458,7 @@ public Builder clearCurrentSpend() { * */ public com.google.type.Money.Builder getCurrentSpendBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getCurrentSpendFieldBuilder().getBuilder(); } @@ -3482,7 +3526,7 @@ public com.google.type.MoneyOrBuilder getCurrentSpendOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -3523,11 +3567,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -3544,11 +3588,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -3564,17 +3608,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000800) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -3589,14 +3634,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000800); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3611,7 +3655,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000800; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -3683,7 +3727,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -3724,11 +3768,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3745,11 +3789,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3765,17 +3809,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00001000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3790,14 +3835,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00001000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3812,7 +3856,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00001000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -3881,7 +3925,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the error field is set. */ public boolean hasError() { - return errorBuilder_ != null || error_ != null; + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -3918,11 +3962,11 @@ public Builder setError(com.google.rpc.Status value) { throw new NullPointerException(); } error_ = value; - onChanged(); } else { errorBuilder_.setMessage(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3938,11 +3982,11 @@ public Builder setError(com.google.rpc.Status value) { public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); - onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3957,16 +4001,18 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (error_ != null) { - error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00002000) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); } else { error_ = value; } - onChanged(); } else { errorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3980,14 +4026,13 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; + bitField0_ = (bitField0_ & ~0x00002000); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } - + onChanged(); return this; } /** @@ -4001,7 +4046,7 @@ public Builder clearError() { * .google.rpc.Status error = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + bitField0_ |= 0x00002000; onChanged(); return getErrorFieldBuilder().getBuilder(); } @@ -4057,14 +4102,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00004000; + onChanged(); return labels_; } @@ -4143,8 +4188,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -4182,6 +4229,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00004000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -4213,6 +4261,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00004000; return internalGetMutableLabels().getMutableMap(); } /** @@ -4240,8 +4289,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00004000; return this; } /** @@ -4264,6 +4313,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00004000; return this; } @@ -4271,9 +4321,9 @@ public Builder putAllLabels(java.util.Map va com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSpecialistPoolsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00008000) != 0)) { specialistPools_ = new com.google.protobuf.LazyStringArrayList(specialistPools_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00008000; } } /** @@ -4408,7 +4458,7 @@ public Builder addAllSpecialistPools(java.lang.Iterable values */ public Builder clearSpecialistPools() { specialistPools_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -4456,7 +4506,7 @@ public Builder addSpecialistPoolsBytes(com.google.protobuf.ByteString value) { * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -4499,11 +4549,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -4522,11 +4572,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -4543,19 +4593,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1beta1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00010000) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -4571,14 +4621,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 20; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00010000); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -4594,7 +4643,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 20; */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00010000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -4670,7 +4719,7 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionS * @return Whether the activeLearningConfig field is set. */ public boolean hasActiveLearningConfig() { - return activeLearningConfigBuilder_ != null || activeLearningConfig_ != null; + return ((bitField0_ & 0x00020000) != 0); } /** * @@ -4714,11 +4763,11 @@ public Builder setActiveLearningConfig( throw new NullPointerException(); } activeLearningConfig_ = value; - onChanged(); } else { activeLearningConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00020000; + onChanged(); return this; } /** @@ -4737,11 +4786,11 @@ public Builder setActiveLearningConfig( com.google.cloud.aiplatform.v1beta1.ActiveLearningConfig.Builder builderForValue) { if (activeLearningConfigBuilder_ == null) { activeLearningConfig_ = builderForValue.build(); - onChanged(); } else { activeLearningConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00020000; + onChanged(); return this; } /** @@ -4759,20 +4808,19 @@ public Builder setActiveLearningConfig( public Builder mergeActiveLearningConfig( com.google.cloud.aiplatform.v1beta1.ActiveLearningConfig value) { if (activeLearningConfigBuilder_ == null) { - if (activeLearningConfig_ != null) { - activeLearningConfig_ = - com.google.cloud.aiplatform.v1beta1.ActiveLearningConfig.newBuilder( - activeLearningConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00020000) != 0) + && activeLearningConfig_ != null + && activeLearningConfig_ + != com.google.cloud.aiplatform.v1beta1.ActiveLearningConfig.getDefaultInstance()) { + getActiveLearningConfigBuilder().mergeFrom(value); } else { activeLearningConfig_ = value; } - onChanged(); } else { activeLearningConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00020000; + onChanged(); return this; } /** @@ -4788,14 +4836,13 @@ public Builder mergeActiveLearningConfig( * */ public Builder clearActiveLearningConfig() { - if (activeLearningConfigBuilder_ == null) { - activeLearningConfig_ = null; - onChanged(); - } else { - activeLearningConfig_ = null; + bitField0_ = (bitField0_ & ~0x00020000); + activeLearningConfig_ = null; + if (activeLearningConfigBuilder_ != null) { + activeLearningConfigBuilder_.dispose(); activeLearningConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -4812,7 +4859,7 @@ public Builder clearActiveLearningConfig() { */ public com.google.cloud.aiplatform.v1beta1.ActiveLearningConfig.Builder getActiveLearningConfigBuilder() { - + bitField0_ |= 0x00020000; onChanged(); return getActiveLearningConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobOrBuilder.java index 77291fb6424d..59c8f9bd4cda 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobOrBuilder.java @@ -212,7 +212,6 @@ public interface DataLabelingJobOrBuilder * * map<string, string> annotation_labels = 12; */ - /* nullable */ java.lang.String getAnnotationLabelsOrDefault( java.lang.String key, @@ -621,7 +620,6 @@ java.lang.String getAnnotationLabelsOrDefault( * * map<string, string> labels = 11; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java index b30758fdbe91..3fcaf1ababc6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java @@ -85,7 +85,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -134,7 +136,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -187,7 +191,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 16; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -236,7 +242,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int METADATA_SCHEMA_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object metadataSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metadataSchemaUri_ = ""; /** * * @@ -333,7 +341,7 @@ public com.google.protobuf.Value getMetadata() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; } public static final int CREATE_TIME_FIELD_NUMBER = 4; @@ -382,7 +390,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 5; @@ -431,11 +439,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ETAG_FIELD_NUMBER = 6; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -498,6 +508,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -591,7 +602,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -632,6 +646,8 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int SAVED_QUERIES_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") private java.util.List savedQueries_; /** * @@ -779,11 +795,15 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } public static final int METADATA_ARTIFACT_FIELD_NUMBER = 17; - private volatile java.lang.Object metadataArtifact_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metadataArtifact_ = ""; /** * * @@ -1183,34 +1203,27 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - metadataSchemaUri_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } etag_ = ""; - internalGetMutableLabels().clear(); if (savedQueriesBuilder_ == null) { savedQueries_ = java.util.Collections.emptyList(); @@ -1218,15 +1231,13 @@ public Builder clear() { savedQueries_ = null; savedQueriesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } metadataArtifact_ = ""; - return this; } @@ -1254,46 +1265,63 @@ public com.google.cloud.aiplatform.v1beta1.Dataset build() { public com.google.cloud.aiplatform.v1beta1.Dataset buildPartial() { com.google.cloud.aiplatform.v1beta1.Dataset result = new com.google.cloud.aiplatform.v1beta1.Dataset(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; - result.metadataSchemaUri_ = metadataSchemaUri_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.etag_ = etag_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.Dataset result) { if (savedQueriesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { savedQueries_ = java.util.Collections.unmodifiableList(savedQueries_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); } result.savedQueries_ = savedQueries_; } else { result.savedQueries_ = savedQueriesBuilder_.build(); } - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Dataset result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.metadataSchemaUri_ = metadataSchemaUri_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.metadataArtifact_ = metadataArtifact_; } - result.metadataArtifact_ = metadataArtifact_; - onBuilt(); - return result; } @java.lang.Override @@ -1343,18 +1371,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Dataset other) { if (other == com.google.cloud.aiplatform.v1beta1.Dataset.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getMetadataSchemaUri().isEmpty()) { metadataSchemaUri_ = other.metadataSchemaUri_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasMetadata()) { @@ -1368,14 +1400,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Dataset other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000080; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000100; if (savedQueriesBuilder_ == null) { if (!other.savedQueries_.isEmpty()) { if (savedQueries_.isEmpty()) { savedQueries_ = other.savedQueries_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureSavedQueriesIsMutable(); savedQueries_.addAll(other.savedQueries_); @@ -1388,7 +1422,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Dataset other) { savedQueriesBuilder_.dispose(); savedQueriesBuilder_ = null; savedQueries_ = other.savedQueries_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); savedQueriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSavedQueriesFieldBuilder() @@ -1403,6 +1437,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Dataset other) { } if (!other.getMetadataArtifact().isEmpty()) { metadataArtifact_ = other.metadataArtifact_; + bitField0_ |= 0x00000800; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1434,37 +1469,37 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { metadataSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 34 case 42: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 42 case 50: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 50 case 58: @@ -1476,12 +1511,13 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000100; break; } // case 58 case 66: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 66 case 74: @@ -1500,19 +1536,19 @@ public Builder mergeFrom( case 90: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 90 case 130: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 130 case 138: { metadataArtifact_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000800; break; } // case 138 default: @@ -1595,8 +1631,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1612,8 +1648,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1634,8 +1670,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1707,8 +1743,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1726,8 +1762,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1750,8 +1786,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1817,8 +1853,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1834,8 +1870,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1856,8 +1892,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1932,8 +1968,8 @@ public Builder setMetadataSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metadataSchemaUri_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1952,8 +1988,8 @@ public Builder setMetadataSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetadataSchemaUri() { - metadataSchemaUri_ = getDefaultInstance().getMetadataSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1977,8 +2013,8 @@ public Builder setMetadataSchemaUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metadataSchemaUri_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2001,7 +2037,7 @@ public Builder setMetadataSchemaUriBytes(com.google.protobuf.ByteString value) { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2036,11 +2072,11 @@ public Builder setMetadata(com.google.protobuf.Value value) { throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2055,11 +2091,11 @@ public Builder setMetadata(com.google.protobuf.Value value) { public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2073,17 +2109,18 @@ public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Value value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Value.newBuilder(metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Value.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2096,14 +2133,13 @@ public Builder mergeMetadata(com.google.protobuf.Value value) { * .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -2116,7 +2152,7 @@ public Builder clearMetadata() { * .google.protobuf.Value metadata = 8 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Value.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -2182,7 +2218,7 @@ public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2223,11 +2259,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2244,11 +2280,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2264,17 +2300,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2289,14 +2326,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2311,7 +2347,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2383,7 +2419,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2424,11 +2460,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2445,11 +2481,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2465,17 +2501,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2490,14 +2527,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2512,7 +2548,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2628,8 +2664,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2646,8 +2682,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -2669,8 +2705,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2686,14 +2722,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000100; + onChanged(); return labels_; } @@ -2781,8 +2817,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2823,6 +2861,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -2857,6 +2896,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000100; return internalGetMutableLabels().getMutableMap(); } /** @@ -2887,8 +2927,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000100; return this; } /** @@ -2914,6 +2954,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; return this; } @@ -2921,10 +2962,10 @@ public Builder putAllLabels(java.util.Map va java.util.Collections.emptyList(); private void ensureSavedQueriesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000200) != 0)) { savedQueries_ = new java.util.ArrayList(savedQueries_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000200; } } @@ -3208,7 +3249,7 @@ public Builder addAllSavedQueries( public Builder clearSavedQueries() { if (savedQueriesBuilder_ == null) { savedQueries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { savedQueriesBuilder_.clear(); @@ -3375,7 +3416,7 @@ public com.google.cloud.aiplatform.v1beta1.SavedQuery.Builder addSavedQueriesBui com.google.cloud.aiplatform.v1beta1.SavedQuery, com.google.cloud.aiplatform.v1beta1.SavedQuery.Builder, com.google.cloud.aiplatform.v1beta1.SavedQueryOrBuilder>( - savedQueries_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + savedQueries_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); savedQueries_ = null; } return savedQueriesBuilder_; @@ -3400,7 +3441,7 @@ public com.google.cloud.aiplatform.v1beta1.SavedQuery.Builder addSavedQueriesBui * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -3439,11 +3480,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3460,11 +3501,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3479,19 +3520,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1beta1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3505,14 +3546,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 11; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -3526,7 +3566,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 11; */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -3647,8 +3687,8 @@ public Builder setMetadataArtifact(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metadataArtifact_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3667,8 +3707,8 @@ public Builder setMetadataArtifact(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetadataArtifact() { - metadataArtifact_ = getDefaultInstance().getMetadataArtifact(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -3692,8 +3732,8 @@ public Builder setMetadataArtifactBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metadataArtifact_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java index c7d4ab094b28..4ea71a26fa1c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java @@ -361,7 +361,6 @@ public interface DatasetOrBuilder * * map<string, string> labels = 7; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResources.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResources.java index cfa9e4eb9038..f9c0696c2c73 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResources.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResources.java @@ -122,11 +122,13 @@ public com.google.cloud.aiplatform.v1beta1.MachineSpec getMachineSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder getMachineSpecOrBuilder() { - return getMachineSpec(); + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.MachineSpec.getDefaultInstance() + : machineSpec_; } public static final int MIN_REPLICA_COUNT_FIELD_NUMBER = 2; - private int minReplicaCount_; + private int minReplicaCount_ = 0; /** * * @@ -151,7 +153,7 @@ public int getMinReplicaCount() { } public static final int MAX_REPLICA_COUNT_FIELD_NUMBER = 3; - private int maxReplicaCount_; + private int maxReplicaCount_ = 0; /** * * @@ -181,6 +183,8 @@ public int getMaxReplicaCount() { } public static final int AUTOSCALING_METRIC_SPECS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List autoscalingMetricSpecs_; /** @@ -595,23 +599,21 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (machineSpecBuilder_ == null) { - machineSpec_ = null; - } else { - machineSpec_ = null; + bitField0_ = 0; + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); machineSpecBuilder_ = null; } minReplicaCount_ = 0; - maxReplicaCount_ = 0; - if (autoscalingMetricSpecsBuilder_ == null) { autoscalingMetricSpecs_ = java.util.Collections.emptyList(); } else { autoscalingMetricSpecs_ = null; autoscalingMetricSpecsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -639,25 +641,39 @@ public com.google.cloud.aiplatform.v1beta1.DedicatedResources build() { public com.google.cloud.aiplatform.v1beta1.DedicatedResources buildPartial() { com.google.cloud.aiplatform.v1beta1.DedicatedResources result = new com.google.cloud.aiplatform.v1beta1.DedicatedResources(this); - int from_bitField0_ = bitField0_; - if (machineSpecBuilder_ == null) { - result.machineSpec_ = machineSpec_; - } else { - result.machineSpec_ = machineSpecBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.minReplicaCount_ = minReplicaCount_; - result.maxReplicaCount_ = maxReplicaCount_; + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.DedicatedResources result) { if (autoscalingMetricSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { autoscalingMetricSpecs_ = java.util.Collections.unmodifiableList(autoscalingMetricSpecs_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.autoscalingMetricSpecs_ = autoscalingMetricSpecs_; } else { result.autoscalingMetricSpecs_ = autoscalingMetricSpecsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DedicatedResources result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.machineSpec_ = + machineSpecBuilder_ == null ? machineSpec_ : machineSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.minReplicaCount_ = minReplicaCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxReplicaCount_ = maxReplicaCount_; + } } @java.lang.Override @@ -719,7 +735,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DedicatedResources if (!other.autoscalingMetricSpecs_.isEmpty()) { if (autoscalingMetricSpecs_.isEmpty()) { autoscalingMetricSpecs_ = other.autoscalingMetricSpecs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureAutoscalingMetricSpecsIsMutable(); autoscalingMetricSpecs_.addAll(other.autoscalingMetricSpecs_); @@ -732,7 +748,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DedicatedResources autoscalingMetricSpecsBuilder_.dispose(); autoscalingMetricSpecsBuilder_ = null; autoscalingMetricSpecs_ = other.autoscalingMetricSpecs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); autoscalingMetricSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAutoscalingMetricSpecsFieldBuilder() @@ -771,19 +787,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getMachineSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { minReplicaCount_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { maxReplicaCount_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: @@ -840,7 +856,7 @@ public Builder mergeFrom( * @return Whether the machineSpec field is set. */ public boolean hasMachineSpec() { - return machineSpecBuilder_ != null || machineSpec_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -883,11 +899,11 @@ public Builder setMachineSpec(com.google.cloud.aiplatform.v1beta1.MachineSpec va throw new NullPointerException(); } machineSpec_ = value; - onChanged(); } else { machineSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -906,11 +922,11 @@ public Builder setMachineSpec( com.google.cloud.aiplatform.v1beta1.MachineSpec.Builder builderForValue) { if (machineSpecBuilder_ == null) { machineSpec_ = builderForValue.build(); - onChanged(); } else { machineSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -927,19 +943,19 @@ public Builder setMachineSpec( */ public Builder mergeMachineSpec(com.google.cloud.aiplatform.v1beta1.MachineSpec value) { if (machineSpecBuilder_ == null) { - if (machineSpec_ != null) { - machineSpec_ = - com.google.cloud.aiplatform.v1beta1.MachineSpec.newBuilder(machineSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && machineSpec_ != null + && machineSpec_ + != com.google.cloud.aiplatform.v1beta1.MachineSpec.getDefaultInstance()) { + getMachineSpecBuilder().mergeFrom(value); } else { machineSpec_ = value; } - onChanged(); } else { machineSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -955,14 +971,13 @@ public Builder mergeMachineSpec(com.google.cloud.aiplatform.v1beta1.MachineSpec * */ public Builder clearMachineSpec() { - if (machineSpecBuilder_ == null) { - machineSpec_ = null; - onChanged(); - } else { - machineSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); machineSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -978,7 +993,7 @@ public Builder clearMachineSpec() { * */ public com.google.cloud.aiplatform.v1beta1.MachineSpec.Builder getMachineSpecBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getMachineSpecFieldBuilder().getBuilder(); } @@ -1077,6 +1092,7 @@ public int getMinReplicaCount() { public Builder setMinReplicaCount(int value) { minReplicaCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1099,7 +1115,7 @@ public Builder setMinReplicaCount(int value) { * @return This builder for chaining. */ public Builder clearMinReplicaCount() { - + bitField0_ = (bitField0_ & ~0x00000002); minReplicaCount_ = 0; onChanged(); return this; @@ -1160,6 +1176,7 @@ public int getMaxReplicaCount() { public Builder setMaxReplicaCount(int value) { maxReplicaCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1187,7 +1204,7 @@ public Builder setMaxReplicaCount(int value) { * @return This builder for chaining. */ public Builder clearMaxReplicaCount() { - + bitField0_ = (bitField0_ & ~0x00000004); maxReplicaCount_ = 0; onChanged(); return this; @@ -1197,11 +1214,11 @@ public Builder clearMaxReplicaCount() { autoscalingMetricSpecs_ = java.util.Collections.emptyList(); private void ensureAutoscalingMetricSpecsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { autoscalingMetricSpecs_ = new java.util.ArrayList( autoscalingMetricSpecs_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -1656,7 +1673,7 @@ public Builder addAllAutoscalingMetricSpecs( public Builder clearAutoscalingMetricSpecs() { if (autoscalingMetricSpecsBuilder_ == null) { autoscalingMetricSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { autoscalingMetricSpecsBuilder_.clear(); @@ -1934,7 +1951,7 @@ public Builder removeAutoscalingMetricSpecs(int index) { com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.Builder, com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpecOrBuilder>( autoscalingMetricSpecs_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); autoscalingMetricSpecs_ = null; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteArtifactRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteArtifactRequest.java index e93577c0716e..49df94f93d8d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteArtifactRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteArtifactRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int ETAG_FIELD_NUMBER = 2; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -387,10 +391,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - etag_ = ""; - return this; } @@ -418,12 +421,23 @@ public com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest build() { public com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest(this); - result.name_ = name_; - result.etag_ = etag_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -472,10 +486,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteArtifactReque return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -507,13 +523,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -533,6 +549,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -606,8 +624,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -627,8 +645,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -653,8 +671,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -726,8 +744,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -745,8 +763,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -769,8 +787,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteBatchPredictionJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteBatchPredictionJobRequest.java index 894bc4e73c36..175a9f638356 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteBatchPredictionJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteBatchPredictionJobRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -327,8 +329,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -358,11 +360,21 @@ public com.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest build public com.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -414,6 +426,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -445,7 +458,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -465,6 +478,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -538,8 +553,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -559,8 +574,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -585,8 +600,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteContextRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteContextRequest.java index 4586e2167372..fdf66c1b5b5c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteContextRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteContextRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -127,7 +129,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_; + private boolean force_ = false; /** * * @@ -146,7 +148,9 @@ public boolean getForce() { } public static final int ETAG_FIELD_NUMBER = 3; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -415,12 +419,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - force_ = false; - etag_ = ""; - return this; } @@ -448,13 +450,26 @@ public com.google.cloud.aiplatform.v1beta1.DeleteContextRequest build() { public com.google.cloud.aiplatform.v1beta1.DeleteContextRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteContextRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteContextRequest(this); - result.name_ = name_; - result.force_ = force_; - result.etag_ = etag_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeleteContextRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etag_ = etag_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -503,6 +518,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteContextReques return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getForce() != false) { @@ -510,6 +526,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteContextReques } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -541,19 +558,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { force_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -573,6 +590,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -646,8 +665,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -667,8 +686,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -693,8 +712,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -732,6 +751,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -748,7 +768,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000002); force_ = false; onChanged(); return this; @@ -821,8 +841,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -840,8 +860,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -864,8 +884,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteCustomJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteCustomJobRequest.java index 58c7d22e69b2..a0a12d4425c5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteCustomJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteCustomJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest build() { public com.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequ return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDataLabelingJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDataLabelingJobRequest.java index 8db8885956c9..d6322e1b86a4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDataLabelingJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDataLabelingJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -354,11 +356,21 @@ public com.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest build() public com.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -409,6 +421,7 @@ public Builder mergeFrom( return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -440,7 +453,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -460,6 +473,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -533,8 +548,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -554,8 +569,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -580,8 +595,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDatasetRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDatasetRequest.java index bdd9158bbe72..84130694be46 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDatasetRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDatasetRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest build() { public com.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteDatasetReques return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDeploymentResourcePoolRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDeploymentResourcePoolRequest.java index 8eda98ff7a91..8ef9b9f48343 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDeploymentResourcePoolRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDeploymentResourcePoolRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -327,8 +329,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -359,11 +361,21 @@ public com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest b public com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -416,6 +428,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -447,7 +460,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -467,6 +480,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -540,8 +555,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -561,8 +576,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -587,8 +602,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEndpointRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEndpointRequest.java index 915b1c06669f..acc160a0f9f4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEndpointRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEndpointRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest build() { public com.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteEndpointReque return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEntityTypeRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEntityTypeRequest.java index 269cfe623fd3..6620b04950b0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEntityTypeRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteEntityTypeRequest.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -125,7 +127,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_; + private boolean force_ = false; /** * * @@ -350,10 +352,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - force_ = false; - return this; } @@ -381,12 +382,23 @@ public com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest build() { public com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest(this); - result.name_ = name_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -435,6 +447,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeReq return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getForce() != false) { @@ -469,13 +482,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { force_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -495,6 +508,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -568,8 +583,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -589,8 +604,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -615,8 +630,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -654,6 +669,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -670,7 +686,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000002); force_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteExecutionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteExecutionRequest.java index 135d7b0fcac2..0a384a933c1f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteExecutionRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteExecutionRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int ETAG_FIELD_NUMBER = 2; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -387,10 +391,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - etag_ = ""; - return this; } @@ -418,12 +421,23 @@ public com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest build() { public com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest(this); - result.name_ = name_; - result.etag_ = etag_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -472,10 +486,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequ return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -507,13 +523,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -533,6 +549,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -606,8 +624,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -627,8 +645,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -653,8 +671,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -726,8 +744,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -745,8 +763,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -769,8 +787,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureRequest.java index bbcebdc12ff3..e54806aefa0d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest build() { public com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteFeatureReques return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesOperationMetadata.java index 02964576f7c7..624da282b0ed 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesOperationMetadata.java @@ -113,7 +113,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -323,10 +325,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -359,15 +361,22 @@ public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -450,7 +459,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -470,6 +479,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -488,7 +499,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -526,11 +537,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -546,11 +557,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -565,20 +576,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -591,14 +602,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -612,7 +622,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesRequest.java index 5ba39c4688bb..fb5209d43455 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesRequest.java @@ -222,7 +222,9 @@ public com.google.cloud.aiplatform.v1beta1.EntityIdSelector getEntityIdSelector( @java.lang.Override public com.google.cloud.aiplatform.v1beta1.EntityIdSelectorOrBuilder getEntityIdSelectorOrBuilder() { - return getEntityIdSelector(); + return entityIdSelector_ == null + ? com.google.cloud.aiplatform.v1beta1.EntityIdSelector.getDefaultInstance() + : entityIdSelector_; } private byte memoizedIsInitialized = -1; @@ -441,10 +443,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (entityIdSelectorBuilder_ == null) { - entityIdSelector_ = null; - } else { - entityIdSelector_ = null; + bitField0_ = 0; + entityIdSelector_ = null; + if (entityIdSelectorBuilder_ != null) { + entityIdSelectorBuilder_.dispose(); entityIdSelectorBuilder_ = null; } return this; @@ -478,15 +480,24 @@ public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEnti buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity result = new com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity(this); - if (entityIdSelectorBuilder_ == null) { - result.entityIdSelector_ = entityIdSelector_; - } else { - result.entityIdSelector_ = entityIdSelectorBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityIdSelector_ = + entityIdSelectorBuilder_ == null + ? entityIdSelector_ + : entityIdSelectorBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -573,7 +584,7 @@ public Builder mergeFrom( { input.readMessage( getEntityIdSelectorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -593,6 +604,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.EntityIdSelector entityIdSelector_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.EntityIdSelector, @@ -614,7 +627,7 @@ public Builder mergeFrom( * @return Whether the entityIdSelector field is set. */ public boolean hasEntityIdSelector() { - return entityIdSelectorBuilder_ != null || entityIdSelector_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -658,11 +671,11 @@ public Builder setEntityIdSelector( throw new NullPointerException(); } entityIdSelector_ = value; - onChanged(); } else { entityIdSelectorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -681,11 +694,11 @@ public Builder setEntityIdSelector( com.google.cloud.aiplatform.v1beta1.EntityIdSelector.Builder builderForValue) { if (entityIdSelectorBuilder_ == null) { entityIdSelector_ = builderForValue.build(); - onChanged(); } else { entityIdSelectorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -703,19 +716,19 @@ public Builder setEntityIdSelector( public Builder mergeEntityIdSelector( com.google.cloud.aiplatform.v1beta1.EntityIdSelector value) { if (entityIdSelectorBuilder_ == null) { - if (entityIdSelector_ != null) { - entityIdSelector_ = - com.google.cloud.aiplatform.v1beta1.EntityIdSelector.newBuilder(entityIdSelector_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && entityIdSelector_ != null + && entityIdSelector_ + != com.google.cloud.aiplatform.v1beta1.EntityIdSelector.getDefaultInstance()) { + getEntityIdSelectorBuilder().mergeFrom(value); } else { entityIdSelector_ = value; } - onChanged(); } else { entityIdSelectorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -731,14 +744,13 @@ public Builder mergeEntityIdSelector( * */ public Builder clearEntityIdSelector() { - if (entityIdSelectorBuilder_ == null) { - entityIdSelector_ = null; - onChanged(); - } else { - entityIdSelector_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + entityIdSelector_ = null; + if (entityIdSelectorBuilder_ != null) { + entityIdSelectorBuilder_.dispose(); entityIdSelectorBuilder_ = null; } - + onChanged(); return this; } /** @@ -755,7 +767,7 @@ public Builder clearEntityIdSelector() { */ public com.google.cloud.aiplatform.v1beta1.EntityIdSelector.Builder getEntityIdSelectorBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getEntityIdSelectorFieldBuilder().getBuilder(); } @@ -1081,7 +1093,7 @@ public com.google.type.Interval getTimeRange() { */ @java.lang.Override public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() { - return getTimeRange(); + return timeRange_ == null ? com.google.type.Interval.getDefaultInstance() : timeRange_; } public static final int FEATURE_SELECTOR_FIELD_NUMBER = 2; @@ -1139,11 +1151,13 @@ public com.google.cloud.aiplatform.v1beta1.FeatureSelector getFeatureSelector() @java.lang.Override public com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder getFeatureSelectorOrBuilder() { - return getFeatureSelector(); + return featureSelector_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureSelector.getDefaultInstance() + : featureSelector_; } public static final int SKIP_ONLINE_STORAGE_DELETE_FIELD_NUMBER = 3; - private boolean skipOnlineStorageDelete_; + private boolean skipOnlineStorageDelete_ = false; /** * * @@ -1425,20 +1439,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (timeRangeBuilder_ == null) { - timeRange_ = null; - } else { - timeRange_ = null; + bitField0_ = 0; + timeRange_ = null; + if (timeRangeBuilder_ != null) { + timeRangeBuilder_.dispose(); timeRangeBuilder_ = null; } - if (featureSelectorBuilder_ == null) { - featureSelector_ = null; - } else { - featureSelector_ = null; + featureSelector_ = null; + if (featureSelectorBuilder_ != null) { + featureSelectorBuilder_.dispose(); featureSelectorBuilder_ = null; } skipOnlineStorageDelete_ = false; - return this; } @@ -1476,21 +1488,29 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest .SelectTimeRangeAndFeature(this); - if (timeRangeBuilder_ == null) { - result.timeRange_ = timeRange_; - } else { - result.timeRange_ = timeRangeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (featureSelectorBuilder_ == null) { - result.featureSelector_ = featureSelector_; - } else { - result.featureSelector_ = featureSelectorBuilder_.build(); - } - result.skipOnlineStorageDelete_ = skipOnlineStorageDelete_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timeRange_ = timeRangeBuilder_ == null ? timeRange_ : timeRangeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.featureSelector_ = + featureSelectorBuilder_ == null ? featureSelector_ : featureSelectorBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.skipOnlineStorageDelete_ = skipOnlineStorageDelete_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1586,20 +1606,20 @@ public Builder mergeFrom( case 10: { input.readMessage(getTimeRangeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getFeatureSelectorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { skipOnlineStorageDelete_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -1619,6 +1639,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.type.Interval timeRange_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.Interval, @@ -1639,7 +1661,7 @@ public Builder mergeFrom( * @return Whether the timeRange field is set. */ public boolean hasTimeRange() { - return timeRangeBuilder_ != null || timeRange_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1678,11 +1700,11 @@ public Builder setTimeRange(com.google.type.Interval value) { throw new NullPointerException(); } timeRange_ = value; - onChanged(); } else { timeRangeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1699,11 +1721,11 @@ public Builder setTimeRange(com.google.type.Interval value) { public Builder setTimeRange(com.google.type.Interval.Builder builderForValue) { if (timeRangeBuilder_ == null) { timeRange_ = builderForValue.build(); - onChanged(); } else { timeRangeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1719,17 +1741,18 @@ public Builder setTimeRange(com.google.type.Interval.Builder builderForValue) { */ public Builder mergeTimeRange(com.google.type.Interval value) { if (timeRangeBuilder_ == null) { - if (timeRange_ != null) { - timeRange_ = - com.google.type.Interval.newBuilder(timeRange_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && timeRange_ != null + && timeRange_ != com.google.type.Interval.getDefaultInstance()) { + getTimeRangeBuilder().mergeFrom(value); } else { timeRange_ = value; } - onChanged(); } else { timeRangeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1744,14 +1767,13 @@ public Builder mergeTimeRange(com.google.type.Interval value) { * */ public Builder clearTimeRange() { - if (timeRangeBuilder_ == null) { - timeRange_ = null; - onChanged(); - } else { - timeRange_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + timeRange_ = null; + if (timeRangeBuilder_ != null) { + timeRangeBuilder_.dispose(); timeRangeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1766,7 +1788,7 @@ public Builder clearTimeRange() { * */ public com.google.type.Interval.Builder getTimeRangeBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getTimeRangeFieldBuilder().getBuilder(); } @@ -1837,7 +1859,7 @@ public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() { * @return Whether the featureSelector field is set. */ public boolean hasFeatureSelector() { - return featureSelectorBuilder_ != null || featureSelector_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1880,11 +1902,11 @@ public Builder setFeatureSelector(com.google.cloud.aiplatform.v1beta1.FeatureSel throw new NullPointerException(); } featureSelector_ = value; - onChanged(); } else { featureSelectorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1903,11 +1925,11 @@ public Builder setFeatureSelector( com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder builderForValue) { if (featureSelectorBuilder_ == null) { featureSelector_ = builderForValue.build(); - onChanged(); } else { featureSelectorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1925,19 +1947,19 @@ public Builder setFeatureSelector( public Builder mergeFeatureSelector( com.google.cloud.aiplatform.v1beta1.FeatureSelector value) { if (featureSelectorBuilder_ == null) { - if (featureSelector_ != null) { - featureSelector_ = - com.google.cloud.aiplatform.v1beta1.FeatureSelector.newBuilder(featureSelector_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && featureSelector_ != null + && featureSelector_ + != com.google.cloud.aiplatform.v1beta1.FeatureSelector.getDefaultInstance()) { + getFeatureSelectorBuilder().mergeFrom(value); } else { featureSelector_ = value; } - onChanged(); } else { featureSelectorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1953,14 +1975,13 @@ public Builder mergeFeatureSelector( * */ public Builder clearFeatureSelector() { - if (featureSelectorBuilder_ == null) { - featureSelector_ = null; - onChanged(); - } else { - featureSelector_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + featureSelector_ = null; + if (featureSelectorBuilder_ != null) { + featureSelectorBuilder_.dispose(); featureSelectorBuilder_ = null; } - + onChanged(); return this; } /** @@ -1977,7 +1998,7 @@ public Builder clearFeatureSelector() { */ public com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder getFeatureSelectorBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getFeatureSelectorFieldBuilder().getBuilder(); } @@ -2067,6 +2088,7 @@ public boolean getSkipOnlineStorageDelete() { public Builder setSkipOnlineStorageDelete(boolean value) { skipOnlineStorageDelete_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2084,7 +2106,7 @@ public Builder setSkipOnlineStorageDelete(boolean value) { * @return This builder for chaining. */ public Builder clearSkipOnlineStorageDelete() { - + bitField0_ = (bitField0_ & ~0x00000004); skipOnlineStorageDelete_ = false; onChanged(); return this; @@ -2341,7 +2363,9 @@ public boolean hasSelectTimeRangeAndFeature() { } public static final int ENTITY_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object entityType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityType_ = ""; /** * * @@ -2647,6 +2671,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (selectEntityBuilder_ != null) { selectEntityBuilder_.clear(); } @@ -2654,7 +2679,6 @@ public Builder clear() { selectTimeRangeAndFeatureBuilder_.clear(); } entityType_ = ""; - deleteOptionCase_ = 0; deleteOption_ = null; return this; @@ -2685,26 +2709,34 @@ public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest build() { public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest(this); - if (deleteOptionCase_ == 2) { - if (selectEntityBuilder_ == null) { - result.deleteOption_ = deleteOption_; - } else { - result.deleteOption_ = selectEntityBuilder_.build(); - } - } - if (deleteOptionCase_ == 3) { - if (selectTimeRangeAndFeatureBuilder_ == null) { - result.deleteOption_ = deleteOption_; - } else { - result.deleteOption_ = selectTimeRangeAndFeatureBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - result.entityType_ = entityType_; - result.deleteOptionCase_ = deleteOptionCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.entityType_ = entityType_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest result) { + result.deleteOptionCase_ = deleteOptionCase_; + result.deleteOption_ = this.deleteOption_; + if (deleteOptionCase_ == 2 && selectEntityBuilder_ != null) { + result.deleteOption_ = selectEntityBuilder_.build(); + } + if (deleteOptionCase_ == 3 && selectTimeRangeAndFeatureBuilder_ != null) { + result.deleteOption_ = selectTimeRangeAndFeatureBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2754,6 +2786,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteFeatureValues return this; if (!other.getEntityType().isEmpty()) { entityType_ = other.entityType_; + bitField0_ |= 0x00000004; onChanged(); } switch (other.getDeleteOptionCase()) { @@ -2801,7 +2834,7 @@ public Builder mergeFrom( case 10: { entityType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 10 case 18: @@ -2848,6 +2881,8 @@ public Builder clearDeleteOption() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity, com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity.Builder, @@ -3091,7 +3126,6 @@ public Builder clearSelectEntity() { } deleteOptionCase_ = 2; onChanged(); - ; return selectEntityBuilder_; } @@ -3364,7 +3398,6 @@ public Builder clearSelectTimeRangeAndFeature() { } deleteOptionCase_ = 3; onChanged(); - ; return selectTimeRangeAndFeatureBuilder_; } @@ -3441,8 +3474,8 @@ public Builder setEntityType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityType_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3462,8 +3495,8 @@ public Builder setEntityType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityType() { - entityType_ = getDefaultInstance().getEntityType(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -3488,8 +3521,8 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityType_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeaturestoreRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeaturestoreRequest.java index 759e3bcf0c3b..1e8d80a757cb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeaturestoreRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeaturestoreRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -126,7 +128,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_; + private boolean force_ = false; /** * * @@ -353,10 +355,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - force_ = false; - return this; } @@ -385,12 +386,24 @@ public com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest build() { public com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest(this); - result.name_ = name_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -440,6 +453,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreR return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getForce() != false) { @@ -474,13 +488,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { force_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -500,6 +514,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -573,8 +589,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -594,8 +610,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -620,8 +636,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -661,6 +677,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -678,7 +695,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000002); force_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteHyperparameterTuningJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteHyperparameterTuningJobRequest.java index 7bc18f4195c3..2dd3c73c85fb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteHyperparameterTuningJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteHyperparameterTuningJobRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -330,8 +332,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -362,11 +364,21 @@ public com.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest public com.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -419,6 +431,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -450,7 +463,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -470,6 +483,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -543,8 +558,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -564,8 +579,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -590,8 +605,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexEndpointRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexEndpointRequest.java index 00b5ffb3cb46..1819c9ad9725 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexEndpointRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexEndpointRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -354,11 +356,21 @@ public com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest build() { public com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -408,6 +420,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteIndexEndpoint return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -439,7 +452,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +472,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -532,8 +547,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -553,8 +568,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -579,8 +594,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexRequest.java index b62f190f8cab..6b873c361d27 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteIndexRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest build() { public com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteIndexRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreOperationMetadata.java index 5972a39ad86a..b4de3c915673 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreOperationMetadata.java @@ -114,7 +114,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -325,10 +327,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -361,15 +363,22 @@ public com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata public com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -452,7 +461,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -472,6 +481,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -490,7 +501,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -528,11 +539,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -548,11 +559,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -567,20 +578,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -593,14 +604,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -614,7 +624,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreRequest.java index 06469219881d..2208efc56c93 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteMetadataStoreRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -126,7 +128,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_; + private boolean force_ = false; /** * * @@ -354,10 +356,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - force_ = false; - return this; } @@ -386,12 +387,24 @@ public com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest build() { public com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest(this); - result.name_ = name_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -441,6 +454,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteMetadataStore return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getForce() != false) { @@ -475,13 +489,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { force_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -501,6 +515,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -574,8 +590,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -595,8 +611,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -621,8 +637,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -664,6 +680,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -682,7 +699,7 @@ public Builder setForce(boolean value) { */ @java.lang.Deprecated public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000002); force_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelDeploymentMonitoringJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelDeploymentMonitoringJobRequest.java index 95cc11099b4f..8578c31a3ce9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelDeploymentMonitoringJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelDeploymentMonitoringJobRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -336,8 +338,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -369,11 +371,21 @@ public com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobReq buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -427,6 +439,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -458,7 +471,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -478,6 +491,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -551,8 +566,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -572,8 +587,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -598,8 +613,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelRequest.java index c288efbdfef3..b11ae70a37a2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -322,8 +324,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -351,11 +353,20 @@ public com.google.cloud.aiplatform.v1beta1.DeleteModelRequest build() { public com.google.cloud.aiplatform.v1beta1.DeleteModelRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteModelRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteModelRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeleteModelRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,6 +415,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteModelRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -435,7 +447,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -455,6 +467,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -525,8 +539,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -545,8 +559,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -570,8 +584,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelVersionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelVersionRequest.java index 59862388ad2f..d292d63d2db4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelVersionRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteModelVersionRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -354,11 +356,21 @@ public com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest build() { public com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteModelVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -408,6 +420,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteModelVersionR return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -439,7 +452,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +472,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -532,8 +547,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -553,8 +568,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -579,8 +594,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOperationMetadata.java index 16006e5ecc40..4e8e98f427f4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOperationMetadata.java @@ -111,7 +111,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -317,10 +319,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -350,15 +352,21 @@ public com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata build() { public com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -437,7 +445,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +465,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -475,7 +485,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -513,11 +523,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -533,11 +543,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -552,20 +562,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -578,14 +588,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -599,7 +608,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeletePipelineJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeletePipelineJobRequest.java index f5fdb740ac86..8909e27129b5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeletePipelineJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeletePipelineJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -354,11 +356,21 @@ public com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest build() { public com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest result = new com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -408,6 +420,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeletePipelineJobRe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -439,7 +452,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +472,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -532,8 +547,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -553,8 +568,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -579,8 +594,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteSpecialistPoolRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteSpecialistPoolRequest.java index dca7958c5495..4dd3df09f843 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteSpecialistPoolRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteSpecialistPoolRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -124,7 +126,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_; + private boolean force_ = false; /** * * @@ -351,10 +353,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - force_ = false; - return this; } @@ -383,12 +384,24 @@ public com.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest build() { public com.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest(this); - result.name_ = name_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteSpecialistPoolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -439,6 +452,7 @@ public Builder mergeFrom( return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getForce() != false) { @@ -473,13 +487,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { force_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -499,6 +513,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -569,8 +585,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -589,8 +605,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -614,8 +630,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -655,6 +671,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -672,7 +689,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000002); force_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteStudyRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteStudyRequest.java index 4d4955b390fa..2df21f8d82ca 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteStudyRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteStudyRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -322,8 +324,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -351,11 +353,20 @@ public com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest build() { public com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,6 +415,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteStudyRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -435,7 +447,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -455,6 +467,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -525,8 +539,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -545,8 +559,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -570,8 +584,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardExperimentRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardExperimentRequest.java index 21899842ae8b..184be78c6c8b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardExperimentRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardExperimentRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -327,8 +329,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -359,11 +361,21 @@ public com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest bu public com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -415,6 +427,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -446,7 +459,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -466,6 +479,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -539,8 +554,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -560,8 +575,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -586,8 +601,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRequest.java index 10a57752729e..813b70ee9599 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -354,11 +356,21 @@ public com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest build() { public com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -408,6 +420,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -439,7 +452,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +472,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -532,8 +547,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -553,8 +568,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -579,8 +594,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRunRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRunRequest.java index f098e103afe4..bd90e7637288 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRunRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardRunRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -354,11 +356,21 @@ public com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest build() { public com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -409,6 +421,7 @@ public Builder mergeFrom( return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -440,7 +453,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -460,6 +473,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -533,8 +548,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -554,8 +569,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -580,8 +595,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardTimeSeriesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardTimeSeriesRequest.java index 5f8734c8a6af..1d11d6c23d83 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardTimeSeriesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTensorboardTimeSeriesRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -327,8 +329,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -359,11 +361,21 @@ public com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest bu public com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -415,6 +427,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -446,7 +459,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -466,6 +479,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -539,8 +554,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -560,8 +575,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -586,8 +601,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTrainingPipelineRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTrainingPipelineRequest.java index 983eedd60fca..f517486e617f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTrainingPipelineRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTrainingPipelineRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -326,8 +328,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -356,11 +358,21 @@ public com.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest build() public com.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteTrainingPipelineRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -411,6 +423,7 @@ public Builder mergeFrom( return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -442,7 +455,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -462,6 +475,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -535,8 +550,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -556,8 +571,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -582,8 +597,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTrialRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTrialRequest.java index bf800100c60b..2953cdc5415f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTrialRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteTrialRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest build() { public com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest result = new com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteTrialRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexOperationMetadata.java index 86dec1843fec..60dcddb4bb94 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexOperationMetadata.java @@ -114,11 +114,15 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } public static final int DEPLOYED_INDEX_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deployedIndexId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedIndexId_ = ""; /** * * @@ -379,14 +383,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } deployedIndexId_ = ""; - return this; } @@ -415,16 +418,25 @@ public com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata build() public com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.deployedIndexId_ = deployedIndexId_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedIndexId_ = deployedIndexId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -478,6 +490,7 @@ public Builder mergeFrom( } if (!other.getDeployedIndexId().isEmpty()) { deployedIndexId_ = other.deployedIndexId_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -509,13 +522,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { deployedIndexId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -535,6 +548,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -553,7 +568,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -591,11 +606,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -611,11 +626,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -630,20 +645,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -656,14 +671,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -677,7 +691,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } @@ -787,8 +801,8 @@ public Builder setDeployedIndexId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedIndexId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -804,8 +818,8 @@ public Builder setDeployedIndexId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedIndexId() { - deployedIndexId_ = getDefaultInstance().getDeployedIndexId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -826,8 +840,8 @@ public Builder setDeployedIndexIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedIndexId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexRequest.java index cf62df3204a3..5defbe7bafec 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INDEX_ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object indexEndpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object indexEndpoint_ = ""; /** * * @@ -176,7 +178,9 @@ public com.google.cloud.aiplatform.v1beta1.DeployedIndex getDeployedIndex() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder getDeployedIndexOrBuilder() { - return getDeployedIndex(); + return deployedIndex_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedIndex.getDefaultInstance() + : deployedIndex_; } private byte memoizedIsInitialized = -1; @@ -392,12 +396,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; indexEndpoint_ = ""; - - if (deployedIndexBuilder_ == null) { - deployedIndex_ = null; - } else { - deployedIndex_ = null; + deployedIndex_ = null; + if (deployedIndexBuilder_ != null) { + deployedIndexBuilder_.dispose(); deployedIndexBuilder_ = null; } return this; @@ -427,16 +430,24 @@ public com.google.cloud.aiplatform.v1beta1.DeployIndexRequest build() { public com.google.cloud.aiplatform.v1beta1.DeployIndexRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeployIndexRequest result = new com.google.cloud.aiplatform.v1beta1.DeployIndexRequest(this); - result.indexEndpoint_ = indexEndpoint_; - if (deployedIndexBuilder_ == null) { - result.deployedIndex_ = deployedIndex_; - } else { - result.deployedIndex_ = deployedIndexBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeployIndexRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.indexEndpoint_ = indexEndpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedIndex_ = + deployedIndexBuilder_ == null ? deployedIndex_ : deployedIndexBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -485,6 +496,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployIndexRequest return this; if (!other.getIndexEndpoint().isEmpty()) { indexEndpoint_ = other.indexEndpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasDeployedIndex()) { @@ -519,13 +531,13 @@ public Builder mergeFrom( case 10: { indexEndpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getDeployedIndexFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -545,6 +557,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object indexEndpoint_ = ""; /** * @@ -618,8 +632,8 @@ public Builder setIndexEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - indexEndpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -639,8 +653,8 @@ public Builder setIndexEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearIndexEndpoint() { - indexEndpoint_ = getDefaultInstance().getIndexEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -665,8 +679,8 @@ public Builder setIndexEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - indexEndpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -691,7 +705,7 @@ public Builder setIndexEndpointBytes(com.google.protobuf.ByteString value) { * @return Whether the deployedIndex field is set. */ public boolean hasDeployedIndex() { - return deployedIndexBuilder_ != null || deployedIndex_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -732,11 +746,11 @@ public Builder setDeployedIndex(com.google.cloud.aiplatform.v1beta1.DeployedInde throw new NullPointerException(); } deployedIndex_ = value; - onChanged(); } else { deployedIndexBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -754,11 +768,11 @@ public Builder setDeployedIndex( com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder builderForValue) { if (deployedIndexBuilder_ == null) { deployedIndex_ = builderForValue.build(); - onChanged(); } else { deployedIndexBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -774,19 +788,19 @@ public Builder setDeployedIndex( */ public Builder mergeDeployedIndex(com.google.cloud.aiplatform.v1beta1.DeployedIndex value) { if (deployedIndexBuilder_ == null) { - if (deployedIndex_ != null) { - deployedIndex_ = - com.google.cloud.aiplatform.v1beta1.DeployedIndex.newBuilder(deployedIndex_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && deployedIndex_ != null + && deployedIndex_ + != com.google.cloud.aiplatform.v1beta1.DeployedIndex.getDefaultInstance()) { + getDeployedIndexBuilder().mergeFrom(value); } else { deployedIndex_ = value; } - onChanged(); } else { deployedIndexBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -801,14 +815,13 @@ public Builder mergeDeployedIndex(com.google.cloud.aiplatform.v1beta1.DeployedIn * */ public Builder clearDeployedIndex() { - if (deployedIndexBuilder_ == null) { - deployedIndex_ = null; - onChanged(); - } else { - deployedIndex_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + deployedIndex_ = null; + if (deployedIndexBuilder_ != null) { + deployedIndexBuilder_.dispose(); deployedIndexBuilder_ = null; } - + onChanged(); return this; } /** @@ -823,7 +836,7 @@ public Builder clearDeployedIndex() { * */ public com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder getDeployedIndexBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getDeployedIndexFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexResponse.java index ce9409b2f67c..f2780f54ae21 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexResponse.java @@ -111,7 +111,9 @@ public com.google.cloud.aiplatform.v1beta1.DeployedIndex getDeployedIndex() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder getDeployedIndexOrBuilder() { - return getDeployedIndex(); + return deployedIndex_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedIndex.getDefaultInstance() + : deployedIndex_; } private byte memoizedIsInitialized = -1; @@ -318,10 +320,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (deployedIndexBuilder_ == null) { - deployedIndex_ = null; - } else { - deployedIndex_ = null; + bitField0_ = 0; + deployedIndex_ = null; + if (deployedIndexBuilder_ != null) { + deployedIndexBuilder_.dispose(); deployedIndexBuilder_ = null; } return this; @@ -351,15 +353,21 @@ public com.google.cloud.aiplatform.v1beta1.DeployIndexResponse build() { public com.google.cloud.aiplatform.v1beta1.DeployIndexResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.DeployIndexResponse result = new com.google.cloud.aiplatform.v1beta1.DeployIndexResponse(this); - if (deployedIndexBuilder_ == null) { - result.deployedIndex_ = deployedIndex_; - } else { - result.deployedIndex_ = deployedIndexBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeployIndexResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deployedIndex_ = + deployedIndexBuilder_ == null ? deployedIndex_ : deployedIndexBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -438,7 +446,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getDeployedIndexFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -458,6 +466,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.DeployedIndex deployedIndex_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.DeployedIndex, @@ -476,7 +486,7 @@ public Builder mergeFrom( * @return Whether the deployedIndex field is set. */ public boolean hasDeployedIndex() { - return deployedIndexBuilder_ != null || deployedIndex_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -513,11 +523,11 @@ public Builder setDeployedIndex(com.google.cloud.aiplatform.v1beta1.DeployedInde throw new NullPointerException(); } deployedIndex_ = value; - onChanged(); } else { deployedIndexBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -533,11 +543,11 @@ public Builder setDeployedIndex( com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder builderForValue) { if (deployedIndexBuilder_ == null) { deployedIndex_ = builderForValue.build(); - onChanged(); } else { deployedIndexBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -551,19 +561,19 @@ public Builder setDeployedIndex( */ public Builder mergeDeployedIndex(com.google.cloud.aiplatform.v1beta1.DeployedIndex value) { if (deployedIndexBuilder_ == null) { - if (deployedIndex_ != null) { - deployedIndex_ = - com.google.cloud.aiplatform.v1beta1.DeployedIndex.newBuilder(deployedIndex_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && deployedIndex_ != null + && deployedIndex_ + != com.google.cloud.aiplatform.v1beta1.DeployedIndex.getDefaultInstance()) { + getDeployedIndexBuilder().mergeFrom(value); } else { deployedIndex_ = value; } - onChanged(); } else { deployedIndexBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -576,14 +586,13 @@ public Builder mergeDeployedIndex(com.google.cloud.aiplatform.v1beta1.DeployedIn * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 1; */ public Builder clearDeployedIndex() { - if (deployedIndexBuilder_ == null) { - deployedIndex_ = null; - onChanged(); - } else { - deployedIndex_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + deployedIndex_ = null; + if (deployedIndexBuilder_ != null) { + deployedIndexBuilder_.dispose(); deployedIndexBuilder_ = null; } - + onChanged(); return this; } /** @@ -596,7 +605,7 @@ public Builder clearDeployedIndex() { * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 1; */ public com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder getDeployedIndexBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getDeployedIndexFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelOperationMetadata.java index 80af2cf9abf1..0e59b81c70f7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelOperationMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -319,10 +321,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -353,15 +355,22 @@ public com.google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata build() public com.google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -442,7 +451,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -462,6 +471,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -480,7 +491,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -518,11 +529,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -538,11 +549,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -557,20 +568,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -583,14 +594,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -604,7 +614,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelRequest.java index 5190aa210143..17ab6e1b0a5f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelRequest.java @@ -80,7 +80,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object endpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; /** * * @@ -199,7 +201,9 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModel getDeployedModel() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.DeployedModelOrBuilder getDeployedModelOrBuilder() { - return getDeployedModel(); + return deployedModel_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedModel.getDefaultInstance() + : deployedModel_; } public static final int TRAFFIC_SPLIT_FIELD_NUMBER = 3; @@ -215,6 +219,7 @@ private static final class TrafficSplitDefaultEntryHolder { 0); } + @SuppressWarnings("serial") private com.google.protobuf.MapField trafficSplit_; private com.google.protobuf.MapField @@ -592,12 +597,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; endpoint_ = ""; - - if (deployedModelBuilder_ == null) { - deployedModel_ = null; - } else { - deployedModel_ = null; + deployedModel_ = null; + if (deployedModelBuilder_ != null) { + deployedModelBuilder_.dispose(); deployedModelBuilder_ = null; } internalGetMutableTrafficSplit().clear(); @@ -628,19 +632,28 @@ public com.google.cloud.aiplatform.v1beta1.DeployModelRequest build() { public com.google.cloud.aiplatform.v1beta1.DeployModelRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.DeployModelRequest result = new com.google.cloud.aiplatform.v1beta1.DeployModelRequest(this); - int from_bitField0_ = bitField0_; - result.endpoint_ = endpoint_; - if (deployedModelBuilder_ == null) { - result.deployedModel_ = deployedModel_; - } else { - result.deployedModel_ = deployedModelBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.trafficSplit_ = internalGetTrafficSplit(); - result.trafficSplit_.makeImmutable(); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeployModelRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedModel_ = + deployedModelBuilder_ == null ? deployedModel_ : deployedModelBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.trafficSplit_ = internalGetTrafficSplit(); + result.trafficSplit_.makeImmutable(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -689,12 +702,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployModelRequest return this; if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasDeployedModel()) { mergeDeployedModel(other.getDeployedModel()); } internalGetMutableTrafficSplit().mergeFrom(other.internalGetTrafficSplit()); + bitField0_ |= 0x00000004; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -724,13 +739,13 @@ public Builder mergeFrom( case 10: { endpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getDeployedModelFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -742,6 +757,7 @@ public Builder mergeFrom( internalGetMutableTrafficSplit() .getMutableMap() .put(trafficSplit__.getKey(), trafficSplit__.getValue()); + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -836,8 +852,8 @@ public Builder setEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -857,8 +873,8 @@ public Builder setEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEndpoint() { - endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -883,8 +899,8 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -913,7 +929,7 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { * @return Whether the deployedModel field is set. */ public boolean hasDeployedModel() { - return deployedModelBuilder_ != null || deployedModel_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -962,11 +978,11 @@ public Builder setDeployedModel(com.google.cloud.aiplatform.v1beta1.DeployedMode throw new NullPointerException(); } deployedModel_ = value; - onChanged(); } else { deployedModelBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -988,11 +1004,11 @@ public Builder setDeployedModel( com.google.cloud.aiplatform.v1beta1.DeployedModel.Builder builderForValue) { if (deployedModelBuilder_ == null) { deployedModel_ = builderForValue.build(); - onChanged(); } else { deployedModelBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1012,19 +1028,19 @@ public Builder setDeployedModel( */ public Builder mergeDeployedModel(com.google.cloud.aiplatform.v1beta1.DeployedModel value) { if (deployedModelBuilder_ == null) { - if (deployedModel_ != null) { - deployedModel_ = - com.google.cloud.aiplatform.v1beta1.DeployedModel.newBuilder(deployedModel_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && deployedModel_ != null + && deployedModel_ + != com.google.cloud.aiplatform.v1beta1.DeployedModel.getDefaultInstance()) { + getDeployedModelBuilder().mergeFrom(value); } else { deployedModel_ = value; } - onChanged(); } else { deployedModelBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1043,14 +1059,13 @@ public Builder mergeDeployedModel(com.google.cloud.aiplatform.v1beta1.DeployedMo * */ public Builder clearDeployedModel() { - if (deployedModelBuilder_ == null) { - deployedModel_ = null; - onChanged(); - } else { - deployedModel_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + deployedModel_ = null; + if (deployedModelBuilder_ != null) { + deployedModelBuilder_.dispose(); deployedModelBuilder_ = null; } - + onChanged(); return this; } /** @@ -1069,7 +1084,7 @@ public Builder clearDeployedModel() { * */ public com.google.cloud.aiplatform.v1beta1.DeployedModel.Builder getDeployedModelBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getDeployedModelFieldBuilder().getBuilder(); } @@ -1142,8 +1157,6 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModelOrBuilder getDeployedMod private com.google.protobuf.MapField internalGetMutableTrafficSplit() { - onChanged(); - ; if (trafficSplit_ == null) { trafficSplit_ = com.google.protobuf.MapField.newMapField(TrafficSplitDefaultEntryHolder.defaultEntry); @@ -1151,6 +1164,8 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModelOrBuilder getDeployedMod if (!trafficSplit_.isMutable()) { trafficSplit_ = trafficSplit_.copy(); } + bitField0_ |= 0x00000004; + onChanged(); return trafficSplit_; } @@ -1271,6 +1286,7 @@ public int getTrafficSplitOrThrow(java.lang.String key) { } public Builder clearTrafficSplit() { + bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableTrafficSplit().getMutableMap().clear(); return this; } @@ -1303,6 +1319,7 @@ public Builder removeTrafficSplit(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableTrafficSplit() { + bitField0_ |= 0x00000004; return internalGetMutableTrafficSplit().getMutableMap(); } /** @@ -1330,6 +1347,7 @@ public Builder putTrafficSplit(java.lang.String key, int value) { } internalGetMutableTrafficSplit().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; return this; } /** @@ -1353,6 +1371,7 @@ public Builder putTrafficSplit(java.lang.String key, int value) { */ public Builder putAllTrafficSplit(java.util.Map values) { internalGetMutableTrafficSplit().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelResponse.java index b59f09e3f9e3..b07d2f59cddd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployModelResponse.java @@ -111,7 +111,9 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModel getDeployedModel() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.DeployedModelOrBuilder getDeployedModelOrBuilder() { - return getDeployedModel(); + return deployedModel_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedModel.getDefaultInstance() + : deployedModel_; } private byte memoizedIsInitialized = -1; @@ -318,10 +320,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (deployedModelBuilder_ == null) { - deployedModel_ = null; - } else { - deployedModel_ = null; + bitField0_ = 0; + deployedModel_ = null; + if (deployedModelBuilder_ != null) { + deployedModelBuilder_.dispose(); deployedModelBuilder_ = null; } return this; @@ -351,15 +353,21 @@ public com.google.cloud.aiplatform.v1beta1.DeployModelResponse build() { public com.google.cloud.aiplatform.v1beta1.DeployModelResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.DeployModelResponse result = new com.google.cloud.aiplatform.v1beta1.DeployModelResponse(this); - if (deployedModelBuilder_ == null) { - result.deployedModel_ = deployedModel_; - } else { - result.deployedModel_ = deployedModelBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeployModelResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deployedModel_ = + deployedModelBuilder_ == null ? deployedModel_ : deployedModelBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -438,7 +446,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getDeployedModelFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -458,6 +466,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.DeployedModel deployedModel_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.DeployedModel, @@ -476,7 +486,7 @@ public Builder mergeFrom( * @return Whether the deployedModel field is set. */ public boolean hasDeployedModel() { - return deployedModelBuilder_ != null || deployedModel_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -513,11 +523,11 @@ public Builder setDeployedModel(com.google.cloud.aiplatform.v1beta1.DeployedMode throw new NullPointerException(); } deployedModel_ = value; - onChanged(); } else { deployedModelBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -533,11 +543,11 @@ public Builder setDeployedModel( com.google.cloud.aiplatform.v1beta1.DeployedModel.Builder builderForValue) { if (deployedModelBuilder_ == null) { deployedModel_ = builderForValue.build(); - onChanged(); } else { deployedModelBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -551,19 +561,19 @@ public Builder setDeployedModel( */ public Builder mergeDeployedModel(com.google.cloud.aiplatform.v1beta1.DeployedModel value) { if (deployedModelBuilder_ == null) { - if (deployedModel_ != null) { - deployedModel_ = - com.google.cloud.aiplatform.v1beta1.DeployedModel.newBuilder(deployedModel_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && deployedModel_ != null + && deployedModel_ + != com.google.cloud.aiplatform.v1beta1.DeployedModel.getDefaultInstance()) { + getDeployedModelBuilder().mergeFrom(value); } else { deployedModel_ = value; } - onChanged(); } else { deployedModelBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -576,14 +586,13 @@ public Builder mergeDeployedModel(com.google.cloud.aiplatform.v1beta1.DeployedMo * .google.cloud.aiplatform.v1beta1.DeployedModel deployed_model = 1; */ public Builder clearDeployedModel() { - if (deployedModelBuilder_ == null) { - deployedModel_ = null; - onChanged(); - } else { - deployedModel_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + deployedModel_ = null; + if (deployedModelBuilder_ != null) { + deployedModelBuilder_.dispose(); deployedModelBuilder_ = null; } - + onChanged(); return this; } /** @@ -596,7 +605,7 @@ public Builder clearDeployedModel() { * .google.cloud.aiplatform.v1beta1.DeployedModel deployed_model = 1; */ public com.google.cloud.aiplatform.v1beta1.DeployedModel.Builder getDeployedModelBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getDeployedModelFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndex.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndex.java index 15ad266458a0..40d88188df2d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndex.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndex.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int INDEX_FIELD_NUMBER = 2; - private volatile java.lang.Object index_; + + @SuppressWarnings("serial") + private volatile java.lang.Object index_ = ""; /** * * @@ -182,7 +186,9 @@ public com.google.protobuf.ByteString getIndexBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -278,7 +284,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int PRIVATE_ENDPOINTS_FIELD_NUMBER = 5; @@ -345,7 +351,9 @@ public com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints getPrivateEndpo @java.lang.Override public com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpointsOrBuilder getPrivateEndpointsOrBuilder() { - return getPrivateEndpoints(); + return privateEndpoints_ == null + ? com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.getDefaultInstance() + : privateEndpoints_; } public static final int INDEX_SYNC_TIME_FIELD_NUMBER = 6; @@ -441,7 +449,9 @@ public com.google.protobuf.Timestamp getIndexSyncTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getIndexSyncTimeOrBuilder() { - return getIndexSyncTime(); + return indexSyncTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : indexSyncTime_; } public static final int AUTOMATIC_RESOURCES_FIELD_NUMBER = 7; @@ -514,7 +524,9 @@ public com.google.cloud.aiplatform.v1beta1.AutomaticResources getAutomaticResour @java.lang.Override public com.google.cloud.aiplatform.v1beta1.AutomaticResourcesOrBuilder getAutomaticResourcesOrBuilder() { - return getAutomaticResources(); + return automaticResources_ == null + ? com.google.cloud.aiplatform.v1beta1.AutomaticResources.getDefaultInstance() + : automaticResources_; } public static final int DEDICATED_RESOURCES_FIELD_NUMBER = 16; @@ -605,11 +617,13 @@ public com.google.cloud.aiplatform.v1beta1.DedicatedResources getDedicatedResour @java.lang.Override public com.google.cloud.aiplatform.v1beta1.DedicatedResourcesOrBuilder getDedicatedResourcesOrBuilder() { - return getDedicatedResources(); + return dedicatedResources_ == null + ? com.google.cloud.aiplatform.v1beta1.DedicatedResources.getDefaultInstance() + : dedicatedResources_; } public static final int ENABLE_ACCESS_LOGGING_FIELD_NUMBER = 8; - private boolean enableAccessLogging_; + private boolean enableAccessLogging_ = false; /** * * @@ -684,10 +698,14 @@ public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig getDeployedIn @java.lang.Override public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfigOrBuilder getDeployedIndexAuthConfigOrBuilder() { - return getDeployedIndexAuthConfig(); + return deployedIndexAuthConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.getDefaultInstance() + : deployedIndexAuthConfig_; } public static final int RESERVED_IP_RANGES_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList reservedIpRanges_; /** * @@ -777,7 +795,9 @@ public com.google.protobuf.ByteString getReservedIpRangesBytes(int index) { } public static final int DEPLOYMENT_GROUP_FIELD_NUMBER = 11; - private volatile java.lang.Object deploymentGroup_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentGroup_ = ""; /** * * @@ -1177,54 +1197,44 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - index_ = ""; - displayName_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (privateEndpointsBuilder_ == null) { - privateEndpoints_ = null; - } else { - privateEndpoints_ = null; + privateEndpoints_ = null; + if (privateEndpointsBuilder_ != null) { + privateEndpointsBuilder_.dispose(); privateEndpointsBuilder_ = null; } - if (indexSyncTimeBuilder_ == null) { - indexSyncTime_ = null; - } else { - indexSyncTime_ = null; + indexSyncTime_ = null; + if (indexSyncTimeBuilder_ != null) { + indexSyncTimeBuilder_.dispose(); indexSyncTimeBuilder_ = null; } - if (automaticResourcesBuilder_ == null) { - automaticResources_ = null; - } else { - automaticResources_ = null; + automaticResources_ = null; + if (automaticResourcesBuilder_ != null) { + automaticResourcesBuilder_.dispose(); automaticResourcesBuilder_ = null; } - if (dedicatedResourcesBuilder_ == null) { - dedicatedResources_ = null; - } else { - dedicatedResources_ = null; + dedicatedResources_ = null; + if (dedicatedResourcesBuilder_ != null) { + dedicatedResourcesBuilder_.dispose(); dedicatedResourcesBuilder_ = null; } enableAccessLogging_ = false; - - if (deployedIndexAuthConfigBuilder_ == null) { - deployedIndexAuthConfig_ = null; - } else { - deployedIndexAuthConfig_ = null; + deployedIndexAuthConfig_ = null; + if (deployedIndexAuthConfigBuilder_ != null) { + deployedIndexAuthConfigBuilder_.dispose(); deployedIndexAuthConfigBuilder_ = null; } reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); deploymentGroup_ = ""; - return this; } @@ -1252,49 +1262,69 @@ public com.google.cloud.aiplatform.v1beta1.DeployedIndex build() { public com.google.cloud.aiplatform.v1beta1.DeployedIndex buildPartial() { com.google.cloud.aiplatform.v1beta1.DeployedIndex result = new com.google.cloud.aiplatform.v1beta1.DeployedIndex(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.DeployedIndex result) { + if (((bitField0_ & 0x00000400) != 0)) { + reservedIpRanges_ = reservedIpRanges_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.reservedIpRanges_ = reservedIpRanges_; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeployedIndex result) { int from_bitField0_ = bitField0_; - result.id_ = id_; - result.index_ = index_; - result.displayName_ = displayName_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; } - if (privateEndpointsBuilder_ == null) { - result.privateEndpoints_ = privateEndpoints_; - } else { - result.privateEndpoints_ = privateEndpointsBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.index_ = index_; } - if (indexSyncTimeBuilder_ == null) { - result.indexSyncTime_ = indexSyncTime_; - } else { - result.indexSyncTime_ = indexSyncTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; } - if (automaticResourcesBuilder_ == null) { - result.automaticResources_ = automaticResources_; - } else { - result.automaticResources_ = automaticResourcesBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } - if (dedicatedResourcesBuilder_ == null) { - result.dedicatedResources_ = dedicatedResources_; - } else { - result.dedicatedResources_ = dedicatedResourcesBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.privateEndpoints_ = + privateEndpointsBuilder_ == null ? privateEndpoints_ : privateEndpointsBuilder_.build(); } - result.enableAccessLogging_ = enableAccessLogging_; - if (deployedIndexAuthConfigBuilder_ == null) { - result.deployedIndexAuthConfig_ = deployedIndexAuthConfig_; - } else { - result.deployedIndexAuthConfig_ = deployedIndexAuthConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.indexSyncTime_ = + indexSyncTimeBuilder_ == null ? indexSyncTime_ : indexSyncTimeBuilder_.build(); } - if (((bitField0_ & 0x00000001) != 0)) { - reservedIpRanges_ = reservedIpRanges_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + if (((from_bitField0_ & 0x00000040) != 0)) { + result.automaticResources_ = + automaticResourcesBuilder_ == null + ? automaticResources_ + : automaticResourcesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.dedicatedResources_ = + dedicatedResourcesBuilder_ == null + ? dedicatedResources_ + : dedicatedResourcesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.enableAccessLogging_ = enableAccessLogging_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.deployedIndexAuthConfig_ = + deployedIndexAuthConfigBuilder_ == null + ? deployedIndexAuthConfig_ + : deployedIndexAuthConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.deploymentGroup_ = deploymentGroup_; } - result.reservedIpRanges_ = reservedIpRanges_; - result.deploymentGroup_ = deploymentGroup_; - onBuilt(); - return result; } @java.lang.Override @@ -1345,14 +1375,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedIndex other return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getIndex().isEmpty()) { index_ = other.index_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasCreateTime()) { @@ -1379,7 +1412,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedIndex other if (!other.reservedIpRanges_.isEmpty()) { if (reservedIpRanges_.isEmpty()) { reservedIpRanges_ = other.reservedIpRanges_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); } else { ensureReservedIpRangesIsMutable(); reservedIpRanges_.addAll(other.reservedIpRanges_); @@ -1388,6 +1421,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedIndex other } if (!other.getDeploymentGroup().isEmpty()) { deploymentGroup_ = other.deploymentGroup_; + bitField0_ |= 0x00000800; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1419,58 +1453,58 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { index_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getPrivateEndpointsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getIndexSyncTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getAutomaticResourcesFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 58 case 64: { enableAccessLogging_ = input.readBool(); - + bitField0_ |= 0x00000100; break; } // case 64 case 74: { input.readMessage( getDeployedIndexAuthConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 74 case 82: @@ -1483,14 +1517,14 @@ public Builder mergeFrom( case 90: { deploymentGroup_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000800; break; } // case 90 case 130: { input.readMessage( getDedicatedResourcesFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 130 default: @@ -1582,8 +1616,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1602,8 +1636,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1627,8 +1661,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1703,8 +1737,8 @@ public Builder setIndex(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - index_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1723,8 +1757,8 @@ public Builder setIndex(java.lang.String value) { * @return This builder for chaining. */ public Builder clearIndex() { - index_ = getDefaultInstance().getIndex(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1748,8 +1782,8 @@ public Builder setIndexBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - index_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1818,8 +1852,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1836,8 +1870,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1859,8 +1893,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1885,7 +1919,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1926,11 +1960,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1947,11 +1981,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1967,17 +2001,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1992,14 +2027,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2014,7 +2048,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2090,7 +2124,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the privateEndpoints field is set. */ public boolean hasPrivateEndpoints() { - return privateEndpointsBuilder_ != null || privateEndpoints_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2140,11 +2174,11 @@ public Builder setPrivateEndpoints( throw new NullPointerException(); } privateEndpoints_ = value; - onChanged(); } else { privateEndpointsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2166,11 +2200,11 @@ public Builder setPrivateEndpoints( com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.Builder builderForValue) { if (privateEndpointsBuilder_ == null) { privateEndpoints_ = builderForValue.build(); - onChanged(); } else { privateEndpointsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2191,20 +2225,19 @@ public Builder setPrivateEndpoints( public Builder mergePrivateEndpoints( com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints value) { if (privateEndpointsBuilder_ == null) { - if (privateEndpoints_ != null) { - privateEndpoints_ = - com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.newBuilder( - privateEndpoints_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && privateEndpoints_ != null + && privateEndpoints_ + != com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.getDefaultInstance()) { + getPrivateEndpointsBuilder().mergeFrom(value); } else { privateEndpoints_ = value; } - onChanged(); } else { privateEndpointsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2223,14 +2256,13 @@ public Builder mergePrivateEndpoints( * */ public Builder clearPrivateEndpoints() { - if (privateEndpointsBuilder_ == null) { - privateEndpoints_ = null; - onChanged(); - } else { - privateEndpoints_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + privateEndpoints_ = null; + if (privateEndpointsBuilder_ != null) { + privateEndpointsBuilder_.dispose(); privateEndpointsBuilder_ = null; } - + onChanged(); return this; } /** @@ -2250,7 +2282,7 @@ public Builder clearPrivateEndpoints() { */ public com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.Builder getPrivateEndpointsBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getPrivateEndpointsFieldBuilder().getBuilder(); } @@ -2345,7 +2377,7 @@ public Builder clearPrivateEndpoints() { * @return Whether the indexSyncTime field is set. */ public boolean hasIndexSyncTime() { - return indexSyncTimeBuilder_ != null || indexSyncTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2414,11 +2446,11 @@ public Builder setIndexSyncTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } indexSyncTime_ = value; - onChanged(); } else { indexSyncTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2449,11 +2481,11 @@ public Builder setIndexSyncTime(com.google.protobuf.Timestamp value) { public Builder setIndexSyncTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (indexSyncTimeBuilder_ == null) { indexSyncTime_ = builderForValue.build(); - onChanged(); } else { indexSyncTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2483,19 +2515,18 @@ public Builder setIndexSyncTime(com.google.protobuf.Timestamp.Builder builderFor */ public Builder mergeIndexSyncTime(com.google.protobuf.Timestamp value) { if (indexSyncTimeBuilder_ == null) { - if (indexSyncTime_ != null) { - indexSyncTime_ = - com.google.protobuf.Timestamp.newBuilder(indexSyncTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && indexSyncTime_ != null + && indexSyncTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getIndexSyncTimeBuilder().mergeFrom(value); } else { indexSyncTime_ = value; } - onChanged(); } else { indexSyncTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2524,14 +2555,13 @@ public Builder mergeIndexSyncTime(com.google.protobuf.Timestamp value) { * */ public Builder clearIndexSyncTime() { - if (indexSyncTimeBuilder_ == null) { - indexSyncTime_ = null; - onChanged(); - } else { - indexSyncTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + indexSyncTime_ = null; + if (indexSyncTimeBuilder_ != null) { + indexSyncTimeBuilder_.dispose(); indexSyncTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2560,7 +2590,7 @@ public Builder clearIndexSyncTime() { * */ public com.google.protobuf.Timestamp.Builder getIndexSyncTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getIndexSyncTimeFieldBuilder().getBuilder(); } @@ -2666,7 +2696,7 @@ public com.google.protobuf.TimestampOrBuilder getIndexSyncTimeOrBuilder() { * @return Whether the automaticResources field is set. */ public boolean hasAutomaticResources() { - return automaticResourcesBuilder_ != null || automaticResources_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2720,11 +2750,11 @@ public Builder setAutomaticResources( throw new NullPointerException(); } automaticResources_ = value; - onChanged(); } else { automaticResourcesBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2748,11 +2778,11 @@ public Builder setAutomaticResources( com.google.cloud.aiplatform.v1beta1.AutomaticResources.Builder builderForValue) { if (automaticResourcesBuilder_ == null) { automaticResources_ = builderForValue.build(); - onChanged(); } else { automaticResourcesBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2775,19 +2805,19 @@ public Builder setAutomaticResources( public Builder mergeAutomaticResources( com.google.cloud.aiplatform.v1beta1.AutomaticResources value) { if (automaticResourcesBuilder_ == null) { - if (automaticResources_ != null) { - automaticResources_ = - com.google.cloud.aiplatform.v1beta1.AutomaticResources.newBuilder(automaticResources_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && automaticResources_ != null + && automaticResources_ + != com.google.cloud.aiplatform.v1beta1.AutomaticResources.getDefaultInstance()) { + getAutomaticResourcesBuilder().mergeFrom(value); } else { automaticResources_ = value; } - onChanged(); } else { automaticResourcesBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2808,14 +2838,13 @@ public Builder mergeAutomaticResources( * */ public Builder clearAutomaticResources() { - if (automaticResourcesBuilder_ == null) { - automaticResources_ = null; - onChanged(); - } else { - automaticResources_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + automaticResources_ = null; + if (automaticResourcesBuilder_ != null) { + automaticResourcesBuilder_.dispose(); automaticResourcesBuilder_ = null; } - + onChanged(); return this; } /** @@ -2837,7 +2866,7 @@ public Builder clearAutomaticResources() { */ public com.google.cloud.aiplatform.v1beta1.AutomaticResources.Builder getAutomaticResourcesBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getAutomaticResourcesFieldBuilder().getBuilder(); } @@ -2934,7 +2963,7 @@ public Builder clearAutomaticResources() { * @return Whether the dedicatedResources field is set. */ public boolean hasDedicatedResources() { - return dedicatedResourcesBuilder_ != null || dedicatedResources_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -3000,11 +3029,11 @@ public Builder setDedicatedResources( throw new NullPointerException(); } dedicatedResources_ = value; - onChanged(); } else { dedicatedResourcesBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3034,11 +3063,11 @@ public Builder setDedicatedResources( com.google.cloud.aiplatform.v1beta1.DedicatedResources.Builder builderForValue) { if (dedicatedResourcesBuilder_ == null) { dedicatedResources_ = builderForValue.build(); - onChanged(); } else { dedicatedResourcesBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3067,19 +3096,19 @@ public Builder setDedicatedResources( public Builder mergeDedicatedResources( com.google.cloud.aiplatform.v1beta1.DedicatedResources value) { if (dedicatedResourcesBuilder_ == null) { - if (dedicatedResources_ != null) { - dedicatedResources_ = - com.google.cloud.aiplatform.v1beta1.DedicatedResources.newBuilder(dedicatedResources_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && dedicatedResources_ != null + && dedicatedResources_ + != com.google.cloud.aiplatform.v1beta1.DedicatedResources.getDefaultInstance()) { + getDedicatedResourcesBuilder().mergeFrom(value); } else { dedicatedResources_ = value; } - onChanged(); } else { dedicatedResourcesBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3106,14 +3135,13 @@ public Builder mergeDedicatedResources( * */ public Builder clearDedicatedResources() { - if (dedicatedResourcesBuilder_ == null) { - dedicatedResources_ = null; - onChanged(); - } else { - dedicatedResources_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + dedicatedResources_ = null; + if (dedicatedResourcesBuilder_ != null) { + dedicatedResourcesBuilder_.dispose(); dedicatedResourcesBuilder_ = null; } - + onChanged(); return this; } /** @@ -3141,7 +3169,7 @@ public Builder clearDedicatedResources() { */ public com.google.cloud.aiplatform.v1beta1.DedicatedResources.Builder getDedicatedResourcesBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getDedicatedResourcesFieldBuilder().getBuilder(); } @@ -3261,6 +3289,7 @@ public boolean getEnableAccessLogging() { public Builder setEnableAccessLogging(boolean value) { enableAccessLogging_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3282,7 +3311,7 @@ public Builder setEnableAccessLogging(boolean value) { * @return This builder for chaining. */ public Builder clearEnableAccessLogging() { - + bitField0_ = (bitField0_ & ~0x00000100); enableAccessLogging_ = false; onChanged(); return this; @@ -3308,7 +3337,7 @@ public Builder clearEnableAccessLogging() { * @return Whether the deployedIndexAuthConfig field is set. */ public boolean hasDeployedIndexAuthConfig() { - return deployedIndexAuthConfigBuilder_ != null || deployedIndexAuthConfig_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -3351,11 +3380,11 @@ public Builder setDeployedIndexAuthConfig( throw new NullPointerException(); } deployedIndexAuthConfig_ = value; - onChanged(); } else { deployedIndexAuthConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3373,11 +3402,11 @@ public Builder setDeployedIndexAuthConfig( com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.Builder builderForValue) { if (deployedIndexAuthConfigBuilder_ == null) { deployedIndexAuthConfig_ = builderForValue.build(); - onChanged(); } else { deployedIndexAuthConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3394,20 +3423,20 @@ public Builder setDeployedIndexAuthConfig( public Builder mergeDeployedIndexAuthConfig( com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig value) { if (deployedIndexAuthConfigBuilder_ == null) { - if (deployedIndexAuthConfig_ != null) { - deployedIndexAuthConfig_ = - com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.newBuilder( - deployedIndexAuthConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && deployedIndexAuthConfig_ != null + && deployedIndexAuthConfig_ + != com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + .getDefaultInstance()) { + getDeployedIndexAuthConfigBuilder().mergeFrom(value); } else { deployedIndexAuthConfig_ = value; } - onChanged(); } else { deployedIndexAuthConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3422,14 +3451,13 @@ public Builder mergeDeployedIndexAuthConfig( * */ public Builder clearDeployedIndexAuthConfig() { - if (deployedIndexAuthConfigBuilder_ == null) { - deployedIndexAuthConfig_ = null; - onChanged(); - } else { - deployedIndexAuthConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + deployedIndexAuthConfig_ = null; + if (deployedIndexAuthConfigBuilder_ != null) { + deployedIndexAuthConfigBuilder_.dispose(); deployedIndexAuthConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -3445,7 +3473,7 @@ public Builder clearDeployedIndexAuthConfig() { */ public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.Builder getDeployedIndexAuthConfigBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getDeployedIndexAuthConfigFieldBuilder().getBuilder(); } @@ -3502,9 +3530,9 @@ public Builder clearDeployedIndexAuthConfig() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureReservedIpRangesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000400) != 0)) { reservedIpRanges_ = new com.google.protobuf.LazyStringArrayList(reservedIpRanges_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000400; } } /** @@ -3703,7 +3731,7 @@ public Builder addAllReservedIpRanges(java.lang.Iterable value */ public Builder clearReservedIpRanges() { reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -3826,8 +3854,8 @@ public Builder setDeploymentGroup(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deploymentGroup_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3852,8 +3880,8 @@ public Builder setDeploymentGroup(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeploymentGroup() { - deploymentGroup_ = getDefaultInstance().getDeploymentGroup(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -3883,8 +3911,8 @@ public Builder setDeploymentGroupBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deploymentGroup_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexAuthConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexAuthConfig.java index 10117d1ae1bb..8b3fd2c349b9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexAuthConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexAuthConfig.java @@ -246,6 +246,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int AUDIENCES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList audiences_; /** * @@ -319,6 +321,8 @@ public com.google.protobuf.ByteString getAudiencesBytes(int index) { } public static final int ALLOWED_ISSUERS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList allowedIssuers_; /** * @@ -621,6 +625,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; audiences_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); allowedIssuers_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -656,7 +661,16 @@ public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider buildPartial() { com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider result = new com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider result) { if (((bitField0_ & 0x00000001) != 0)) { audiences_ = audiences_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -667,8 +681,11 @@ public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider bitField0_ = (bitField0_ & ~0x00000002); } result.allowedIssuers_ = allowedIssuers_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -1302,7 +1319,10 @@ public boolean hasAuthProvider() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProviderOrBuilder getAuthProviderOrBuilder() { - return getAuthProvider(); + return authProvider_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + .getDefaultInstance() + : authProvider_; } private byte memoizedIsInitialized = -1; @@ -1508,10 +1528,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (authProviderBuilder_ == null) { - authProvider_ = null; - } else { - authProvider_ = null; + bitField0_ = 0; + authProvider_ = null; + if (authProviderBuilder_ != null) { + authProviderBuilder_.dispose(); authProviderBuilder_ = null; } return this; @@ -1541,15 +1561,21 @@ public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig build() { public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig result = new com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig(this); - if (authProviderBuilder_ == null) { - result.authProvider_ = authProvider_; - } else { - result.authProvider_ = authProviderBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.authProvider_ = + authProviderBuilder_ == null ? authProvider_ : authProviderBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1628,7 +1654,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getAuthProviderFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -1648,6 +1674,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider authProvider_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider, @@ -1668,7 +1696,7 @@ public Builder mergeFrom( * @return Whether the authProvider field is set. */ public boolean hasAuthProvider() { - return authProviderBuilder_ != null || authProvider_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1712,11 +1740,11 @@ public Builder setAuthProvider( throw new NullPointerException(); } authProvider_ = value; - onChanged(); } else { authProviderBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1735,11 +1763,11 @@ public Builder setAuthProvider( builderForValue) { if (authProviderBuilder_ == null) { authProvider_ = builderForValue.build(); - onChanged(); } else { authProviderBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1756,20 +1784,20 @@ public Builder setAuthProvider( public Builder mergeAuthProvider( com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider value) { if (authProviderBuilder_ == null) { - if (authProvider_ != null) { - authProvider_ = - com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.newBuilder( - authProvider_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && authProvider_ != null + && authProvider_ + != com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + .getDefaultInstance()) { + getAuthProviderBuilder().mergeFrom(value); } else { authProvider_ = value; } - onChanged(); } else { authProviderBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1784,14 +1812,13 @@ public Builder mergeAuthProvider( * */ public Builder clearAuthProvider() { - if (authProviderBuilder_ == null) { - authProvider_ = null; - onChanged(); - } else { - authProvider_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + authProvider_ = null; + if (authProviderBuilder_ != null) { + authProviderBuilder_.dispose(); authProviderBuilder_ = null; } - + onChanged(); return this; } /** @@ -1807,7 +1834,7 @@ public Builder clearAuthProvider() { */ public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.Builder getAuthProviderBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getAuthProviderFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRef.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRef.java index b33863700a14..6c6901fa003b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRef.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRef.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INDEX_ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object indexEndpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object indexEndpoint_ = ""; /** * * @@ -122,7 +124,9 @@ public com.google.protobuf.ByteString getIndexEndpointBytes() { } public static final int DEPLOYED_INDEX_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deployedIndexId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedIndexId_ = ""; /** * * @@ -376,10 +380,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; indexEndpoint_ = ""; - deployedIndexId_ = ""; - return this; } @@ -407,12 +410,23 @@ public com.google.cloud.aiplatform.v1beta1.DeployedIndexRef build() { public com.google.cloud.aiplatform.v1beta1.DeployedIndexRef buildPartial() { com.google.cloud.aiplatform.v1beta1.DeployedIndexRef result = new com.google.cloud.aiplatform.v1beta1.DeployedIndexRef(this); - result.indexEndpoint_ = indexEndpoint_; - result.deployedIndexId_ = deployedIndexId_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeployedIndexRef result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.indexEndpoint_ = indexEndpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedIndexId_ = deployedIndexId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -461,10 +475,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedIndexRef ot return this; if (!other.getIndexEndpoint().isEmpty()) { indexEndpoint_ = other.indexEndpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDeployedIndexId().isEmpty()) { deployedIndexId_ = other.deployedIndexId_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -496,13 +512,13 @@ public Builder mergeFrom( case 10: { indexEndpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { deployedIndexId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -522,6 +538,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object indexEndpoint_ = ""; /** * @@ -589,8 +607,8 @@ public Builder setIndexEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - indexEndpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -608,8 +626,8 @@ public Builder setIndexEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearIndexEndpoint() { - indexEndpoint_ = getDefaultInstance().getIndexEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -632,8 +650,8 @@ public Builder setIndexEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - indexEndpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -699,8 +717,8 @@ public Builder setDeployedIndexId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedIndexId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -716,8 +734,8 @@ public Builder setDeployedIndexId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedIndexId() { - deployedIndexId_ = getDefaultInstance().getDeployedIndexId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -738,8 +756,8 @@ public Builder setDeployedIndexIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedIndexId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java index b91bcb6ede19..3ce17fed5716 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java @@ -308,7 +308,9 @@ public com.google.protobuf.ByteString getSharedResourcesBytes() { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -361,7 +363,9 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int MODEL_FIELD_NUMBER = 2; - private volatile java.lang.Object model_; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; /** * * @@ -422,7 +426,9 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int MODEL_VERSION_ID_FIELD_NUMBER = 18; - private volatile java.lang.Object modelVersionId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelVersionId_ = ""; /** * * @@ -471,7 +477,9 @@ public com.google.protobuf.ByteString getModelVersionIdBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -567,7 +575,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int EXPLANATION_SPEC_FIELD_NUMBER = 9; @@ -661,11 +669,15 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationSpec getExplanationSpec() @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ExplanationSpecOrBuilder getExplanationSpecOrBuilder() { - return getExplanationSpec(); + return explanationSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.ExplanationSpec.getDefaultInstance() + : explanationSpec_; } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 11; - private volatile java.lang.Object serviceAccount_; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; /** * * @@ -724,7 +736,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } public static final int ENABLE_CONTAINER_LOGGING_FIELD_NUMBER = 12; - private boolean enableContainerLogging_; + private boolean enableContainerLogging_ = false; /** * * @@ -744,7 +756,7 @@ public boolean getEnableContainerLogging() { } public static final int ENABLE_ACCESS_LOGGING_FIELD_NUMBER = 13; - private boolean enableAccessLogging_; + private boolean enableAccessLogging_ = false; /** * * @@ -826,7 +838,9 @@ public com.google.cloud.aiplatform.v1beta1.PrivateEndpoints getPrivateEndpoints( @java.lang.Override public com.google.cloud.aiplatform.v1beta1.PrivateEndpointsOrBuilder getPrivateEndpointsOrBuilder() { - return getPrivateEndpoints(); + return privateEndpoints_ == null + ? com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.getDefaultInstance() + : privateEndpoints_; } private byte memoizedIsInitialized = -1; @@ -1176,6 +1190,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (dedicatedResourcesBuilder_ != null) { dedicatedResourcesBuilder_.clear(); } @@ -1183,35 +1198,25 @@ public Builder clear() { automaticResourcesBuilder_.clear(); } id_ = ""; - model_ = ""; - modelVersionId_ = ""; - displayName_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (explanationSpecBuilder_ == null) { - explanationSpec_ = null; - } else { - explanationSpec_ = null; + explanationSpec_ = null; + if (explanationSpecBuilder_ != null) { + explanationSpecBuilder_.dispose(); explanationSpecBuilder_ = null; } serviceAccount_ = ""; - enableContainerLogging_ = false; - enableAccessLogging_ = false; - - if (privateEndpointsBuilder_ == null) { - privateEndpoints_ = null; - } else { - privateEndpoints_ = null; + privateEndpoints_ = null; + if (privateEndpointsBuilder_ != null) { + privateEndpointsBuilder_.dispose(); privateEndpointsBuilder_ = null; } predictionResourcesCase_ = 0; @@ -1243,48 +1248,59 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModel build() { public com.google.cloud.aiplatform.v1beta1.DeployedModel buildPartial() { com.google.cloud.aiplatform.v1beta1.DeployedModel result = new com.google.cloud.aiplatform.v1beta1.DeployedModel(this); - if (predictionResourcesCase_ == 7) { - if (dedicatedResourcesBuilder_ == null) { - result.predictionResources_ = predictionResources_; - } else { - result.predictionResources_ = dedicatedResourcesBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (predictionResourcesCase_ == 8) { - if (automaticResourcesBuilder_ == null) { - result.predictionResources_ = predictionResources_; - } else { - result.predictionResources_ = automaticResourcesBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeployedModel result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.id_ = id_; } - if (predictionResourcesCase_ == 17) { - result.predictionResources_ = predictionResources_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.model_ = model_; } - result.id_ = id_; - result.model_ = model_; - result.modelVersionId_ = modelVersionId_; - result.displayName_ = displayName_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.modelVersionId_ = modelVersionId_; } - if (explanationSpecBuilder_ == null) { - result.explanationSpec_ = explanationSpec_; - } else { - result.explanationSpec_ = explanationSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000040) != 0)) { + result.displayName_ = displayName_; } - result.serviceAccount_ = serviceAccount_; - result.enableContainerLogging_ = enableContainerLogging_; - result.enableAccessLogging_ = enableAccessLogging_; - if (privateEndpointsBuilder_ == null) { - result.privateEndpoints_ = privateEndpoints_; - } else { - result.privateEndpoints_ = privateEndpointsBuilder_.build(); + if (((from_bitField0_ & 0x00000080) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.explanationSpec_ = + explanationSpecBuilder_ == null ? explanationSpec_ : explanationSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.serviceAccount_ = serviceAccount_; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.enableContainerLogging_ = enableContainerLogging_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.enableAccessLogging_ = enableAccessLogging_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.privateEndpoints_ = + privateEndpointsBuilder_ == null ? privateEndpoints_ : privateEndpointsBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.DeployedModel result) { result.predictionResourcesCase_ = predictionResourcesCase_; - onBuilt(); - return result; + result.predictionResources_ = this.predictionResources_; + if (predictionResourcesCase_ == 7 && dedicatedResourcesBuilder_ != null) { + result.predictionResources_ = dedicatedResourcesBuilder_.build(); + } + if (predictionResourcesCase_ == 8 && automaticResourcesBuilder_ != null) { + result.predictionResources_ = automaticResourcesBuilder_.build(); + } } @java.lang.Override @@ -1335,18 +1351,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedModel other return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getModel().isEmpty()) { model_ = other.model_; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getModelVersionId().isEmpty()) { modelVersionId_ = other.modelVersionId_; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasCreateTime()) { @@ -1357,6 +1377,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedModel other } if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00000200; onChanged(); } if (other.getEnableContainerLogging() != false) { @@ -1420,25 +1441,25 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 10 case 18: { model_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 18 case 26: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 26 case 50: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 50 case 58: @@ -1458,32 +1479,32 @@ public Builder mergeFrom( case 74: { input.readMessage(getExplanationSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 74 case 90: { serviceAccount_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000200; break; } // case 90 case 96: { enableContainerLogging_ = input.readBool(); - + bitField0_ |= 0x00000400; break; } // case 96 case 104: { enableAccessLogging_ = input.readBool(); - + bitField0_ |= 0x00000800; break; } // case 104 case 114: { input.readMessage( getPrivateEndpointsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00001000; break; } // case 114 case 138: @@ -1496,7 +1517,7 @@ public Builder mergeFrom( case 146: { modelVersionId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 146 default: @@ -1530,6 +1551,8 @@ public Builder clearPredictionResources() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.DedicatedResources, com.google.cloud.aiplatform.v1beta1.DedicatedResources.Builder, @@ -1751,7 +1774,6 @@ public Builder clearDedicatedResources() { } predictionResourcesCase_ = 7; onChanged(); - ; return dedicatedResourcesBuilder_; } @@ -1976,7 +1998,6 @@ public Builder clearAutomaticResources() { } predictionResourcesCase_ = 8; onChanged(); - ; return automaticResourcesBuilder_; } @@ -2193,8 +2214,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2212,8 +2233,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2236,8 +2257,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2321,8 +2342,8 @@ public Builder setModel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - model_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2344,8 +2365,8 @@ public Builder setModel(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModel() { - model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2372,8 +2393,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - model_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2439,8 +2460,8 @@ public Builder setModelVersionId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelVersionId_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2456,8 +2477,8 @@ public Builder setModelVersionId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelVersionId() { - modelVersionId_ = getDefaultInstance().getModelVersionId(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2478,8 +2499,8 @@ public Builder setModelVersionIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelVersionId_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2548,8 +2569,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2566,8 +2587,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2589,8 +2610,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2615,7 +2636,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2656,11 +2677,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2677,11 +2698,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2697,17 +2718,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2722,14 +2744,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2744,7 +2765,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2829,7 +2850,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the explanationSpec field is set. */ public boolean hasExplanationSpec() { - return explanationSpecBuilder_ != null || explanationSpec_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -2896,11 +2917,11 @@ public Builder setExplanationSpec(com.google.cloud.aiplatform.v1beta1.Explanatio throw new NullPointerException(); } explanationSpec_ = value; - onChanged(); } else { explanationSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -2931,11 +2952,11 @@ public Builder setExplanationSpec( com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder builderForValue) { if (explanationSpecBuilder_ == null) { explanationSpec_ = builderForValue.build(); - onChanged(); } else { explanationSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -2964,19 +2985,19 @@ public Builder setExplanationSpec( */ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1beta1.ExplanationSpec value) { if (explanationSpecBuilder_ == null) { - if (explanationSpec_ != null) { - explanationSpec_ = - com.google.cloud.aiplatform.v1beta1.ExplanationSpec.newBuilder(explanationSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && explanationSpec_ != null + && explanationSpec_ + != com.google.cloud.aiplatform.v1beta1.ExplanationSpec.getDefaultInstance()) { + getExplanationSpecBuilder().mergeFrom(value); } else { explanationSpec_ = value; } - onChanged(); } else { explanationSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3004,14 +3025,13 @@ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1beta1.Explanat * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 9; */ public Builder clearExplanationSpec() { - if (explanationSpecBuilder_ == null) { - explanationSpec_ = null; - onChanged(); - } else { - explanationSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + explanationSpec_ = null; + if (explanationSpecBuilder_ != null) { + explanationSpecBuilder_.dispose(); explanationSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -3039,7 +3059,7 @@ public Builder clearExplanationSpec() { * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 9; */ public com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder getExplanationSpecBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getExplanationSpecFieldBuilder().getBuilder(); } @@ -3194,8 +3214,8 @@ public Builder setServiceAccount(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - serviceAccount_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3216,8 +3236,8 @@ public Builder setServiceAccount(java.lang.String value) { * @return This builder for chaining. */ public Builder clearServiceAccount() { - serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -3243,8 +3263,8 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - serviceAccount_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3284,6 +3304,7 @@ public boolean getEnableContainerLogging() { public Builder setEnableContainerLogging(boolean value) { enableContainerLogging_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3301,7 +3322,7 @@ public Builder setEnableContainerLogging(boolean value) { * @return This builder for chaining. */ public Builder clearEnableContainerLogging() { - + bitField0_ = (bitField0_ & ~0x00000400); enableContainerLogging_ = false; onChanged(); return this; @@ -3346,6 +3367,7 @@ public boolean getEnableAccessLogging() { public Builder setEnableAccessLogging(boolean value) { enableAccessLogging_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3365,7 +3387,7 @@ public Builder setEnableAccessLogging(boolean value) { * @return This builder for chaining. */ public Builder clearEnableAccessLogging() { - + bitField0_ = (bitField0_ & ~0x00000800); enableAccessLogging_ = false; onChanged(); return this; @@ -3394,7 +3416,7 @@ public Builder clearEnableAccessLogging() { * @return Whether the privateEndpoints field is set. */ public boolean hasPrivateEndpoints() { - return privateEndpointsBuilder_ != null || privateEndpoints_ != null; + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -3441,11 +3463,11 @@ public Builder setPrivateEndpoints(com.google.cloud.aiplatform.v1beta1.PrivateEn throw new NullPointerException(); } privateEndpoints_ = value; - onChanged(); } else { privateEndpointsBuilder_.setMessage(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3466,11 +3488,11 @@ public Builder setPrivateEndpoints( com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.Builder builderForValue) { if (privateEndpointsBuilder_ == null) { privateEndpoints_ = builderForValue.build(); - onChanged(); } else { privateEndpointsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3490,19 +3512,19 @@ public Builder setPrivateEndpoints( public Builder mergePrivateEndpoints( com.google.cloud.aiplatform.v1beta1.PrivateEndpoints value) { if (privateEndpointsBuilder_ == null) { - if (privateEndpoints_ != null) { - privateEndpoints_ = - com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.newBuilder(privateEndpoints_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00001000) != 0) + && privateEndpoints_ != null + && privateEndpoints_ + != com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.getDefaultInstance()) { + getPrivateEndpointsBuilder().mergeFrom(value); } else { privateEndpoints_ = value; } - onChanged(); } else { privateEndpointsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3520,14 +3542,13 @@ public Builder mergePrivateEndpoints( * */ public Builder clearPrivateEndpoints() { - if (privateEndpointsBuilder_ == null) { - privateEndpoints_ = null; - onChanged(); - } else { - privateEndpoints_ = null; + bitField0_ = (bitField0_ & ~0x00001000); + privateEndpoints_ = null; + if (privateEndpointsBuilder_ != null) { + privateEndpointsBuilder_.dispose(); privateEndpointsBuilder_ = null; } - + onChanged(); return this; } /** @@ -3546,7 +3567,7 @@ public Builder clearPrivateEndpoints() { */ public com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.Builder getPrivateEndpointsBuilder() { - + bitField0_ |= 0x00001000; onChanged(); return getPrivateEndpointsFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelRef.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelRef.java index efb448366e38..42734f01c725 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelRef.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelRef.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object endpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; /** * * @@ -122,7 +124,9 @@ public com.google.protobuf.ByteString getEndpointBytes() { } public static final int DEPLOYED_MODEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deployedModelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedModelId_ = ""; /** * * @@ -376,10 +380,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; endpoint_ = ""; - deployedModelId_ = ""; - return this; } @@ -407,12 +410,23 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModelRef build() { public com.google.cloud.aiplatform.v1beta1.DeployedModelRef buildPartial() { com.google.cloud.aiplatform.v1beta1.DeployedModelRef result = new com.google.cloud.aiplatform.v1beta1.DeployedModelRef(this); - result.endpoint_ = endpoint_; - result.deployedModelId_ = deployedModelId_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeployedModelRef result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedModelId_ = deployedModelId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -461,10 +475,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedModelRef ot return this; if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDeployedModelId().isEmpty()) { deployedModelId_ = other.deployedModelId_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -496,13 +512,13 @@ public Builder mergeFrom( case 10: { endpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { deployedModelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -522,6 +538,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object endpoint_ = ""; /** * @@ -589,8 +607,8 @@ public Builder setEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -608,8 +626,8 @@ public Builder setEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEndpoint() { - endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -632,8 +650,8 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -699,8 +717,8 @@ public Builder setDeployedModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -716,8 +734,8 @@ public Builder setDeployedModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedModelId() { - deployedModelId_ = getDefaultInstance().getDeployedModelId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -738,8 +756,8 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePool.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePool.java index 65df6a843d20..2fc433cf981d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePool.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePool.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -176,7 +178,9 @@ public com.google.cloud.aiplatform.v1beta1.DedicatedResources getDedicatedResour @java.lang.Override public com.google.cloud.aiplatform.v1beta1.DedicatedResourcesOrBuilder getDedicatedResourcesOrBuilder() { - return getDedicatedResources(); + return dedicatedResources_ == null + ? com.google.cloud.aiplatform.v1beta1.DedicatedResources.getDefaultInstance() + : dedicatedResources_; } public static final int CREATE_TIME_FIELD_NUMBER = 4; @@ -225,7 +229,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } private byte memoizedIsInitialized = -1; @@ -455,18 +459,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - - if (dedicatedResourcesBuilder_ == null) { - dedicatedResources_ = null; - } else { - dedicatedResources_ = null; + dedicatedResources_ = null; + if (dedicatedResourcesBuilder_ != null) { + dedicatedResourcesBuilder_.dispose(); dedicatedResourcesBuilder_ = null; } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } return this; @@ -496,21 +498,29 @@ public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool build() { public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool buildPartial() { com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool result = new com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool(this); - result.name_ = name_; - if (dedicatedResourcesBuilder_ == null) { - result.dedicatedResources_ = dedicatedResources_; - } else { - result.dedicatedResources_ = dedicatedResourcesBuilder_.build(); - } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dedicatedResources_ = + dedicatedResourcesBuilder_ == null + ? dedicatedResources_ + : dedicatedResourcesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -559,6 +569,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeploymentResourceP return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasDedicatedResources()) { @@ -596,20 +607,20 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getDedicatedResourcesFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 34: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 34 default: @@ -629,6 +640,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -696,8 +709,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -715,8 +728,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -739,8 +752,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -766,7 +779,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the dedicatedResources field is set. */ public boolean hasDedicatedResources() { - return dedicatedResourcesBuilder_ != null || dedicatedResources_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -810,11 +823,11 @@ public Builder setDedicatedResources( throw new NullPointerException(); } dedicatedResources_ = value; - onChanged(); } else { dedicatedResourcesBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -833,11 +846,11 @@ public Builder setDedicatedResources( com.google.cloud.aiplatform.v1beta1.DedicatedResources.Builder builderForValue) { if (dedicatedResourcesBuilder_ == null) { dedicatedResources_ = builderForValue.build(); - onChanged(); } else { dedicatedResourcesBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -855,19 +868,19 @@ public Builder setDedicatedResources( public Builder mergeDedicatedResources( com.google.cloud.aiplatform.v1beta1.DedicatedResources value) { if (dedicatedResourcesBuilder_ == null) { - if (dedicatedResources_ != null) { - dedicatedResources_ = - com.google.cloud.aiplatform.v1beta1.DedicatedResources.newBuilder(dedicatedResources_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && dedicatedResources_ != null + && dedicatedResources_ + != com.google.cloud.aiplatform.v1beta1.DedicatedResources.getDefaultInstance()) { + getDedicatedResourcesBuilder().mergeFrom(value); } else { dedicatedResources_ = value; } - onChanged(); } else { dedicatedResourcesBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -883,14 +896,13 @@ public Builder mergeDedicatedResources( * */ public Builder clearDedicatedResources() { - if (dedicatedResourcesBuilder_ == null) { - dedicatedResources_ = null; - onChanged(); - } else { - dedicatedResources_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + dedicatedResources_ = null; + if (dedicatedResourcesBuilder_ != null) { + dedicatedResourcesBuilder_.dispose(); dedicatedResourcesBuilder_ = null; } - + onChanged(); return this; } /** @@ -907,7 +919,7 @@ public Builder clearDedicatedResources() { */ public com.google.cloud.aiplatform.v1beta1.DedicatedResources.Builder getDedicatedResourcesBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getDedicatedResourcesFieldBuilder().getBuilder(); } @@ -982,7 +994,7 @@ public Builder clearDedicatedResources() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1023,11 +1035,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1044,11 +1056,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1064,17 +1076,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1089,14 +1102,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1111,7 +1123,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DestinationFeatureSetting.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DestinationFeatureSetting.java index 96f869b9e1ff..abbe777f5a57 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DestinationFeatureSetting.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DestinationFeatureSetting.java @@ -61,7 +61,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int FEATURE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object featureId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object featureId_ = ""; /** * * @@ -110,7 +112,9 @@ public com.google.protobuf.ByteString getFeatureIdBytes() { } public static final int DESTINATION_FIELD_FIELD_NUMBER = 2; - private volatile java.lang.Object destinationField_; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationField_ = ""; /** * * @@ -359,10 +363,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; featureId_ = ""; - destinationField_ = ""; - return this; } @@ -391,12 +394,24 @@ public com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting build() { public com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting buildPartial() { com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting result = new com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting(this); - result.featureId_ = featureId_; - result.destinationField_ = destinationField_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.featureId_ = featureId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.destinationField_ = destinationField_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -446,10 +461,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DestinationFeatureS return this; if (!other.getFeatureId().isEmpty()) { featureId_ = other.featureId_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDestinationField().isEmpty()) { destinationField_ = other.destinationField_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -481,13 +498,13 @@ public Builder mergeFrom( case 10: { featureId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { destinationField_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -507,6 +524,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object featureId_ = ""; /** * @@ -568,8 +587,8 @@ public Builder setFeatureId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - featureId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -585,8 +604,8 @@ public Builder setFeatureId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFeatureId() { - featureId_ = getDefaultInstance().getFeatureId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -607,8 +626,8 @@ public Builder setFeatureIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - featureId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -677,8 +696,8 @@ public Builder setDestinationField(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - destinationField_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -695,8 +714,8 @@ public Builder setDestinationField(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDestinationField() { - destinationField_ = getDefaultInstance().getDestinationField(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -718,8 +737,8 @@ public Builder setDestinationFieldBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - destinationField_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DiskSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DiskSpec.java index a6cd7ed0df7b..f1128f725448 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DiskSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DiskSpec.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int BOOT_DISK_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object bootDiskType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object bootDiskType_ = ""; /** * * @@ -121,7 +123,7 @@ public com.google.protobuf.ByteString getBootDiskTypeBytes() { } public static final int BOOT_DISK_SIZE_GB_FIELD_NUMBER = 2; - private int bootDiskSizeGb_; + private int bootDiskSizeGb_ = 0; /** * * @@ -344,10 +346,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; bootDiskType_ = ""; - bootDiskSizeGb_ = 0; - return this; } @@ -375,12 +376,23 @@ public com.google.cloud.aiplatform.v1beta1.DiskSpec build() { public com.google.cloud.aiplatform.v1beta1.DiskSpec buildPartial() { com.google.cloud.aiplatform.v1beta1.DiskSpec result = new com.google.cloud.aiplatform.v1beta1.DiskSpec(this); - result.bootDiskType_ = bootDiskType_; - result.bootDiskSizeGb_ = bootDiskSizeGb_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DiskSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bootDiskType_ = bootDiskType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.bootDiskSizeGb_ = bootDiskSizeGb_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -428,6 +440,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DiskSpec other) { if (other == com.google.cloud.aiplatform.v1beta1.DiskSpec.getDefaultInstance()) return this; if (!other.getBootDiskType().isEmpty()) { bootDiskType_ = other.bootDiskType_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getBootDiskSizeGb() != 0) { @@ -462,13 +475,13 @@ public Builder mergeFrom( case 10: { bootDiskType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { bootDiskSizeGb_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -488,6 +501,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object bootDiskType_ = ""; /** * @@ -555,8 +570,8 @@ public Builder setBootDiskType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bootDiskType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -574,8 +589,8 @@ public Builder setBootDiskType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearBootDiskType() { - bootDiskType_ = getDefaultInstance().getBootDiskType(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -598,8 +613,8 @@ public Builder setBootDiskTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - bootDiskType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -635,6 +650,7 @@ public int getBootDiskSizeGb() { public Builder setBootDiskSizeGb(int value) { bootDiskSizeGb_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -650,7 +666,7 @@ public Builder setBootDiskSizeGb(int value) { * @return This builder for chaining. */ public Builder clearBootDiskSizeGb() { - + bitField0_ = (bitField0_ & ~0x00000002); bootDiskSizeGb_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArray.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArray.java index 4cd8c0981897..ec76c5af624e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArray.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArray.java @@ -68,6 +68,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.DoubleList values_; /** * @@ -327,8 +329,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; values_ = emptyDoubleList(); - bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -356,14 +358,25 @@ public com.google.cloud.aiplatform.v1beta1.DoubleArray build() { public com.google.cloud.aiplatform.v1beta1.DoubleArray buildPartial() { com.google.cloud.aiplatform.v1beta1.DoubleArray result = new com.google.cloud.aiplatform.v1beta1.DoubleArray(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.DoubleArray result) { if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DoubleArray result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -552,6 +565,7 @@ public double getValues(int index) { * @return This builder for chaining. */ public Builder setValues(int index, double value) { + ensureValuesIsMutable(); values_.setDouble(index, value); onChanged(); @@ -570,6 +584,7 @@ public Builder setValues(int index, double value) { * @return This builder for chaining. */ public Builder addValues(double value) { + ensureValuesIsMutable(); values_.addDouble(value); onChanged(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EncryptionSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EncryptionSpec.java index 37dbb1738b4d..a9389dd2f4ca 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EncryptionSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EncryptionSpec.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object kmsKeyName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKeyName_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; kmsKeyName_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec build() { public com.google.cloud.aiplatform.v1beta1.EncryptionSpec buildPartial() { com.google.cloud.aiplatform.v1beta1.EncryptionSpec result = new com.google.cloud.aiplatform.v1beta1.EncryptionSpec(this); - result.kmsKeyName_ = kmsKeyName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.EncryptionSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.kmsKeyName_ = kmsKeyName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -405,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EncryptionSpec othe return this; if (!other.getKmsKeyName().isEmpty()) { kmsKeyName_ = other.kmsKeyName_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -436,7 +448,7 @@ public Builder mergeFrom( case 10: { kmsKeyName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -456,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object kmsKeyName_ = ""; /** * @@ -529,8 +543,8 @@ public Builder setKmsKeyName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - kmsKeyName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -550,8 +564,8 @@ public Builder setKmsKeyName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearKmsKeyName() { - kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -576,8 +590,8 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - kmsKeyName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java index e25e6d0a3ef7..73dca0895bf8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java @@ -88,7 +88,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -137,7 +139,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -190,7 +194,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -239,6 +245,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int DEPLOYED_MODELS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List deployedModels_; /** * @@ -356,6 +364,7 @@ private static final class TrafficSplitDefaultEntryHolder { 0); } + @SuppressWarnings("serial") private com.google.protobuf.MapField trafficSplit_; private com.google.protobuf.MapField @@ -464,7 +473,9 @@ public int getTrafficSplitOrThrow(java.lang.String key) { } public static final int ETAG_FIELD_NUMBER = 6; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -527,6 +538,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -596,7 +608,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -674,7 +689,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 9; @@ -723,7 +738,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 10; @@ -777,11 +792,15 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } public static final int NETWORK_FIELD_NUMBER = 13; - private volatile java.lang.Object network_; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; /** * * @@ -854,7 +873,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { } public static final int ENABLE_PRIVATE_SERVICE_CONNECT_FIELD_NUMBER = 17; - private boolean enablePrivateServiceConnect_; + private boolean enablePrivateServiceConnect_ = false; /** * * @@ -879,7 +898,9 @@ public boolean getEnablePrivateServiceConnect() { } public static final int MODEL_DEPLOYMENT_MONITORING_JOB_FIELD_NUMBER = 14; - private volatile java.lang.Object modelDeploymentMonitoringJob_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelDeploymentMonitoringJob_ = ""; /** * * @@ -992,7 +1013,10 @@ public boolean hasPredictRequestResponseLoggingConfig() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfigOrBuilder getPredictRequestResponseLoggingConfigOrBuilder() { - return getPredictRequestResponseLoggingConfig(); + return predictRequestResponseLoggingConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + .getDefaultInstance() + : predictRequestResponseLoggingConfig_; } private byte memoizedIsInitialized = -1; @@ -1380,51 +1404,41 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - if (deployedModelsBuilder_ == null) { deployedModels_ = java.util.Collections.emptyList(); } else { deployedModels_ = null; deployedModelsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableTrafficSplit().clear(); etag_ = ""; - internalGetMutableLabels().clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } network_ = ""; - enablePrivateServiceConnect_ = false; - modelDeploymentMonitoringJob_ = ""; - - if (predictRequestResponseLoggingConfigBuilder_ == null) { - predictRequestResponseLoggingConfig_ = null; - } else { - predictRequestResponseLoggingConfig_ = null; + predictRequestResponseLoggingConfig_ = null; + if (predictRequestResponseLoggingConfigBuilder_ != null) { + predictRequestResponseLoggingConfigBuilder_.dispose(); predictRequestResponseLoggingConfigBuilder_ = null; } return this; @@ -1454,50 +1468,73 @@ public com.google.cloud.aiplatform.v1beta1.Endpoint build() { public com.google.cloud.aiplatform.v1beta1.Endpoint buildPartial() { com.google.cloud.aiplatform.v1beta1.Endpoint result = new com.google.cloud.aiplatform.v1beta1.Endpoint(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.Endpoint result) { if (deployedModelsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { deployedModels_ = java.util.Collections.unmodifiableList(deployedModels_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.deployedModels_ = deployedModels_; } else { result.deployedModels_ = deployedModelsBuilder_.build(); } - result.trafficSplit_ = internalGetTrafficSplit(); - result.trafficSplit_.makeImmutable(); - result.etag_ = etag_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Endpoint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; } - result.network_ = network_; - result.enablePrivateServiceConnect_ = enablePrivateServiceConnect_; - result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_; - if (predictRequestResponseLoggingConfigBuilder_ == null) { - result.predictRequestResponseLoggingConfig_ = predictRequestResponseLoggingConfig_; - } else { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.trafficSplit_ = internalGetTrafficSplit(); + result.trafficSplit_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.enablePrivateServiceConnect_ = enablePrivateServiceConnect_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { result.predictRequestResponseLoggingConfig_ = - predictRequestResponseLoggingConfigBuilder_.build(); + predictRequestResponseLoggingConfigBuilder_ == null + ? predictRequestResponseLoggingConfig_ + : predictRequestResponseLoggingConfigBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -1547,21 +1584,24 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Endpoint other) { if (other == com.google.cloud.aiplatform.v1beta1.Endpoint.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (deployedModelsBuilder_ == null) { if (!other.deployedModels_.isEmpty()) { if (deployedModels_.isEmpty()) { deployedModels_ = other.deployedModels_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureDeployedModelsIsMutable(); deployedModels_.addAll(other.deployedModels_); @@ -1574,7 +1614,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Endpoint other) { deployedModelsBuilder_.dispose(); deployedModelsBuilder_ = null; deployedModels_ = other.deployedModels_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); deployedModelsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDeployedModelsFieldBuilder() @@ -1585,11 +1625,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Endpoint other) { } } internalGetMutableTrafficSplit().mergeFrom(other.internalGetTrafficSplit()); + bitField0_ |= 0x00000010; if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000020; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000040; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1601,6 +1644,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Endpoint other) { } if (!other.getNetwork().isEmpty()) { network_ = other.network_; + bitField0_ |= 0x00000400; onChanged(); } if (other.getEnablePrivateServiceConnect() != false) { @@ -1608,6 +1652,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Endpoint other) { } if (!other.getModelDeploymentMonitoringJob().isEmpty()) { modelDeploymentMonitoringJob_ = other.modelDeploymentMonitoringJob_; + bitField0_ |= 0x00001000; onChanged(); } if (other.hasPredictRequestResponseLoggingConfig()) { @@ -1642,19 +1687,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: @@ -1680,12 +1725,13 @@ public Builder mergeFrom( internalGetMutableTrafficSplit() .getMutableMap() .put(trafficSplit__.getKey(), trafficSplit__.getValue()); + bitField0_ |= 0x00000010; break; } // case 42 case 50: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 case 58: @@ -1697,42 +1743,43 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 66 case 74: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 74 case 82: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 82 case 106: { network_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000400; break; } // case 106 case 114: { modelDeploymentMonitoringJob_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00001000; break; } // case 114 case 136: { enablePrivateServiceConnect_ = input.readBool(); - + bitField0_ |= 0x00000800; break; } // case 136 case 146: @@ -1740,7 +1787,7 @@ public Builder mergeFrom( input.readMessage( getPredictRequestResponseLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00002000; break; } // case 146 default: @@ -1823,8 +1870,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1840,8 +1887,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1862,8 +1909,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1935,8 +1982,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1954,8 +2001,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1978,8 +2025,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2045,8 +2092,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2062,8 +2109,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2084,8 +2131,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2094,11 +2141,11 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureDeployedModelsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { deployedModels_ = new java.util.ArrayList( deployedModels_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -2394,7 +2441,7 @@ public Builder addAllDeployedModels( public Builder clearDeployedModels() { if (deployedModelsBuilder_ == null) { deployedModels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { deployedModelsBuilder_.clear(); @@ -2570,7 +2617,7 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModel.Builder addDeployedMode com.google.cloud.aiplatform.v1beta1.DeployedModel.Builder, com.google.cloud.aiplatform.v1beta1.DeployedModelOrBuilder>( deployedModels_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); deployedModels_ = null; @@ -2591,8 +2638,6 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModel.Builder addDeployedMode private com.google.protobuf.MapField internalGetMutableTrafficSplit() { - onChanged(); - ; if (trafficSplit_ == null) { trafficSplit_ = com.google.protobuf.MapField.newMapField(TrafficSplitDefaultEntryHolder.defaultEntry); @@ -2600,6 +2645,8 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModel.Builder addDeployedMode if (!trafficSplit_.isMutable()) { trafficSplit_ = trafficSplit_.copy(); } + bitField0_ |= 0x00000010; + onChanged(); return trafficSplit_; } @@ -2700,6 +2747,7 @@ public int getTrafficSplitOrThrow(java.lang.String key) { } public Builder clearTrafficSplit() { + bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableTrafficSplit().getMutableMap().clear(); return this; } @@ -2727,6 +2775,7 @@ public Builder removeTrafficSplit(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableTrafficSplit() { + bitField0_ |= 0x00000010; return internalGetMutableTrafficSplit().getMutableMap(); } /** @@ -2749,6 +2798,7 @@ public Builder putTrafficSplit(java.lang.String key, int value) { } internalGetMutableTrafficSplit().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; return this; } /** @@ -2767,6 +2817,7 @@ public Builder putTrafficSplit(java.lang.String key, int value) { */ public Builder putAllTrafficSplit(java.util.Map values) { internalGetMutableTrafficSplit().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; return this; } @@ -2834,8 +2885,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2852,8 +2903,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2875,8 +2926,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2892,14 +2943,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000040; + onChanged(); return labels_; } @@ -2963,8 +3014,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2997,6 +3050,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000040); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -3023,6 +3077,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000040; return internalGetMutableLabels().getMutableMap(); } /** @@ -3045,8 +3100,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000040; return this; } /** @@ -3064,6 +3119,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; return this; } @@ -3087,7 +3143,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -3128,11 +3184,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3149,11 +3205,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3169,17 +3225,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3194,14 +3251,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3216,7 +3272,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -3288,7 +3344,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -3329,11 +3385,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3350,11 +3406,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3370,17 +3426,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3395,14 +3452,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3417,7 +3473,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -3489,7 +3545,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -3530,11 +3586,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3552,11 +3608,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3572,19 +3628,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1beta1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3599,14 +3655,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 10; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -3621,7 +3676,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 10; */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -3771,8 +3826,8 @@ public Builder setNetwork(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - network_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3800,8 +3855,8 @@ public Builder setNetwork(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNetwork() { - network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -3834,8 +3889,8 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - network_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3885,6 +3940,7 @@ public boolean getEnablePrivateServiceConnect() { public Builder setEnablePrivateServiceConnect(boolean value) { enablePrivateServiceConnect_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3907,7 +3963,7 @@ public Builder setEnablePrivateServiceConnect(boolean value) { */ @java.lang.Deprecated public Builder clearEnablePrivateServiceConnect() { - + bitField0_ = (bitField0_ & ~0x00000800); enablePrivateServiceConnect_ = false; onChanged(); return this; @@ -3989,8 +4045,8 @@ public Builder setModelDeploymentMonitoringJob(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelDeploymentMonitoringJob_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4011,8 +4067,8 @@ public Builder setModelDeploymentMonitoringJob(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelDeploymentMonitoringJob() { - modelDeploymentMonitoringJob_ = getDefaultInstance().getModelDeploymentMonitoringJob(); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -4038,8 +4094,8 @@ public Builder setModelDeploymentMonitoringJobBytes(com.google.protobuf.ByteStri throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelDeploymentMonitoringJob_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4065,8 +4121,7 @@ public Builder setModelDeploymentMonitoringJobBytes(com.google.protobuf.ByteStri * @return Whether the predictRequestResponseLoggingConfig field is set. */ public boolean hasPredictRequestResponseLoggingConfig() { - return predictRequestResponseLoggingConfigBuilder_ != null - || predictRequestResponseLoggingConfig_ != null; + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -4110,11 +4165,11 @@ public Builder setPredictRequestResponseLoggingConfig( throw new NullPointerException(); } predictRequestResponseLoggingConfig_ = value; - onChanged(); } else { predictRequestResponseLoggingConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -4133,11 +4188,11 @@ public Builder setPredictRequestResponseLoggingConfig( builderForValue) { if (predictRequestResponseLoggingConfigBuilder_ == null) { predictRequestResponseLoggingConfig_ = builderForValue.build(); - onChanged(); } else { predictRequestResponseLoggingConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -4154,20 +4209,20 @@ public Builder setPredictRequestResponseLoggingConfig( public Builder mergePredictRequestResponseLoggingConfig( com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig value) { if (predictRequestResponseLoggingConfigBuilder_ == null) { - if (predictRequestResponseLoggingConfig_ != null) { - predictRequestResponseLoggingConfig_ = - com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.newBuilder( - predictRequestResponseLoggingConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00002000) != 0) + && predictRequestResponseLoggingConfig_ != null + && predictRequestResponseLoggingConfig_ + != com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + .getDefaultInstance()) { + getPredictRequestResponseLoggingConfigBuilder().mergeFrom(value); } else { predictRequestResponseLoggingConfig_ = value; } - onChanged(); } else { predictRequestResponseLoggingConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -4182,14 +4237,13 @@ public Builder mergePredictRequestResponseLoggingConfig( * */ public Builder clearPredictRequestResponseLoggingConfig() { - if (predictRequestResponseLoggingConfigBuilder_ == null) { - predictRequestResponseLoggingConfig_ = null; - onChanged(); - } else { - predictRequestResponseLoggingConfig_ = null; + bitField0_ = (bitField0_ & ~0x00002000); + predictRequestResponseLoggingConfig_ = null; + if (predictRequestResponseLoggingConfigBuilder_ != null) { + predictRequestResponseLoggingConfigBuilder_.dispose(); predictRequestResponseLoggingConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -4205,7 +4259,7 @@ public Builder clearPredictRequestResponseLoggingConfig() { */ public com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.Builder getPredictRequestResponseLoggingConfigBuilder() { - + bitField0_ |= 0x00002000; onChanged(); return getPredictRequestResponseLoggingConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java index 3028625da734..bb58f7eecc20 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java @@ -353,7 +353,6 @@ public interface EndpointOrBuilder * * map<string, string> labels = 7; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityIdSelector.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityIdSelector.java index 7487a3056fc0..63cb2975b79e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityIdSelector.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityIdSelector.java @@ -163,7 +163,9 @@ public com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder getCsvSourceOrBuil } public static final int ENTITY_ID_FIELD_FIELD_NUMBER = 5; - private volatile java.lang.Object entityIdField_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityIdField_ = ""; /** * * @@ -434,11 +436,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (csvSourceBuilder_ != null) { csvSourceBuilder_.clear(); } entityIdField_ = ""; - entityIdsSourceCase_ = 0; entityIdsSource_ = null; return this; @@ -468,19 +470,29 @@ public com.google.cloud.aiplatform.v1beta1.EntityIdSelector build() { public com.google.cloud.aiplatform.v1beta1.EntityIdSelector buildPartial() { com.google.cloud.aiplatform.v1beta1.EntityIdSelector result = new com.google.cloud.aiplatform.v1beta1.EntityIdSelector(this); - if (entityIdsSourceCase_ == 3) { - if (csvSourceBuilder_ == null) { - result.entityIdsSource_ = entityIdsSource_; - } else { - result.entityIdsSource_ = csvSourceBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - result.entityIdField_ = entityIdField_; - result.entityIdsSourceCase_ = entityIdsSourceCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.EntityIdSelector result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.entityIdField_ = entityIdField_; + } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.EntityIdSelector result) { + result.entityIdsSourceCase_ = entityIdsSourceCase_; + result.entityIdsSource_ = this.entityIdsSource_; + if (entityIdsSourceCase_ == 3 && csvSourceBuilder_ != null) { + result.entityIdsSource_ = csvSourceBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -529,6 +541,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EntityIdSelector ot return this; if (!other.getEntityIdField().isEmpty()) { entityIdField_ = other.entityIdField_; + bitField0_ |= 0x00000002; onChanged(); } switch (other.getEntityIdsSourceCase()) { @@ -577,7 +590,7 @@ public Builder mergeFrom( case 42: { entityIdField_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 42 default: @@ -611,6 +624,8 @@ public Builder clearEntityIdsSource() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.CsvSource, com.google.cloud.aiplatform.v1beta1.CsvSource.Builder, @@ -818,7 +833,6 @@ public com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder getCsvSourceOrBuil } entityIdsSourceCase_ = 3; onChanged(); - ; return csvSourceBuilder_; } @@ -886,8 +900,8 @@ public Builder setEntityIdField(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityIdField_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -904,8 +918,8 @@ public Builder setEntityIdField(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityIdField() { - entityIdField_ = getDefaultInstance().getEntityIdField(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -927,8 +941,8 @@ public Builder setEntityIdFieldBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityIdField_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityType.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityType.java index e6e3dc855428..3d69e73a67ab 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityType.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityType.java @@ -83,7 +83,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -144,7 +146,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -238,7 +242,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 4; @@ -287,7 +291,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int LABELS_FIELD_NUMBER = 6; @@ -303,6 +307,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -387,7 +392,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -425,7 +433,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int ETAG_FIELD_NUMBER = 7; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -548,11 +558,13 @@ public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig getMonit @java.lang.Override public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfigOrBuilder getMonitoringConfigOrBuilder() { - return getMonitoringConfig(); + return monitoringConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.getDefaultInstance() + : monitoringConfig_; } public static final int OFFLINE_STORAGE_TTL_DAYS_FIELD_NUMBER = 10; - private int offlineStorageTtlDays_; + private int offlineStorageTtlDays_ = 0; /** * * @@ -878,33 +890,27 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - description_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); etag_ = ""; - - if (monitoringConfigBuilder_ == null) { - monitoringConfig_ = null; - } else { - monitoringConfig_ = null; + monitoringConfig_ = null; + if (monitoringConfigBuilder_ != null) { + monitoringConfigBuilder_.dispose(); monitoringConfigBuilder_ = null; } offlineStorageTtlDays_ = 0; - return this; } @@ -932,30 +938,41 @@ public com.google.cloud.aiplatform.v1beta1.EntityType build() { public com.google.cloud.aiplatform.v1beta1.EntityType buildPartial() { com.google.cloud.aiplatform.v1beta1.EntityType result = new com.google.cloud.aiplatform.v1beta1.EntityType(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.EntityType result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - result.description_ = description_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.etag_ = etag_; - if (monitoringConfigBuilder_ == null) { - result.monitoringConfig_ = monitoringConfig_; - } else { - result.monitoringConfig_ = monitoringConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.monitoringConfig_ = + monitoringConfigBuilder_ == null ? monitoringConfig_ : monitoringConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.offlineStorageTtlDays_ = offlineStorageTtlDays_; } - result.offlineStorageTtlDays_ = offlineStorageTtlDays_; - onBuilt(); - return result; } @java.lang.Override @@ -1005,10 +1022,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EntityType other) { if (other == com.google.cloud.aiplatform.v1beta1.EntityType.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasCreateTime()) { @@ -1018,8 +1037,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EntityType other) { mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasMonitoringConfig()) { @@ -1057,25 +1078,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 50: @@ -1087,25 +1108,26 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; break; } // case 50 case 58: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 58 case 66: { input.readMessage( getMonitoringConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 66 case 80: { offlineStorageTtlDays_ = input.readInt32(); - + bitField0_ |= 0x00000080; break; } // case 80 default: @@ -1206,8 +1228,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1229,8 +1251,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1257,8 +1279,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1324,8 +1346,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1341,8 +1363,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1363,8 +1385,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1389,7 +1411,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1430,11 +1452,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1451,11 +1473,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1471,17 +1493,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1496,14 +1519,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1518,7 +1540,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1590,7 +1612,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1631,11 +1653,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1652,11 +1674,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1672,17 +1694,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1697,14 +1720,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1719,7 +1741,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -1782,14 +1804,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000010; + onChanged(); return labels_; } @@ -1868,8 +1890,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1907,6 +1931,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -1938,6 +1963,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000010; return internalGetMutableLabels().getMutableMap(); } /** @@ -1965,8 +1991,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; return this; } /** @@ -1989,6 +2015,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; return this; } @@ -2056,8 +2083,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2074,8 +2101,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2097,8 +2124,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2130,7 +2157,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { * @return Whether the monitoringConfig field is set. */ public boolean hasMonitoringConfig() { - return monitoringConfigBuilder_ != null || monitoringConfig_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2186,11 +2213,11 @@ public Builder setMonitoringConfig( throw new NullPointerException(); } monitoringConfig_ = value; - onChanged(); } else { monitoringConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2215,11 +2242,11 @@ public Builder setMonitoringConfig( com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.Builder builderForValue) { if (monitoringConfigBuilder_ == null) { monitoringConfig_ = builderForValue.build(); - onChanged(); } else { monitoringConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2243,20 +2270,20 @@ public Builder setMonitoringConfig( public Builder mergeMonitoringConfig( com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig value) { if (monitoringConfigBuilder_ == null) { - if (monitoringConfig_ != null) { - monitoringConfig_ = - com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.newBuilder( - monitoringConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && monitoringConfig_ != null + && monitoringConfig_ + != com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + .getDefaultInstance()) { + getMonitoringConfigBuilder().mergeFrom(value); } else { monitoringConfig_ = value; } - onChanged(); } else { monitoringConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2278,14 +2305,13 @@ public Builder mergeMonitoringConfig( * */ public Builder clearMonitoringConfig() { - if (monitoringConfigBuilder_ == null) { - monitoringConfig_ = null; - onChanged(); - } else { - monitoringConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + monitoringConfig_ = null; + if (monitoringConfigBuilder_ != null) { + monitoringConfigBuilder_.dispose(); monitoringConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -2308,7 +2334,7 @@ public Builder clearMonitoringConfig() { */ public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.Builder getMonitoringConfigBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getMonitoringConfigFieldBuilder().getBuilder(); } @@ -2414,6 +2440,7 @@ public int getOfflineStorageTtlDays() { public Builder setOfflineStorageTtlDays(int value) { offlineStorageTtlDays_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2433,7 +2460,7 @@ public Builder setOfflineStorageTtlDays(int value) { * @return This builder for chaining. */ public Builder clearOfflineStorageTtlDays() { - + bitField0_ = (bitField0_ & ~0x00000080); offlineStorageTtlDays_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeOrBuilder.java index 2d6c39e7480a..943e27f20fa7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeOrBuilder.java @@ -239,7 +239,6 @@ public interface EntityTypeOrBuilder * * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EnvVar.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EnvVar.java index 279e9a22c084..961a7e3db833 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EnvVar.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EnvVar.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -118,7 +120,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; /** * * @@ -384,10 +388,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - value_ = ""; - return this; } @@ -415,12 +418,23 @@ public com.google.cloud.aiplatform.v1beta1.EnvVar build() { public com.google.cloud.aiplatform.v1beta1.EnvVar buildPartial() { com.google.cloud.aiplatform.v1beta1.EnvVar result = new com.google.cloud.aiplatform.v1beta1.EnvVar(this); - result.name_ = name_; - result.value_ = value_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.EnvVar result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -468,10 +482,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EnvVar other) { if (other == com.google.cloud.aiplatform.v1beta1.EnvVar.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getValue().isEmpty()) { value_ = other.value_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -503,13 +519,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { value_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -529,6 +545,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -590,8 +608,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -607,8 +625,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -629,8 +647,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -714,8 +732,8 @@ public Builder setValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - value_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -737,8 +755,8 @@ public Builder setValue(java.lang.String value) { * @return This builder for chaining. */ public Builder clearValue() { - value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -765,8 +783,8 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - value_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Event.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Event.java index 147abf53d09b..9c5ceb9e1259 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Event.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Event.java @@ -239,7 +239,9 @@ private Type(int value) { } public static final int ARTIFACT_FIELD_NUMBER = 1; - private volatile java.lang.Object artifact_; + + @SuppressWarnings("serial") + private volatile java.lang.Object artifact_ = ""; /** * * @@ -292,7 +294,9 @@ public com.google.protobuf.ByteString getArtifactBytes() { } public static final int EXECUTION_FIELD_NUMBER = 2; - private volatile java.lang.Object execution_; + + @SuppressWarnings("serial") + private volatile java.lang.Object execution_ = ""; /** * * @@ -390,11 +394,11 @@ public com.google.protobuf.Timestamp getEventTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { - return getEventTime(); + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } public static final int TYPE_FIELD_NUMBER = 4; - private int type_; + private int type_ = 0; /** * * @@ -427,9 +431,8 @@ public int getTypeValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Event.Type getType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Event.Type result = - com.google.cloud.aiplatform.v1beta1.Event.Type.valueOf(type_); + com.google.cloud.aiplatform.v1beta1.Event.Type.forNumber(type_); return result == null ? com.google.cloud.aiplatform.v1beta1.Event.Type.UNRECOGNIZED : result; } @@ -446,6 +449,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -527,7 +531,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -830,18 +837,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; artifact_ = ""; - execution_ = ""; - - if (eventTimeBuilder_ == null) { - eventTime_ = null; - } else { - eventTime_ = null; + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); eventTimeBuilder_ = null; } type_ = 0; - internalGetMutableLabels().clear(); return this; } @@ -870,21 +874,33 @@ public com.google.cloud.aiplatform.v1beta1.Event build() { public com.google.cloud.aiplatform.v1beta1.Event buildPartial() { com.google.cloud.aiplatform.v1beta1.Event result = new com.google.cloud.aiplatform.v1beta1.Event(this); - int from_bitField0_ = bitField0_; - result.artifact_ = artifact_; - result.execution_ = execution_; - if (eventTimeBuilder_ == null) { - result.eventTime_ = eventTime_; - } else { - result.eventTime_ = eventTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.type_ = type_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Event result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.artifact_ = artifact_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.execution_ = execution_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -932,10 +948,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Event other) { if (other == com.google.cloud.aiplatform.v1beta1.Event.getDefaultInstance()) return this; if (!other.getArtifact().isEmpty()) { artifact_ = other.artifact_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getExecution().isEmpty()) { execution_ = other.execution_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasEventTime()) { @@ -945,6 +963,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Event other) { setTypeValue(other.getTypeValue()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -974,25 +993,25 @@ public Builder mergeFrom( case 10: { artifact_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { execution_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getEventTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 32: { type_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 case 42: @@ -1004,6 +1023,7 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -1092,8 +1112,8 @@ public Builder setArtifact(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - artifact_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1111,8 +1131,8 @@ public Builder setArtifact(java.lang.String value) { * @return This builder for chaining. */ public Builder clearArtifact() { - artifact_ = getDefaultInstance().getArtifact(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1135,8 +1155,8 @@ public Builder setArtifactBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - artifact_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1208,8 +1228,8 @@ public Builder setExecution(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - execution_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1227,8 +1247,8 @@ public Builder setExecution(java.lang.String value) { * @return This builder for chaining. */ public Builder clearExecution() { - execution_ = getDefaultInstance().getExecution(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1251,8 +1271,8 @@ public Builder setExecutionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - execution_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1276,7 +1296,7 @@ public Builder setExecutionBytes(com.google.protobuf.ByteString value) { * @return Whether the eventTime field is set. */ public boolean hasEventTime() { - return eventTimeBuilder_ != null || eventTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1313,11 +1333,11 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } eventTime_ = value; - onChanged(); } else { eventTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1333,11 +1353,11 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) { public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (eventTimeBuilder_ == null) { eventTime_ = builderForValue.build(); - onChanged(); } else { eventTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1352,17 +1372,18 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { if (eventTimeBuilder_ == null) { - if (eventTime_ != null) { - eventTime_ = - com.google.protobuf.Timestamp.newBuilder(eventTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && eventTime_ != null + && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEventTimeBuilder().mergeFrom(value); } else { eventTime_ = value; } - onChanged(); } else { eventTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1376,14 +1397,13 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEventTime() { - if (eventTimeBuilder_ == null) { - eventTime_ = null; - onChanged(); - } else { - eventTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); eventTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1397,7 +1417,7 @@ public Builder clearEventTime() { * */ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getEventTimeFieldBuilder().getBuilder(); } @@ -1478,8 +1498,8 @@ public int getTypeValue() { * @return This builder for chaining. */ public Builder setTypeValue(int value) { - type_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1498,9 +1518,8 @@ public Builder setTypeValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Event.Type getType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Event.Type result = - com.google.cloud.aiplatform.v1beta1.Event.Type.valueOf(type_); + com.google.cloud.aiplatform.v1beta1.Event.Type.forNumber(type_); return result == null ? com.google.cloud.aiplatform.v1beta1.Event.Type.UNRECOGNIZED : result; } /** @@ -1521,7 +1540,7 @@ public Builder setType(com.google.cloud.aiplatform.v1beta1.Event.Type value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; type_ = value.getNumber(); onChanged(); return this; @@ -1540,7 +1559,7 @@ public Builder setType(com.google.cloud.aiplatform.v1beta1.Event.Type value) { * @return This builder for chaining. */ public Builder clearType() { - + bitField0_ = (bitField0_ & ~0x00000008); type_ = 0; onChanged(); return this; @@ -1557,14 +1576,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000010; + onChanged(); return labels_; } @@ -1640,8 +1659,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 5; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1678,6 +1699,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -1708,6 +1730,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000010; return internalGetMutableLabels().getMutableMap(); } /** @@ -1734,8 +1757,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; return this; } /** @@ -1757,6 +1780,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventOrBuilder.java index 7e81f2105e37..ed183835c5a4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EventOrBuilder.java @@ -222,7 +222,6 @@ public interface EventOrBuilder * * map<string, string> labels = 5; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Examples.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Examples.java index 9d9ea0019fb7..f707fa009397 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Examples.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Examples.java @@ -269,11 +269,13 @@ public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsSource() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { - return getGcsSource(); + return gcsSource_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance() + : gcsSource_; } public static final int NEIGHBOR_COUNT_FIELD_NUMBER = 3; - private int neighborCount_; + private int neighborCount_ = 0; /** * * @@ -542,20 +544,19 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (nearestNeighborSearchConfigBuilder_ != null) { nearestNeighborSearchConfigBuilder_.clear(); } if (presetsBuilder_ != null) { presetsBuilder_.clear(); } - if (gcsSourceBuilder_ == null) { - gcsSource_ = null; - } else { - gcsSource_ = null; + gcsSource_ = null; + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.dispose(); gcsSourceBuilder_ = null; } neighborCount_ = 0; - configCase_ = 0; config_ = null; return this; @@ -585,29 +586,33 @@ public com.google.cloud.aiplatform.v1beta1.Examples build() { public com.google.cloud.aiplatform.v1beta1.Examples buildPartial() { com.google.cloud.aiplatform.v1beta1.Examples result = new com.google.cloud.aiplatform.v1beta1.Examples(this); - if (configCase_ == 2) { - if (nearestNeighborSearchConfigBuilder_ == null) { - result.config_ = config_; - } else { - result.config_ = nearestNeighborSearchConfigBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (configCase_ == 4) { - if (presetsBuilder_ == null) { - result.config_ = config_; - } else { - result.config_ = presetsBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Examples result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.gcsSource_ = gcsSourceBuilder_ == null ? gcsSource_ : gcsSourceBuilder_.build(); } - if (gcsSourceBuilder_ == null) { - result.gcsSource_ = gcsSource_; - } else { - result.gcsSource_ = gcsSourceBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.neighborCount_ = neighborCount_; } - result.neighborCount_ = neighborCount_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.Examples result) { result.configCase_ = configCase_; - onBuilt(); - return result; + result.config_ = this.config_; + if (configCase_ == 2 && nearestNeighborSearchConfigBuilder_ != null) { + result.config_ = nearestNeighborSearchConfigBuilder_.build(); + } + if (configCase_ == 4 && presetsBuilder_ != null) { + result.config_ = presetsBuilder_.build(); + } } @java.lang.Override @@ -706,7 +711,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 10 case 18: @@ -719,7 +724,7 @@ public Builder mergeFrom( case 24: { neighborCount_ = input.readInt32(); - + bitField0_ |= 0x00000008; break; } // case 24 case 34: @@ -759,6 +764,8 @@ public Builder clearConfig() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Value, com.google.protobuf.Value.Builder, @@ -979,7 +986,6 @@ public com.google.protobuf.ValueOrBuilder getNearestNeighborSearchConfigOrBuilde } configCase_ = 2; onChanged(); - ; return nearestNeighborSearchConfigBuilder_; } @@ -1197,7 +1203,6 @@ public com.google.cloud.aiplatform.v1beta1.PresetsOrBuilder getPresetsOrBuilder( } configCase_ = 4; onChanged(); - ; return presetsBuilder_; } @@ -1219,7 +1224,7 @@ public com.google.cloud.aiplatform.v1beta1.PresetsOrBuilder getPresetsOrBuilder( * @return Whether the gcsSource field is set. */ public boolean hasGcsSource() { - return gcsSourceBuilder_ != null || gcsSource_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1256,11 +1261,11 @@ public Builder setGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource value) throw new NullPointerException(); } gcsSource_ = value; - onChanged(); } else { gcsSourceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1276,11 +1281,11 @@ public Builder setGcsSource( com.google.cloud.aiplatform.v1beta1.GcsSource.Builder builderForValue) { if (gcsSourceBuilder_ == null) { gcsSource_ = builderForValue.build(); - onChanged(); } else { gcsSourceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1294,19 +1299,18 @@ public Builder setGcsSource( */ public Builder mergeGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource value) { if (gcsSourceBuilder_ == null) { - if (gcsSource_ != null) { - gcsSource_ = - com.google.cloud.aiplatform.v1beta1.GcsSource.newBuilder(gcsSource_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && gcsSource_ != null + && gcsSource_ != com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance()) { + getGcsSourceBuilder().mergeFrom(value); } else { gcsSource_ = value; } - onChanged(); } else { gcsSourceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1319,14 +1323,13 @@ public Builder mergeGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource valu * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; */ public Builder clearGcsSource() { - if (gcsSourceBuilder_ == null) { - gcsSource_ = null; - onChanged(); - } else { - gcsSource_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + gcsSource_ = null; + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.dispose(); gcsSourceBuilder_ = null; } - + onChanged(); return this; } /** @@ -1339,7 +1342,7 @@ public Builder clearGcsSource() { * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; */ public com.google.cloud.aiplatform.v1beta1.GcsSource.Builder getGcsSourceBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getGcsSourceFieldBuilder().getBuilder(); } @@ -1418,6 +1421,7 @@ public int getNeighborCount() { public Builder setNeighborCount(int value) { neighborCount_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1433,7 +1437,7 @@ public Builder setNeighborCount(int value) { * @return This builder for chaining. */ public Builder clearNeighborCount() { - + bitField0_ = (bitField0_ & ~0x00000008); neighborCount_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesOverride.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesOverride.java index d3f894293d65..390b75b75df0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesOverride.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesOverride.java @@ -228,7 +228,7 @@ private DataFormat(int value) { } public static final int NEIGHBOR_COUNT_FIELD_NUMBER = 1; - private int neighborCount_; + private int neighborCount_ = 0; /** * * @@ -246,7 +246,7 @@ public int getNeighborCount() { } public static final int CROWDING_COUNT_FIELD_NUMBER = 2; - private int crowdingCount_; + private int crowdingCount_ = 0; /** * * @@ -264,6 +264,8 @@ public int getCrowdingCount() { } public static final int RESTRICTIONS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List restrictions_; /** @@ -343,7 +345,7 @@ public com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace getRest } public static final int RETURN_EMBEDDINGS_FIELD_NUMBER = 4; - private boolean returnEmbeddings_; + private boolean returnEmbeddings_ = false; /** * * @@ -361,7 +363,7 @@ public boolean getReturnEmbeddings() { } public static final int DATA_FORMAT_FIELD_NUMBER = 5; - private int dataFormat_; + private int dataFormat_ = 0; /** * * @@ -390,9 +392,8 @@ public int getDataFormatValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat getDataFormat() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat result = - com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat.valueOf(dataFormat_); + com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat.forNumber(dataFormat_); return result == null ? com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat.UNRECOGNIZED : result; @@ -637,21 +638,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; neighborCount_ = 0; - crowdingCount_ = 0; - if (restrictionsBuilder_ == null) { restrictions_ = java.util.Collections.emptyList(); } else { restrictions_ = null; restrictionsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); returnEmbeddings_ = false; - dataFormat_ = 0; - return this; } @@ -679,22 +677,41 @@ public com.google.cloud.aiplatform.v1beta1.ExamplesOverride build() { public com.google.cloud.aiplatform.v1beta1.ExamplesOverride buildPartial() { com.google.cloud.aiplatform.v1beta1.ExamplesOverride result = new com.google.cloud.aiplatform.v1beta1.ExamplesOverride(this); - int from_bitField0_ = bitField0_; - result.neighborCount_ = neighborCount_; - result.crowdingCount_ = crowdingCount_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ExamplesOverride result) { if (restrictionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { restrictions_ = java.util.Collections.unmodifiableList(restrictions_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.restrictions_ = restrictions_; } else { result.restrictions_ = restrictionsBuilder_.build(); } - result.returnEmbeddings_ = returnEmbeddings_; - result.dataFormat_ = dataFormat_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ExamplesOverride result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.neighborCount_ = neighborCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.crowdingCount_ = crowdingCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.returnEmbeddings_ = returnEmbeddings_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dataFormat_ = dataFormat_; + } } @java.lang.Override @@ -753,7 +770,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ExamplesOverride ot if (!other.restrictions_.isEmpty()) { if (restrictions_.isEmpty()) { restrictions_ = other.restrictions_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRestrictionsIsMutable(); restrictions_.addAll(other.restrictions_); @@ -766,7 +783,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ExamplesOverride ot restrictionsBuilder_.dispose(); restrictionsBuilder_ = null; restrictions_ = other.restrictions_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); restrictionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRestrictionsFieldBuilder() @@ -811,13 +828,13 @@ public Builder mergeFrom( case 8: { neighborCount_ = input.readInt32(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { crowdingCount_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: @@ -837,13 +854,13 @@ public Builder mergeFrom( case 32: { returnEmbeddings_ = input.readBool(); - + bitField0_ |= 0x00000008; break; } // case 32 case 40: { dataFormat_ = input.readEnum(); - + bitField0_ |= 0x00000010; break; } // case 40 default: @@ -896,6 +913,7 @@ public int getNeighborCount() { public Builder setNeighborCount(int value) { neighborCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -911,7 +929,7 @@ public Builder setNeighborCount(int value) { * @return This builder for chaining. */ public Builder clearNeighborCount() { - + bitField0_ = (bitField0_ & ~0x00000001); neighborCount_ = 0; onChanged(); return this; @@ -948,6 +966,7 @@ public int getCrowdingCount() { public Builder setCrowdingCount(int value) { crowdingCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -963,7 +982,7 @@ public Builder setCrowdingCount(int value) { * @return This builder for chaining. */ public Builder clearCrowdingCount() { - + bitField0_ = (bitField0_ & ~0x00000002); crowdingCount_ = 0; onChanged(); return this; @@ -973,11 +992,11 @@ public Builder clearCrowdingCount() { restrictions_ = java.util.Collections.emptyList(); private void ensureRestrictionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { restrictions_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace>(restrictions_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -1224,7 +1243,7 @@ public Builder addAllRestrictions( public Builder clearRestrictions() { if (restrictionsBuilder_ == null) { restrictions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { restrictionsBuilder_.clear(); @@ -1370,7 +1389,7 @@ public Builder removeRestrictions(int index) { com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace, com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.Builder, com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespaceOrBuilder>( - restrictions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + restrictions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); restrictions_ = null; } return restrictionsBuilder_; @@ -1407,6 +1426,7 @@ public boolean getReturnEmbeddings() { public Builder setReturnEmbeddings(boolean value) { returnEmbeddings_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1422,7 +1442,7 @@ public Builder setReturnEmbeddings(boolean value) { * @return This builder for chaining. */ public Builder clearReturnEmbeddings() { - + bitField0_ = (bitField0_ & ~0x00000008); returnEmbeddings_ = false; onChanged(); return this; @@ -1457,8 +1477,8 @@ public int getDataFormatValue() { * @return This builder for chaining. */ public Builder setDataFormatValue(int value) { - dataFormat_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1475,9 +1495,8 @@ public Builder setDataFormatValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat getDataFormat() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat result = - com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat.valueOf(dataFormat_); + com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat.forNumber(dataFormat_); return result == null ? com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat.UNRECOGNIZED : result; @@ -1499,7 +1518,7 @@ public Builder setDataFormat( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000010; dataFormat_ = value.getNumber(); onChanged(); return this; @@ -1516,7 +1535,7 @@ public Builder setDataFormat( * @return This builder for chaining. */ public Builder clearDataFormat() { - + bitField0_ = (bitField0_ & ~0x00000010); dataFormat_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesRestrictionsNamespace.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesRestrictionsNamespace.java index 95758f1d3ad8..d46bb58e8b48 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesRestrictionsNamespace.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesRestrictionsNamespace.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAMESPACE_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object namespaceName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object namespaceName_ = ""; /** * * @@ -119,6 +121,8 @@ public com.google.protobuf.ByteString getNamespaceNameBytes() { } public static final int ALLOW_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList allow_; /** * @@ -180,6 +184,8 @@ public com.google.protobuf.ByteString getAllowBytes(int index) { } public static final int DENY_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList deny_; /** * @@ -472,12 +478,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; namespaceName_ = ""; - allow_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - deny_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); + deny_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -506,20 +512,34 @@ public com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace build() public com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace buildPartial() { com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace result = new com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace(this); - int from_bitField0_ = bitField0_; - result.namespaceName_ = namespaceName_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace result) { + if (((bitField0_ & 0x00000002) != 0)) { allow_ = allow_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.allow_ = allow_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { deny_ = deny_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.deny_ = deny_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.namespaceName_ = namespaceName_; + } } @java.lang.Override @@ -572,12 +592,13 @@ public Builder mergeFrom( return this; if (!other.getNamespaceName().isEmpty()) { namespaceName_ = other.namespaceName_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.allow_.isEmpty()) { if (allow_.isEmpty()) { allow_ = other.allow_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAllowIsMutable(); allow_.addAll(other.allow_); @@ -587,7 +608,7 @@ public Builder mergeFrom( if (!other.deny_.isEmpty()) { if (deny_.isEmpty()) { deny_ = other.deny_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDenyIsMutable(); deny_.addAll(other.deny_); @@ -623,7 +644,7 @@ public Builder mergeFrom( case 10: { namespaceName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -720,8 +741,8 @@ public Builder setNamespaceName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - namespaceName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -737,8 +758,8 @@ public Builder setNamespaceName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNamespaceName() { - namespaceName_ = getDefaultInstance().getNamespaceName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -759,8 +780,8 @@ public Builder setNamespaceNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - namespaceName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -769,9 +790,9 @@ public Builder setNamespaceNameBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { allow_ = new com.google.protobuf.LazyStringArrayList(allow_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -906,7 +927,7 @@ public Builder addAllAllow(java.lang.Iterable values) { */ public Builder clearAllow() { allow_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -937,9 +958,9 @@ public Builder addAllowBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDenyIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { deny_ = new com.google.protobuf.LazyStringArrayList(deny_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } /** @@ -1074,7 +1095,7 @@ public Builder addAllDeny(java.lang.Iterable values) { */ public Builder clearDeny() { deny_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Execution.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Execution.java index 53cf14d5819b..c124890fa9e9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Execution.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Execution.java @@ -330,7 +330,9 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -379,7 +381,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -430,7 +434,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int STATE_FIELD_NUMBER = 6; - private int state_; + private int state_ = 0; /** * * @@ -465,16 +469,17 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Execution.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Execution.State result = - com.google.cloud.aiplatform.v1beta1.Execution.State.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.Execution.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.Execution.State.UNRECOGNIZED : result; } public static final int ETAG_FIELD_NUMBER = 9; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -537,6 +542,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -609,7 +615,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 10; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -688,7 +697,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 12; @@ -737,11 +746,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int SCHEMA_TITLE_FIELD_NUMBER = 13; - private volatile java.lang.Object schemaTitle_; + + @SuppressWarnings("serial") + private volatile java.lang.Object schemaTitle_ = ""; /** * * @@ -796,7 +807,9 @@ public com.google.protobuf.ByteString getSchemaTitleBytes() { } public static final int SCHEMA_VERSION_FIELD_NUMBER = 14; - private volatile java.lang.Object schemaVersion_; + + @SuppressWarnings("serial") + private volatile java.lang.Object schemaVersion_ = ""; /** * * @@ -899,11 +912,13 @@ public com.google.protobuf.Struct getMetadata() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } public static final int DESCRIPTION_FIELD_NUMBER = 16; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -1283,39 +1298,30 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - state_ = 0; - etag_ = ""; - internalGetMutableLabels().clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } schemaTitle_ = ""; - schemaVersion_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } description_ = ""; - return this; } @@ -1343,33 +1349,49 @@ public com.google.cloud.aiplatform.v1beta1.Execution build() { public com.google.cloud.aiplatform.v1beta1.Execution buildPartial() { com.google.cloud.aiplatform.v1beta1.Execution result = new com.google.cloud.aiplatform.v1beta1.Execution(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Execution result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.state_ = state_; - result.etag_ = etag_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - result.schemaTitle_ = schemaTitle_; - result.schemaVersion_ = schemaVersion_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.schemaTitle_ = schemaTitle_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.schemaVersion_ = schemaVersion_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.description_ = description_; } - result.description_ = description_; - onBuilt(); - return result; } @java.lang.Override @@ -1419,10 +1441,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Execution other) { if (other == com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.state_ != 0) { @@ -1430,9 +1454,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Execution other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000008; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1441,10 +1467,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Execution other) { } if (!other.getSchemaTitle().isEmpty()) { schemaTitle_ = other.schemaTitle_; + bitField0_ |= 0x00000080; onChanged(); } if (!other.getSchemaVersion().isEmpty()) { schemaVersion_ = other.schemaVersion_; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasMetadata()) { @@ -1452,6 +1480,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Execution other) { } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000400; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1483,25 +1512,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 48: { state_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 48 case 74: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 74 case 82: @@ -1513,42 +1542,43 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; break; } // case 82 case 90: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 90 case 98: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 98 case 106: { schemaTitle_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 106 case 114: { schemaVersion_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 114 case 122: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 122 case 130: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000400; break; } // case 130 default: @@ -1631,8 +1661,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1648,8 +1678,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1670,8 +1700,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1740,8 +1770,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1758,8 +1788,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1781,8 +1811,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1822,8 +1852,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1843,9 +1873,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Execution.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Execution.State result = - com.google.cloud.aiplatform.v1beta1.Execution.State.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.Execution.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.Execution.State.UNRECOGNIZED : result; @@ -1869,7 +1898,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.Execution.State valu if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; state_ = value.getNumber(); onChanged(); return this; @@ -1889,7 +1918,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.Execution.State valu * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000004); state_ = 0; onChanged(); return this; @@ -1959,8 +1988,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1977,8 +2006,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2000,8 +2029,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2017,14 +2046,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000010; + onChanged(); return labels_; } @@ -2091,8 +2120,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 10; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2126,6 +2157,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -2153,6 +2185,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000010; return internalGetMutableLabels().getMutableMap(); } /** @@ -2176,8 +2209,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; return this; } /** @@ -2196,6 +2229,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; return this; } @@ -2219,7 +2253,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2260,11 +2294,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2281,11 +2315,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2301,17 +2335,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2326,14 +2361,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2348,7 +2382,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2420,7 +2454,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2461,11 +2495,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2482,11 +2516,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2502,17 +2536,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2527,14 +2562,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2549,7 +2583,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2671,8 +2705,8 @@ public Builder setSchemaTitle(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - schemaTitle_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2691,8 +2725,8 @@ public Builder setSchemaTitle(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSchemaTitle() { - schemaTitle_ = getDefaultInstance().getSchemaTitle(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -2716,8 +2750,8 @@ public Builder setSchemaTitleBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - schemaTitle_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2792,8 +2826,8 @@ public Builder setSchemaVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - schemaVersion_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2812,8 +2846,8 @@ public Builder setSchemaVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSchemaVersion() { - schemaVersion_ = getDefaultInstance().getSchemaVersion(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2837,8 +2871,8 @@ public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - schemaVersion_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2863,7 +2897,7 @@ public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -2902,11 +2936,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) { throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -2923,11 +2957,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) { public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -2943,17 +2977,18 @@ public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Struct value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -2968,14 +3003,13 @@ public Builder mergeMetadata(com.google.protobuf.Struct value) { * .google.protobuf.Struct metadata = 15; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -2990,7 +3024,7 @@ public Builder clearMetadata() { * .google.protobuf.Struct metadata = 15; */ public com.google.protobuf.Struct.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -3101,8 +3135,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3118,8 +3152,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -3140,8 +3174,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionOrBuilder.java index 9ea0ca20b54a..3f59819ea496 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionOrBuilder.java @@ -195,7 +195,6 @@ public interface ExecutionOrBuilder * * map<string, string> labels = 10; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplainRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplainRequest.java index 297e7e31d58a..efe364bc79e2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplainRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplainRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object endpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; /** * * @@ -128,6 +130,8 @@ public com.google.protobuf.ByteString getEndpointBytes() { } public static final int INSTANCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List instances_; /** * @@ -300,7 +304,7 @@ public com.google.protobuf.Value getParameters() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getParametersOrBuilder() { - return getParameters(); + return parameters_ == null ? com.google.protobuf.Value.getDefaultInstance() : parameters_; } public static final int EXPLANATION_SPEC_OVERRIDE_FIELD_NUMBER = 5; @@ -373,11 +377,15 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride getExplanatio @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ExplanationSpecOverrideOrBuilder getExplanationSpecOverrideOrBuilder() { - return getExplanationSpecOverride(); + return explanationSpecOverride_ == null + ? com.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.getDefaultInstance() + : explanationSpecOverride_; } public static final int DEPLOYED_MODEL_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object deployedModelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedModelId_ = ""; /** * * @@ -676,29 +684,26 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; endpoint_ = ""; - if (instancesBuilder_ == null) { instances_ = java.util.Collections.emptyList(); } else { instances_ = null; instancesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (parametersBuilder_ == null) { - parameters_ = null; - } else { - parameters_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } - if (explanationSpecOverrideBuilder_ == null) { - explanationSpecOverride_ = null; - } else { - explanationSpecOverride_ = null; + explanationSpecOverride_ = null; + if (explanationSpecOverrideBuilder_ != null) { + explanationSpecOverrideBuilder_.dispose(); explanationSpecOverrideBuilder_ = null; } deployedModelId_ = ""; - return this; } @@ -726,30 +731,44 @@ public com.google.cloud.aiplatform.v1beta1.ExplainRequest build() { public com.google.cloud.aiplatform.v1beta1.ExplainRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ExplainRequest result = new com.google.cloud.aiplatform.v1beta1.ExplainRequest(this); - int from_bitField0_ = bitField0_; - result.endpoint_ = endpoint_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ExplainRequest result) { if (instancesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { instances_ = java.util.Collections.unmodifiableList(instances_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.instances_ = instances_; } else { result.instances_ = instancesBuilder_.build(); } - if (parametersBuilder_ == null) { - result.parameters_ = parameters_; - } else { - result.parameters_ = parametersBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ExplainRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpoint_; } - if (explanationSpecOverrideBuilder_ == null) { - result.explanationSpecOverride_ = explanationSpecOverride_; - } else { - result.explanationSpecOverride_ = explanationSpecOverrideBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.explanationSpecOverride_ = + explanationSpecOverrideBuilder_ == null + ? explanationSpecOverride_ + : explanationSpecOverrideBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.deployedModelId_ = deployedModelId_; } - result.deployedModelId_ = deployedModelId_; - onBuilt(); - return result; } @java.lang.Override @@ -800,13 +819,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ExplainRequest othe return this; if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { instances_ = other.instances_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureInstancesIsMutable(); instances_.addAll(other.instances_); @@ -819,7 +839,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ExplainRequest othe instancesBuilder_.dispose(); instancesBuilder_ = null; instances_ = other.instances_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); instancesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInstancesFieldBuilder() @@ -837,6 +857,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ExplainRequest othe } if (!other.getDeployedModelId().isEmpty()) { deployedModelId_ = other.deployedModelId_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -868,7 +889,7 @@ public Builder mergeFrom( case 10: { endpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -886,20 +907,20 @@ public Builder mergeFrom( case 26: { deployedModelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 26 case 34: { input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 34 case 42: { input.readMessage( getExplanationSpecOverrideFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 42 default: @@ -994,8 +1015,8 @@ public Builder setEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1015,8 +1036,8 @@ public Builder setEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEndpoint() { - endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1041,8 +1062,8 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1051,9 +1072,9 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureInstancesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { instances_ = new java.util.ArrayList(instances_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1386,7 +1407,7 @@ public Builder addAllInstances(java.lang.Iterable getInstancesBuilderList com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( - instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + instances_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); instances_ = null; } return instancesBuilder_; @@ -1611,7 +1632,7 @@ public java.util.List getInstancesBuilderList * @return Whether the parameters field is set. */ public boolean hasParameters() { - return parametersBuilder_ != null || parameters_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1654,11 +1675,11 @@ public Builder setParameters(com.google.protobuf.Value value) { throw new NullPointerException(); } parameters_ = value; - onChanged(); } else { parametersBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1677,11 +1698,11 @@ public Builder setParameters(com.google.protobuf.Value value) { public Builder setParameters(com.google.protobuf.Value.Builder builderForValue) { if (parametersBuilder_ == null) { parameters_ = builderForValue.build(); - onChanged(); } else { parametersBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1699,17 +1720,18 @@ public Builder setParameters(com.google.protobuf.Value.Builder builderForValue) */ public Builder mergeParameters(com.google.protobuf.Value value) { if (parametersBuilder_ == null) { - if (parameters_ != null) { - parameters_ = - com.google.protobuf.Value.newBuilder(parameters_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && parameters_ != null + && parameters_ != com.google.protobuf.Value.getDefaultInstance()) { + getParametersBuilder().mergeFrom(value); } else { parameters_ = value; } - onChanged(); } else { parametersBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1726,14 +1748,13 @@ public Builder mergeParameters(com.google.protobuf.Value value) { * .google.protobuf.Value parameters = 4; */ public Builder clearParameters() { - if (parametersBuilder_ == null) { - parameters_ = null; - onChanged(); - } else { - parameters_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } - + onChanged(); return this; } /** @@ -1750,7 +1771,7 @@ public Builder clearParameters() { * .google.protobuf.Value parameters = 4; */ public com.google.protobuf.Value.Builder getParametersBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getParametersFieldBuilder().getBuilder(); } @@ -1830,7 +1851,7 @@ public com.google.protobuf.ValueOrBuilder getParametersOrBuilder() { * @return Whether the explanationSpecOverride field is set. */ public boolean hasExplanationSpecOverride() { - return explanationSpecOverrideBuilder_ != null || explanationSpecOverride_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1885,11 +1906,11 @@ public Builder setExplanationSpecOverride( throw new NullPointerException(); } explanationSpecOverride_ = value; - onChanged(); } else { explanationSpecOverrideBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1913,11 +1934,11 @@ public Builder setExplanationSpecOverride( com.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.Builder builderForValue) { if (explanationSpecOverrideBuilder_ == null) { explanationSpecOverride_ = builderForValue.build(); - onChanged(); } else { explanationSpecOverrideBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1940,20 +1961,20 @@ public Builder setExplanationSpecOverride( public Builder mergeExplanationSpecOverride( com.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride value) { if (explanationSpecOverrideBuilder_ == null) { - if (explanationSpecOverride_ != null) { - explanationSpecOverride_ = - com.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.newBuilder( - explanationSpecOverride_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && explanationSpecOverride_ != null + && explanationSpecOverride_ + != com.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride + .getDefaultInstance()) { + getExplanationSpecOverrideBuilder().mergeFrom(value); } else { explanationSpecOverride_ = value; } - onChanged(); } else { explanationSpecOverrideBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1974,14 +1995,13 @@ public Builder mergeExplanationSpecOverride( * */ public Builder clearExplanationSpecOverride() { - if (explanationSpecOverrideBuilder_ == null) { - explanationSpecOverride_ = null; - onChanged(); - } else { - explanationSpecOverride_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + explanationSpecOverride_ = null; + if (explanationSpecOverrideBuilder_ != null) { + explanationSpecOverrideBuilder_.dispose(); explanationSpecOverrideBuilder_ = null; } - + onChanged(); return this; } /** @@ -2003,7 +2023,7 @@ public Builder clearExplanationSpecOverride() { */ public com.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.Builder getExplanationSpecOverrideBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getExplanationSpecOverrideFieldBuilder().getBuilder(); } @@ -2135,8 +2155,8 @@ public Builder setDeployedModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedModelId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2154,8 +2174,8 @@ public Builder setDeployedModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedModelId() { - deployedModelId_ = getDefaultInstance().getDeployedModelId(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2178,8 +2198,8 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedModelId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplainResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplainResponse.java index ac314a2ace75..c05378ec02a3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplainResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplainResponse.java @@ -71,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int EXPLANATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List explanations_; /** * @@ -161,7 +163,9 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationOrBuilder getExplanationsO } public static final int DEPLOYED_MODEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deployedModelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedModelId_ = ""; /** * * @@ -210,6 +214,8 @@ public com.google.protobuf.ByteString getDeployedModelIdBytes() { } public static final int PREDICTIONS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List predictions_; /** * @@ -508,6 +514,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (explanationsBuilder_ == null) { explanations_ = java.util.Collections.emptyList(); } else { @@ -516,14 +523,13 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); deployedModelId_ = ""; - if (predictionsBuilder_ == null) { predictions_ = java.util.Collections.emptyList(); } else { predictions_ = null; predictionsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -551,7 +557,16 @@ public com.google.cloud.aiplatform.v1beta1.ExplainResponse build() { public com.google.cloud.aiplatform.v1beta1.ExplainResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ExplainResponse result = new com.google.cloud.aiplatform.v1beta1.ExplainResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ExplainResponse result) { if (explanationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { explanations_ = java.util.Collections.unmodifiableList(explanations_); @@ -561,18 +576,22 @@ public com.google.cloud.aiplatform.v1beta1.ExplainResponse buildPartial() { } else { result.explanations_ = explanationsBuilder_.build(); } - result.deployedModelId_ = deployedModelId_; if (predictionsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { predictions_ = java.util.Collections.unmodifiableList(predictions_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.predictions_ = predictions_; } else { result.predictions_ = predictionsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ExplainResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedModelId_ = deployedModelId_; + } } @java.lang.Override @@ -650,13 +669,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ExplainResponse oth } if (!other.getDeployedModelId().isEmpty()) { deployedModelId_ = other.deployedModelId_; + bitField0_ |= 0x00000002; onChanged(); } if (predictionsBuilder_ == null) { if (!other.predictions_.isEmpty()) { if (predictions_.isEmpty()) { predictions_ = other.predictions_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePredictionsIsMutable(); predictions_.addAll(other.predictions_); @@ -669,7 +689,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ExplainResponse oth predictionsBuilder_.dispose(); predictionsBuilder_ = null; predictions_ = other.predictions_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); predictionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPredictionsFieldBuilder() @@ -722,7 +742,7 @@ public Builder mergeFrom( case 18: { deployedModelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -1245,8 +1265,8 @@ public Builder setDeployedModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1262,8 +1282,8 @@ public Builder setDeployedModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedModelId() { - deployedModelId_ = getDefaultInstance().getDeployedModelId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1284,8 +1304,8 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1294,9 +1314,9 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensurePredictionsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { predictions_ = new java.util.ArrayList(predictions_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } @@ -1531,7 +1551,7 @@ public Builder addAllPredictions( public Builder clearPredictions() { if (predictionsBuilder_ == null) { predictions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { predictionsBuilder_.clear(); @@ -1666,7 +1686,7 @@ public java.util.List getPredictionsBuilderLi com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( - predictions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + predictions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); predictions_ = null; } return predictionsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Explanation.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Explanation.java index 147c43b97f83..c842667ee06c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Explanation.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Explanation.java @@ -72,6 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ATTRIBUTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List attributions_; /** * @@ -232,6 +234,8 @@ public com.google.cloud.aiplatform.v1beta1.AttributionOrBuilder getAttributionsO } public static final int NEIGHBORS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List neighbors_; /** * @@ -533,6 +537,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (attributionsBuilder_ == null) { attributions_ = java.util.Collections.emptyList(); } else { @@ -574,7 +579,16 @@ public com.google.cloud.aiplatform.v1beta1.Explanation build() { public com.google.cloud.aiplatform.v1beta1.Explanation buildPartial() { com.google.cloud.aiplatform.v1beta1.Explanation result = new com.google.cloud.aiplatform.v1beta1.Explanation(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.Explanation result) { if (attributionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { attributions_ = java.util.Collections.unmodifiableList(attributions_); @@ -593,8 +607,10 @@ public com.google.cloud.aiplatform.v1beta1.Explanation buildPartial() { } else { result.neighbors_ = neighborsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Explanation result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadata.java index 77461f5dfc73..f327e03be025 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadata.java @@ -1163,7 +1163,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MIN_VALUE_FIELD_NUMBER = 1; - private float minValue_; + private float minValue_ = 0F; /** * * @@ -1181,7 +1181,7 @@ public float getMinValue() { } public static final int MAX_VALUE_FIELD_NUMBER = 2; - private float maxValue_; + private float maxValue_ = 0F; /** * * @@ -1199,7 +1199,7 @@ public float getMaxValue() { } public static final int ORIGINAL_MEAN_FIELD_NUMBER = 3; - private float originalMean_; + private float originalMean_ = 0F; /** * * @@ -1219,7 +1219,7 @@ public float getOriginalMean() { } public static final int ORIGINAL_STDDEV_FIELD_NUMBER = 4; - private float originalStddev_; + private float originalStddev_ = 0F; /** * * @@ -1508,14 +1508,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; minValue_ = 0F; - maxValue_ = 0F; - originalMean_ = 0F; - originalStddev_ = 0F; - return this; } @@ -1553,14 +1550,31 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata .FeatureValueDomain(this); - result.minValue_ = minValue_; - result.maxValue_ = maxValue_; - result.originalMean_ = originalMean_; - result.originalStddev_ = originalStddev_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.minValue_ = minValue_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxValue_ = maxValue_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.originalMean_ = originalMean_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.originalStddev_ = originalStddev_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1659,25 +1673,25 @@ public Builder mergeFrom( case 13: { minValue_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 case 21: { maxValue_ = input.readFloat(); - + bitField0_ |= 0x00000002; break; } // case 21 case 29: { originalMean_ = input.readFloat(); - + bitField0_ |= 0x00000004; break; } // case 29 case 37: { originalStddev_ = input.readFloat(); - + bitField0_ |= 0x00000008; break; } // case 37 default: @@ -1697,6 +1711,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float minValue_; /** * @@ -1728,6 +1744,7 @@ public float getMinValue() { public Builder setMinValue(float value) { minValue_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1743,7 +1760,7 @@ public Builder setMinValue(float value) { * @return This builder for chaining. */ public Builder clearMinValue() { - + bitField0_ = (bitField0_ & ~0x00000001); minValue_ = 0F; onChanged(); return this; @@ -1780,6 +1797,7 @@ public float getMaxValue() { public Builder setMaxValue(float value) { maxValue_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1795,7 +1813,7 @@ public Builder setMaxValue(float value) { * @return This builder for chaining. */ public Builder clearMaxValue() { - + bitField0_ = (bitField0_ & ~0x00000002); maxValue_ = 0F; onChanged(); return this; @@ -1836,6 +1854,7 @@ public float getOriginalMean() { public Builder setOriginalMean(float value) { originalMean_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1853,7 +1872,7 @@ public Builder setOriginalMean(float value) { * @return This builder for chaining. */ public Builder clearOriginalMean() { - + bitField0_ = (bitField0_ & ~0x00000004); originalMean_ = 0F; onChanged(); return this; @@ -1894,6 +1913,7 @@ public float getOriginalStddev() { public Builder setOriginalStddev(float value) { originalStddev_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1911,7 +1931,7 @@ public Builder setOriginalStddev(float value) { * @return This builder for chaining. */ public Builder clearOriginalStddev() { - + bitField0_ = (bitField0_ & ~0x00000008); originalStddev_ = 0F; onChanged(); return this; @@ -3055,7 +3075,7 @@ private OverlayType(int value) { } public static final int TYPE_FIELD_NUMBER = 1; - private int type_; + private int type_ = 0; /** * * @@ -3098,11 +3118,10 @@ public int getTypeValue() { public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization .Type getType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type result = com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization - .Type.valueOf(type_); + .Type.forNumber(type_); return result == null ? com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization .Type.UNRECOGNIZED @@ -3110,7 +3129,7 @@ public int getTypeValue() { } public static final int POLARITY_FIELD_NUMBER = 2; - private int polarity_; + private int polarity_ = 0; /** * * @@ -3147,11 +3166,10 @@ public int getPolarityValue() { public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization .Polarity getPolarity() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity result = com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization - .Polarity.valueOf(polarity_); + .Polarity.forNumber(polarity_); return result == null ? com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization .Polarity.UNRECOGNIZED @@ -3159,7 +3177,7 @@ public int getPolarityValue() { } public static final int COLOR_MAP_FIELD_NUMBER = 3; - private int colorMap_; + private int colorMap_ = 0; /** * * @@ -3212,11 +3230,10 @@ public int getColorMapValue() { public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization .ColorMap getColorMap() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap result = com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization - .ColorMap.valueOf(colorMap_); + .ColorMap.forNumber(colorMap_); return result == null ? com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization .ColorMap.UNRECOGNIZED @@ -3224,7 +3241,7 @@ public int getColorMapValue() { } public static final int CLIP_PERCENT_UPPERBOUND_FIELD_NUMBER = 4; - private float clipPercentUpperbound_; + private float clipPercentUpperbound_ = 0F; /** * * @@ -3246,7 +3263,7 @@ public float getClipPercentUpperbound() { } public static final int CLIP_PERCENT_LOWERBOUND_FIELD_NUMBER = 5; - private float clipPercentLowerbound_; + private float clipPercentLowerbound_ = 0F; /** * * @@ -3265,7 +3282,7 @@ public float getClipPercentLowerbound() { } public static final int OVERLAY_TYPE_FIELD_NUMBER = 6; - private int overlayType_; + private int overlayType_ = 0; /** * * @@ -3304,12 +3321,11 @@ public int getOverlayTypeValue() { public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization .OverlayType getOverlayType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization .OverlayType result = com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization - .OverlayType.valueOf(overlayType_); + .OverlayType.forNumber(overlayType_); return result == null ? com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization .OverlayType.UNRECOGNIZED @@ -3616,18 +3632,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; type_ = 0; - polarity_ = 0; - colorMap_ = 0; - clipPercentUpperbound_ = 0F; - clipPercentLowerbound_ = 0F; - overlayType_ = 0; - return this; } @@ -3662,16 +3673,37 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata .Visualization(this); - result.type_ = type_; - result.polarity_ = polarity_; - result.colorMap_ = colorMap_; - result.clipPercentUpperbound_ = clipPercentUpperbound_; - result.clipPercentLowerbound_ = clipPercentLowerbound_; - result.overlayType_ = overlayType_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.polarity_ = polarity_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.colorMap_ = colorMap_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.clipPercentUpperbound_ = clipPercentUpperbound_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.clipPercentLowerbound_ = clipPercentLowerbound_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.overlayType_ = overlayType_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3775,37 +3807,37 @@ public Builder mergeFrom( case 8: { type_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { polarity_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { colorMap_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 24 case 37: { clipPercentUpperbound_ = input.readFloat(); - + bitField0_ |= 0x00000008; break; } // case 37 case 45: { clipPercentLowerbound_ = input.readFloat(); - + bitField0_ |= 0x00000010; break; } // case 45 case 48: { overlayType_ = input.readEnum(); - + bitField0_ |= 0x00000020; break; } // case 48 default: @@ -3825,6 +3857,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int type_ = 0; /** * @@ -3866,8 +3900,8 @@ public int getTypeValue() { * @return This builder for chaining. */ public Builder setTypeValue(int value) { - type_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3892,11 +3926,10 @@ public Builder setTypeValue(int value) { public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization .Type getType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type result = com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata - .Visualization.Type.valueOf(type_); + .Visualization.Type.forNumber(type_); return result == null ? com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization .Type.UNRECOGNIZED @@ -3926,7 +3959,7 @@ public Builder setType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; @@ -3949,7 +3982,7 @@ public Builder setType( * @return This builder for chaining. */ public Builder clearType() { - + bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; @@ -3990,8 +4023,8 @@ public int getPolarityValue() { * @return This builder for chaining. */ public Builder setPolarityValue(int value) { - polarity_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4013,12 +4046,11 @@ public Builder setPolarityValue(int value) { public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization .Polarity getPolarity() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization .Polarity result = com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata - .Visualization.Polarity.valueOf(polarity_); + .Visualization.Polarity.forNumber(polarity_); return result == null ? com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization .Polarity.UNRECOGNIZED @@ -4046,7 +4078,7 @@ public Builder setPolarity( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; polarity_ = value.getNumber(); onChanged(); return this; @@ -4066,7 +4098,7 @@ public Builder setPolarity( * @return This builder for chaining. */ public Builder clearPolarity() { - + bitField0_ = (bitField0_ & ~0x00000002); polarity_ = 0; onChanged(); return this; @@ -4123,8 +4155,8 @@ public int getColorMapValue() { * @return This builder for chaining. */ public Builder setColorMapValue(int value) { - colorMap_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4154,12 +4186,11 @@ public Builder setColorMapValue(int value) { public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization .ColorMap getColorMap() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization .ColorMap result = com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata - .Visualization.ColorMap.valueOf(colorMap_); + .Visualization.ColorMap.forNumber(colorMap_); return result == null ? com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization .ColorMap.UNRECOGNIZED @@ -4195,7 +4226,7 @@ public Builder setColorMap( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; colorMap_ = value.getNumber(); onChanged(); return this; @@ -4223,7 +4254,7 @@ public Builder setColorMap( * @return This builder for chaining. */ public Builder clearColorMap() { - + bitField0_ = (bitField0_ & ~0x00000004); colorMap_ = 0; onChanged(); return this; @@ -4268,6 +4299,7 @@ public float getClipPercentUpperbound() { public Builder setClipPercentUpperbound(float value) { clipPercentUpperbound_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -4287,7 +4319,7 @@ public Builder setClipPercentUpperbound(float value) { * @return This builder for chaining. */ public Builder clearClipPercentUpperbound() { - + bitField0_ = (bitField0_ & ~0x00000008); clipPercentUpperbound_ = 0F; onChanged(); return this; @@ -4326,6 +4358,7 @@ public float getClipPercentLowerbound() { public Builder setClipPercentLowerbound(float value) { clipPercentLowerbound_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -4342,7 +4375,7 @@ public Builder setClipPercentLowerbound(float value) { * @return This builder for chaining. */ public Builder clearClipPercentLowerbound() { - + bitField0_ = (bitField0_ & ~0x00000010); clipPercentLowerbound_ = 0F; onChanged(); return this; @@ -4385,8 +4418,8 @@ public int getOverlayTypeValue() { * @return This builder for chaining. */ public Builder setOverlayTypeValue(int value) { - overlayType_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4409,12 +4442,11 @@ public Builder setOverlayTypeValue(int value) { public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization .OverlayType getOverlayType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization .OverlayType result = com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata - .Visualization.OverlayType.valueOf(overlayType_); + .Visualization.OverlayType.forNumber(overlayType_); return result == null ? com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization .OverlayType.UNRECOGNIZED @@ -4443,7 +4475,7 @@ public Builder setOverlayType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000020; overlayType_ = value.getNumber(); onChanged(); return this; @@ -4464,7 +4496,7 @@ public Builder setOverlayType( * @return This builder for chaining. */ public Builder clearOverlayType() { - + bitField0_ = (bitField0_ & ~0x00000020); overlayType_ = 0; onChanged(); return this; @@ -4542,6 +4574,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int INPUT_BASELINES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List inputBaselines_; /** * @@ -4686,7 +4720,9 @@ public com.google.protobuf.ValueOrBuilder getInputBaselinesOrBuilder(int index) } public static final int INPUT_TENSOR_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object inputTensorName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object inputTensorName_ = ""; /** * * @@ -4737,7 +4773,7 @@ public com.google.protobuf.ByteString getInputTensorNameBytes() { } public static final int ENCODING_FIELD_NUMBER = 3; - private int encoding_; + private int encoding_ = 0; /** * * @@ -4773,9 +4809,8 @@ public int getEncodingValue() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding getEncoding() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding result = - com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding.valueOf( + com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding.forNumber( encoding_); return result == null ? com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding @@ -4784,7 +4819,9 @@ public int getEncodingValue() { } public static final int MODALITY_FIELD_NUMBER = 4; - private volatile java.lang.Object modality_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modality_ = ""; /** * * @@ -4893,11 +4930,16 @@ public boolean hasFeatureValueDomain() { public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata .FeatureValueDomainOrBuilder getFeatureValueDomainOrBuilder() { - return getFeatureValueDomain(); + return featureValueDomain_ == null + ? com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain + .getDefaultInstance() + : featureValueDomain_; } public static final int INDICES_TENSOR_NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object indicesTensorName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object indicesTensorName_ = ""; /** * * @@ -4952,7 +4994,9 @@ public com.google.protobuf.ByteString getIndicesTensorNameBytes() { } public static final int DENSE_SHAPE_TENSOR_NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object denseShapeTensorName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object denseShapeTensorName_ = ""; /** * * @@ -5005,6 +5049,8 @@ public com.google.protobuf.ByteString getDenseShapeTensorNameBytes() { } public static final int INDEX_FEATURE_MAPPING_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList indexFeatureMapping_; /** * @@ -5078,7 +5124,9 @@ public com.google.protobuf.ByteString getIndexFeatureMappingBytes(int index) { } public static final int ENCODED_TENSOR_NAME_FIELD_NUMBER = 9; - private volatile java.lang.Object encodedTensorName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object encodedTensorName_ = ""; /** * * @@ -5143,6 +5191,8 @@ public com.google.protobuf.ByteString getEncodedTensorNameBytes() { } public static final int ENCODED_BASELINES_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") private java.util.List encodedBaselines_; /** * @@ -5282,11 +5332,16 @@ public boolean hasVisualization() { public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata .VisualizationOrBuilder getVisualizationOrBuilder() { - return getVisualization(); + return visualization_ == null + ? com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization + .getDefaultInstance() + : visualization_; } public static final int GROUP_NAME_FIELD_NUMBER = 12; - private volatile java.lang.Object groupName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object groupName_ = ""; /** * * @@ -5680,6 +5735,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (inputBaselinesBuilder_ == null) { inputBaselines_ = java.util.Collections.emptyList(); } else { @@ -5688,40 +5744,31 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); inputTensorName_ = ""; - encoding_ = 0; - modality_ = ""; - - if (featureValueDomainBuilder_ == null) { - featureValueDomain_ = null; - } else { - featureValueDomain_ = null; + featureValueDomain_ = null; + if (featureValueDomainBuilder_ != null) { + featureValueDomainBuilder_.dispose(); featureValueDomainBuilder_ = null; } indicesTensorName_ = ""; - denseShapeTensorName_ = ""; - indexFeatureMapping_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000080); encodedTensorName_ = ""; - if (encodedBaselinesBuilder_ == null) { encodedBaselines_ = java.util.Collections.emptyList(); } else { encodedBaselines_ = null; encodedBaselinesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); - if (visualizationBuilder_ == null) { - visualization_ = null; - } else { - visualization_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + visualization_ = null; + if (visualizationBuilder_ != null) { + visualizationBuilder_.dispose(); visualizationBuilder_ = null; } groupName_ = ""; - return this; } @@ -5752,7 +5799,16 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata bui public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata result = new com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata result) { if (inputBaselinesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { inputBaselines_ = java.util.Collections.unmodifiableList(inputBaselines_); @@ -5762,39 +5818,56 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata bui } else { result.inputBaselines_ = inputBaselinesBuilder_.build(); } - result.inputTensorName_ = inputTensorName_; - result.encoding_ = encoding_; - result.modality_ = modality_; - if (featureValueDomainBuilder_ == null) { - result.featureValueDomain_ = featureValueDomain_; - } else { - result.featureValueDomain_ = featureValueDomainBuilder_.build(); - } - result.indicesTensorName_ = indicesTensorName_; - result.denseShapeTensorName_ = denseShapeTensorName_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { indexFeatureMapping_ = indexFeatureMapping_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000080); } result.indexFeatureMapping_ = indexFeatureMapping_; - result.encodedTensorName_ = encodedTensorName_; if (encodedBaselinesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { encodedBaselines_ = java.util.Collections.unmodifiableList(encodedBaselines_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); } result.encodedBaselines_ = encodedBaselines_; } else { result.encodedBaselines_ = encodedBaselinesBuilder_.build(); } - if (visualizationBuilder_ == null) { - result.visualization_ = visualization_; - } else { - result.visualization_ = visualizationBuilder_.build(); + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inputTensorName_ = inputTensorName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.encoding_ = encoding_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.modality_ = modality_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.featureValueDomain_ = + featureValueDomainBuilder_ == null + ? featureValueDomain_ + : featureValueDomainBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.indicesTensorName_ = indicesTensorName_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.denseShapeTensorName_ = denseShapeTensorName_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.encodedTensorName_ = encodedTensorName_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.visualization_ = + visualizationBuilder_ == null ? visualization_ : visualizationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.groupName_ = groupName_; } - result.groupName_ = groupName_; - onBuilt(); - return result; } @java.lang.Override @@ -5878,6 +5951,7 @@ public Builder mergeFrom( } if (!other.getInputTensorName().isEmpty()) { inputTensorName_ = other.inputTensorName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.encoding_ != 0) { @@ -5885,6 +5959,7 @@ public Builder mergeFrom( } if (!other.getModality().isEmpty()) { modality_ = other.modality_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasFeatureValueDomain()) { @@ -5892,16 +5967,18 @@ public Builder mergeFrom( } if (!other.getIndicesTensorName().isEmpty()) { indicesTensorName_ = other.indicesTensorName_; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getDenseShapeTensorName().isEmpty()) { denseShapeTensorName_ = other.denseShapeTensorName_; + bitField0_ |= 0x00000040; onChanged(); } if (!other.indexFeatureMapping_.isEmpty()) { if (indexFeatureMapping_.isEmpty()) { indexFeatureMapping_ = other.indexFeatureMapping_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureIndexFeatureMappingIsMutable(); indexFeatureMapping_.addAll(other.indexFeatureMapping_); @@ -5910,13 +5987,14 @@ public Builder mergeFrom( } if (!other.getEncodedTensorName().isEmpty()) { encodedTensorName_ = other.encodedTensorName_; + bitField0_ |= 0x00000100; onChanged(); } if (encodedBaselinesBuilder_ == null) { if (!other.encodedBaselines_.isEmpty()) { if (encodedBaselines_.isEmpty()) { encodedBaselines_ = other.encodedBaselines_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureEncodedBaselinesIsMutable(); encodedBaselines_.addAll(other.encodedBaselines_); @@ -5929,7 +6007,7 @@ public Builder mergeFrom( encodedBaselinesBuilder_.dispose(); encodedBaselinesBuilder_ = null; encodedBaselines_ = other.encodedBaselines_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); encodedBaselinesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEncodedBaselinesFieldBuilder() @@ -5944,6 +6022,7 @@ public Builder mergeFrom( } if (!other.getGroupName().isEmpty()) { groupName_ = other.groupName_; + bitField0_ |= 0x00000800; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -5987,38 +6066,38 @@ public Builder mergeFrom( case 18: { inputTensorName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { encoding_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { modality_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getFeatureValueDomainFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { indicesTensorName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 case 58: { denseShapeTensorName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 58 case 66: @@ -6031,7 +6110,7 @@ public Builder mergeFrom( case 74: { encodedTensorName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 74 case 82: @@ -6049,13 +6128,13 @@ public Builder mergeFrom( case 90: { input.readMessage(getVisualizationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 90 case 98: { groupName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000800; break; } // case 98 default: @@ -6762,8 +6841,8 @@ public Builder setInputTensorName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - inputTensorName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -6780,8 +6859,8 @@ public Builder setInputTensorName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInputTensorName() { - inputTensorName_ = getDefaultInstance().getInputTensorName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -6803,8 +6882,8 @@ public Builder setInputTensorNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - inputTensorName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -6844,8 +6923,8 @@ public int getEncodingValue() { * @return This builder for chaining. */ public Builder setEncodingValue(int value) { - encoding_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -6866,10 +6945,9 @@ public Builder setEncodingValue(int value) { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding getEncoding() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding result = - com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding.valueOf( - encoding_); + com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding + .forNumber(encoding_); return result == null ? com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding .UNRECOGNIZED @@ -6895,7 +6973,7 @@ public Builder setEncoding( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; encoding_ = value.getNumber(); onChanged(); return this; @@ -6915,7 +6993,7 @@ public Builder setEncoding( * @return This builder for chaining. */ public Builder clearEncoding() { - + bitField0_ = (bitField0_ & ~0x00000004); encoding_ = 0; onChanged(); return this; @@ -6985,8 +7063,8 @@ public Builder setModality(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modality_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -7003,8 +7081,8 @@ public Builder setModality(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModality() { - modality_ = getDefaultInstance().getModality(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -7026,8 +7104,8 @@ public Builder setModalityBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modality_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -7058,7 +7136,7 @@ public Builder setModalityBytes(com.google.protobuf.ByteString value) { * @return Whether the featureValueDomain field is set. */ public boolean hasFeatureValueDomain() { - return featureValueDomainBuilder_ != null || featureValueDomain_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -7106,11 +7184,11 @@ public Builder setFeatureValueDomain( throw new NullPointerException(); } featureValueDomain_ = value; - onChanged(); } else { featureValueDomainBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -7131,11 +7209,11 @@ public Builder setFeatureValueDomain( builderForValue) { if (featureValueDomainBuilder_ == null) { featureValueDomain_ = builderForValue.build(); - onChanged(); } else { featureValueDomainBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -7154,20 +7232,20 @@ public Builder mergeFeatureValueDomain( com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain value) { if (featureValueDomainBuilder_ == null) { - if (featureValueDomain_ != null) { - featureValueDomain_ = - com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata - .FeatureValueDomain.newBuilder(featureValueDomain_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && featureValueDomain_ != null + && featureValueDomain_ + != com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata + .FeatureValueDomain.getDefaultInstance()) { + getFeatureValueDomainBuilder().mergeFrom(value); } else { featureValueDomain_ = value; } - onChanged(); } else { featureValueDomainBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -7183,14 +7261,13 @@ public Builder mergeFeatureValueDomain( * */ public Builder clearFeatureValueDomain() { - if (featureValueDomainBuilder_ == null) { - featureValueDomain_ = null; - onChanged(); - } else { - featureValueDomain_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + featureValueDomain_ = null; + if (featureValueDomainBuilder_ != null) { + featureValueDomainBuilder_.dispose(); featureValueDomainBuilder_ = null; } - + onChanged(); return this; } /** @@ -7208,7 +7285,7 @@ public Builder clearFeatureValueDomain() { public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata .FeatureValueDomain.Builder getFeatureValueDomainBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getFeatureValueDomainFieldBuilder().getBuilder(); } @@ -7341,8 +7418,8 @@ public Builder setIndicesTensorName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - indicesTensorName_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -7361,8 +7438,8 @@ public Builder setIndicesTensorName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearIndicesTensorName() { - indicesTensorName_ = getDefaultInstance().getIndicesTensorName(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -7386,8 +7463,8 @@ public Builder setIndicesTensorNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - indicesTensorName_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -7459,8 +7536,8 @@ public Builder setDenseShapeTensorName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - denseShapeTensorName_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -7478,8 +7555,8 @@ public Builder setDenseShapeTensorName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDenseShapeTensorName() { - denseShapeTensorName_ = getDefaultInstance().getDenseShapeTensorName(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -7502,8 +7579,8 @@ public Builder setDenseShapeTensorNameBytes(com.google.protobuf.ByteString value throw new NullPointerException(); } checkByteStringIsUtf8(value); - denseShapeTensorName_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -7512,9 +7589,9 @@ public Builder setDenseShapeTensorNameBytes(com.google.protobuf.ByteString value com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureIndexFeatureMappingIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { indexFeatureMapping_ = new com.google.protobuf.LazyStringArrayList(indexFeatureMapping_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000080; } } /** @@ -7673,7 +7750,7 @@ public Builder addAllIndexFeatureMapping(java.lang.Iterable va */ public Builder clearIndexFeatureMapping() { indexFeatureMapping_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -7788,8 +7865,8 @@ public Builder setEncodedTensorName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - encodedTensorName_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -7813,8 +7890,8 @@ public Builder setEncodedTensorName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEncodedTensorName() { - encodedTensorName_ = getDefaultInstance().getEncodedTensorName(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -7843,8 +7920,8 @@ public Builder setEncodedTensorNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - encodedTensorName_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -7853,9 +7930,9 @@ public Builder setEncodedTensorNameBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureEncodedBaselinesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000200) != 0)) { encodedBaselines_ = new java.util.ArrayList(encodedBaselines_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000200; } } @@ -8103,7 +8180,7 @@ public Builder addAllEncodedBaselines( public Builder clearEncodedBaselines() { if (encodedBaselinesBuilder_ == null) { encodedBaselines_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { encodedBaselinesBuilder_.clear(); @@ -8246,7 +8323,7 @@ public java.util.List getEncodedBaselinesBuil com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( encodedBaselines_, - ((bitField0_ & 0x00000004) != 0), + ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); encodedBaselines_ = null; @@ -8277,7 +8354,7 @@ public java.util.List getEncodedBaselinesBuil * @return Whether the visualization field is set. */ public boolean hasVisualization() { - return visualizationBuilder_ != null || visualization_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -8322,11 +8399,11 @@ public Builder setVisualization( throw new NullPointerException(); } visualization_ = value; - onChanged(); } else { visualizationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -8346,11 +8423,11 @@ public Builder setVisualization( builderForValue) { if (visualizationBuilder_ == null) { visualization_ = builderForValue.build(); - onChanged(); } else { visualizationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -8368,20 +8445,20 @@ public Builder mergeVisualization( com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization value) { if (visualizationBuilder_ == null) { - if (visualization_ != null) { - visualization_ = - com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization - .newBuilder(visualization_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && visualization_ != null + && visualization_ + != com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata + .Visualization.getDefaultInstance()) { + getVisualizationBuilder().mergeFrom(value); } else { visualization_ = value; } - onChanged(); } else { visualizationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -8396,14 +8473,13 @@ public Builder mergeVisualization( * */ public Builder clearVisualization() { - if (visualizationBuilder_ == null) { - visualization_ = null; - onChanged(); - } else { - visualization_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + visualization_ = null; + if (visualizationBuilder_ != null) { + visualizationBuilder_.dispose(); visualizationBuilder_ = null; } - + onChanged(); return this; } /** @@ -8420,7 +8496,7 @@ public Builder clearVisualization() { public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization .Builder getVisualizationBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getVisualizationFieldBuilder().getBuilder(); } @@ -8556,8 +8632,8 @@ public Builder setGroupName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - groupName_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -8578,8 +8654,8 @@ public Builder setGroupName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearGroupName() { - groupName_ = getDefaultInstance().getGroupName(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -8605,8 +8681,8 @@ public Builder setGroupNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - groupName_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -9101,7 +9177,9 @@ public com.google.protobuf.ByteString getDisplayNameMappingKeyBytes() { } public static final int OUTPUT_TENSOR_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object outputTensorName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputTensorName_ = ""; /** * * @@ -9393,11 +9471,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (indexDisplayNameMappingBuilder_ != null) { indexDisplayNameMappingBuilder_.clear(); } outputTensorName_ = ""; - displayNameMappingCase_ = 0; displayNameMapping_ = null; return this; @@ -9430,22 +9508,31 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata bu public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata result = new com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata(this); - if (displayNameMappingCase_ == 1) { - if (indexDisplayNameMappingBuilder_ == null) { - result.displayNameMapping_ = displayNameMapping_; - } else { - result.displayNameMapping_ = indexDisplayNameMappingBuilder_.build(); - } - } - if (displayNameMappingCase_ == 2) { - result.displayNameMapping_ = displayNameMapping_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.outputTensorName_ = outputTensorName_; - result.displayNameMappingCase_ = displayNameMappingCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outputTensorName_ = outputTensorName_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata result) { + result.displayNameMappingCase_ = displayNameMappingCase_; + result.displayNameMapping_ = this.displayNameMapping_; + if (displayNameMappingCase_ == 1 && indexDisplayNameMappingBuilder_ != null) { + result.displayNameMapping_ = indexDisplayNameMappingBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -9500,6 +9587,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getOutputTensorName().isEmpty()) { outputTensorName_ = other.outputTensorName_; + bitField0_ |= 0x00000004; onChanged(); } switch (other.getDisplayNameMappingCase()) { @@ -9563,7 +9651,7 @@ public Builder mergeFrom( case 26: { outputTensorName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -9597,6 +9685,8 @@ public Builder clearDisplayNameMapping() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Value, com.google.protobuf.Value.Builder, @@ -9901,7 +9991,6 @@ public com.google.protobuf.ValueOrBuilder getIndexDisplayNameMappingOrBuilder() } displayNameMappingCase_ = 1; onChanged(); - ; return indexDisplayNameMappingBuilder_; } @@ -10133,8 +10222,8 @@ public Builder setOutputTensorName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - outputTensorName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -10151,8 +10240,8 @@ public Builder setOutputTensorName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOutputTensorName() { - outputTensorName_ = getDefaultInstance().getOutputTensorName(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -10174,8 +10263,8 @@ public Builder setOutputTensorNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - outputTensorName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -10267,6 +10356,7 @@ private static final class InputsDefaultEntryHolder { .getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata> inputs_; @@ -10371,9 +10461,11 @@ public boolean containsInputs(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata getInputsOrDefault( - java.lang.String key, - com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata + getInputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -10439,6 +10531,7 @@ private static final class OutputsDefaultEntryHolder { .getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata> outputs_; @@ -10525,9 +10618,11 @@ public boolean containsOutputs(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata getOutputsOrDefault( - java.lang.String key, - com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata + getOutputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -10570,7 +10665,9 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata ge } public static final int FEATURE_ATTRIBUTIONS_SCHEMA_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object featureAttributionsSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object featureAttributionsSchemaUri_ = ""; /** * * @@ -10635,7 +10732,9 @@ public com.google.protobuf.ByteString getFeatureAttributionsSchemaUriBytes() { } public static final int LATENT_SPACE_SOURCE_FIELD_NUMBER = 5; - private volatile java.lang.Object latentSpaceSource_; + + @SuppressWarnings("serial") + private volatile java.lang.Object latentSpaceSource_ = ""; /** * * @@ -10960,12 +11059,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; internalGetMutableInputs().clear(); internalGetMutableOutputs().clear(); featureAttributionsSchemaUri_ = ""; - latentSpaceSource_ = ""; - return this; } @@ -10993,17 +11091,31 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata build() { public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.ExplanationMetadata result = new com.google.cloud.aiplatform.v1beta1.ExplanationMetadata(this); - int from_bitField0_ = bitField0_; - result.inputs_ = internalGetInputs(); - result.inputs_.makeImmutable(); - result.outputs_ = internalGetOutputs(); - result.outputs_.makeImmutable(); - result.featureAttributionsSchemaUri_ = featureAttributionsSchemaUri_; - result.latentSpaceSource_ = latentSpaceSource_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ExplanationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = internalGetInputs(); + result.inputs_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputs_ = internalGetOutputs(); + result.outputs_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.featureAttributionsSchemaUri_ = featureAttributionsSchemaUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.latentSpaceSource_ = latentSpaceSource_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -11051,13 +11163,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ExplanationMetadata if (other == com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.getDefaultInstance()) return this; internalGetMutableInputs().mergeFrom(other.internalGetInputs()); + bitField0_ |= 0x00000001; internalGetMutableOutputs().mergeFrom(other.internalGetOutputs()); + bitField0_ |= 0x00000002; if (!other.getFeatureAttributionsSchemaUri().isEmpty()) { featureAttributionsSchemaUri_ = other.featureAttributionsSchemaUri_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getLatentSpaceSource().isEmpty()) { latentSpaceSource_ = other.latentSpaceSource_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -11098,6 +11214,7 @@ public Builder mergeFrom( internalGetMutableInputs() .getMutableMap() .put(inputs__.getKey(), inputs__.getValue()); + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -11112,18 +11229,19 @@ public Builder mergeFrom( internalGetMutableOutputs() .getMutableMap() .put(outputs__.getKey(), outputs__.getValue()); + bitField0_ |= 0x00000002; break; } // case 18 case 26: { featureAttributionsSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 42: { latentSpaceSource_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 42 default: @@ -11161,14 +11279,14 @@ public Builder mergeFrom( private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata> internalGetMutableInputs() { - onChanged(); - ; if (inputs_ == null) { inputs_ = com.google.protobuf.MapField.newMapField(InputsDefaultEntryHolder.defaultEntry); } if (!inputs_.isMutable()) { inputs_ = inputs_.copy(); } + bitField0_ |= 0x00000001; + onChanged(); return inputs_; } @@ -11263,9 +11381,11 @@ public boolean containsInputs(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata getInputsOrDefault( - java.lang.String key, - com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata + getInputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -11314,6 +11434,7 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata get } public Builder clearInputs() { + bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableInputs().getMutableMap().clear(); return this; } @@ -11351,6 +11472,7 @@ public Builder removeInputs(java.lang.String key) { public java.util.Map< java.lang.String, com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata> getMutableInputs() { + bitField0_ |= 0x00000001; return internalGetMutableInputs().getMutableMap(); } /** @@ -11384,8 +11506,8 @@ public Builder putInputs( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableInputs().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; return this; } /** @@ -11416,6 +11538,7 @@ public Builder putAllInputs( com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata> values) { internalGetMutableInputs().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; return this; } @@ -11438,14 +11561,14 @@ public Builder putAllInputs( java.lang.String, com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata> internalGetMutableOutputs() { - onChanged(); - ; if (outputs_ == null) { outputs_ = com.google.protobuf.MapField.newMapField(OutputsDefaultEntryHolder.defaultEntry); } if (!outputs_.isMutable()) { outputs_ = outputs_.copy(); } + bitField0_ |= 0x00000002; + onChanged(); return outputs_; } @@ -11524,9 +11647,10 @@ public boolean containsOutputs(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata + public /* nullable */ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata getOutputsOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata defaultValue) { if (key == null) { throw new NullPointerException("map key"); @@ -11570,6 +11694,7 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata ge } public Builder clearOutputs() { + bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableOutputs().getMutableMap().clear(); return this; } @@ -11602,6 +11727,7 @@ public Builder removeOutputs(java.lang.String key) { java.lang.String, com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata> getMutableOutputs() { + bitField0_ |= 0x00000002; return internalGetMutableOutputs().getMutableMap(); } /** @@ -11629,8 +11755,8 @@ public Builder putOutputs( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableOutputs().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; return this; } /** @@ -11655,6 +11781,7 @@ public Builder putAllOutputs( com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata> values) { internalGetMutableOutputs().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; return this; } @@ -11743,8 +11870,8 @@ public Builder setFeatureAttributionsSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - featureAttributionsSchemaUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -11768,8 +11895,8 @@ public Builder setFeatureAttributionsSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFeatureAttributionsSchemaUri() { - featureAttributionsSchemaUri_ = getDefaultInstance().getFeatureAttributionsSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -11798,8 +11925,8 @@ public Builder setFeatureAttributionsSchemaUriBytes(com.google.protobuf.ByteStri throw new NullPointerException(); } checkByteStringIsUtf8(value); - featureAttributionsSchemaUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -11865,8 +11992,8 @@ public Builder setLatentSpaceSource(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - latentSpaceSource_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -11882,8 +12009,8 @@ public Builder setLatentSpaceSource(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLatentSpaceSource() { - latentSpaceSource_ = getDefaultInstance().getLatentSpaceSource(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -11904,8 +12031,8 @@ public Builder setLatentSpaceSourceBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - latentSpaceSource_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOrBuilder.java index b4895bcc524a..4b6c4ad81f90 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOrBuilder.java @@ -121,7 +121,6 @@ public interface ExplanationMetadataOrBuilder * map<string, .google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata> inputs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ - /* nullable */ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata getInputsOrDefault( java.lang.String key, @@ -226,7 +225,6 @@ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata getInputsO * map<string, .google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata> outputs = 2 [(.google.api.field_behavior) = REQUIRED]; * */ - /* nullable */ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata getOutputsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOverride.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOverride.java index 2be067967c50..2e8846d79b4f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOverride.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOverride.java @@ -210,6 +210,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INPUT_BASELINES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List inputBaselines_; /** * @@ -529,6 +531,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (inputBaselinesBuilder_ == null) { inputBaselines_ = java.util.Collections.emptyList(); } else { @@ -570,7 +573,17 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride .InputMetadataOverride(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride + result) { if (inputBaselinesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { inputBaselines_ = java.util.Collections.unmodifiableList(inputBaselines_); @@ -580,8 +593,12 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } else { result.inputBaselines_ = inputBaselinesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride + result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -1239,6 +1256,7 @@ private static final class InputsDefaultEntryHolder { .InputMetadataOverride.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride> @@ -1329,9 +1347,11 @@ public boolean containsInputs(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride + public /* nullable */ com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride + .InputMetadataOverride getInputsOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride defaultValue) { if (key == null) { @@ -1609,6 +1629,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; internalGetMutableInputs().clear(); return this; } @@ -1638,13 +1659,22 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride build() { public com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride buildPartial() { com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride result = new com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride(this); - int from_bitField0_ = bitField0_; - result.inputs_ = internalGetInputs(); - result.inputs_.makeImmutable(); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = internalGetInputs(); + result.inputs_.makeImmutable(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1694,6 +1724,7 @@ public Builder mergeFrom( == com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.getDefaultInstance()) return this; internalGetMutableInputs().mergeFrom(other.internalGetInputs()); + bitField0_ |= 0x00000001; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1733,6 +1764,7 @@ public Builder mergeFrom( internalGetMutableInputs() .getMutableMap() .put(inputs__.getKey(), inputs__.getValue()); + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -1773,14 +1805,14 @@ public Builder mergeFrom( java.lang.String, com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride> internalGetMutableInputs() { - onChanged(); - ; if (inputs_ == null) { inputs_ = com.google.protobuf.MapField.newMapField(InputsDefaultEntryHolder.defaultEntry); } if (!inputs_.isMutable()) { inputs_ = inputs_.copy(); } + bitField0_ |= 0x00000001; + onChanged(); return inputs_; } @@ -1859,9 +1891,11 @@ public boolean containsInputs(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride + public /* nullable */ com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride + .InputMetadataOverride getInputsOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride defaultValue) { if (key == null) { @@ -1906,6 +1940,7 @@ public boolean containsInputs(java.lang.String key) { } public Builder clearInputs() { + bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableInputs().getMutableMap().clear(); return this; } @@ -1938,6 +1973,7 @@ public Builder removeInputs(java.lang.String key) { java.lang.String, com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride> getMutableInputs() { + bitField0_ |= 0x00000001; return internalGetMutableInputs().getMutableMap(); } /** @@ -1966,8 +2002,8 @@ public Builder putInputs( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableInputs().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; return this; } /** @@ -1993,6 +2029,7 @@ public Builder putAllInputs( .InputMetadataOverride> values) { internalGetMutableInputs().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOverrideOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOverrideOrBuilder.java index 3aeef840f5a2..6930fd638334 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOverrideOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOverrideOrBuilder.java @@ -99,7 +99,6 @@ public interface ExplanationMetadataOverrideOrBuilder * map<string, .google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride> inputs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ - /* nullable */ com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride getInputsOrDefault( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationParameters.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationParameters.java index 9f2d364bc93c..7b4620aee4da 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationParameters.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationParameters.java @@ -379,7 +379,7 @@ public com.google.cloud.aiplatform.v1beta1.ExamplesOrBuilder getExamplesOrBuilde } public static final int TOP_K_FIELD_NUMBER = 4; - private int topK_; + private int topK_ = 0; /** * * @@ -471,7 +471,9 @@ public com.google.protobuf.ListValue getOutputIndices() { */ @java.lang.Override public com.google.protobuf.ListValueOrBuilder getOutputIndicesOrBuilder() { - return getOutputIndices(); + return outputIndices_ == null + ? com.google.protobuf.ListValue.getDefaultInstance() + : outputIndices_; } private byte memoizedIsInitialized = -1; @@ -759,6 +761,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (sampledShapleyAttributionBuilder_ != null) { sampledShapleyAttributionBuilder_.clear(); } @@ -772,11 +775,9 @@ public Builder clear() { examplesBuilder_.clear(); } topK_ = 0; - - if (outputIndicesBuilder_ == null) { - outputIndices_ = null; - } else { - outputIndices_ = null; + outputIndices_ = null; + if (outputIndicesBuilder_ != null) { + outputIndicesBuilder_.dispose(); outputIndicesBuilder_ = null; } methodCase_ = 0; @@ -808,43 +809,41 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationParameters build() { public com.google.cloud.aiplatform.v1beta1.ExplanationParameters buildPartial() { com.google.cloud.aiplatform.v1beta1.ExplanationParameters result = new com.google.cloud.aiplatform.v1beta1.ExplanationParameters(this); - if (methodCase_ == 1) { - if (sampledShapleyAttributionBuilder_ == null) { - result.method_ = method_; - } else { - result.method_ = sampledShapleyAttributionBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (methodCase_ == 2) { - if (integratedGradientsAttributionBuilder_ == null) { - result.method_ = method_; - } else { - result.method_ = integratedGradientsAttributionBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ExplanationParameters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.topK_ = topK_; } - if (methodCase_ == 3) { - if (xraiAttributionBuilder_ == null) { - result.method_ = method_; - } else { - result.method_ = xraiAttributionBuilder_.build(); - } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.outputIndices_ = + outputIndicesBuilder_ == null ? outputIndices_ : outputIndicesBuilder_.build(); } - if (methodCase_ == 7) { - if (examplesBuilder_ == null) { - result.method_ = method_; - } else { - result.method_ = examplesBuilder_.build(); - } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.ExplanationParameters result) { + result.methodCase_ = methodCase_; + result.method_ = this.method_; + if (methodCase_ == 1 && sampledShapleyAttributionBuilder_ != null) { + result.method_ = sampledShapleyAttributionBuilder_.build(); } - result.topK_ = topK_; - if (outputIndicesBuilder_ == null) { - result.outputIndices_ = outputIndices_; - } else { - result.outputIndices_ = outputIndicesBuilder_.build(); + if (methodCase_ == 2 && integratedGradientsAttributionBuilder_ != null) { + result.method_ = integratedGradientsAttributionBuilder_.build(); + } + if (methodCase_ == 3 && xraiAttributionBuilder_ != null) { + result.method_ = xraiAttributionBuilder_.build(); + } + if (methodCase_ == 7 && examplesBuilder_ != null) { + result.method_ = examplesBuilder_.build(); } - result.methodCase_ = methodCase_; - onBuilt(); - return result; } @java.lang.Override @@ -975,13 +974,13 @@ public Builder mergeFrom( case 32: { topK_ = input.readInt32(); - + bitField0_ |= 0x00000010; break; } // case 32 case 42: { input.readMessage(getOutputIndicesFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 42 case 58: @@ -1021,6 +1020,8 @@ public Builder clearMethod() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.SampledShapleyAttribution, com.google.cloud.aiplatform.v1beta1.SampledShapleyAttribution.Builder, @@ -1280,7 +1281,6 @@ public Builder clearSampledShapleyAttribution() { } methodCase_ = 1; onChanged(); - ; return sampledShapleyAttributionBuilder_; } @@ -1539,7 +1539,6 @@ public Builder clearIntegratedGradientsAttribution() { } methodCase_ = 2; onChanged(); - ; return integratedGradientsAttributionBuilder_; } @@ -1814,7 +1813,6 @@ public com.google.cloud.aiplatform.v1beta1.XraiAttribution.Builder getXraiAttrib } methodCase_ = 3; onChanged(); - ; return xraiAttributionBuilder_; } @@ -2033,7 +2031,6 @@ public com.google.cloud.aiplatform.v1beta1.ExamplesOrBuilder getExamplesOrBuilde } methodCase_ = 7; onChanged(); - ; return examplesBuilder_; } @@ -2074,6 +2071,7 @@ public int getTopK() { public Builder setTopK(int value) { topK_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2092,7 +2090,7 @@ public Builder setTopK(int value) { * @return This builder for chaining. */ public Builder clearTopK() { - + bitField0_ = (bitField0_ & ~0x00000010); topK_ = 0; onChanged(); return this; @@ -2125,7 +2123,7 @@ public Builder clearTopK() { * @return Whether the outputIndices field is set. */ public boolean hasOutputIndices() { - return outputIndicesBuilder_ != null || outputIndices_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2180,11 +2178,11 @@ public Builder setOutputIndices(com.google.protobuf.ListValue value) { throw new NullPointerException(); } outputIndices_ = value; - onChanged(); } else { outputIndicesBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2208,11 +2206,11 @@ public Builder setOutputIndices(com.google.protobuf.ListValue value) { public Builder setOutputIndices(com.google.protobuf.ListValue.Builder builderForValue) { if (outputIndicesBuilder_ == null) { outputIndices_ = builderForValue.build(); - onChanged(); } else { outputIndicesBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2235,19 +2233,18 @@ public Builder setOutputIndices(com.google.protobuf.ListValue.Builder builderFor */ public Builder mergeOutputIndices(com.google.protobuf.ListValue value) { if (outputIndicesBuilder_ == null) { - if (outputIndices_ != null) { - outputIndices_ = - com.google.protobuf.ListValue.newBuilder(outputIndices_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && outputIndices_ != null + && outputIndices_ != com.google.protobuf.ListValue.getDefaultInstance()) { + getOutputIndicesBuilder().mergeFrom(value); } else { outputIndices_ = value; } - onChanged(); } else { outputIndicesBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2269,14 +2266,13 @@ public Builder mergeOutputIndices(com.google.protobuf.ListValue value) { * .google.protobuf.ListValue output_indices = 5; */ public Builder clearOutputIndices() { - if (outputIndicesBuilder_ == null) { - outputIndices_ = null; - onChanged(); - } else { - outputIndices_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + outputIndices_ = null; + if (outputIndicesBuilder_ != null) { + outputIndicesBuilder_.dispose(); outputIndicesBuilder_ = null; } - + onChanged(); return this; } /** @@ -2298,7 +2294,7 @@ public Builder clearOutputIndices() { * .google.protobuf.ListValue output_indices = 5; */ public com.google.protobuf.ListValue.Builder getOutputIndicesBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getOutputIndicesFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpec.java index 0728b94be6a2..55e3edfcf0f9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpec.java @@ -117,7 +117,9 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationParameters getParameters() @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ExplanationParametersOrBuilder getParametersOrBuilder() { - return getParameters(); + return parameters_ == null + ? com.google.cloud.aiplatform.v1beta1.ExplanationParameters.getDefaultInstance() + : parameters_; } public static final int METADATA_FIELD_NUMBER = 2; @@ -171,7 +173,9 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata getMetadata() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.getDefaultInstance() + : metadata_; } private byte memoizedIsInitialized = -1; @@ -390,16 +394,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (parametersBuilder_ == null) { - parameters_ = null; - } else { - parameters_ = null; + bitField0_ = 0; + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; @@ -429,20 +432,23 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationSpec build() { public com.google.cloud.aiplatform.v1beta1.ExplanationSpec buildPartial() { com.google.cloud.aiplatform.v1beta1.ExplanationSpec result = new com.google.cloud.aiplatform.v1beta1.ExplanationSpec(this); - if (parametersBuilder_ == null) { - result.parameters_ = parameters_; - } else { - result.parameters_ = parametersBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ExplanationSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -524,13 +530,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -550,6 +556,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.ExplanationParameters parameters_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.ExplanationParameters, @@ -570,7 +578,7 @@ public Builder mergeFrom( * @return Whether the parameters field is set. */ public boolean hasParameters() { - return parametersBuilder_ != null || parameters_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -611,11 +619,11 @@ public Builder setParameters(com.google.cloud.aiplatform.v1beta1.ExplanationPara throw new NullPointerException(); } parameters_ = value; - onChanged(); } else { parametersBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -633,11 +641,11 @@ public Builder setParameters( com.google.cloud.aiplatform.v1beta1.ExplanationParameters.Builder builderForValue) { if (parametersBuilder_ == null) { parameters_ = builderForValue.build(); - onChanged(); } else { parametersBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -654,19 +662,19 @@ public Builder setParameters( public Builder mergeParameters( com.google.cloud.aiplatform.v1beta1.ExplanationParameters value) { if (parametersBuilder_ == null) { - if (parameters_ != null) { - parameters_ = - com.google.cloud.aiplatform.v1beta1.ExplanationParameters.newBuilder(parameters_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && parameters_ != null + && parameters_ + != com.google.cloud.aiplatform.v1beta1.ExplanationParameters.getDefaultInstance()) { + getParametersBuilder().mergeFrom(value); } else { parameters_ = value; } - onChanged(); } else { parametersBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -681,14 +689,13 @@ public Builder mergeParameters( * */ public Builder clearParameters() { - if (parametersBuilder_ == null) { - parameters_ = null; - onChanged(); - } else { - parameters_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } - + onChanged(); return this; } /** @@ -704,7 +711,7 @@ public Builder clearParameters() { */ public com.google.cloud.aiplatform.v1beta1.ExplanationParameters.Builder getParametersBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getParametersFieldBuilder().getBuilder(); } @@ -777,7 +784,7 @@ public Builder clearParameters() { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -818,11 +825,11 @@ public Builder setMetadata(com.google.cloud.aiplatform.v1beta1.ExplanationMetada throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -840,11 +847,11 @@ public Builder setMetadata( com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -860,19 +867,19 @@ public Builder setMetadata( */ public Builder mergeMetadata(com.google.cloud.aiplatform.v1beta1.ExplanationMetadata value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -887,14 +894,13 @@ public Builder mergeMetadata(com.google.cloud.aiplatform.v1beta1.ExplanationMeta * */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -909,7 +915,7 @@ public Builder clearMetadata() { * */ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpecOverride.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpecOverride.java index 586b5392228d..c2b9d4ebe18a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpecOverride.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpecOverride.java @@ -119,7 +119,9 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationParameters getParameters() @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ExplanationParametersOrBuilder getParametersOrBuilder() { - return getParameters(); + return parameters_ == null + ? com.google.cloud.aiplatform.v1beta1.ExplanationParameters.getDefaultInstance() + : parameters_; } public static final int METADATA_FIELD_NUMBER = 2; @@ -168,7 +170,9 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride getMetada @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverrideOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.getDefaultInstance() + : metadata_; } public static final int EXAMPLES_OVERRIDE_FIELD_NUMBER = 3; @@ -217,7 +221,9 @@ public com.google.cloud.aiplatform.v1beta1.ExamplesOverride getExamplesOverride( @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ExamplesOverrideOrBuilder getExamplesOverrideOrBuilder() { - return getExamplesOverride(); + return examplesOverride_ == null + ? com.google.cloud.aiplatform.v1beta1.ExamplesOverride.getDefaultInstance() + : examplesOverride_; } private byte memoizedIsInitialized = -1; @@ -453,22 +459,20 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (parametersBuilder_ == null) { - parameters_ = null; - } else { - parameters_ = null; + bitField0_ = 0; + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - if (examplesOverrideBuilder_ == null) { - examplesOverride_ = null; - } else { - examplesOverride_ = null; + examplesOverride_ = null; + if (examplesOverrideBuilder_ != null) { + examplesOverrideBuilder_.dispose(); examplesOverrideBuilder_ = null; } return this; @@ -498,25 +502,27 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride build() { public com.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride buildPartial() { com.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride result = new com.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride(this); - if (parametersBuilder_ == null) { - result.parameters_ = parameters_; - } else { - result.parameters_ = parametersBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (examplesOverrideBuilder_ == null) { - result.examplesOverride_ = examplesOverride_; - } else { - result.examplesOverride_ = examplesOverrideBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.examplesOverride_ = + examplesOverrideBuilder_ == null ? examplesOverride_ : examplesOverrideBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -601,20 +607,20 @@ public Builder mergeFrom( case 10: { input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getExamplesOverrideFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -634,6 +640,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.ExplanationParameters parameters_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.ExplanationParameters, @@ -654,7 +662,7 @@ public Builder mergeFrom( * @return Whether the parameters field is set. */ public boolean hasParameters() { - return parametersBuilder_ != null || parameters_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -695,11 +703,11 @@ public Builder setParameters(com.google.cloud.aiplatform.v1beta1.ExplanationPara throw new NullPointerException(); } parameters_ = value; - onChanged(); } else { parametersBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -717,11 +725,11 @@ public Builder setParameters( com.google.cloud.aiplatform.v1beta1.ExplanationParameters.Builder builderForValue) { if (parametersBuilder_ == null) { parameters_ = builderForValue.build(); - onChanged(); } else { parametersBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -738,19 +746,19 @@ public Builder setParameters( public Builder mergeParameters( com.google.cloud.aiplatform.v1beta1.ExplanationParameters value) { if (parametersBuilder_ == null) { - if (parameters_ != null) { - parameters_ = - com.google.cloud.aiplatform.v1beta1.ExplanationParameters.newBuilder(parameters_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && parameters_ != null + && parameters_ + != com.google.cloud.aiplatform.v1beta1.ExplanationParameters.getDefaultInstance()) { + getParametersBuilder().mergeFrom(value); } else { parameters_ = value; } - onChanged(); } else { parametersBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -765,14 +773,13 @@ public Builder mergeParameters( * .google.cloud.aiplatform.v1beta1.ExplanationParameters parameters = 1; */ public Builder clearParameters() { - if (parametersBuilder_ == null) { - parameters_ = null; - onChanged(); - } else { - parameters_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } - + onChanged(); return this; } /** @@ -788,7 +795,7 @@ public Builder clearParameters() { */ public com.google.cloud.aiplatform.v1beta1.ExplanationParameters.Builder getParametersBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getParametersFieldBuilder().getBuilder(); } @@ -859,7 +866,7 @@ public Builder clearParameters() { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -897,11 +904,11 @@ public Builder setMetadata( throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -917,11 +924,11 @@ public Builder setMetadata( com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -936,19 +943,20 @@ public Builder setMetadata( public Builder mergeMetadata( com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride + .getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -961,14 +969,13 @@ public Builder mergeMetadata( * .google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride metadata = 2; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -982,7 +989,7 @@ public Builder clearMetadata() { */ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -1049,7 +1056,7 @@ public Builder clearMetadata() { * @return Whether the examplesOverride field is set. */ public boolean hasExamplesOverride() { - return examplesOverrideBuilder_ != null || examplesOverride_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1086,11 +1093,11 @@ public Builder setExamplesOverride(com.google.cloud.aiplatform.v1beta1.ExamplesO throw new NullPointerException(); } examplesOverride_ = value; - onChanged(); } else { examplesOverrideBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1106,11 +1113,11 @@ public Builder setExamplesOverride( com.google.cloud.aiplatform.v1beta1.ExamplesOverride.Builder builderForValue) { if (examplesOverrideBuilder_ == null) { examplesOverride_ = builderForValue.build(); - onChanged(); } else { examplesOverrideBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1125,19 +1132,19 @@ public Builder setExamplesOverride( public Builder mergeExamplesOverride( com.google.cloud.aiplatform.v1beta1.ExamplesOverride value) { if (examplesOverrideBuilder_ == null) { - if (examplesOverride_ != null) { - examplesOverride_ = - com.google.cloud.aiplatform.v1beta1.ExamplesOverride.newBuilder(examplesOverride_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && examplesOverride_ != null + && examplesOverride_ + != com.google.cloud.aiplatform.v1beta1.ExamplesOverride.getDefaultInstance()) { + getExamplesOverrideBuilder().mergeFrom(value); } else { examplesOverride_ = value; } - onChanged(); } else { examplesOverrideBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1150,14 +1157,13 @@ public Builder mergeExamplesOverride( * .google.cloud.aiplatform.v1beta1.ExamplesOverride examples_override = 3; */ public Builder clearExamplesOverride() { - if (examplesOverrideBuilder_ == null) { - examplesOverride_ = null; - onChanged(); - } else { - examplesOverride_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + examplesOverride_ = null; + if (examplesOverrideBuilder_ != null) { + examplesOverrideBuilder_.dispose(); examplesOverrideBuilder_ = null; } - + onChanged(); return this; } /** @@ -1171,7 +1177,7 @@ public Builder clearExamplesOverride() { */ public com.google.cloud.aiplatform.v1beta1.ExamplesOverride.Builder getExamplesOverrideBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getExamplesOverrideFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataConfig.java index 0243110e23d1..7a334da0aaed 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataConfig.java @@ -188,7 +188,9 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder getGcsDestina } public static final int ANNOTATIONS_FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object annotationsFilter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object annotationsFilter_ = ""; /** * * @@ -464,11 +466,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (gcsDestinationBuilder_ != null) { gcsDestinationBuilder_.clear(); } annotationsFilter_ = ""; - destinationCase_ = 0; destination_ = null; return this; @@ -498,19 +500,29 @@ public com.google.cloud.aiplatform.v1beta1.ExportDataConfig build() { public com.google.cloud.aiplatform.v1beta1.ExportDataConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.ExportDataConfig result = new com.google.cloud.aiplatform.v1beta1.ExportDataConfig(this); - if (destinationCase_ == 1) { - if (gcsDestinationBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = gcsDestinationBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - result.annotationsFilter_ = annotationsFilter_; - result.destinationCase_ = destinationCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ExportDataConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.annotationsFilter_ = annotationsFilter_; + } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.ExportDataConfig result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { + result.destination_ = gcsDestinationBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -559,6 +571,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ExportDataConfig ot return this; if (!other.getAnnotationsFilter().isEmpty()) { annotationsFilter_ = other.annotationsFilter_; + bitField0_ |= 0x00000002; onChanged(); } switch (other.getDestinationCase()) { @@ -607,7 +620,7 @@ public Builder mergeFrom( case 18: { annotationsFilter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -641,6 +654,8 @@ public Builder clearDestination() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GcsDestination, com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder, @@ -921,7 +936,6 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder getGcsDestinat } destinationCase_ = 1; onChanged(); - ; return gcsDestinationBuilder_; } @@ -995,8 +1009,8 @@ public Builder setAnnotationsFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - annotationsFilter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1015,8 +1029,8 @@ public Builder setAnnotationsFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAnnotationsFilter() { - annotationsFilter_ = getDefaultInstance().getAnnotationsFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1040,8 +1054,8 @@ public Builder setAnnotationsFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - annotationsFilter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataOperationMetadata.java index 5e6e8250d525..fe4b2c1019eb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataOperationMetadata.java @@ -114,11 +114,15 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } public static final int GCS_OUTPUT_DIRECTORY_FIELD_NUMBER = 2; - private volatile java.lang.Object gcsOutputDirectory_; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsOutputDirectory_ = ""; /** * * @@ -381,14 +385,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } gcsOutputDirectory_ = ""; - return this; } @@ -417,16 +420,25 @@ public com.google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata build() { public com.google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.gcsOutputDirectory_ = gcsOutputDirectory_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gcsOutputDirectory_ = gcsOutputDirectory_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -480,6 +492,7 @@ public Builder mergeFrom( } if (!other.getGcsOutputDirectory().isEmpty()) { gcsOutputDirectory_ = other.gcsOutputDirectory_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -511,13 +524,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { gcsOutputDirectory_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -537,6 +550,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -555,7 +570,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -593,11 +608,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -613,11 +628,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -632,20 +647,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -658,14 +673,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -679,7 +693,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } @@ -792,8 +806,8 @@ public Builder setGcsOutputDirectory(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - gcsOutputDirectory_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -810,8 +824,8 @@ public Builder setGcsOutputDirectory(java.lang.String value) { * @return This builder for chaining. */ public Builder clearGcsOutputDirectory() { - gcsOutputDirectory_ = getDefaultInstance().getGcsOutputDirectory(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -833,8 +847,8 @@ public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - gcsOutputDirectory_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataRequest.java index 1bfc4a3a40eb..255f2dbb632c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -176,7 +178,9 @@ public com.google.cloud.aiplatform.v1beta1.ExportDataConfig getExportConfig() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ExportDataConfigOrBuilder getExportConfigOrBuilder() { - return getExportConfig(); + return exportConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ExportDataConfig.getDefaultInstance() + : exportConfig_; } private byte memoizedIsInitialized = -1; @@ -392,12 +396,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - - if (exportConfigBuilder_ == null) { - exportConfig_ = null; - } else { - exportConfig_ = null; + exportConfig_ = null; + if (exportConfigBuilder_ != null) { + exportConfigBuilder_.dispose(); exportConfigBuilder_ = null; } return this; @@ -427,16 +430,24 @@ public com.google.cloud.aiplatform.v1beta1.ExportDataRequest build() { public com.google.cloud.aiplatform.v1beta1.ExportDataRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ExportDataRequest result = new com.google.cloud.aiplatform.v1beta1.ExportDataRequest(this); - result.name_ = name_; - if (exportConfigBuilder_ == null) { - result.exportConfig_ = exportConfig_; - } else { - result.exportConfig_ = exportConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ExportDataRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.exportConfig_ = + exportConfigBuilder_ == null ? exportConfig_ : exportConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -485,6 +496,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ExportDataRequest o return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasExportConfig()) { @@ -519,13 +531,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getExportConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -545,6 +557,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -618,8 +632,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -639,8 +653,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -665,8 +679,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -691,7 +705,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the exportConfig field is set. */ public boolean hasExportConfig() { - return exportConfigBuilder_ != null || exportConfig_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -732,11 +746,11 @@ public Builder setExportConfig(com.google.cloud.aiplatform.v1beta1.ExportDataCon throw new NullPointerException(); } exportConfig_ = value; - onChanged(); } else { exportConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -754,11 +768,11 @@ public Builder setExportConfig( com.google.cloud.aiplatform.v1beta1.ExportDataConfig.Builder builderForValue) { if (exportConfigBuilder_ == null) { exportConfig_ = builderForValue.build(); - onChanged(); } else { exportConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -774,19 +788,19 @@ public Builder setExportConfig( */ public Builder mergeExportConfig(com.google.cloud.aiplatform.v1beta1.ExportDataConfig value) { if (exportConfigBuilder_ == null) { - if (exportConfig_ != null) { - exportConfig_ = - com.google.cloud.aiplatform.v1beta1.ExportDataConfig.newBuilder(exportConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && exportConfig_ != null + && exportConfig_ + != com.google.cloud.aiplatform.v1beta1.ExportDataConfig.getDefaultInstance()) { + getExportConfigBuilder().mergeFrom(value); } else { exportConfig_ = value; } - onChanged(); } else { exportConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -801,14 +815,13 @@ public Builder mergeExportConfig(com.google.cloud.aiplatform.v1beta1.ExportDataC * */ public Builder clearExportConfig() { - if (exportConfigBuilder_ == null) { - exportConfig_ = null; - onChanged(); - } else { - exportConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + exportConfig_ = null; + if (exportConfigBuilder_ != null) { + exportConfigBuilder_.dispose(); exportConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -823,7 +836,7 @@ public Builder clearExportConfig() { * */ public com.google.cloud.aiplatform.v1beta1.ExportDataConfig.Builder getExportConfigBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getExportConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataResponse.java index 90275cb54aef..e2f2b4c8bf70 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportDataResponse.java @@ -69,6 +69,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int EXPORTED_FILES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList exportedFiles_; /** * @@ -335,6 +337,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; exportedFiles_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; @@ -364,14 +367,25 @@ public com.google.cloud.aiplatform.v1beta1.ExportDataResponse build() { public com.google.cloud.aiplatform.v1beta1.ExportDataResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ExportDataResponse result = new com.google.cloud.aiplatform.v1beta1.ExportDataResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ExportDataResponse result) { if (((bitField0_ & 0x00000001) != 0)) { exportedFiles_ = exportedFiles_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.exportedFiles_ = exportedFiles_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ExportDataResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesOperationMetadata.java index 09a2f1d52d76..e837226eda32 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesOperationMetadata.java @@ -113,7 +113,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -323,10 +325,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -359,15 +361,22 @@ public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -450,7 +459,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -470,6 +479,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -488,7 +499,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -526,11 +537,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -546,11 +557,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -565,20 +576,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -591,14 +602,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -612,7 +622,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesRequest.java index 60a19f8633eb..eb62afcde618 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportFeatureValuesRequest.java @@ -256,7 +256,9 @@ public com.google.protobuf.Timestamp getSnapshotTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { - return getSnapshotTime(); + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; } public static final int START_TIME_FIELD_NUMBER = 2; @@ -308,7 +310,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } private byte memoizedIsInitialized = -1; @@ -542,16 +544,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (snapshotTimeBuilder_ == null) { - snapshotTime_ = null; - } else { - snapshotTime_ = null; + bitField0_ = 0; + snapshotTime_ = null; + if (snapshotTimeBuilder_ != null) { + snapshotTimeBuilder_.dispose(); snapshotTimeBuilder_ = null; } - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } return this; @@ -585,20 +586,25 @@ public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotEx buildPartial() { com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport result = new com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport(this); - if (snapshotTimeBuilder_ == null) { - result.snapshotTime_ = snapshotTime_; - } else { - result.snapshotTime_ = snapshotTimeBuilder_.build(); - } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.snapshotTime_ = + snapshotTimeBuilder_ == null ? snapshotTime_ : snapshotTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -688,13 +694,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getSnapshotTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -714,6 +720,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Timestamp snapshotTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -734,7 +742,7 @@ public Builder mergeFrom( * @return Whether the snapshotTime field is set. */ public boolean hasSnapshotTime() { - return snapshotTimeBuilder_ != null || snapshotTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -775,11 +783,11 @@ public Builder setSnapshotTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } snapshotTime_ = value; - onChanged(); } else { snapshotTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -796,11 +804,11 @@ public Builder setSnapshotTime(com.google.protobuf.Timestamp value) { public Builder setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (snapshotTimeBuilder_ == null) { snapshotTime_ = builderForValue.build(); - onChanged(); } else { snapshotTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -816,19 +824,18 @@ public Builder setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForV */ public Builder mergeSnapshotTime(com.google.protobuf.Timestamp value) { if (snapshotTimeBuilder_ == null) { - if (snapshotTime_ != null) { - snapshotTime_ = - com.google.protobuf.Timestamp.newBuilder(snapshotTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && snapshotTime_ != null + && snapshotTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getSnapshotTimeBuilder().mergeFrom(value); } else { snapshotTime_ = value; } - onChanged(); } else { snapshotTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -843,14 +850,13 @@ public Builder mergeSnapshotTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp snapshot_time = 1; */ public Builder clearSnapshotTime() { - if (snapshotTimeBuilder_ == null) { - snapshotTime_ = null; - onChanged(); - } else { - snapshotTime_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + snapshotTime_ = null; + if (snapshotTimeBuilder_ != null) { + snapshotTimeBuilder_.dispose(); snapshotTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -865,7 +871,7 @@ public Builder clearSnapshotTime() { * .google.protobuf.Timestamp snapshot_time = 1; */ public com.google.protobuf.Timestamp.Builder getSnapshotTimeBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getSnapshotTimeFieldBuilder().getBuilder(); } @@ -937,7 +943,7 @@ public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -978,11 +984,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -999,11 +1005,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1019,19 +1025,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1046,14 +1051,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp start_time = 2; */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1068,7 +1072,7 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 2; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -1374,7 +1378,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 1; @@ -1426,7 +1430,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } private byte memoizedIsInitialized = -1; @@ -1658,16 +1662,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + bitField0_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } return this; @@ -1701,20 +1704,24 @@ public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport buildPartial() { com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport result = new com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport(this); - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); - } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1802,13 +1809,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 10 case 18: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 18 default: @@ -1828,6 +1835,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1848,7 +1857,7 @@ public Builder mergeFrom( * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1889,11 +1898,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1910,11 +1919,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1930,19 +1939,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1957,14 +1965,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp start_time = 2; */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1979,7 +1986,7 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 2; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -2051,7 +2058,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -2090,11 +2097,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2111,11 +2118,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2131,17 +2138,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2156,14 +2164,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp end_time = 1; */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2178,7 +2185,7 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 1; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -2468,7 +2475,9 @@ public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport } public static final int ENTITY_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object entityType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityType_ = ""; /** * * @@ -2576,7 +2585,9 @@ public com.google.cloud.aiplatform.v1beta1.FeatureValueDestination getDestinatio @java.lang.Override public com.google.cloud.aiplatform.v1beta1.FeatureValueDestinationOrBuilder getDestinationOrBuilder() { - return getDestination(); + return destination_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.getDefaultInstance() + : destination_; } public static final int FEATURE_SELECTOR_FIELD_NUMBER = 5; @@ -2631,10 +2642,14 @@ public com.google.cloud.aiplatform.v1beta1.FeatureSelector getFeatureSelector() @java.lang.Override public com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder getFeatureSelectorOrBuilder() { - return getFeatureSelector(); + return featureSelector_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureSelector.getDefaultInstance() + : featureSelector_; } public static final int SETTINGS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") private java.util.List settings_; /** * @@ -2987,6 +3002,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (snapshotExportBuilder_ != null) { snapshotExportBuilder_.clear(); } @@ -2994,17 +3010,14 @@ public Builder clear() { fullExportBuilder_.clear(); } entityType_ = ""; - - if (destinationBuilder_ == null) { - destination_ = null; - } else { - destination_ = null; + destination_ = null; + if (destinationBuilder_ != null) { + destinationBuilder_.dispose(); destinationBuilder_ = null; } - if (featureSelectorBuilder_ == null) { - featureSelector_ = null; - } else { - featureSelector_ = null; + featureSelector_ = null; + if (featureSelectorBuilder_ != null) { + featureSelectorBuilder_.dispose(); featureSelectorBuilder_ = null; } if (settingsBuilder_ == null) { @@ -3013,7 +3026,7 @@ public Builder clear() { settings_ = null; settingsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); modeCase_ = 0; mode_ = null; return this; @@ -3044,44 +3057,54 @@ public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest build() { public com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest result = new com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest(this); - int from_bitField0_ = bitField0_; - if (modeCase_ == 3) { - if (snapshotExportBuilder_ == null) { - result.mode_ = mode_; - } else { - result.mode_ = snapshotExportBuilder_.build(); - } - } - if (modeCase_ == 7) { - if (fullExportBuilder_ == null) { - result.mode_ = mode_; - } else { - result.mode_ = fullExportBuilder_.build(); - } - } - result.entityType_ = entityType_; - if (destinationBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = destinationBuilder_.build(); - } - if (featureSelectorBuilder_ == null) { - result.featureSelector_ = featureSelector_; - } else { - result.featureSelector_ = featureSelectorBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest result) { if (settingsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { settings_ = java.util.Collections.unmodifiableList(settings_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); } result.settings_ = settings_; } else { result.settings_ = settingsBuilder_.build(); } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.entityType_ = entityType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.destination_ = + destinationBuilder_ == null ? destination_ : destinationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.featureSelector_ = + featureSelectorBuilder_ == null ? featureSelector_ : featureSelectorBuilder_.build(); + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest result) { result.modeCase_ = modeCase_; - onBuilt(); - return result; + result.mode_ = this.mode_; + if (modeCase_ == 3 && snapshotExportBuilder_ != null) { + result.mode_ = snapshotExportBuilder_.build(); + } + if (modeCase_ == 7 && fullExportBuilder_ != null) { + result.mode_ = fullExportBuilder_.build(); + } } @java.lang.Override @@ -3133,6 +3156,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ExportFeatureValues return this; if (!other.getEntityType().isEmpty()) { entityType_ = other.entityType_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasDestination()) { @@ -3145,7 +3169,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ExportFeatureValues if (!other.settings_.isEmpty()) { if (settings_.isEmpty()) { settings_ = other.settings_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureSettingsIsMutable(); settings_.addAll(other.settings_); @@ -3158,7 +3182,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ExportFeatureValues settingsBuilder_.dispose(); settingsBuilder_ = null; settings_ = other.settings_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); settingsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSettingsFieldBuilder() @@ -3213,7 +3237,7 @@ public Builder mergeFrom( case 10: { entityType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 10 case 26: @@ -3225,13 +3249,13 @@ public Builder mergeFrom( case 34: { input.readMessage(getDestinationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getFeatureSelectorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: @@ -3541,7 +3565,6 @@ public Builder clearSnapshotExport() { } modeCase_ = 3; onChanged(); - ; return snapshotExportBuilder_; } @@ -3783,7 +3806,6 @@ public Builder clearFullExport() { } modeCase_ = 7; onChanged(); - ; return fullExportBuilder_; } @@ -3860,8 +3882,8 @@ public Builder setEntityType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityType_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3881,8 +3903,8 @@ public Builder setEntityType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityType() { - entityType_ = getDefaultInstance().getEntityType(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -3907,8 +3929,8 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityType_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3933,7 +3955,7 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { * @return Whether the destination field is set. */ public boolean hasDestination() { - return destinationBuilder_ != null || destination_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -3975,11 +3997,11 @@ public Builder setDestination( throw new NullPointerException(); } destination_ = value; - onChanged(); } else { destinationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3997,11 +4019,11 @@ public Builder setDestination( com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder builderForValue) { if (destinationBuilder_ == null) { destination_ = builderForValue.build(); - onChanged(); } else { destinationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4018,19 +4040,20 @@ public Builder setDestination( public Builder mergeDestination( com.google.cloud.aiplatform.v1beta1.FeatureValueDestination value) { if (destinationBuilder_ == null) { - if (destination_ != null) { - destination_ = - com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.newBuilder(destination_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && destination_ != null + && destination_ + != com.google.cloud.aiplatform.v1beta1.FeatureValueDestination + .getDefaultInstance()) { + getDestinationBuilder().mergeFrom(value); } else { destination_ = value; } - onChanged(); } else { destinationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4045,14 +4068,13 @@ public Builder mergeDestination( * */ public Builder clearDestination() { - if (destinationBuilder_ == null) { - destination_ = null; - onChanged(); - } else { - destination_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + destination_ = null; + if (destinationBuilder_ != null) { + destinationBuilder_.dispose(); destinationBuilder_ = null; } - + onChanged(); return this; } /** @@ -4068,7 +4090,7 @@ public Builder clearDestination() { */ public com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder getDestinationBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getDestinationFieldBuilder().getBuilder(); } @@ -4141,7 +4163,7 @@ public Builder clearDestination() { * @return Whether the featureSelector field is set. */ public boolean hasFeatureSelector() { - return featureSelectorBuilder_ != null || featureSelector_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -4182,11 +4204,11 @@ public Builder setFeatureSelector(com.google.cloud.aiplatform.v1beta1.FeatureSel throw new NullPointerException(); } featureSelector_ = value; - onChanged(); } else { featureSelectorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4204,11 +4226,11 @@ public Builder setFeatureSelector( com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder builderForValue) { if (featureSelectorBuilder_ == null) { featureSelector_ = builderForValue.build(); - onChanged(); } else { featureSelectorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4224,19 +4246,19 @@ public Builder setFeatureSelector( */ public Builder mergeFeatureSelector(com.google.cloud.aiplatform.v1beta1.FeatureSelector value) { if (featureSelectorBuilder_ == null) { - if (featureSelector_ != null) { - featureSelector_ = - com.google.cloud.aiplatform.v1beta1.FeatureSelector.newBuilder(featureSelector_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && featureSelector_ != null + && featureSelector_ + != com.google.cloud.aiplatform.v1beta1.FeatureSelector.getDefaultInstance()) { + getFeatureSelectorBuilder().mergeFrom(value); } else { featureSelector_ = value; } - onChanged(); } else { featureSelectorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4251,14 +4273,13 @@ public Builder mergeFeatureSelector(com.google.cloud.aiplatform.v1beta1.FeatureS * */ public Builder clearFeatureSelector() { - if (featureSelectorBuilder_ == null) { - featureSelector_ = null; - onChanged(); - } else { - featureSelector_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + featureSelector_ = null; + if (featureSelectorBuilder_ != null) { + featureSelectorBuilder_.dispose(); featureSelectorBuilder_ = null; } - + onChanged(); return this; } /** @@ -4273,7 +4294,7 @@ public Builder clearFeatureSelector() { * */ public com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder getFeatureSelectorBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getFeatureSelectorFieldBuilder().getBuilder(); } @@ -4330,11 +4351,11 @@ public com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder getFeatureSel settings_ = java.util.Collections.emptyList(); private void ensureSettingsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { settings_ = new java.util.ArrayList( settings_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000020; } } @@ -4568,7 +4589,7 @@ public Builder addAllSettings( public Builder clearSettings() { if (settingsBuilder_ == null) { settings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { settingsBuilder_.clear(); @@ -4705,7 +4726,7 @@ public com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder add com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting, com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.Builder, com.google.cloud.aiplatform.v1beta1.DestinationFeatureSettingOrBuilder>( - settings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + settings_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); settings_ = null; } return settingsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelOperationMetadata.java index 58ed75c14fdb..d442a9a577fe 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelOperationMetadata.java @@ -181,7 +181,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ARTIFACT_OUTPUT_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object artifactOutputUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object artifactOutputUri_ = ""; /** * * @@ -234,7 +236,9 @@ public com.google.protobuf.ByteString getArtifactOutputUriBytes() { } public static final int IMAGE_OUTPUT_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object imageOutputUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object imageOutputUri_ = ""; /** * * @@ -503,10 +507,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; artifactOutputUri_ = ""; - imageOutputUri_ = ""; - return this; } @@ -538,12 +541,24 @@ public com.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputIn buildPartial() { com.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo result = new com.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo(this); - result.artifactOutputUri_ = artifactOutputUri_; - result.imageOutputUri_ = imageOutputUri_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.artifactOutputUri_ = artifactOutputUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.imageOutputUri_ = imageOutputUri_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -599,10 +614,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getArtifactOutputUri().isEmpty()) { artifactOutputUri_ = other.artifactOutputUri_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getImageOutputUri().isEmpty()) { imageOutputUri_ = other.imageOutputUri_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -634,13 +651,13 @@ public Builder mergeFrom( case 18: { artifactOutputUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 18 case 26: { imageOutputUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 26 default: @@ -660,6 +677,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object artifactOutputUri_ = ""; /** * @@ -727,8 +746,8 @@ public Builder setArtifactOutputUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - artifactOutputUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -746,8 +765,8 @@ public Builder setArtifactOutputUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearArtifactOutputUri() { - artifactOutputUri_ = getDefaultInstance().getArtifactOutputUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -770,8 +789,8 @@ public Builder setArtifactOutputUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - artifactOutputUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -840,8 +859,8 @@ public Builder setImageOutputUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - imageOutputUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -858,8 +877,8 @@ public Builder setImageOutputUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearImageOutputUri() { - imageOutputUri_ = getDefaultInstance().getImageOutputUri(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -881,8 +900,8 @@ public Builder setImageOutputUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - imageOutputUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1001,7 +1020,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } public static final int OUTPUT_INFO_FIELD_NUMBER = 2; @@ -1061,7 +1082,10 @@ public boolean hasOutputInfo() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfoOrBuilder getOutputInfoOrBuilder() { - return getOutputInfo(); + return outputInfo_ == null + ? com.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + .getDefaultInstance() + : outputInfo_; } private byte memoizedIsInitialized = -1; @@ -1283,16 +1307,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - if (outputInfoBuilder_ == null) { - outputInfo_ = null; - } else { - outputInfo_ = null; + outputInfo_ = null; + if (outputInfoBuilder_ != null) { + outputInfoBuilder_.dispose(); outputInfoBuilder_ = null; } return this; @@ -1323,20 +1346,25 @@ public com.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata build() public com.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); - } - if (outputInfoBuilder_ == null) { - result.outputInfo_ = outputInfo_; - } else { - result.outputInfo_ = outputInfoBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputInfo_ = outputInfoBuilder_ == null ? outputInfo_ : outputInfoBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1420,13 +1448,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getOutputInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1446,6 +1474,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -1464,7 +1494,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1502,11 +1532,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1522,11 +1552,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1541,20 +1571,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1567,14 +1597,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -1588,7 +1617,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } @@ -1658,7 +1687,7 @@ public Builder clearGenericMetadata() { * @return Whether the outputInfo field is set. */ public boolean hasOutputInfo() { - return outputInfoBuilder_ != null || outputInfo_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1704,11 +1733,11 @@ public Builder setOutputInfo( throw new NullPointerException(); } outputInfo_ = value; - onChanged(); } else { outputInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1728,11 +1757,11 @@ public Builder setOutputInfo( builderForValue) { if (outputInfoBuilder_ == null) { outputInfo_ = builderForValue.build(); - onChanged(); } else { outputInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1750,20 +1779,20 @@ public Builder setOutputInfo( public Builder mergeOutputInfo( com.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo value) { if (outputInfoBuilder_ == null) { - if (outputInfo_ != null) { - outputInfo_ = - com.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo - .newBuilder(outputInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && outputInfo_ != null + && outputInfo_ + != com.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo + .getDefaultInstance()) { + getOutputInfoBuilder().mergeFrom(value); } else { outputInfo_ = value; } - onChanged(); } else { outputInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1779,14 +1808,13 @@ public Builder mergeOutputInfo( * */ public Builder clearOutputInfo() { - if (outputInfoBuilder_ == null) { - outputInfo_ = null; - onChanged(); - } else { - outputInfo_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + outputInfo_ = null; + if (outputInfoBuilder_ != null) { + outputInfoBuilder_.dispose(); outputInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -1803,7 +1831,7 @@ public Builder clearOutputInfo() { */ public com.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata.OutputInfo.Builder getOutputInfoBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getOutputInfoFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelRequest.java index 5c3a5235e887..102cda28ec5c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelRequest.java @@ -260,7 +260,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int EXPORT_FORMAT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object exportFormatId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object exportFormatId_ = ""; /** * * @@ -383,7 +385,9 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination getArtifactDestination @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder getArtifactDestinationOrBuilder() { - return getArtifactDestination(); + return artifactDestination_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance() + : artifactDestination_; } public static final int IMAGE_DESTINATION_FIELD_NUMBER = 4; @@ -444,7 +448,9 @@ public com.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination getImage @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ContainerRegistryDestinationOrBuilder getImageDestinationOrBuilder() { - return getImageDestination(); + return imageDestination_ == null + ? com.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.getDefaultInstance() + : imageDestination_; } private byte memoizedIsInitialized = -1; @@ -678,18 +684,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; exportFormatId_ = ""; - - if (artifactDestinationBuilder_ == null) { - artifactDestination_ = null; - } else { - artifactDestination_ = null; + artifactDestination_ = null; + if (artifactDestinationBuilder_ != null) { + artifactDestinationBuilder_.dispose(); artifactDestinationBuilder_ = null; } - if (imageDestinationBuilder_ == null) { - imageDestination_ = null; - } else { - imageDestination_ = null; + imageDestination_ = null; + if (imageDestinationBuilder_ != null) { + imageDestinationBuilder_.dispose(); imageDestinationBuilder_ = null; } return this; @@ -721,21 +725,33 @@ public com.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig build public com.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig result = new com.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig(this); - result.exportFormatId_ = exportFormatId_; - if (artifactDestinationBuilder_ == null) { - result.artifactDestination_ = artifactDestination_; - } else { - result.artifactDestination_ = artifactDestinationBuilder_.build(); - } - if (imageDestinationBuilder_ == null) { - result.imageDestination_ = imageDestination_; - } else { - result.imageDestination_ = imageDestinationBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.exportFormatId_ = exportFormatId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.artifactDestination_ = + artifactDestinationBuilder_ == null + ? artifactDestination_ + : artifactDestinationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.imageDestination_ = + imageDestinationBuilder_ == null + ? imageDestination_ + : imageDestinationBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -789,6 +805,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getExportFormatId().isEmpty()) { exportFormatId_ = other.exportFormatId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasArtifactDestination()) { @@ -826,21 +843,21 @@ public Builder mergeFrom( case 10: { exportFormatId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: { input.readMessage( getArtifactDestinationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 26 case 34: { input.readMessage( getImageDestinationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 34 default: @@ -860,6 +877,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object exportFormatId_ = ""; /** * @@ -933,8 +952,8 @@ public Builder setExportFormatId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - exportFormatId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -954,8 +973,8 @@ public Builder setExportFormatId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearExportFormatId() { - exportFormatId_ = getDefaultInstance().getExportFormatId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -980,8 +999,8 @@ public Builder setExportFormatIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - exportFormatId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1011,7 +1030,7 @@ public Builder setExportFormatIdBytes(com.google.protobuf.ByteString value) { * @return Whether the artifactDestination field is set. */ public boolean hasArtifactDestination() { - return artifactDestinationBuilder_ != null || artifactDestination_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1063,11 +1082,11 @@ public Builder setArtifactDestination( throw new NullPointerException(); } artifactDestination_ = value; - onChanged(); } else { artifactDestinationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1090,11 +1109,11 @@ public Builder setArtifactDestination( com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder builderForValue) { if (artifactDestinationBuilder_ == null) { artifactDestination_ = builderForValue.build(); - onChanged(); } else { artifactDestinationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1116,19 +1135,19 @@ public Builder setArtifactDestination( public Builder mergeArtifactDestination( com.google.cloud.aiplatform.v1beta1.GcsDestination value) { if (artifactDestinationBuilder_ == null) { - if (artifactDestination_ != null) { - artifactDestination_ = - com.google.cloud.aiplatform.v1beta1.GcsDestination.newBuilder(artifactDestination_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && artifactDestination_ != null + && artifactDestination_ + != com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance()) { + getArtifactDestinationBuilder().mergeFrom(value); } else { artifactDestination_ = value; } - onChanged(); } else { artifactDestinationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1148,14 +1167,13 @@ public Builder mergeArtifactDestination( * .google.cloud.aiplatform.v1beta1.GcsDestination artifact_destination = 3; */ public Builder clearArtifactDestination() { - if (artifactDestinationBuilder_ == null) { - artifactDestination_ = null; - onChanged(); - } else { - artifactDestination_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + artifactDestination_ = null; + if (artifactDestinationBuilder_ != null) { + artifactDestinationBuilder_.dispose(); artifactDestinationBuilder_ = null; } - + onChanged(); return this; } /** @@ -1176,7 +1194,7 @@ public Builder clearArtifactDestination() { */ public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder getArtifactDestinationBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getArtifactDestinationFieldBuilder().getBuilder(); } @@ -1261,7 +1279,7 @@ public Builder clearArtifactDestination() { * @return Whether the imageDestination field is set. */ public boolean hasImageDestination() { - return imageDestinationBuilder_ != null || imageDestination_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1309,11 +1327,11 @@ public Builder setImageDestination( throw new NullPointerException(); } imageDestination_ = value; - onChanged(); } else { imageDestinationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1334,11 +1352,11 @@ public Builder setImageDestination( builderForValue) { if (imageDestinationBuilder_ == null) { imageDestination_ = builderForValue.build(); - onChanged(); } else { imageDestinationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1357,20 +1375,20 @@ public Builder setImageDestination( public Builder mergeImageDestination( com.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination value) { if (imageDestinationBuilder_ == null) { - if (imageDestination_ != null) { - imageDestination_ = - com.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.newBuilder( - imageDestination_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && imageDestination_ != null + && imageDestination_ + != com.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination + .getDefaultInstance()) { + getImageDestinationBuilder().mergeFrom(value); } else { imageDestination_ = value; } - onChanged(); } else { imageDestinationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1387,14 +1405,13 @@ public Builder mergeImageDestination( * */ public Builder clearImageDestination() { - if (imageDestinationBuilder_ == null) { - imageDestination_ = null; - onChanged(); - } else { - imageDestination_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + imageDestination_ = null; + if (imageDestinationBuilder_ != null) { + imageDestinationBuilder_.dispose(); imageDestinationBuilder_ = null; } - + onChanged(); return this; } /** @@ -1412,7 +1429,7 @@ public Builder clearImageDestination() { */ public com.google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.Builder getImageDestinationBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getImageDestinationFieldBuilder().getBuilder(); } @@ -1538,7 +1555,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -1646,7 +1665,9 @@ public com.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig getOu @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfigOrBuilder getOutputConfigOrBuilder() { - return getOutputConfig(); + return outputConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.getDefaultInstance() + : outputConfig_; } private byte memoizedIsInitialized = -1; @@ -1862,12 +1883,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - - if (outputConfigBuilder_ == null) { - outputConfig_ = null; - } else { - outputConfig_ = null; + outputConfig_ = null; + if (outputConfigBuilder_ != null) { + outputConfigBuilder_.dispose(); outputConfigBuilder_ = null; } return this; @@ -1897,16 +1917,24 @@ public com.google.cloud.aiplatform.v1beta1.ExportModelRequest build() { public com.google.cloud.aiplatform.v1beta1.ExportModelRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ExportModelRequest result = new com.google.cloud.aiplatform.v1beta1.ExportModelRequest(this); - result.name_ = name_; - if (outputConfigBuilder_ == null) { - result.outputConfig_ = outputConfig_; - } else { - result.outputConfig_ = outputConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ExportModelRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputConfig_ = + outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1955,6 +1983,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ExportModelRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasOutputConfig()) { @@ -1989,13 +2018,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -2015,6 +2044,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -2088,8 +2119,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2109,8 +2140,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2135,8 +2166,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2161,7 +2192,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { - return outputConfigBuilder_ != null || outputConfig_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -2204,11 +2235,11 @@ public Builder setOutputConfig( throw new NullPointerException(); } outputConfig_ = value; - onChanged(); } else { outputConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2227,11 +2258,11 @@ public Builder setOutputConfig( builderForValue) { if (outputConfigBuilder_ == null) { outputConfig_ = builderForValue.build(); - onChanged(); } else { outputConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2248,20 +2279,20 @@ public Builder setOutputConfig( public Builder mergeOutputConfig( com.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig value) { if (outputConfigBuilder_ == null) { - if (outputConfig_ != null) { - outputConfig_ = - com.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.newBuilder( - outputConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig + .getDefaultInstance()) { + getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; } - onChanged(); } else { outputConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2276,14 +2307,13 @@ public Builder mergeOutputConfig( * */ public Builder clearOutputConfig() { - if (outputConfigBuilder_ == null) { - outputConfig_ = null; - onChanged(); - } else { - outputConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + outputConfig_ = null; + if (outputConfigBuilder_ != null) { + outputConfigBuilder_.dispose(); outputConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -2299,7 +2329,7 @@ public Builder clearOutputConfig() { */ public com.google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig.Builder getOutputConfigBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataRequest.java index c4f1ba1368ce..2162b1353162 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataRequest.java @@ -75,7 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_TIME_SERIES_FIELD_NUMBER = 1; - private volatile java.lang.Object tensorboardTimeSeries_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboardTimeSeries_ = ""; /** * * @@ -132,7 +134,9 @@ public com.google.protobuf.ByteString getTensorboardTimeSeriesBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -181,7 +185,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -201,7 +205,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -260,7 +266,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -556,16 +564,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; tensorboardTimeSeries_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - orderBy_ = ""; - return this; } @@ -597,15 +601,33 @@ public com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataReques buildPartial() { com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest result = new com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest(this); - result.tensorboardTimeSeries_ = tensorboardTimeSeries_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.orderBy_ = orderBy_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tensorboardTimeSeries_ = tensorboardTimeSeries_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -658,10 +680,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getTensorboardTimeSeries().isEmpty()) { tensorboardTimeSeries_ = other.tensorboardTimeSeries_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -669,10 +693,12 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -704,31 +730,31 @@ public Builder mergeFrom( case 10: { tensorboardTimeSeries_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -748,6 +774,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object tensorboardTimeSeries_ = ""; /** * @@ -821,8 +849,8 @@ public Builder setTensorboardTimeSeries(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboardTimeSeries_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -842,8 +870,8 @@ public Builder setTensorboardTimeSeries(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboardTimeSeries() { - tensorboardTimeSeries_ = getDefaultInstance().getTensorboardTimeSeries(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -868,8 +896,8 @@ public Builder setTensorboardTimeSeriesBytes(com.google.protobuf.ByteString valu throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboardTimeSeries_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -935,8 +963,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -952,8 +980,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -974,8 +1002,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1015,6 +1043,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1032,7 +1061,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1114,8 +1143,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1136,8 +1165,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1163,8 +1192,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1236,8 +1265,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1255,8 +1284,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1279,8 +1308,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataResponse.java index ce7d87638a2b..8eb72c731d34 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportTensorboardTimeSeriesDataResponse.java @@ -73,6 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TIME_SERIES_DATA_POINTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List timeSeriesDataPoints_; /** @@ -156,7 +158,9 @@ public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint getTimeSeriesData } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -428,6 +432,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (timeSeriesDataPointsBuilder_ == null) { timeSeriesDataPoints_ = java.util.Collections.emptyList(); } else { @@ -436,7 +441,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -468,7 +472,16 @@ public com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRespon buildPartial() { com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse result = new com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse result) { if (timeSeriesDataPointsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { timeSeriesDataPoints_ = java.util.Collections.unmodifiableList(timeSeriesDataPoints_); @@ -478,9 +491,14 @@ public com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRespon } else { result.timeSeriesDataPoints_ = timeSeriesDataPointsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -562,6 +580,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -607,7 +626,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1101,8 +1120,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1120,8 +1139,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1144,8 +1163,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Feature.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Feature.java index df7c7d9268f8..f2108464bc7d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Feature.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Feature.java @@ -690,7 +690,7 @@ private Objective(int value) { } public static final int OBJECTIVE_FIELD_NUMBER = 1; - private int objective_; + private int objective_ = 0; /** * * @@ -724,9 +724,8 @@ public int getObjectiveValue() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective getObjective() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective result = - com.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective.valueOf( + com.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective.forNumber( objective_); return result == null ? com.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective @@ -786,7 +785,9 @@ public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly getFeatureStatsAn @java.lang.Override public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder getFeatureStatsAnomalyOrBuilder() { - return getFeatureStatsAnomaly(); + return featureStatsAnomaly_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.getDefaultInstance() + : featureStatsAnomaly_; } private byte memoizedIsInitialized = -1; @@ -1017,12 +1018,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; objective_ = 0; - - if (featureStatsAnomalyBuilder_ == null) { - featureStatsAnomaly_ = null; - } else { - featureStatsAnomaly_ = null; + featureStatsAnomaly_ = null; + if (featureStatsAnomalyBuilder_ != null) { + featureStatsAnomalyBuilder_.dispose(); featureStatsAnomalyBuilder_ = null; } return this; @@ -1054,16 +1054,27 @@ public com.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly build( public com.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly buildPartial() { com.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly result = new com.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly(this); - result.objective_ = objective_; - if (featureStatsAnomalyBuilder_ == null) { - result.featureStatsAnomaly_ = featureStatsAnomaly_; - } else { - result.featureStatsAnomaly_ = featureStatsAnomalyBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.objective_ = objective_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.featureStatsAnomaly_ = + featureStatsAnomalyBuilder_ == null + ? featureStatsAnomaly_ + : featureStatsAnomalyBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1150,14 +1161,14 @@ public Builder mergeFrom( case 8: { objective_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getFeatureStatsAnomalyFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1177,6 +1188,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int objective_ = 0; /** * @@ -1210,8 +1223,8 @@ public int getObjectiveValue() { * @return This builder for chaining. */ public Builder setObjectiveValue(int value) { - objective_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1231,9 +1244,8 @@ public Builder setObjectiveValue(int value) { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective getObjective() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective result = - com.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective.valueOf( + com.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective.forNumber( objective_); return result == null ? com.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective @@ -1259,7 +1271,7 @@ public Builder setObjective( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; objective_ = value.getNumber(); onChanged(); return this; @@ -1278,7 +1290,7 @@ public Builder setObjective( * @return This builder for chaining. */ public Builder clearObjective() { - + bitField0_ = (bitField0_ & ~0x00000001); objective_ = 0; onChanged(); return this; @@ -1304,7 +1316,7 @@ public Builder clearObjective() { * @return Whether the featureStatsAnomaly field is set. */ public boolean hasFeatureStatsAnomaly() { - return featureStatsAnomalyBuilder_ != null || featureStatsAnomaly_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1346,11 +1358,11 @@ public Builder setFeatureStatsAnomaly( throw new NullPointerException(); } featureStatsAnomaly_ = value; - onChanged(); } else { featureStatsAnomalyBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1368,11 +1380,11 @@ public Builder setFeatureStatsAnomaly( com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder builderForValue) { if (featureStatsAnomalyBuilder_ == null) { featureStatsAnomaly_ = builderForValue.build(); - onChanged(); } else { featureStatsAnomalyBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1389,20 +1401,19 @@ public Builder setFeatureStatsAnomaly( public Builder mergeFeatureStatsAnomaly( com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly value) { if (featureStatsAnomalyBuilder_ == null) { - if (featureStatsAnomaly_ != null) { - featureStatsAnomaly_ = - com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.newBuilder( - featureStatsAnomaly_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && featureStatsAnomaly_ != null + && featureStatsAnomaly_ + != com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.getDefaultInstance()) { + getFeatureStatsAnomalyBuilder().mergeFrom(value); } else { featureStatsAnomaly_ = value; } - onChanged(); } else { featureStatsAnomalyBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1417,14 +1428,13 @@ public Builder mergeFeatureStatsAnomaly( * */ public Builder clearFeatureStatsAnomaly() { - if (featureStatsAnomalyBuilder_ == null) { - featureStatsAnomaly_ = null; - onChanged(); - } else { - featureStatsAnomaly_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + featureStatsAnomaly_ = null; + if (featureStatsAnomalyBuilder_ != null) { + featureStatsAnomalyBuilder_.dispose(); featureStatsAnomalyBuilder_ = null; } - + onChanged(); return this; } /** @@ -1440,7 +1450,7 @@ public Builder clearFeatureStatsAnomaly() { */ public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder getFeatureStatsAnomalyBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getFeatureStatsAnomalyFieldBuilder().getBuilder(); } @@ -1561,7 +1571,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -1622,7 +1634,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -1671,7 +1685,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int VALUE_TYPE_FIELD_NUMBER = 3; - private int valueType_; + private int valueType_ = 0; /** * * @@ -1704,9 +1718,8 @@ public int getValueTypeValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Feature.ValueType getValueType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Feature.ValueType result = - com.google.cloud.aiplatform.v1beta1.Feature.ValueType.valueOf(valueType_); + com.google.cloud.aiplatform.v1beta1.Feature.ValueType.forNumber(valueType_); return result == null ? com.google.cloud.aiplatform.v1beta1.Feature.ValueType.UNRECOGNIZED : result; @@ -1758,7 +1771,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 5; @@ -1807,7 +1820,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int LABELS_FIELD_NUMBER = 6; @@ -1823,6 +1836,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -1904,7 +1918,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1941,7 +1958,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int ETAG_FIELD_NUMBER = 7; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -2080,11 +2099,13 @@ public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig getMonit @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfigOrBuilder getMonitoringConfigOrBuilder() { - return getMonitoringConfig(); + return monitoringConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.getDefaultInstance() + : monitoringConfig_; } public static final int DISABLE_MONITORING_FIELD_NUMBER = 12; - private boolean disableMonitoring_; + private boolean disableMonitoring_ = false; /** * * @@ -2107,6 +2128,8 @@ public boolean getDisableMonitoring() { } public static final int MONITORING_STATS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") private java.util.List monitoringStats_; /** * @@ -2208,6 +2231,8 @@ public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly getMonitoringStat } public static final int MONITORING_STATS_ANOMALIES_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") private java.util.List monitoringStatsAnomalies_; /** @@ -2639,49 +2664,42 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - description_ = ""; - valueType_ = 0; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); etag_ = ""; - - if (monitoringConfigBuilder_ == null) { - monitoringConfig_ = null; - } else { - monitoringConfig_ = null; + monitoringConfig_ = null; + if (monitoringConfigBuilder_ != null) { + monitoringConfigBuilder_.dispose(); monitoringConfigBuilder_ = null; } disableMonitoring_ = false; - if (monitoringStatsBuilder_ == null) { monitoringStats_ = java.util.Collections.emptyList(); } else { monitoringStats_ = null; monitoringStatsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); if (monitoringStatsAnomaliesBuilder_ == null) { monitoringStatsAnomalies_ = java.util.Collections.emptyList(); } else { monitoringStatsAnomalies_ = null; monitoringStatsAnomaliesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000400); return this; } @@ -2709,50 +2727,67 @@ public com.google.cloud.aiplatform.v1beta1.Feature build() { public com.google.cloud.aiplatform.v1beta1.Feature buildPartial() { com.google.cloud.aiplatform.v1beta1.Feature result = new com.google.cloud.aiplatform.v1beta1.Feature(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.description_ = description_; - result.valueType_ = valueType_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.etag_ = etag_; - if (monitoringConfigBuilder_ == null) { - result.monitoringConfig_ = monitoringConfig_; - } else { - result.monitoringConfig_ = monitoringConfigBuilder_.build(); - } - result.disableMonitoring_ = disableMonitoring_; + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.Feature result) { if (monitoringStatsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { monitoringStats_ = java.util.Collections.unmodifiableList(monitoringStats_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); } result.monitoringStats_ = monitoringStats_; } else { result.monitoringStats_ = monitoringStatsBuilder_.build(); } if (monitoringStatsAnomaliesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { monitoringStatsAnomalies_ = java.util.Collections.unmodifiableList(monitoringStatsAnomalies_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000400); } result.monitoringStatsAnomalies_ = monitoringStatsAnomalies_; } else { result.monitoringStatsAnomalies_ = monitoringStatsAnomaliesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Feature result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.valueType_ = valueType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.monitoringConfig_ = + monitoringConfigBuilder_ == null ? monitoringConfig_ : monitoringConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.disableMonitoring_ = disableMonitoring_; + } } @java.lang.Override @@ -2802,10 +2837,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Feature other) { if (other == com.google.cloud.aiplatform.v1beta1.Feature.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000002; onChanged(); } if (other.valueType_ != 0) { @@ -2818,8 +2855,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Feature other) { mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000020; if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasMonitoringConfig()) { @@ -2832,7 +2871,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Feature other) { if (!other.monitoringStats_.isEmpty()) { if (monitoringStats_.isEmpty()) { monitoringStats_ = other.monitoringStats_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureMonitoringStatsIsMutable(); monitoringStats_.addAll(other.monitoringStats_); @@ -2845,7 +2884,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Feature other) { monitoringStatsBuilder_.dispose(); monitoringStatsBuilder_ = null; monitoringStats_ = other.monitoringStats_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); monitoringStatsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMonitoringStatsFieldBuilder() @@ -2859,7 +2898,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Feature other) { if (!other.monitoringStatsAnomalies_.isEmpty()) { if (monitoringStatsAnomalies_.isEmpty()) { monitoringStatsAnomalies_ = other.monitoringStatsAnomalies_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000400); } else { ensureMonitoringStatsAnomaliesIsMutable(); monitoringStatsAnomalies_.addAll(other.monitoringStatsAnomalies_); @@ -2872,7 +2911,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Feature other) { monitoringStatsAnomaliesBuilder_.dispose(); monitoringStatsAnomaliesBuilder_ = null; monitoringStatsAnomalies_ = other.monitoringStatsAnomalies_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000400); monitoringStatsAnomaliesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMonitoringStatsAnomaliesFieldBuilder() @@ -2911,31 +2950,31 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { valueType_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: @@ -2947,19 +2986,20 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; break; } // case 50 case 58: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 58 case 74: { input.readMessage( getMonitoringConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 74 case 82: @@ -2993,7 +3033,7 @@ public Builder mergeFrom( case 96: { disableMonitoring_ = input.readBool(); - + bitField0_ |= 0x00000100; break; } // case 96 default: @@ -3094,8 +3134,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3117,8 +3157,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3145,8 +3185,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3212,8 +3252,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3229,8 +3269,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3251,8 +3291,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3290,8 +3330,8 @@ public int getValueTypeValue() { * @return This builder for chaining. */ public Builder setValueTypeValue(int value) { - valueType_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3310,9 +3350,8 @@ public Builder setValueTypeValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Feature.ValueType getValueType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Feature.ValueType result = - com.google.cloud.aiplatform.v1beta1.Feature.ValueType.valueOf(valueType_); + com.google.cloud.aiplatform.v1beta1.Feature.ValueType.forNumber(valueType_); return result == null ? com.google.cloud.aiplatform.v1beta1.Feature.ValueType.UNRECOGNIZED : result; @@ -3335,7 +3374,7 @@ public Builder setValueType(com.google.cloud.aiplatform.v1beta1.Feature.ValueTyp if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; valueType_ = value.getNumber(); onChanged(); return this; @@ -3354,7 +3393,7 @@ public Builder setValueType(com.google.cloud.aiplatform.v1beta1.Feature.ValueTyp * @return This builder for chaining. */ public Builder clearValueType() { - + bitField0_ = (bitField0_ & ~0x00000004); valueType_ = 0; onChanged(); return this; @@ -3380,7 +3419,7 @@ public Builder clearValueType() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -3421,11 +3460,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3442,11 +3481,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3462,17 +3501,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3487,14 +3527,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3509,7 +3548,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -3581,7 +3620,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -3622,11 +3661,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3643,11 +3682,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3663,17 +3702,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3688,14 +3728,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3710,7 +3749,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -3773,14 +3812,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000020; + onChanged(); return labels_; } @@ -3856,8 +3895,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3894,6 +3935,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -3924,6 +3966,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000020; return internalGetMutableLabels().getMutableMap(); } /** @@ -3950,8 +3993,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000020; return this; } /** @@ -3973,6 +4016,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000020; return this; } @@ -4040,8 +4084,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4058,8 +4102,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -4081,8 +4125,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4120,7 +4164,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { */ @java.lang.Deprecated public boolean hasMonitoringConfig() { - return monitoringConfigBuilder_ != null || monitoringConfig_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -4186,11 +4230,11 @@ public Builder setMonitoringConfig( throw new NullPointerException(); } monitoringConfig_ = value; - onChanged(); } else { monitoringConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -4219,11 +4263,11 @@ public Builder setMonitoringConfig( com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.Builder builderForValue) { if (monitoringConfigBuilder_ == null) { monitoringConfig_ = builderForValue.build(); - onChanged(); } else { monitoringConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -4251,20 +4295,20 @@ public Builder setMonitoringConfig( public Builder mergeMonitoringConfig( com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig value) { if (monitoringConfigBuilder_ == null) { - if (monitoringConfig_ != null) { - monitoringConfig_ = - com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.newBuilder( - monitoringConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && monitoringConfig_ != null + && monitoringConfig_ + != com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + .getDefaultInstance()) { + getMonitoringConfigBuilder().mergeFrom(value); } else { monitoringConfig_ = value; } - onChanged(); } else { monitoringConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -4290,14 +4334,13 @@ public Builder mergeMonitoringConfig( */ @java.lang.Deprecated public Builder clearMonitoringConfig() { - if (monitoringConfigBuilder_ == null) { - monitoringConfig_ = null; - onChanged(); - } else { - monitoringConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + monitoringConfig_ = null; + if (monitoringConfigBuilder_ != null) { + monitoringConfigBuilder_.dispose(); monitoringConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -4324,7 +4367,7 @@ public Builder clearMonitoringConfig() { @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.Builder getMonitoringConfigBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getMonitoringConfigFieldBuilder().getBuilder(); } @@ -4439,6 +4482,7 @@ public boolean getDisableMonitoring() { public Builder setDisableMonitoring(boolean value) { disableMonitoring_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4459,7 +4503,7 @@ public Builder setDisableMonitoring(boolean value) { * @return This builder for chaining. */ public Builder clearDisableMonitoring() { - + bitField0_ = (bitField0_ & ~0x00000100); disableMonitoring_ = false; onChanged(); return this; @@ -4469,11 +4513,11 @@ public Builder clearDisableMonitoring() { monitoringStats_ = java.util.Collections.emptyList(); private void ensureMonitoringStatsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000200) != 0)) { monitoringStats_ = new java.util.ArrayList( monitoringStats_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000200; } } @@ -4762,7 +4806,7 @@ public Builder addAllMonitoringStats( public Builder clearMonitoringStats() { if (monitoringStatsBuilder_ == null) { monitoringStats_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { monitoringStatsBuilder_.clear(); @@ -4933,7 +4977,7 @@ public Builder removeMonitoringStats(int index) { com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder, com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder>( monitoringStats_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); monitoringStats_ = null; @@ -4945,12 +4989,12 @@ public Builder removeMonitoringStats(int index) { monitoringStatsAnomalies_ = java.util.Collections.emptyList(); private void ensureMonitoringStatsAnomaliesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000400) != 0)) { monitoringStatsAnomalies_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly>( monitoringStatsAnomalies_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000400; } } @@ -5211,7 +5255,7 @@ public Builder addAllMonitoringStatsAnomalies( public Builder clearMonitoringStatsAnomalies() { if (monitoringStatsAnomaliesBuilder_ == null) { monitoringStatsAnomalies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { monitoringStatsAnomaliesBuilder_.clear(); @@ -5366,7 +5410,7 @@ public Builder removeMonitoringStatsAnomalies(int index) { com.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Builder, com.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomalyOrBuilder>( monitoringStatsAnomalies_, - ((bitField0_ & 0x00000004) != 0), + ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); monitoringStatsAnomalies_ = null; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureNoiseSigma.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureNoiseSigma.java index 43a1a34f19df..640f539b4406 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureNoiseSigma.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureNoiseSigma.java @@ -173,7 +173,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -228,7 +230,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int SIGMA_FIELD_NUMBER = 2; - private float sigma_; + private float sigma_ = 0F; /** * * @@ -468,10 +470,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - sigma_ = 0F; - return this; } @@ -503,12 +504,24 @@ public com.google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeatur buildPartial() { com.google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature result = new com.google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature(this); - result.name_ = name_; - result.sigma_ = sigma_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sigma_ = sigma_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -563,6 +576,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getSigma() != 0F) { @@ -597,13 +611,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 21: { sigma_ = input.readFloat(); - + bitField0_ |= 0x00000002; break; } // case 21 default: @@ -623,6 +637,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -693,8 +709,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -713,8 +729,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -738,8 +754,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -783,6 +799,7 @@ public float getSigma() { public Builder setSigma(float value) { sigma_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -802,7 +819,7 @@ public Builder setSigma(float value) { * @return This builder for chaining. */ public Builder clearSigma() { - + bitField0_ = (bitField0_ & ~0x00000002); sigma_ = 0F; onChanged(); return this; @@ -877,6 +894,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int NOISE_SIGMA_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List noiseSigma_; /** @@ -1163,6 +1182,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (noiseSigmaBuilder_ == null) { noiseSigma_ = java.util.Collections.emptyList(); } else { @@ -1197,7 +1217,16 @@ public com.google.cloud.aiplatform.v1beta1.FeatureNoiseSigma build() { public com.google.cloud.aiplatform.v1beta1.FeatureNoiseSigma buildPartial() { com.google.cloud.aiplatform.v1beta1.FeatureNoiseSigma result = new com.google.cloud.aiplatform.v1beta1.FeatureNoiseSigma(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.FeatureNoiseSigma result) { if (noiseSigmaBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { noiseSigma_ = java.util.Collections.unmodifiableList(noiseSigma_); @@ -1207,8 +1236,10 @@ public com.google.cloud.aiplatform.v1beta1.FeatureNoiseSigma buildPartial() { } else { result.noiseSigma_ = noiseSigmaBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.FeatureNoiseSigma result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOrBuilder.java index 11b3d1b8058b..e2786ee3978c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOrBuilder.java @@ -264,7 +264,6 @@ public interface FeatureOrBuilder * * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelector.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelector.java index 4e8163919e6c..a134dd03bf20 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelector.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelector.java @@ -116,7 +116,9 @@ public com.google.cloud.aiplatform.v1beta1.IdMatcher getIdMatcher() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.IdMatcherOrBuilder getIdMatcherOrBuilder() { - return getIdMatcher(); + return idMatcher_ == null + ? com.google.cloud.aiplatform.v1beta1.IdMatcher.getDefaultInstance() + : idMatcher_; } private byte memoizedIsInitialized = -1; @@ -321,10 +323,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (idMatcherBuilder_ == null) { - idMatcher_ = null; - } else { - idMatcher_ = null; + bitField0_ = 0; + idMatcher_ = null; + if (idMatcherBuilder_ != null) { + idMatcherBuilder_.dispose(); idMatcherBuilder_ = null; } return this; @@ -354,15 +356,20 @@ public com.google.cloud.aiplatform.v1beta1.FeatureSelector build() { public com.google.cloud.aiplatform.v1beta1.FeatureSelector buildPartial() { com.google.cloud.aiplatform.v1beta1.FeatureSelector result = new com.google.cloud.aiplatform.v1beta1.FeatureSelector(this); - if (idMatcherBuilder_ == null) { - result.idMatcher_ = idMatcher_; - } else { - result.idMatcher_ = idMatcherBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.FeatureSelector result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.idMatcher_ = idMatcherBuilder_ == null ? idMatcher_ : idMatcherBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -441,7 +448,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getIdMatcherFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -461,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.IdMatcher idMatcher_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.IdMatcher, @@ -481,7 +490,7 @@ public Builder mergeFrom( * @return Whether the idMatcher field is set. */ public boolean hasIdMatcher() { - return idMatcherBuilder_ != null || idMatcher_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -522,11 +531,11 @@ public Builder setIdMatcher(com.google.cloud.aiplatform.v1beta1.IdMatcher value) throw new NullPointerException(); } idMatcher_ = value; - onChanged(); } else { idMatcherBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -544,11 +553,11 @@ public Builder setIdMatcher( com.google.cloud.aiplatform.v1beta1.IdMatcher.Builder builderForValue) { if (idMatcherBuilder_ == null) { idMatcher_ = builderForValue.build(); - onChanged(); } else { idMatcherBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -564,19 +573,18 @@ public Builder setIdMatcher( */ public Builder mergeIdMatcher(com.google.cloud.aiplatform.v1beta1.IdMatcher value) { if (idMatcherBuilder_ == null) { - if (idMatcher_ != null) { - idMatcher_ = - com.google.cloud.aiplatform.v1beta1.IdMatcher.newBuilder(idMatcher_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && idMatcher_ != null + && idMatcher_ != com.google.cloud.aiplatform.v1beta1.IdMatcher.getDefaultInstance()) { + getIdMatcherBuilder().mergeFrom(value); } else { idMatcher_ = value; } - onChanged(); } else { idMatcherBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -591,14 +599,13 @@ public Builder mergeIdMatcher(com.google.cloud.aiplatform.v1beta1.IdMatcher valu * */ public Builder clearIdMatcher() { - if (idMatcherBuilder_ == null) { - idMatcher_ = null; - onChanged(); - } else { - idMatcher_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + idMatcher_ = null; + if (idMatcherBuilder_ != null) { + idMatcherBuilder_.dispose(); idMatcherBuilder_ = null; } - + onChanged(); return this; } /** @@ -613,7 +620,7 @@ public Builder clearIdMatcher() { * */ public com.google.cloud.aiplatform.v1beta1.IdMatcher.Builder getIdMatcherBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getIdMatcherFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureStatsAnomaly.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureStatsAnomaly.java index 38fe36a98a7d..68695018aff0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureStatsAnomaly.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureStatsAnomaly.java @@ -77,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SCORE_FIELD_NUMBER = 1; - private double score_; + private double score_ = 0D; /** * * @@ -100,7 +100,9 @@ public double getScore() { } public static final int STATS_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object statsUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object statsUri_ = ""; /** * * @@ -157,7 +159,9 @@ public com.google.protobuf.ByteString getStatsUriBytes() { } public static final int ANOMALY_URI_FIELD_NUMBER = 4; - private volatile java.lang.Object anomalyUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object anomalyUri_ = ""; /** * * @@ -220,7 +224,7 @@ public com.google.protobuf.ByteString getAnomalyUriBytes() { } public static final int DISTRIBUTION_DEVIATION_FIELD_NUMBER = 5; - private double distributionDeviation_; + private double distributionDeviation_ = 0D; /** * * @@ -242,7 +246,7 @@ public double getDistributionDeviation() { } public static final int ANOMALY_DETECTION_THRESHOLD_FIELD_NUMBER = 9; - private double anomalyDetectionThreshold_; + private double anomalyDetectionThreshold_ = 0D; /** * * @@ -313,7 +317,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 8; @@ -368,7 +372,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } private byte memoizedIsInitialized = -1; @@ -653,26 +657,20 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; score_ = 0D; - statsUri_ = ""; - anomalyUri_ = ""; - distributionDeviation_ = 0D; - anomalyDetectionThreshold_ = 0D; - - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } return this; @@ -702,25 +700,38 @@ public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly build() { public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly buildPartial() { com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly result = new com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly(this); - result.score_ = score_; - result.statsUri_ = statsUri_; - result.anomalyUri_ = anomalyUri_; - result.distributionDeviation_ = distributionDeviation_; - result.anomalyDetectionThreshold_ = anomalyDetectionThreshold_; - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); - } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.score_ = score_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.statsUri_ = statsUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.anomalyUri_ = anomalyUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.distributionDeviation_ = distributionDeviation_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.anomalyDetectionThreshold_ = anomalyDetectionThreshold_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -772,10 +783,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly } if (!other.getStatsUri().isEmpty()) { statsUri_ = other.statsUri_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getAnomalyUri().isEmpty()) { anomalyUri_ = other.anomalyUri_; + bitField0_ |= 0x00000004; onChanged(); } if (other.getDistributionDeviation() != 0D) { @@ -819,43 +832,43 @@ public Builder mergeFrom( case 9: { score_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 case 26: { statsUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 26 case 34: { anomalyUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 34 case 41: { distributionDeviation_ = input.readDouble(); - + bitField0_ |= 0x00000008; break; } // case 41 case 58: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 58 case 66: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 66 case 73: { anomalyDetectionThreshold_ = input.readDouble(); - + bitField0_ |= 0x00000010; break; } // case 73 default: @@ -875,6 +888,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private double score_; /** * @@ -916,6 +931,7 @@ public double getScore() { public Builder setScore(double value) { score_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -936,7 +952,7 @@ public Builder setScore(double value) { * @return This builder for chaining. */ public Builder clearScore() { - + bitField0_ = (bitField0_ & ~0x00000001); score_ = 0D; onChanged(); return this; @@ -1015,8 +1031,8 @@ public Builder setStatsUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - statsUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1036,8 +1052,8 @@ public Builder setStatsUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearStatsUri() { - statsUri_ = getDefaultInstance().getStatsUri(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1062,8 +1078,8 @@ public Builder setStatsUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - statsUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1150,8 +1166,8 @@ public Builder setAnomalyUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - anomalyUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1174,8 +1190,8 @@ public Builder setAnomalyUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAnomalyUri() { - anomalyUri_ = getDefaultInstance().getAnomalyUri(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1203,8 +1219,8 @@ public Builder setAnomalyUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - anomalyUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1248,6 +1264,7 @@ public double getDistributionDeviation() { public Builder setDistributionDeviation(double value) { distributionDeviation_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1267,7 +1284,7 @@ public Builder setDistributionDeviation(double value) { * @return This builder for chaining. */ public Builder clearDistributionDeviation() { - + bitField0_ = (bitField0_ & ~0x00000008); distributionDeviation_ = 0D; onChanged(); return this; @@ -1308,6 +1325,7 @@ public double getAnomalyDetectionThreshold() { public Builder setAnomalyDetectionThreshold(double value) { anomalyDetectionThreshold_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1325,7 +1343,7 @@ public Builder setAnomalyDetectionThreshold(double value) { * @return This builder for chaining. */ public Builder clearAnomalyDetectionThreshold() { - + bitField0_ = (bitField0_ & ~0x00000010); anomalyDetectionThreshold_ = 0D; onChanged(); return this; @@ -1352,7 +1370,7 @@ public Builder clearAnomalyDetectionThreshold() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1393,11 +1411,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1415,11 +1433,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1436,17 +1454,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1462,14 +1481,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp start_time = 7; */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1485,7 +1503,7 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 7; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -1558,7 +1576,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -1599,11 +1617,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -1621,11 +1639,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -1642,17 +1660,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -1668,14 +1687,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp end_time = 8; */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1691,7 +1709,7 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 8; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValue.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValue.java index 5209b3ae42b7..a76d346b5e27 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValue.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValue.java @@ -227,7 +227,9 @@ public com.google.protobuf.Timestamp getGenerateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getGenerateTimeOrBuilder() { - return getGenerateTime(); + return generateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : generateTime_; } private byte memoizedIsInitialized = -1; @@ -435,10 +437,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (generateTimeBuilder_ == null) { - generateTime_ = null; - } else { - generateTime_ = null; + bitField0_ = 0; + generateTime_ = null; + if (generateTimeBuilder_ != null) { + generateTimeBuilder_.dispose(); generateTimeBuilder_ = null; } return this; @@ -468,15 +470,21 @@ public com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata build() { public com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata buildPartial() { com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata result = new com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata(this); - if (generateTimeBuilder_ == null) { - result.generateTime_ = generateTime_; - } else { - result.generateTime_ = generateTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.generateTime_ = + generateTimeBuilder_ == null ? generateTime_ : generateTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -557,7 +565,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenerateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -577,6 +585,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Timestamp generateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -600,7 +610,7 @@ public Builder mergeFrom( * @return Whether the generateTime field is set. */ public boolean hasGenerateTime() { - return generateTimeBuilder_ != null || generateTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -647,11 +657,11 @@ public Builder setGenerateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } generateTime_ = value; - onChanged(); } else { generateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -671,11 +681,11 @@ public Builder setGenerateTime(com.google.protobuf.Timestamp value) { public Builder setGenerateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (generateTimeBuilder_ == null) { generateTime_ = builderForValue.build(); - onChanged(); } else { generateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -694,19 +704,18 @@ public Builder setGenerateTime(com.google.protobuf.Timestamp.Builder builderForV */ public Builder mergeGenerateTime(com.google.protobuf.Timestamp value) { if (generateTimeBuilder_ == null) { - if (generateTime_ != null) { - generateTime_ = - com.google.protobuf.Timestamp.newBuilder(generateTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && generateTime_ != null + && generateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getGenerateTimeBuilder().mergeFrom(value); } else { generateTime_ = value; } - onChanged(); } else { generateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -724,14 +733,13 @@ public Builder mergeGenerateTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp generate_time = 1; */ public Builder clearGenerateTime() { - if (generateTimeBuilder_ == null) { - generateTime_ = null; - onChanged(); - } else { - generateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + generateTime_ = null; + if (generateTimeBuilder_ != null) { + generateTimeBuilder_.dispose(); generateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -749,7 +757,7 @@ public Builder clearGenerateTime() { * .google.protobuf.Timestamp generate_time = 1; */ public com.google.protobuf.Timestamp.Builder getGenerateTimeBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenerateTimeFieldBuilder().getBuilder(); } @@ -1398,7 +1406,9 @@ public com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata getMetadata() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.FeatureValue.MetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.getDefaultInstance() + : metadata_; } private byte memoizedIsInitialized = -1; @@ -1749,6 +1759,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (boolArrayValueBuilder_ != null) { boolArrayValueBuilder_.clear(); } @@ -1761,10 +1772,9 @@ public Builder clear() { if (stringArrayValueBuilder_ != null) { stringArrayValueBuilder_.clear(); } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } valueCase_ = 0; @@ -1796,57 +1806,36 @@ public com.google.cloud.aiplatform.v1beta1.FeatureValue build() { public com.google.cloud.aiplatform.v1beta1.FeatureValue buildPartial() { com.google.cloud.aiplatform.v1beta1.FeatureValue result = new com.google.cloud.aiplatform.v1beta1.FeatureValue(this); - if (valueCase_ == 1) { - result.value_ = value_; - } - if (valueCase_ == 2) { - result.value_ = value_; - } - if (valueCase_ == 5) { - result.value_ = value_; - } - if (valueCase_ == 6) { - result.value_ = value_; + if (bitField0_ != 0) { + buildPartial0(result); } - if (valueCase_ == 7) { - if (boolArrayValueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = boolArrayValueBuilder_.build(); - } - } - if (valueCase_ == 8) { - if (doubleArrayValueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = doubleArrayValueBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.FeatureValue result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000200) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); } - if (valueCase_ == 11) { - if (int64ArrayValueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = int64ArrayValueBuilder_.build(); - } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.FeatureValue result) { + result.valueCase_ = valueCase_; + result.value_ = this.value_; + if (valueCase_ == 7 && boolArrayValueBuilder_ != null) { + result.value_ = boolArrayValueBuilder_.build(); } - if (valueCase_ == 12) { - if (stringArrayValueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = stringArrayValueBuilder_.build(); - } + if (valueCase_ == 8 && doubleArrayValueBuilder_ != null) { + result.value_ = doubleArrayValueBuilder_.build(); } - if (valueCase_ == 13) { - result.value_ = value_; + if (valueCase_ == 11 && int64ArrayValueBuilder_ != null) { + result.value_ = int64ArrayValueBuilder_.build(); } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (valueCase_ == 12 && stringArrayValueBuilder_ != null) { + result.value_ = stringArrayValueBuilder_.build(); } - result.valueCase_ = valueCase_; - onBuilt(); - return result; } @java.lang.Override @@ -2037,7 +2026,7 @@ public Builder mergeFrom( case 114: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 114 default: @@ -2071,6 +2060,8 @@ public Builder clearValue() { return this; } + private int bitField0_; + /** * * @@ -2115,6 +2106,7 @@ public boolean getBoolValue() { * @return This builder for chaining. */ public Builder setBoolValue(boolean value) { + valueCase_ = 1; value_ = value; onChanged(); @@ -2184,6 +2176,7 @@ public double getDoubleValue() { * @return This builder for chaining. */ public Builder setDoubleValue(double value) { + valueCase_ = 2; value_ = value; onChanged(); @@ -2253,6 +2246,7 @@ public long getInt64Value() { * @return This builder for chaining. */ public Builder setInt64Value(long value) { + valueCase_ = 5; value_ = value; onChanged(); @@ -2618,7 +2612,6 @@ public com.google.cloud.aiplatform.v1beta1.BoolArrayOrBuilder getBoolArrayValueO } valueCase_ = 7; onChanged(); - ; return boolArrayValueBuilder_; } @@ -2828,7 +2821,6 @@ public com.google.cloud.aiplatform.v1beta1.DoubleArrayOrBuilder getDoubleArrayVa } valueCase_ = 8; onChanged(); - ; return doubleArrayValueBuilder_; } @@ -3038,7 +3030,6 @@ public com.google.cloud.aiplatform.v1beta1.Int64ArrayOrBuilder getInt64ArrayValu } valueCase_ = 11; onChanged(); - ; return int64ArrayValueBuilder_; } @@ -3248,7 +3239,6 @@ public com.google.cloud.aiplatform.v1beta1.StringArrayOrBuilder getStringArrayVa } valueCase_ = 12; onChanged(); - ; return stringArrayValueBuilder_; } @@ -3342,7 +3332,7 @@ public Builder clearBytesValue() { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -3379,11 +3369,11 @@ public Builder setMetadata(com.google.cloud.aiplatform.v1beta1.FeatureValue.Meta throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3399,11 +3389,11 @@ public Builder setMetadata( com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3417,19 +3407,19 @@ public Builder setMetadata( */ public Builder mergeMetadata(com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3442,14 +3432,13 @@ public Builder mergeMetadata(com.google.cloud.aiplatform.v1beta1.FeatureValue.Me * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -3462,7 +3451,7 @@ public Builder clearMetadata() { * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14; */ public com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueDestination.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueDestination.java index fd6f63751176..b2ee4d8cf69a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueDestination.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueDestination.java @@ -554,6 +554,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (bigqueryDestinationBuilder_ != null) { bigqueryDestinationBuilder_.clear(); } @@ -592,32 +593,33 @@ public com.google.cloud.aiplatform.v1beta1.FeatureValueDestination build() { public com.google.cloud.aiplatform.v1beta1.FeatureValueDestination buildPartial() { com.google.cloud.aiplatform.v1beta1.FeatureValueDestination result = new com.google.cloud.aiplatform.v1beta1.FeatureValueDestination(this); - if (destinationCase_ == 1) { - if (bigqueryDestinationBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = bigqueryDestinationBuilder_.build(); - } - } - if (destinationCase_ == 2) { - if (tfrecordDestinationBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = tfrecordDestinationBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (destinationCase_ == 3) { - if (csvDestinationBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = csvDestinationBuilder_.build(); - } - } - result.destinationCase_ = destinationCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.FeatureValueDestination result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + if (destinationCase_ == 1 && bigqueryDestinationBuilder_ != null) { + result.destination_ = bigqueryDestinationBuilder_.build(); + } + if (destinationCase_ == 2 && tfrecordDestinationBuilder_ != null) { + result.destination_ = tfrecordDestinationBuilder_.build(); + } + if (destinationCase_ == 3 && csvDestinationBuilder_ != null) { + result.destination_ = csvDestinationBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -762,6 +764,8 @@ public Builder clearDestination() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.BigQueryDestination, com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder, @@ -1010,7 +1014,6 @@ public Builder clearBigqueryDestination() { } destinationCase_ = 1; onChanged(); - ; return bigqueryDestinationBuilder_; } @@ -1298,7 +1301,6 @@ public Builder clearTfrecordDestination() { } destinationCase_ = 2; onChanged(); - ; return tfrecordDestinationBuilder_; } @@ -1519,7 +1521,6 @@ public com.google.cloud.aiplatform.v1beta1.CsvDestination.Builder getCsvDestinat } destinationCase_ = 3; onChanged(); - ; return csvDestinationBuilder_; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueList.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueList.java index 15e959c0bc67..14d419a47d8b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueList.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueList.java @@ -68,6 +68,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List values_; /** * @@ -335,6 +337,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); } else { @@ -369,7 +372,16 @@ public com.google.cloud.aiplatform.v1beta1.FeatureValueList build() { public com.google.cloud.aiplatform.v1beta1.FeatureValueList buildPartial() { com.google.cloud.aiplatform.v1beta1.FeatureValueList result = new com.google.cloud.aiplatform.v1beta1.FeatureValueList(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.FeatureValueList result) { if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); @@ -379,8 +391,10 @@ public com.google.cloud.aiplatform.v1beta1.FeatureValueList buildPartial() { } else { result.values_ = valuesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.FeatureValueList result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Featurestore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Featurestore.java index 6d48a6066113..46ee13545dc5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Featurestore.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Featurestore.java @@ -460,7 +460,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MIN_NODE_COUNT_FIELD_NUMBER = 1; - private int minNodeCount_; + private int minNodeCount_ = 0; /** * * @@ -479,7 +479,7 @@ public int getMinNodeCount() { } public static final int MAX_NODE_COUNT_FIELD_NUMBER = 2; - private int maxNodeCount_; + private int maxNodeCount_ = 0; /** * * @@ -722,10 +722,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; minNodeCount_ = 0; - maxNodeCount_ = 0; - return this; } @@ -759,12 +758,24 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling result = new com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling( this); - result.minNodeCount_ = minNodeCount_; - result.maxNodeCount_ = maxNodeCount_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.minNodeCount_ = minNodeCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxNodeCount_ = maxNodeCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -854,13 +865,13 @@ public Builder mergeFrom( case 8: { minNodeCount_ = input.readInt32(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { maxNodeCount_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -880,6 +891,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int minNodeCount_; /** * @@ -913,6 +926,7 @@ public int getMinNodeCount() { public Builder setMinNodeCount(int value) { minNodeCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -929,7 +943,7 @@ public Builder setMinNodeCount(int value) { * @return This builder for chaining. */ public Builder clearMinNodeCount() { - + bitField0_ = (bitField0_ & ~0x00000001); minNodeCount_ = 0; onChanged(); return this; @@ -968,6 +982,7 @@ public int getMaxNodeCount() { public Builder setMaxNodeCount(int value) { maxNodeCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -984,7 +999,7 @@ public Builder setMaxNodeCount(int value) { * @return This builder for chaining. */ public Builder clearMaxNodeCount() { - + bitField0_ = (bitField0_ & ~0x00000002); maxNodeCount_ = 0; onChanged(); return this; @@ -1060,7 +1075,7 @@ public com.google.protobuf.Parser getParserForType() { } public static final int FIXED_NODE_COUNT_FIELD_NUMBER = 2; - private int fixedNodeCount_; + private int fixedNodeCount_ = 0; /** * * @@ -1137,7 +1152,10 @@ public boolean hasScaling() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.ScalingOrBuilder getScalingOrBuilder() { - return getScaling(); + return scaling_ == null + ? com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling + .getDefaultInstance() + : scaling_; } private byte memoizedIsInitialized = -1; @@ -1357,12 +1375,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; fixedNodeCount_ = 0; - - if (scalingBuilder_ == null) { - scaling_ = null; - } else { - scaling_ = null; + scaling_ = null; + if (scalingBuilder_ != null) { + scalingBuilder_.dispose(); scalingBuilder_ = null; } return this; @@ -1395,16 +1412,24 @@ public com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig buil public com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig result = new com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig(this); - result.fixedNodeCount_ = fixedNodeCount_; - if (scalingBuilder_ == null) { - result.scaling_ = scaling_; - } else { - result.scaling_ = scalingBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fixedNodeCount_ = fixedNodeCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.scaling_ = scalingBuilder_ == null ? scaling_ : scalingBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1491,13 +1516,13 @@ public Builder mergeFrom( case 16: { fixedNodeCount_ = input.readInt32(); - + bitField0_ |= 0x00000001; break; } // case 16 case 34: { input.readMessage(getScalingFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 34 default: @@ -1517,6 +1542,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int fixedNodeCount_; /** * @@ -1554,6 +1581,7 @@ public int getFixedNodeCount() { public Builder setFixedNodeCount(int value) { fixedNodeCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1572,7 +1600,7 @@ public Builder setFixedNodeCount(int value) { * @return This builder for chaining. */ public Builder clearFixedNodeCount() { - + bitField0_ = (bitField0_ & ~0x00000001); fixedNodeCount_ = 0; onChanged(); return this; @@ -1600,7 +1628,7 @@ public Builder clearFixedNodeCount() { * @return Whether the scaling field is set. */ public boolean hasScaling() { - return scalingBuilder_ != null || scaling_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1648,11 +1676,11 @@ public Builder setScaling( throw new NullPointerException(); } scaling_ = value; - onChanged(); } else { scalingBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1673,11 +1701,11 @@ public Builder setScaling( builderForValue) { if (scalingBuilder_ == null) { scaling_ = builderForValue.build(); - onChanged(); } else { scalingBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1696,20 +1724,20 @@ public Builder setScaling( public Builder mergeScaling( com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling value) { if (scalingBuilder_ == null) { - if (scaling_ != null) { - scaling_ = - com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling - .newBuilder(scaling_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && scaling_ != null + && scaling_ + != com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling + .getDefaultInstance()) { + getScalingBuilder().mergeFrom(value); } else { scaling_ = value; } - onChanged(); } else { scalingBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1726,14 +1754,13 @@ public Builder mergeScaling( * */ public Builder clearScaling() { - if (scalingBuilder_ == null) { - scaling_ = null; - onChanged(); - } else { - scaling_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + scaling_ = null; + if (scalingBuilder_ != null) { + scalingBuilder_.dispose(); scalingBuilder_ = null; } - + onChanged(); return this; } /** @@ -1751,7 +1778,7 @@ public Builder clearScaling() { */ public com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.Builder getScalingBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getScalingFieldBuilder().getBuilder(); } @@ -1878,7 +1905,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -1974,7 +2003,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 4; @@ -2023,11 +2052,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ETAG_FIELD_NUMBER = 5; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -2090,6 +2121,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -2174,7 +2206,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2273,11 +2308,13 @@ public boolean hasOnlineServingConfig() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfigOrBuilder getOnlineServingConfigOrBuilder() { - return getOnlineServingConfig(); + return onlineServingConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.getDefaultInstance() + : onlineServingConfig_; } public static final int STATE_FIELD_NUMBER = 8; - private int state_; + private int state_ = 0; /** * * @@ -2310,16 +2347,15 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Featurestore.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Featurestore.State result = - com.google.cloud.aiplatform.v1beta1.Featurestore.State.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.Featurestore.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.Featurestore.State.UNRECOGNIZED : result; } public static final int ONLINE_STORAGE_TTL_DAYS_FIELD_NUMBER = 13; - private int onlineStorageTtlDays_; + private int onlineStorageTtlDays_ = 0; /** * * @@ -2395,7 +2431,9 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } private byte memoizedIsInitialized = -1; @@ -2719,37 +2757,30 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } etag_ = ""; - internalGetMutableLabels().clear(); - if (onlineServingConfigBuilder_ == null) { - onlineServingConfig_ = null; - } else { - onlineServingConfig_ = null; + onlineServingConfig_ = null; + if (onlineServingConfigBuilder_ != null) { + onlineServingConfigBuilder_.dispose(); onlineServingConfigBuilder_ = null; } state_ = 0; - onlineStorageTtlDays_ = 0; - - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } return this; @@ -2779,35 +2810,47 @@ public com.google.cloud.aiplatform.v1beta1.Featurestore build() { public com.google.cloud.aiplatform.v1beta1.Featurestore buildPartial() { com.google.cloud.aiplatform.v1beta1.Featurestore result = new com.google.cloud.aiplatform.v1beta1.Featurestore(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Featurestore result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } - result.etag_ = etag_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (onlineServingConfigBuilder_ == null) { - result.onlineServingConfig_ = onlineServingConfig_; - } else { - result.onlineServingConfig_ = onlineServingConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } - result.state_ = state_; - result.onlineStorageTtlDays_ = onlineStorageTtlDays_; - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.onlineServingConfig_ = + onlineServingConfigBuilder_ == null + ? onlineServingConfig_ + : onlineServingConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.onlineStorageTtlDays_ = onlineStorageTtlDays_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -2858,6 +2901,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Featurestore other) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasCreateTime()) { @@ -2868,9 +2912,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Featurestore other) } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000008; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; if (other.hasOnlineServingConfig()) { mergeOnlineServingConfig(other.getOnlineServingConfig()); } @@ -2912,25 +2958,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 26 case 34: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 34 case 42: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 42 case 50: @@ -2942,31 +2988,32 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; break; } // case 50 case 58: { input.readMessage( getOnlineServingConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 58 case 64: { state_ = input.readEnum(); - + bitField0_ |= 0x00000040; break; } // case 64 case 82: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 82 case 104: { onlineStorageTtlDays_ = input.readInt32(); - + bitField0_ |= 0x00000080; break; } // case 104 default: @@ -3052,8 +3099,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3070,8 +3117,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3093,8 +3140,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3119,7 +3166,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -3160,11 +3207,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -3181,11 +3228,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -3201,17 +3248,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -3226,14 +3274,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3248,7 +3295,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -3320,7 +3367,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -3361,11 +3408,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3382,11 +3429,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3402,17 +3449,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3427,14 +3475,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3449,7 +3496,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -3565,8 +3612,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3583,8 +3630,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -3606,8 +3653,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3623,14 +3670,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000010; + onChanged(); return labels_; } @@ -3709,8 +3756,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3748,6 +3797,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -3779,6 +3829,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000010; return internalGetMutableLabels().getMutableMap(); } /** @@ -3806,8 +3857,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; return this; } /** @@ -3830,6 +3881,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; return this; } @@ -3857,7 +3909,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the onlineServingConfig field is set. */ public boolean hasOnlineServingConfig() { - return onlineServingConfigBuilder_ != null || onlineServingConfig_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -3907,11 +3959,11 @@ public Builder setOnlineServingConfig( throw new NullPointerException(); } onlineServingConfig_ = value; - onChanged(); } else { onlineServingConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -3933,11 +3985,11 @@ public Builder setOnlineServingConfig( builderForValue) { if (onlineServingConfigBuilder_ == null) { onlineServingConfig_ = builderForValue.build(); - onChanged(); } else { onlineServingConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -3957,20 +4009,20 @@ public Builder setOnlineServingConfig( public Builder mergeOnlineServingConfig( com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig value) { if (onlineServingConfigBuilder_ == null) { - if (onlineServingConfig_ != null) { - onlineServingConfig_ = - com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.newBuilder( - onlineServingConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && onlineServingConfig_ != null + && onlineServingConfig_ + != com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + .getDefaultInstance()) { + getOnlineServingConfigBuilder().mergeFrom(value); } else { onlineServingConfig_ = value; } - onChanged(); } else { onlineServingConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -3988,14 +4040,13 @@ public Builder mergeOnlineServingConfig( * */ public Builder clearOnlineServingConfig() { - if (onlineServingConfigBuilder_ == null) { - onlineServingConfig_ = null; - onChanged(); - } else { - onlineServingConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + onlineServingConfig_ = null; + if (onlineServingConfigBuilder_ != null) { + onlineServingConfigBuilder_.dispose(); onlineServingConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -4014,7 +4065,7 @@ public Builder clearOnlineServingConfig() { */ public com.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Builder getOnlineServingConfigBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getOnlineServingConfigFieldBuilder().getBuilder(); } @@ -4107,8 +4158,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4127,9 +4178,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Featurestore.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Featurestore.State result = - com.google.cloud.aiplatform.v1beta1.Featurestore.State.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.Featurestore.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.Featurestore.State.UNRECOGNIZED : result; @@ -4152,7 +4202,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.Featurestore.State v if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000040; state_ = value.getNumber(); onChanged(); return this; @@ -4171,7 +4221,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.Featurestore.State v * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000040); state_ = 0; onChanged(); return this; @@ -4218,6 +4268,7 @@ public int getOnlineStorageTtlDays() { public Builder setOnlineStorageTtlDays(int value) { onlineStorageTtlDays_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4238,7 +4289,7 @@ public Builder setOnlineStorageTtlDays(int value) { * @return This builder for chaining. */ public Builder clearOnlineStorageTtlDays() { - + bitField0_ = (bitField0_ & ~0x00000080); onlineStorageTtlDays_ = 0; onChanged(); return this; @@ -4265,7 +4316,7 @@ public Builder clearOnlineStorageTtlDays() { * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -4308,11 +4359,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -4331,11 +4382,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -4352,19 +4403,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1beta1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -4380,14 +4431,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio * */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -4403,7 +4453,7 @@ public Builder clearEncryptionSpec() { * */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringConfig.java index 3b7957c5b5f4..41349d2b8766 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringConfig.java @@ -230,7 +230,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DISABLED_FIELD_NUMBER = 1; - private boolean disabled_; + private boolean disabled_ = false; /** * * @@ -314,11 +314,13 @@ public com.google.protobuf.Duration getMonitoringInterval() { @java.lang.Override @java.lang.Deprecated public com.google.protobuf.DurationOrBuilder getMonitoringIntervalOrBuilder() { - return getMonitoringInterval(); + return monitoringInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : monitoringInterval_; } public static final int MONITORING_INTERVAL_DAYS_FIELD_NUMBER = 3; - private int monitoringIntervalDays_; + private int monitoringIntervalDays_ = 0; /** * * @@ -344,7 +346,7 @@ public int getMonitoringIntervalDays() { } public static final int STALENESS_DAYS_FIELD_NUMBER = 4; - private int stalenessDays_; + private int stalenessDays_ = 0; /** * * @@ -612,18 +614,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; disabled_ = false; - - if (monitoringIntervalBuilder_ == null) { - monitoringInterval_ = null; - } else { - monitoringInterval_ = null; + monitoringInterval_ = null; + if (monitoringIntervalBuilder_ != null) { + monitoringIntervalBuilder_.dispose(); monitoringIntervalBuilder_ = null; } monitoringIntervalDays_ = 0; - stalenessDays_ = 0; - return this; } @@ -657,18 +656,34 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis result = new com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis( this); - result.disabled_ = disabled_; - if (monitoringIntervalBuilder_ == null) { - result.monitoringInterval_ = monitoringInterval_; - } else { - result.monitoringInterval_ = monitoringIntervalBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.monitoringIntervalDays_ = monitoringIntervalDays_; - result.stalenessDays_ = stalenessDays_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disabled_ = disabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.monitoringInterval_ = + monitoringIntervalBuilder_ == null + ? monitoringInterval_ + : monitoringIntervalBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.monitoringIntervalDays_ = monitoringIntervalDays_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.stalenessDays_ = stalenessDays_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -764,26 +779,26 @@ public Builder mergeFrom( case 8: { disabled_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getMonitoringIntervalFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { monitoringIntervalDays_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 32: { stalenessDays_ = input.readInt32(); - + bitField0_ |= 0x00000008; break; } // case 32 default: @@ -803,6 +818,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean disabled_; /** * @@ -854,6 +871,7 @@ public boolean getDisabled() { public Builder setDisabled(boolean value) { disabled_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -879,7 +897,7 @@ public Builder setDisabled(boolean value) { * @return This builder for chaining. */ public Builder clearDisabled() { - + bitField0_ = (bitField0_ & ~0x00000001); disabled_ = false; onChanged(); return this; @@ -908,7 +926,7 @@ public Builder clearDisabled() { */ @java.lang.Deprecated public boolean hasMonitoringInterval() { - return monitoringIntervalBuilder_ != null || monitoringInterval_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -952,11 +970,11 @@ public Builder setMonitoringInterval(com.google.protobuf.Duration value) { throw new NullPointerException(); } monitoringInterval_ = value; - onChanged(); } else { monitoringIntervalBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -973,11 +991,11 @@ public Builder setMonitoringInterval(com.google.protobuf.Duration value) { public Builder setMonitoringInterval(com.google.protobuf.Duration.Builder builderForValue) { if (monitoringIntervalBuilder_ == null) { monitoringInterval_ = builderForValue.build(); - onChanged(); } else { monitoringIntervalBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -993,19 +1011,18 @@ public Builder setMonitoringInterval(com.google.protobuf.Duration.Builder builde @java.lang.Deprecated public Builder mergeMonitoringInterval(com.google.protobuf.Duration value) { if (monitoringIntervalBuilder_ == null) { - if (monitoringInterval_ != null) { - monitoringInterval_ = - com.google.protobuf.Duration.newBuilder(monitoringInterval_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && monitoringInterval_ != null + && monitoringInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMonitoringIntervalBuilder().mergeFrom(value); } else { monitoringInterval_ = value; } - onChanged(); } else { monitoringIntervalBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1020,14 +1037,13 @@ public Builder mergeMonitoringInterval(com.google.protobuf.Duration value) { */ @java.lang.Deprecated public Builder clearMonitoringInterval() { - if (monitoringIntervalBuilder_ == null) { - monitoringInterval_ = null; - onChanged(); - } else { - monitoringInterval_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + monitoringInterval_ = null; + if (monitoringIntervalBuilder_ != null) { + monitoringIntervalBuilder_.dispose(); monitoringIntervalBuilder_ = null; } - + onChanged(); return this; } /** @@ -1042,7 +1058,7 @@ public Builder clearMonitoringInterval() { */ @java.lang.Deprecated public com.google.protobuf.Duration.Builder getMonitoringIntervalBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMonitoringIntervalFieldBuilder().getBuilder(); } @@ -1140,6 +1156,7 @@ public int getMonitoringIntervalDays() { public Builder setMonitoringIntervalDays(int value) { monitoringIntervalDays_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1163,7 +1180,7 @@ public Builder setMonitoringIntervalDays(int value) { * @return This builder for chaining. */ public Builder clearMonitoringIntervalDays() { - + bitField0_ = (bitField0_ & ~0x00000004); monitoringIntervalDays_ = 0; onChanged(); return this; @@ -1204,6 +1221,7 @@ public int getStalenessDays() { public Builder setStalenessDays(int value) { stalenessDays_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1221,7 +1239,7 @@ public Builder setStalenessDays(int value) { * @return This builder for chaining. */ public Builder clearStalenessDays() { - + bitField0_ = (bitField0_ & ~0x00000008); stalenessDays_ = 0; onChanged(); return this; @@ -1814,7 +1832,7 @@ private Baseline(int value) { } public static final int STATE_FIELD_NUMBER = 1; - private int state_; + private int state_ = 0; /** * * @@ -1851,11 +1869,10 @@ public int getStateValue() { public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis .State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State result = com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig - .ImportFeaturesAnalysis.State.valueOf(state_); + .ImportFeaturesAnalysis.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis .State.UNRECOGNIZED @@ -1863,7 +1880,7 @@ public int getStateValue() { } public static final int ANOMALY_DETECTION_BASELINE_FIELD_NUMBER = 2; - private int anomalyDetectionBaseline_; + private int anomalyDetectionBaseline_ = 0; /** * * @@ -1900,12 +1917,11 @@ public int getAnomalyDetectionBaselineValue() { public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis .Baseline getAnomalyDetectionBaseline() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis .Baseline result = com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig - .ImportFeaturesAnalysis.Baseline.valueOf(anomalyDetectionBaseline_); + .ImportFeaturesAnalysis.Baseline.forNumber(anomalyDetectionBaseline_); return result == null ? com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis .Baseline.UNRECOGNIZED @@ -2165,10 +2181,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; state_ = 0; - anomalyDetectionBaseline_ = 0; - return this; } @@ -2203,12 +2218,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig .ImportFeaturesAnalysis(this); - result.state_ = state_; - result.anomalyDetectionBaseline_ = anomalyDetectionBaseline_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.anomalyDetectionBaseline_ = anomalyDetectionBaseline_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2301,13 +2329,13 @@ public Builder mergeFrom( case 8: { state_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { anomalyDetectionBaseline_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -2327,6 +2355,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int state_ = 0; /** * @@ -2362,8 +2392,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2385,12 +2415,11 @@ public Builder setStateValue(int value) { public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis .State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis .State result = com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig - .ImportFeaturesAnalysis.State.valueOf(state_); + .ImportFeaturesAnalysis.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig .ImportFeaturesAnalysis.State.UNRECOGNIZED @@ -2418,7 +2447,7 @@ public Builder setState( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; state_ = value.getNumber(); onChanged(); return this; @@ -2438,7 +2467,7 @@ public Builder setState( * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000001); state_ = 0; onChanged(); return this; @@ -2479,8 +2508,8 @@ public int getAnomalyDetectionBaselineValue() { * @return This builder for chaining. */ public Builder setAnomalyDetectionBaselineValue(int value) { - anomalyDetectionBaseline_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2502,12 +2531,11 @@ public Builder setAnomalyDetectionBaselineValue(int value) { public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis .Baseline getAnomalyDetectionBaseline() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis .Baseline result = com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig - .ImportFeaturesAnalysis.Baseline.valueOf(anomalyDetectionBaseline_); + .ImportFeaturesAnalysis.Baseline.forNumber(anomalyDetectionBaseline_); return result == null ? com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig .ImportFeaturesAnalysis.Baseline.UNRECOGNIZED @@ -2535,7 +2563,7 @@ public Builder setAnomalyDetectionBaseline( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; anomalyDetectionBaseline_ = value.getNumber(); onChanged(); return this; @@ -2555,7 +2583,7 @@ public Builder setAnomalyDetectionBaseline( * @return This builder for chaining. */ public Builder clearAnomalyDetectionBaseline() { - + bitField0_ = (bitField0_ & ~0x00000002); anomalyDetectionBaseline_ = 0; onChanged(); return this; @@ -3051,6 +3079,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; thresholdCase_ = 0; threshold_ = null; return this; @@ -3086,14 +3115,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig result = new com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig( this); - if (thresholdCase_ == 1) { - result.threshold_ = threshold_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.thresholdCase_ = thresholdCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig result) { + result.thresholdCase_ = thresholdCase_; + result.threshold_ = this.threshold_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3222,6 +3262,8 @@ public Builder clearThreshold() { return this; } + private int bitField0_; + /** * * @@ -3284,6 +3326,7 @@ public double getValue() { * @return This builder for chaining. */ public Builder setValue(double value) { + thresholdCase_ = 1; threshold_ = value; onChanged(); @@ -3439,7 +3482,10 @@ public boolean hasSnapshotAnalysis() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysisOrBuilder getSnapshotAnalysisOrBuilder() { - return getSnapshotAnalysis(); + return snapshotAnalysis_ == null + ? com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + .getDefaultInstance() + : snapshotAnalysis_; } public static final int IMPORT_FEATURES_ANALYSIS_FIELD_NUMBER = 2; @@ -3498,7 +3544,10 @@ public boolean hasImportFeaturesAnalysis() { public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig .ImportFeaturesAnalysisOrBuilder getImportFeaturesAnalysisOrBuilder() { - return getImportFeaturesAnalysis(); + return importFeaturesAnalysis_ == null + ? com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis + .getDefaultInstance() + : importFeaturesAnalysis_; } public static final int NUMERICAL_THRESHOLD_CONFIG_FIELD_NUMBER = 3; @@ -3568,7 +3617,10 @@ public boolean hasNumericalThresholdConfig() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfigOrBuilder getNumericalThresholdConfigOrBuilder() { - return getNumericalThresholdConfig(); + return numericalThresholdConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig + .getDefaultInstance() + : numericalThresholdConfig_; } public static final int CATEGORICAL_THRESHOLD_CONFIG_FIELD_NUMBER = 4; @@ -3638,7 +3690,10 @@ public boolean hasCategoricalThresholdConfig() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfigOrBuilder getCategoricalThresholdConfigOrBuilder() { - return getCategoricalThresholdConfig(); + return categoricalThresholdConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig + .getDefaultInstance() + : categoricalThresholdConfig_; } private byte memoizedIsInitialized = -1; @@ -3892,28 +3947,25 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (snapshotAnalysisBuilder_ == null) { - snapshotAnalysis_ = null; - } else { - snapshotAnalysis_ = null; + bitField0_ = 0; + snapshotAnalysis_ = null; + if (snapshotAnalysisBuilder_ != null) { + snapshotAnalysisBuilder_.dispose(); snapshotAnalysisBuilder_ = null; } - if (importFeaturesAnalysisBuilder_ == null) { - importFeaturesAnalysis_ = null; - } else { - importFeaturesAnalysis_ = null; + importFeaturesAnalysis_ = null; + if (importFeaturesAnalysisBuilder_ != null) { + importFeaturesAnalysisBuilder_.dispose(); importFeaturesAnalysisBuilder_ = null; } - if (numericalThresholdConfigBuilder_ == null) { - numericalThresholdConfig_ = null; - } else { - numericalThresholdConfig_ = null; + numericalThresholdConfig_ = null; + if (numericalThresholdConfigBuilder_ != null) { + numericalThresholdConfigBuilder_.dispose(); numericalThresholdConfigBuilder_ = null; } - if (categoricalThresholdConfigBuilder_ == null) { - categoricalThresholdConfig_ = null; - } else { - categoricalThresholdConfig_ = null; + categoricalThresholdConfig_ = null; + if (categoricalThresholdConfigBuilder_ != null) { + categoricalThresholdConfigBuilder_.dispose(); categoricalThresholdConfigBuilder_ = null; } return this; @@ -3944,28 +3996,38 @@ public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig build() public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig result = new com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig(this); - if (snapshotAnalysisBuilder_ == null) { - result.snapshotAnalysis_ = snapshotAnalysis_; - } else { - result.snapshotAnalysis_ = snapshotAnalysisBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (importFeaturesAnalysisBuilder_ == null) { - result.importFeaturesAnalysis_ = importFeaturesAnalysis_; - } else { - result.importFeaturesAnalysis_ = importFeaturesAnalysisBuilder_.build(); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.snapshotAnalysis_ = + snapshotAnalysisBuilder_ == null ? snapshotAnalysis_ : snapshotAnalysisBuilder_.build(); } - if (numericalThresholdConfigBuilder_ == null) { - result.numericalThresholdConfig_ = numericalThresholdConfig_; - } else { - result.numericalThresholdConfig_ = numericalThresholdConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.importFeaturesAnalysis_ = + importFeaturesAnalysisBuilder_ == null + ? importFeaturesAnalysis_ + : importFeaturesAnalysisBuilder_.build(); } - if (categoricalThresholdConfigBuilder_ == null) { - result.categoricalThresholdConfig_ = categoricalThresholdConfig_; - } else { - result.categoricalThresholdConfig_ = categoricalThresholdConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.numericalThresholdConfig_ = + numericalThresholdConfigBuilder_ == null + ? numericalThresholdConfig_ + : numericalThresholdConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.categoricalThresholdConfig_ = + categoricalThresholdConfigBuilder_ == null + ? categoricalThresholdConfig_ + : categoricalThresholdConfigBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -4058,28 +4120,28 @@ public Builder mergeFrom( { input.readMessage( getSnapshotAnalysisFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getImportFeaturesAnalysisFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getNumericalThresholdConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getCategoricalThresholdConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -4099,6 +4161,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis snapshotAnalysis_; private com.google.protobuf.SingleFieldBuilderV3< @@ -4122,7 +4186,7 @@ public Builder mergeFrom( * @return Whether the snapshotAnalysis field is set. */ public boolean hasSnapshotAnalysis() { - return snapshotAnalysisBuilder_ != null || snapshotAnalysis_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -4166,11 +4230,11 @@ public Builder setSnapshotAnalysis( throw new NullPointerException(); } snapshotAnalysis_ = value; - onChanged(); } else { snapshotAnalysisBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -4189,11 +4253,11 @@ public Builder setSnapshotAnalysis( builderForValue) { if (snapshotAnalysisBuilder_ == null) { snapshotAnalysis_ = builderForValue.build(); - onChanged(); } else { snapshotAnalysisBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -4210,20 +4274,20 @@ public Builder setSnapshotAnalysis( public Builder mergeSnapshotAnalysis( com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis value) { if (snapshotAnalysisBuilder_ == null) { - if (snapshotAnalysis_ != null) { - snapshotAnalysis_ = - com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis - .newBuilder(snapshotAnalysis_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && snapshotAnalysis_ != null + && snapshotAnalysis_ + != com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + .getDefaultInstance()) { + getSnapshotAnalysisBuilder().mergeFrom(value); } else { snapshotAnalysis_ = value; } - onChanged(); } else { snapshotAnalysisBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -4238,14 +4302,13 @@ public Builder mergeSnapshotAnalysis( * */ public Builder clearSnapshotAnalysis() { - if (snapshotAnalysisBuilder_ == null) { - snapshotAnalysis_ = null; - onChanged(); - } else { - snapshotAnalysis_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + snapshotAnalysis_ = null; + if (snapshotAnalysisBuilder_ != null) { + snapshotAnalysisBuilder_.dispose(); snapshotAnalysisBuilder_ = null; } - + onChanged(); return this; } /** @@ -4261,7 +4324,7 @@ public Builder clearSnapshotAnalysis() { */ public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.Builder getSnapshotAnalysisBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getSnapshotAnalysisFieldBuilder().getBuilder(); } @@ -4343,7 +4406,7 @@ public Builder clearSnapshotAnalysis() { * @return Whether the importFeaturesAnalysis field is set. */ public boolean hasImportFeaturesAnalysis() { - return importFeaturesAnalysisBuilder_ != null || importFeaturesAnalysis_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -4388,11 +4451,11 @@ public Builder setImportFeaturesAnalysis( throw new NullPointerException(); } importFeaturesAnalysis_ = value; - onChanged(); } else { importFeaturesAnalysisBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -4412,11 +4475,11 @@ public Builder setImportFeaturesAnalysis( builderForValue) { if (importFeaturesAnalysisBuilder_ == null) { importFeaturesAnalysis_ = builderForValue.build(); - onChanged(); } else { importFeaturesAnalysisBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -4434,20 +4497,20 @@ public Builder mergeImportFeaturesAnalysis( com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis value) { if (importFeaturesAnalysisBuilder_ == null) { - if (importFeaturesAnalysis_ != null) { - importFeaturesAnalysis_ = - com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig - .ImportFeaturesAnalysis.newBuilder(importFeaturesAnalysis_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && importFeaturesAnalysis_ != null + && importFeaturesAnalysis_ + != com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + .ImportFeaturesAnalysis.getDefaultInstance()) { + getImportFeaturesAnalysisBuilder().mergeFrom(value); } else { importFeaturesAnalysis_ = value; } - onChanged(); } else { importFeaturesAnalysisBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -4462,14 +4525,13 @@ public Builder mergeImportFeaturesAnalysis( * */ public Builder clearImportFeaturesAnalysis() { - if (importFeaturesAnalysisBuilder_ == null) { - importFeaturesAnalysis_ = null; - onChanged(); - } else { - importFeaturesAnalysis_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + importFeaturesAnalysis_ = null; + if (importFeaturesAnalysisBuilder_ != null) { + importFeaturesAnalysisBuilder_.dispose(); importFeaturesAnalysisBuilder_ = null; } - + onChanged(); return this; } /** @@ -4486,7 +4548,7 @@ public Builder clearImportFeaturesAnalysis() { public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis .Builder getImportFeaturesAnalysisBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getImportFeaturesAnalysisFieldBuilder().getBuilder(); } @@ -4573,7 +4635,7 @@ public Builder clearImportFeaturesAnalysis() { * @return Whether the numericalThresholdConfig field is set. */ public boolean hasNumericalThresholdConfig() { - return numericalThresholdConfigBuilder_ != null || numericalThresholdConfig_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -4625,11 +4687,11 @@ public Builder setNumericalThresholdConfig( throw new NullPointerException(); } numericalThresholdConfig_ = value; - onChanged(); } else { numericalThresholdConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4652,11 +4714,11 @@ public Builder setNumericalThresholdConfig( builderForValue) { if (numericalThresholdConfigBuilder_ == null) { numericalThresholdConfig_ = builderForValue.build(); - onChanged(); } else { numericalThresholdConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4677,20 +4739,20 @@ public Builder setNumericalThresholdConfig( public Builder mergeNumericalThresholdConfig( com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig value) { if (numericalThresholdConfigBuilder_ == null) { - if (numericalThresholdConfig_ != null) { - numericalThresholdConfig_ = - com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig - .newBuilder(numericalThresholdConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && numericalThresholdConfig_ != null + && numericalThresholdConfig_ + != com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig + .getDefaultInstance()) { + getNumericalThresholdConfigBuilder().mergeFrom(value); } else { numericalThresholdConfig_ = value; } - onChanged(); } else { numericalThresholdConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4709,14 +4771,13 @@ public Builder mergeNumericalThresholdConfig( * */ public Builder clearNumericalThresholdConfig() { - if (numericalThresholdConfigBuilder_ == null) { - numericalThresholdConfig_ = null; - onChanged(); - } else { - numericalThresholdConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + numericalThresholdConfig_ = null; + if (numericalThresholdConfigBuilder_ != null) { + numericalThresholdConfigBuilder_.dispose(); numericalThresholdConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -4736,7 +4797,7 @@ public Builder clearNumericalThresholdConfig() { */ public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.Builder getNumericalThresholdConfigBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getNumericalThresholdConfigFieldBuilder().getBuilder(); } @@ -4829,7 +4890,7 @@ public Builder clearNumericalThresholdConfig() { * @return Whether the categoricalThresholdConfig field is set. */ public boolean hasCategoricalThresholdConfig() { - return categoricalThresholdConfigBuilder_ != null || categoricalThresholdConfig_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -4881,11 +4942,11 @@ public Builder setCategoricalThresholdConfig( throw new NullPointerException(); } categoricalThresholdConfig_ = value; - onChanged(); } else { categoricalThresholdConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4908,11 +4969,11 @@ public Builder setCategoricalThresholdConfig( builderForValue) { if (categoricalThresholdConfigBuilder_ == null) { categoricalThresholdConfig_ = builderForValue.build(); - onChanged(); } else { categoricalThresholdConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4933,20 +4994,20 @@ public Builder setCategoricalThresholdConfig( public Builder mergeCategoricalThresholdConfig( com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig value) { if (categoricalThresholdConfigBuilder_ == null) { - if (categoricalThresholdConfig_ != null) { - categoricalThresholdConfig_ = - com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig - .newBuilder(categoricalThresholdConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && categoricalThresholdConfig_ != null + && categoricalThresholdConfig_ + != com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig + .getDefaultInstance()) { + getCategoricalThresholdConfigBuilder().mergeFrom(value); } else { categoricalThresholdConfig_ = value; } - onChanged(); } else { categoricalThresholdConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4965,14 +5026,13 @@ public Builder mergeCategoricalThresholdConfig( * */ public Builder clearCategoricalThresholdConfig() { - if (categoricalThresholdConfigBuilder_ == null) { - categoricalThresholdConfig_ = null; - onChanged(); - } else { - categoricalThresholdConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + categoricalThresholdConfig_ = null; + if (categoricalThresholdConfigBuilder_ != null) { + categoricalThresholdConfigBuilder_.dispose(); categoricalThresholdConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -4992,7 +5052,7 @@ public Builder clearCategoricalThresholdConfig() { */ public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.Builder getCategoricalThresholdConfigBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getCategoricalThresholdConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOrBuilder.java index 4bc2789a716f..ff2d942fb082 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOrBuilder.java @@ -231,7 +231,6 @@ public interface FeaturestoreOrBuilder * * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FilterSplit.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FilterSplit.java index ff3f816dcef9..6b9b1fc76cdd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FilterSplit.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FilterSplit.java @@ -75,7 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRAINING_FILTER_FIELD_NUMBER = 1; - private volatile java.lang.Object trainingFilter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object trainingFilter_ = ""; /** * * @@ -136,7 +138,9 @@ public com.google.protobuf.ByteString getTrainingFilterBytes() { } public static final int VALIDATION_FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object validationFilter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object validationFilter_ = ""; /** * * @@ -197,7 +201,9 @@ public com.google.protobuf.ByteString getValidationFilterBytes() { } public static final int TEST_FILTER_FIELD_NUMBER = 3; - private volatile java.lang.Object testFilter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object testFilter_ = ""; /** * * @@ -477,12 +483,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; trainingFilter_ = ""; - validationFilter_ = ""; - testFilter_ = ""; - return this; } @@ -510,13 +514,26 @@ public com.google.cloud.aiplatform.v1beta1.FilterSplit build() { public com.google.cloud.aiplatform.v1beta1.FilterSplit buildPartial() { com.google.cloud.aiplatform.v1beta1.FilterSplit result = new com.google.cloud.aiplatform.v1beta1.FilterSplit(this); - result.trainingFilter_ = trainingFilter_; - result.validationFilter_ = validationFilter_; - result.testFilter_ = testFilter_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.FilterSplit result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trainingFilter_ = trainingFilter_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validationFilter_ = validationFilter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.testFilter_ = testFilter_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -565,14 +582,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.FilterSplit other) return this; if (!other.getTrainingFilter().isEmpty()) { trainingFilter_ = other.trainingFilter_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getValidationFilter().isEmpty()) { validationFilter_ = other.validationFilter_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getTestFilter().isEmpty()) { testFilter_ = other.testFilter_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -604,19 +624,19 @@ public Builder mergeFrom( case 10: { trainingFilter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { validationFilter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { testFilter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -636,6 +656,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object trainingFilter_ = ""; /** * @@ -715,8 +737,8 @@ public Builder setTrainingFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - trainingFilter_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -738,8 +760,8 @@ public Builder setTrainingFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTrainingFilter() { - trainingFilter_ = getDefaultInstance().getTrainingFilter(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -766,8 +788,8 @@ public Builder setTrainingFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - trainingFilter_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -851,8 +873,8 @@ public Builder setValidationFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - validationFilter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -874,8 +896,8 @@ public Builder setValidationFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearValidationFilter() { - validationFilter_ = getDefaultInstance().getValidationFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -902,8 +924,8 @@ public Builder setValidationFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - validationFilter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -987,8 +1009,8 @@ public Builder setTestFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - testFilter_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1010,8 +1032,8 @@ public Builder setTestFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTestFilter() { - testFilter_ = getDefaultInstance().getTestFilter(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1038,8 +1060,8 @@ public Builder setTestFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - testFilter_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FractionSplit.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FractionSplit.java index 73c2423722c9..38eb9ed6f5bb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FractionSplit.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FractionSplit.java @@ -71,7 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRAINING_FRACTION_FIELD_NUMBER = 1; - private double trainingFraction_; + private double trainingFraction_ = 0D; /** * * @@ -89,7 +89,7 @@ public double getTrainingFraction() { } public static final int VALIDATION_FRACTION_FIELD_NUMBER = 2; - private double validationFraction_; + private double validationFraction_ = 0D; /** * * @@ -107,7 +107,7 @@ public double getValidationFraction() { } public static final int TEST_FRACTION_FIELD_NUMBER = 3; - private double testFraction_; + private double testFraction_ = 0D; /** * * @@ -356,12 +356,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; trainingFraction_ = 0D; - validationFraction_ = 0D; - testFraction_ = 0D; - return this; } @@ -389,13 +387,26 @@ public com.google.cloud.aiplatform.v1beta1.FractionSplit build() { public com.google.cloud.aiplatform.v1beta1.FractionSplit buildPartial() { com.google.cloud.aiplatform.v1beta1.FractionSplit result = new com.google.cloud.aiplatform.v1beta1.FractionSplit(this); - result.trainingFraction_ = trainingFraction_; - result.validationFraction_ = validationFraction_; - result.testFraction_ = testFraction_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.FractionSplit result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trainingFraction_ = trainingFraction_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validationFraction_ = validationFraction_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.testFraction_ = testFraction_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -480,19 +491,19 @@ public Builder mergeFrom( case 9: { trainingFraction_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 case 17: { validationFraction_ = input.readDouble(); - + bitField0_ |= 0x00000002; break; } // case 17 case 25: { testFraction_ = input.readDouble(); - + bitField0_ |= 0x00000004; break; } // case 25 default: @@ -512,6 +523,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private double trainingFraction_; /** * @@ -543,6 +556,7 @@ public double getTrainingFraction() { public Builder setTrainingFraction(double value) { trainingFraction_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -558,7 +572,7 @@ public Builder setTrainingFraction(double value) { * @return This builder for chaining. */ public Builder clearTrainingFraction() { - + bitField0_ = (bitField0_ & ~0x00000001); trainingFraction_ = 0D; onChanged(); return this; @@ -595,6 +609,7 @@ public double getValidationFraction() { public Builder setValidationFraction(double value) { validationFraction_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -610,7 +625,7 @@ public Builder setValidationFraction(double value) { * @return This builder for chaining. */ public Builder clearValidationFraction() { - + bitField0_ = (bitField0_ & ~0x00000002); validationFraction_ = 0D; onChanged(); return this; @@ -647,6 +662,7 @@ public double getTestFraction() { public Builder setTestFraction(double value) { testFraction_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -662,7 +678,7 @@ public Builder setTestFraction(double value) { * @return This builder for chaining. */ public Builder clearTestFraction() { - + bitField0_ = (bitField0_ & ~0x00000004); testFraction_ = 0D; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GcsDestination.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GcsDestination.java index c40b1cd52c75..72d3cc212e0d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GcsDestination.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GcsDestination.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 1; - private volatile java.lang.Object outputUriPrefix_; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputUriPrefix_ = ""; /** * * @@ -319,8 +321,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; outputUriPrefix_ = ""; - return this; } @@ -348,11 +350,20 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination build() { public com.google.cloud.aiplatform.v1beta1.GcsDestination buildPartial() { com.google.cloud.aiplatform.v1beta1.GcsDestination result = new com.google.cloud.aiplatform.v1beta1.GcsDestination(this); - result.outputUriPrefix_ = outputUriPrefix_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GcsDestination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.outputUriPrefix_ = outputUriPrefix_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -401,6 +412,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GcsDestination othe return this; if (!other.getOutputUriPrefix().isEmpty()) { outputUriPrefix_ = other.outputUriPrefix_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -432,7 +444,7 @@ public Builder mergeFrom( case 10: { outputUriPrefix_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -452,6 +464,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object outputUriPrefix_ = ""; /** * @@ -522,8 +536,8 @@ public Builder setOutputUriPrefix(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - outputUriPrefix_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -542,8 +556,8 @@ public Builder setOutputUriPrefix(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOutputUriPrefix() { - outputUriPrefix_ = getDefaultInstance().getOutputUriPrefix(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -567,8 +581,8 @@ public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - outputUriPrefix_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GcsSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GcsSource.java index 420d28f64525..1736cce69eaf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GcsSource.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GcsSource.java @@ -68,6 +68,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int URIS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList uris_; /** * @@ -340,6 +342,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; @@ -369,14 +372,24 @@ public com.google.cloud.aiplatform.v1beta1.GcsSource build() { public com.google.cloud.aiplatform.v1beta1.GcsSource buildPartial() { com.google.cloud.aiplatform.v1beta1.GcsSource result = new com.google.cloud.aiplatform.v1beta1.GcsSource(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.GcsSource result) { if (((bitField0_ & 0x00000001) != 0)) { uris_ = uris_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.uris_ = uris_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GcsSource result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenericOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenericOperationMetadata.java index ea26bd03cb1b..58e7622701ba 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenericOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenericOperationMetadata.java @@ -68,6 +68,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARTIAL_FAILURES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List partialFailures_; /** * @@ -207,7 +209,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 3; @@ -262,7 +264,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } private byte memoizedIsInitialized = -1; @@ -493,6 +495,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (partialFailuresBuilder_ == null) { partialFailures_ = java.util.Collections.emptyList(); } else { @@ -500,16 +503,14 @@ public Builder clear() { partialFailuresBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } return this; @@ -540,7 +541,16 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata build() { public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata result) { if (partialFailuresBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { partialFailures_ = java.util.Collections.unmodifiableList(partialFailures_); @@ -550,18 +560,17 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata buildPartial } else { result.partialFailures_ = partialFailuresBuilder_.build(); } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -685,13 +694,13 @@ public Builder mergeFrom( case 18: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -1168,7 +1177,7 @@ public java.util.List getPartialFailuresBuilderLi * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1209,11 +1218,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1230,11 +1239,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1250,17 +1259,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1275,14 +1285,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1297,7 +1306,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1371,7 +1380,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1416,11 +1425,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1439,11 +1448,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1461,17 +1470,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1488,14 +1498,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1512,7 +1521,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetAnnotationSpecRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetAnnotationSpecRequest.java index 643fb72caa89..8ce51f62cd68 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetAnnotationSpecRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetAnnotationSpecRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -168,7 +170,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -384,12 +386,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -420,16 +421,24 @@ public com.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest build() { public com.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest result = new com.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest(this); - result.name_ = name_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -479,6 +488,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasReadMask()) { @@ -513,13 +523,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -539,6 +549,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -612,8 +624,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -633,8 +645,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -659,8 +671,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -683,7 +695,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -718,11 +730,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -737,11 +749,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -755,17 +767,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -778,14 +791,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 2; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -798,7 +810,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 2; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetArtifactRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetArtifactRequest.java index b2bd82bb1395..80f2c4508c70 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetArtifactRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetArtifactRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1beta1.GetArtifactRequest build() { public com.google.cloud.aiplatform.v1beta1.GetArtifactRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetArtifactRequest result = new com.google.cloud.aiplatform.v1beta1.GetArtifactRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GetArtifactRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetArtifactRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetBatchPredictionJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetBatchPredictionJobRequest.java index 58368a2ae4e6..a02713b66d8c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetBatchPredictionJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetBatchPredictionJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -354,11 +356,21 @@ public com.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest build() public com.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest result = new com.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -409,6 +421,7 @@ public Builder mergeFrom( return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -440,7 +453,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -460,6 +473,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -533,8 +548,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -554,8 +569,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -580,8 +595,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetContextRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetContextRequest.java index 4dc8fab7a944..002f23937e2a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetContextRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetContextRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1beta1.GetContextRequest build() { public com.google.cloud.aiplatform.v1beta1.GetContextRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetContextRequest result = new com.google.cloud.aiplatform.v1beta1.GetContextRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GetContextRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetContextRequest o return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetCustomJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetCustomJobRequest.java index 19d2e94ce297..94f06b6517c7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetCustomJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetCustomJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1beta1.GetCustomJobRequest build() { public com.google.cloud.aiplatform.v1beta1.GetCustomJobRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetCustomJobRequest result = new com.google.cloud.aiplatform.v1beta1.GetCustomJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GetCustomJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetCustomJobRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDataLabelingJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDataLabelingJobRequest.java index 822becd01412..5be45834cdd7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDataLabelingJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDataLabelingJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -354,11 +356,21 @@ public com.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest build() { public com.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest result = new com.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -408,6 +420,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetDataLabelingJobR return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -439,7 +452,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +472,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -532,8 +547,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -553,8 +568,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -579,8 +594,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDatasetRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDatasetRequest.java index bfa3ac1c8eca..9c0c4a4ef03e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDatasetRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDatasetRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -164,7 +166,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -380,12 +382,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -415,16 +416,23 @@ public com.google.cloud.aiplatform.v1beta1.GetDatasetRequest build() { public com.google.cloud.aiplatform.v1beta1.GetDatasetRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetDatasetRequest result = new com.google.cloud.aiplatform.v1beta1.GetDatasetRequest(this); - result.name_ = name_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GetDatasetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -473,6 +481,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetDatasetRequest o return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasReadMask()) { @@ -507,13 +516,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -533,6 +542,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -600,8 +611,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -619,8 +630,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -643,8 +654,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -667,7 +678,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -702,11 +713,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -721,11 +732,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -739,17 +750,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -762,14 +774,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 2; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -782,7 +793,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 2; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDeploymentResourcePoolRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDeploymentResourcePoolRequest.java index 50f5b03f2fb8..4a8afa2758c3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDeploymentResourcePoolRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDeploymentResourcePoolRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -325,8 +327,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -356,11 +358,21 @@ public com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest buil public com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest result = new com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -412,6 +424,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -443,7 +456,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -463,6 +476,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -536,8 +551,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -557,8 +572,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -583,8 +598,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEndpointRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEndpointRequest.java index e4ee2c707dad..62793d985a04 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEndpointRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEndpointRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1beta1.GetEndpointRequest build() { public com.google.cloud.aiplatform.v1beta1.GetEndpointRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetEndpointRequest result = new com.google.cloud.aiplatform.v1beta1.GetEndpointRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GetEndpointRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetEndpointRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEntityTypeRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEntityTypeRequest.java index 0fc07cdd41c5..311181fec488 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEntityTypeRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetEntityTypeRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest build() { public com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest result = new com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetEntityTypeReques return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetExecutionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetExecutionRequest.java index 434011231c85..d7c0a246e49e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetExecutionRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetExecutionRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1beta1.GetExecutionRequest build() { public com.google.cloud.aiplatform.v1beta1.GetExecutionRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetExecutionRequest result = new com.google.cloud.aiplatform.v1beta1.GetExecutionRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GetExecutionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetExecutionRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeatureRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeatureRequest.java index 0e304ba26e0a..1bdc48dc3c3f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeatureRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeatureRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1beta1.GetFeatureRequest build() { public com.google.cloud.aiplatform.v1beta1.GetFeatureRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetFeatureRequest result = new com.google.cloud.aiplatform.v1beta1.GetFeatureRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GetFeatureRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetFeatureRequest o return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeaturestoreRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeaturestoreRequest.java index aabe07311cc0..110032196d9b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeaturestoreRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetFeaturestoreRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -320,8 +322,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -349,11 +351,20 @@ public com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest build() { public com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest result = new com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -402,6 +413,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequ return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -433,7 +445,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -453,6 +465,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -520,8 +534,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -539,8 +553,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -563,8 +577,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetHyperparameterTuningJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetHyperparameterTuningJobRequest.java index a20440d12ab1..856dae815be3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetHyperparameterTuningJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetHyperparameterTuningJobRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -327,8 +329,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -358,11 +360,21 @@ public com.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest bui public com.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest result = new com.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -414,6 +426,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -445,7 +458,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -465,6 +478,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -538,8 +553,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -559,8 +574,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -585,8 +600,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexEndpointRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexEndpointRequest.java index 1ac71a3b6fe5..e379ee8c06e5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexEndpointRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexEndpointRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest build() { public com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest result = new com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetIndexEndpointReq return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexRequest.java index e333182760ea..1ba69fab07d3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetIndexRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1beta1.GetIndexRequest build() { public com.google.cloud.aiplatform.v1beta1.GetIndexRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetIndexRequest result = new com.google.cloud.aiplatform.v1beta1.GetIndexRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GetIndexRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -405,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetIndexRequest oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -436,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -456,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -529,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -550,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -576,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataSchemaRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataSchemaRequest.java index d8fb35539774..3c453febc532 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataSchemaRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataSchemaRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -354,11 +356,21 @@ public com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest build() { public com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest result = new com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -408,6 +420,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -439,7 +452,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +472,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -532,8 +547,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -553,8 +568,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -579,8 +594,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataStoreRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataStoreRequest.java index bb58929ddae6..2d5650694b09 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataStoreRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetMetadataStoreRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest build() { public com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest result = new com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetMetadataStoreReq return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelDeploymentMonitoringJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelDeploymentMonitoringJobRequest.java index a577224ec3f8..b4074bbfa42c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelDeploymentMonitoringJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelDeploymentMonitoringJobRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -336,8 +338,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -369,11 +371,21 @@ public com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobReques buildPartial() { com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest result = new com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -426,6 +438,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -457,7 +470,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -477,6 +490,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -550,8 +565,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -571,8 +586,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -597,8 +612,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelEvaluationRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelEvaluationRequest.java index 1e7686a5cd9d..2110f38a703b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelEvaluationRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelEvaluationRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -354,11 +356,21 @@ public com.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest build() { public com.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest result = new com.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -408,6 +420,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetModelEvaluationR return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -439,7 +452,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +472,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -532,8 +547,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -553,8 +568,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -579,8 +594,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelEvaluationSliceRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelEvaluationSliceRequest.java index d21e22c5e0d7..7a337fc1f010 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelEvaluationSliceRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelEvaluationSliceRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -327,8 +329,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -358,11 +360,21 @@ public com.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest build( public com.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest result = new com.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -414,6 +426,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -445,7 +458,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -465,6 +478,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -538,8 +553,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -559,8 +574,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -585,8 +600,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelRequest.java index f96efedabe5a..e98cb7c8db2d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -339,8 +341,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -368,11 +370,20 @@ public com.google.cloud.aiplatform.v1beta1.GetModelRequest build() { public com.google.cloud.aiplatform.v1beta1.GetModelRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetModelRequest result = new com.google.cloud.aiplatform.v1beta1.GetModelRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GetModelRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -421,6 +432,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetModelRequest oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -452,7 +464,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -472,6 +484,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -569,8 +583,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -598,8 +612,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -632,8 +646,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetPipelineJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetPipelineJobRequest.java index f9a46b6aa19f..4cc35387b603 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetPipelineJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetPipelineJobRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest build() { public com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest result = new com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetPipelineJobReque return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetSpecialistPoolRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetSpecialistPoolRequest.java index d8baa80e5e84..ac20a3efef29 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetSpecialistPoolRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetSpecialistPoolRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -354,11 +356,21 @@ public com.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest build() { public com.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest result = new com.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -408,6 +420,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -439,7 +452,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +472,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -532,8 +547,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -553,8 +568,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -579,8 +594,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetStudyRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetStudyRequest.java index 06cee7cac070..c2a17d28a017 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetStudyRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetStudyRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -321,8 +323,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -350,11 +352,20 @@ public com.google.cloud.aiplatform.v1beta1.GetStudyRequest build() { public com.google.cloud.aiplatform.v1beta1.GetStudyRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetStudyRequest result = new com.google.cloud.aiplatform.v1beta1.GetStudyRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GetStudyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -403,6 +414,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetStudyRequest oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -434,7 +446,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -454,6 +466,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -524,8 +538,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -544,8 +558,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -569,8 +583,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardExperimentRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardExperimentRequest.java index 1c2bf8ec5eaa..642e5cece4f4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardExperimentRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardExperimentRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -327,8 +329,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -358,11 +360,21 @@ public com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest build public com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest result = new com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -414,6 +426,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -445,7 +458,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -465,6 +478,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -538,8 +553,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -559,8 +574,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -585,8 +600,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRequest.java index 257eee8de0b0..d68e543d3e21 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest build() { public com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest result = new com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GetTensorboardRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetTensorboardReque return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRunRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRunRequest.java index e7fcc787253f..c94233208bad 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRunRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardRunRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -354,11 +356,21 @@ public com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest build() { public com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest result = new com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -408,6 +420,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetTensorboardRunRe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -439,7 +452,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +472,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -532,8 +547,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -553,8 +568,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -579,8 +594,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardTimeSeriesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardTimeSeriesRequest.java index ea1e29236b59..b240db7833ec 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardTimeSeriesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTensorboardTimeSeriesRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -327,8 +329,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -358,11 +360,21 @@ public com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest build public com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest result = new com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -414,6 +426,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -445,7 +458,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -465,6 +478,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -538,8 +553,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -559,8 +574,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -585,8 +600,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTrainingPipelineRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTrainingPipelineRequest.java index a1f2cb352a1e..35c88d3ba4b0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTrainingPipelineRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTrainingPipelineRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -354,11 +356,21 @@ public com.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest build() { public com.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest result = new com.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -408,6 +420,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetTrainingPipeline return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -439,7 +452,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +472,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -532,8 +547,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -553,8 +568,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -579,8 +594,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTrialRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTrialRequest.java index 4989d5172305..9a3c2aa842f6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTrialRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetTrialRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1beta1.GetTrialRequest build() { public com.google.cloud.aiplatform.v1beta1.GetTrialRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.GetTrialRequest result = new com.google.cloud.aiplatform.v1beta1.GetTrialRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GetTrialRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -405,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetTrialRequest oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -436,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -456,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -529,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -550,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -576,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJob.java index 688ccd789ca9..09c65e99db2a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJob.java @@ -84,7 +84,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -133,7 +135,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -236,11 +240,13 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec getStudySpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.StudySpecOrBuilder getStudySpecOrBuilder() { - return getStudySpec(); + return studySpec_ == null + ? com.google.cloud.aiplatform.v1beta1.StudySpec.getDefaultInstance() + : studySpec_; } public static final int MAX_TRIAL_COUNT_FIELD_NUMBER = 5; - private int maxTrialCount_; + private int maxTrialCount_ = 0; /** * * @@ -258,7 +264,7 @@ public int getMaxTrialCount() { } public static final int PARALLEL_TRIAL_COUNT_FIELD_NUMBER = 6; - private int parallelTrialCount_; + private int parallelTrialCount_ = 0; /** * * @@ -276,7 +282,7 @@ public int getParallelTrialCount() { } public static final int MAX_FAILED_TRIAL_COUNT_FIELD_NUMBER = 7; - private int maxFailedTrialCount_; + private int maxFailedTrialCount_ = 0; /** * * @@ -350,10 +356,14 @@ public com.google.cloud.aiplatform.v1beta1.CustomJobSpec getTrialJobSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.CustomJobSpecOrBuilder getTrialJobSpecOrBuilder() { - return getTrialJobSpec(); + return trialJobSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.CustomJobSpec.getDefaultInstance() + : trialJobSpec_; } public static final int TRIALS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") private java.util.List trials_; /** * @@ -433,7 +443,7 @@ public com.google.cloud.aiplatform.v1beta1.TrialOrBuilder getTrialsOrBuilder(int } public static final int STATE_FIELD_NUMBER = 10; - private int state_; + private int state_ = 0; /** * * @@ -466,9 +476,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.JobState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.JobState result = - com.google.cloud.aiplatform.v1beta1.JobState.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.JobState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.JobState.UNRECOGNIZED : result; } @@ -518,7 +527,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int START_TIME_FIELD_NUMBER = 12; @@ -570,7 +579,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 13; @@ -625,7 +634,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 14; @@ -677,7 +686,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ERROR_FIELD_NUMBER = 15; @@ -726,7 +735,7 @@ public com.google.rpc.Status getError() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return getError(); + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } public static final int LABELS_FIELD_NUMBER = 16; @@ -742,6 +751,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -811,7 +821,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 16; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -894,7 +907,9 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } private byte memoizedIsInitialized = -1; @@ -1302,26 +1317,20 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - - if (studySpecBuilder_ == null) { - studySpec_ = null; - } else { - studySpec_ = null; + studySpec_ = null; + if (studySpecBuilder_ != null) { + studySpecBuilder_.dispose(); studySpecBuilder_ = null; } maxTrialCount_ = 0; - parallelTrialCount_ = 0; - maxFailedTrialCount_ = 0; - - if (trialJobSpecBuilder_ == null) { - trialJobSpec_ = null; - } else { - trialJobSpec_ = null; + trialJobSpec_ = null; + if (trialJobSpecBuilder_ != null) { + trialJobSpecBuilder_.dispose(); trialJobSpecBuilder_ = null; } if (trialsBuilder_ == null) { @@ -1330,44 +1339,37 @@ public Builder clear() { trials_ = null; trialsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); state_ = 0; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - if (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } internalGetMutableLabels().clear(); - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } return this; @@ -1397,66 +1399,77 @@ public com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob build() { public com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob buildPartial() { com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob result = new com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - if (studySpecBuilder_ == null) { - result.studySpec_ = studySpec_; - } else { - result.studySpec_ = studySpecBuilder_.build(); - } - result.maxTrialCount_ = maxTrialCount_; - result.parallelTrialCount_ = parallelTrialCount_; - result.maxFailedTrialCount_ = maxFailedTrialCount_; - if (trialJobSpecBuilder_ == null) { - result.trialJobSpec_ = trialJobSpec_; - } else { - result.trialJobSpec_ = trialJobSpecBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob result) { if (trialsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { trials_ = java.util.Collections.unmodifiableList(trials_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); } result.trials_ = trials_; } else { result.trials_ = trialsBuilder_.build(); } - result.state_ = state_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.studySpec_ = studySpecBuilder_ == null ? studySpec_ : studySpecBuilder_.build(); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.maxTrialCount_ = maxTrialCount_; } - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.parallelTrialCount_ = parallelTrialCount_; } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.maxFailedTrialCount_ = maxFailedTrialCount_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.trialJobSpec_ = + trialJobSpecBuilder_ == null ? trialJobSpec_ : trialJobSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -1507,10 +1520,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.HyperparameterTunin return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasStudySpec()) { @@ -1532,7 +1547,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.HyperparameterTunin if (!other.trials_.isEmpty()) { if (trials_.isEmpty()) { trials_ = other.trials_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureTrialsIsMutable(); trials_.addAll(other.trials_); @@ -1545,7 +1560,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.HyperparameterTunin trialsBuilder_.dispose(); trialsBuilder_ = null; trials_ = other.trials_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); trialsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTrialsFieldBuilder() @@ -1574,6 +1589,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.HyperparameterTunin mergeError(other.getError()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00004000; if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } @@ -1606,43 +1622,43 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 34: { input.readMessage(getStudySpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 34 case 40: { maxTrialCount_ = input.readInt32(); - + bitField0_ |= 0x00000008; break; } // case 40 case 48: { parallelTrialCount_ = input.readInt32(); - + bitField0_ |= 0x00000010; break; } // case 48 case 56: { maxFailedTrialCount_ = input.readInt32(); - + bitField0_ |= 0x00000020; break; } // case 56 case 66: { input.readMessage(getTrialJobSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 66 case 74: @@ -1661,37 +1677,37 @@ public Builder mergeFrom( case 80: { state_ = input.readEnum(); - + bitField0_ |= 0x00000100; break; } // case 80 case 90: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 90 case 98: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 98 case 106: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000800; break; } // case 106 case 114: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00001000; break; } // case 114 case 122: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00002000; break; } // case 122 case 130: @@ -1703,12 +1719,13 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00004000; break; } // case 130 case 138: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00008000; break; } // case 138 default: @@ -1791,8 +1808,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1808,8 +1825,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1830,8 +1847,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1903,8 +1920,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1922,8 +1939,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1946,8 +1963,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1972,7 +1989,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the studySpec field is set. */ public boolean hasStudySpec() { - return studySpecBuilder_ != null || studySpec_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -2013,11 +2030,11 @@ public Builder setStudySpec(com.google.cloud.aiplatform.v1beta1.StudySpec value) throw new NullPointerException(); } studySpec_ = value; - onChanged(); } else { studySpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2035,11 +2052,11 @@ public Builder setStudySpec( com.google.cloud.aiplatform.v1beta1.StudySpec.Builder builderForValue) { if (studySpecBuilder_ == null) { studySpec_ = builderForValue.build(); - onChanged(); } else { studySpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2055,19 +2072,18 @@ public Builder setStudySpec( */ public Builder mergeStudySpec(com.google.cloud.aiplatform.v1beta1.StudySpec value) { if (studySpecBuilder_ == null) { - if (studySpec_ != null) { - studySpec_ = - com.google.cloud.aiplatform.v1beta1.StudySpec.newBuilder(studySpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && studySpec_ != null + && studySpec_ != com.google.cloud.aiplatform.v1beta1.StudySpec.getDefaultInstance()) { + getStudySpecBuilder().mergeFrom(value); } else { studySpec_ = value; } - onChanged(); } else { studySpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2082,14 +2098,13 @@ public Builder mergeStudySpec(com.google.cloud.aiplatform.v1beta1.StudySpec valu * */ public Builder clearStudySpec() { - if (studySpecBuilder_ == null) { - studySpec_ = null; - onChanged(); - } else { - studySpec_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + studySpec_ = null; + if (studySpecBuilder_ != null) { + studySpecBuilder_.dispose(); studySpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -2104,7 +2119,7 @@ public Builder clearStudySpec() { * */ public com.google.cloud.aiplatform.v1beta1.StudySpec.Builder getStudySpecBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getStudySpecFieldBuilder().getBuilder(); } @@ -2187,6 +2202,7 @@ public int getMaxTrialCount() { public Builder setMaxTrialCount(int value) { maxTrialCount_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2202,7 +2218,7 @@ public Builder setMaxTrialCount(int value) { * @return This builder for chaining. */ public Builder clearMaxTrialCount() { - + bitField0_ = (bitField0_ & ~0x00000008); maxTrialCount_ = 0; onChanged(); return this; @@ -2239,6 +2255,7 @@ public int getParallelTrialCount() { public Builder setParallelTrialCount(int value) { parallelTrialCount_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2254,7 +2271,7 @@ public Builder setParallelTrialCount(int value) { * @return This builder for chaining. */ public Builder clearParallelTrialCount() { - + bitField0_ = (bitField0_ & ~0x00000010); parallelTrialCount_ = 0; onChanged(); return this; @@ -2297,6 +2314,7 @@ public int getMaxFailedTrialCount() { public Builder setMaxFailedTrialCount(int value) { maxFailedTrialCount_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2315,7 +2333,7 @@ public Builder setMaxFailedTrialCount(int value) { * @return This builder for chaining. */ public Builder clearMaxFailedTrialCount() { - + bitField0_ = (bitField0_ & ~0x00000020); maxFailedTrialCount_ = 0; onChanged(); return this; @@ -2342,7 +2360,7 @@ public Builder clearMaxFailedTrialCount() { * @return Whether the trialJobSpec field is set. */ public boolean hasTrialJobSpec() { - return trialJobSpecBuilder_ != null || trialJobSpec_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2385,11 +2403,11 @@ public Builder setTrialJobSpec(com.google.cloud.aiplatform.v1beta1.CustomJobSpec throw new NullPointerException(); } trialJobSpec_ = value; - onChanged(); } else { trialJobSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2408,11 +2426,11 @@ public Builder setTrialJobSpec( com.google.cloud.aiplatform.v1beta1.CustomJobSpec.Builder builderForValue) { if (trialJobSpecBuilder_ == null) { trialJobSpec_ = builderForValue.build(); - onChanged(); } else { trialJobSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2429,19 +2447,19 @@ public Builder setTrialJobSpec( */ public Builder mergeTrialJobSpec(com.google.cloud.aiplatform.v1beta1.CustomJobSpec value) { if (trialJobSpecBuilder_ == null) { - if (trialJobSpec_ != null) { - trialJobSpec_ = - com.google.cloud.aiplatform.v1beta1.CustomJobSpec.newBuilder(trialJobSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && trialJobSpec_ != null + && trialJobSpec_ + != com.google.cloud.aiplatform.v1beta1.CustomJobSpec.getDefaultInstance()) { + getTrialJobSpecBuilder().mergeFrom(value); } else { trialJobSpec_ = value; } - onChanged(); } else { trialJobSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2457,14 +2475,13 @@ public Builder mergeTrialJobSpec(com.google.cloud.aiplatform.v1beta1.CustomJobSp * */ public Builder clearTrialJobSpec() { - if (trialJobSpecBuilder_ == null) { - trialJobSpec_ = null; - onChanged(); - } else { - trialJobSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + trialJobSpec_ = null; + if (trialJobSpecBuilder_ != null) { + trialJobSpecBuilder_.dispose(); trialJobSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -2480,7 +2497,7 @@ public Builder clearTrialJobSpec() { * */ public com.google.cloud.aiplatform.v1beta1.CustomJobSpec.Builder getTrialJobSpecBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getTrialJobSpecFieldBuilder().getBuilder(); } @@ -2538,9 +2555,9 @@ public com.google.cloud.aiplatform.v1beta1.CustomJobSpecOrBuilder getTrialJobSpe java.util.Collections.emptyList(); private void ensureTrialsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { trials_ = new java.util.ArrayList(trials_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000080; } } @@ -2777,7 +2794,7 @@ public Builder addAllTrials( public Builder clearTrials() { if (trialsBuilder_ == null) { trials_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { trialsBuilder_.clear(); @@ -2913,7 +2930,7 @@ public com.google.cloud.aiplatform.v1beta1.Trial.Builder addTrialsBuilder(int in com.google.cloud.aiplatform.v1beta1.Trial, com.google.cloud.aiplatform.v1beta1.Trial.Builder, com.google.cloud.aiplatform.v1beta1.TrialOrBuilder>( - trials_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + trials_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); trials_ = null; } return trialsBuilder_; @@ -2952,8 +2969,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2972,9 +2989,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.JobState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.JobState result = - com.google.cloud.aiplatform.v1beta1.JobState.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.JobState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.JobState.UNRECOGNIZED : result; } /** @@ -2995,7 +3011,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000100; state_ = value.getNumber(); onChanged(); return this; @@ -3014,7 +3030,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000100); state_ = 0; onChanged(); return this; @@ -3040,7 +3056,7 @@ public Builder clearState() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -3081,11 +3097,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3102,11 +3118,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3122,17 +3138,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3147,14 +3164,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3169,7 +3185,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -3242,7 +3258,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -3283,11 +3299,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3305,11 +3321,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3326,17 +3342,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3352,14 +3369,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3375,7 +3391,7 @@ public Builder clearStartTime() { * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -3448,7 +3464,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -3489,11 +3505,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -3511,11 +3527,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -3532,17 +3548,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000800) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -3558,14 +3575,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000800); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3581,7 +3597,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000800; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -3654,7 +3670,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -3697,11 +3713,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3719,11 +3735,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3740,17 +3756,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00001000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3766,14 +3783,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00001000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3789,7 +3805,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00001000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -3860,7 +3876,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the error field is set. */ public boolean hasError() { - return errorBuilder_ != null || error_ != null; + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -3897,11 +3913,11 @@ public Builder setError(com.google.rpc.Status value) { throw new NullPointerException(); } error_ = value; - onChanged(); } else { errorBuilder_.setMessage(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3917,11 +3933,11 @@ public Builder setError(com.google.rpc.Status value) { public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); - onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3936,16 +3952,18 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (error_ != null) { - error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00002000) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); } else { error_ = value; } - onChanged(); } else { errorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3959,14 +3977,13 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; + bitField0_ = (bitField0_ & ~0x00002000); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } - + onChanged(); return this; } /** @@ -3980,7 +3997,7 @@ public Builder clearError() { * .google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + bitField0_ |= 0x00002000; onChanged(); return getErrorFieldBuilder().getBuilder(); } @@ -4036,14 +4053,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00004000; + onChanged(); return labels_; } @@ -4107,8 +4124,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 16; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -4141,6 +4160,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00004000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -4167,6 +4187,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00004000; return internalGetMutableLabels().getMutableMap(); } /** @@ -4189,8 +4210,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00004000; return this; } /** @@ -4208,6 +4229,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00004000; return this; } @@ -4231,7 +4253,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -4272,11 +4294,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00008000; + onChanged(); return this; } /** @@ -4294,11 +4316,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00008000; + onChanged(); return this; } /** @@ -4314,19 +4336,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1beta1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00008000) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00008000; + onChanged(); return this; } /** @@ -4341,14 +4363,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 17; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00008000); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -4363,7 +4384,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 17; */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00008000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobOrBuilder.java index 4e9cb687eac2..c6e04d7f4fc7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobOrBuilder.java @@ -555,7 +555,6 @@ public interface HyperparameterTuningJobOrBuilder * * map<string, string> labels = 16; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IdMatcher.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IdMatcher.java index 58440c80ae37..6ac57898ab5b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IdMatcher.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IdMatcher.java @@ -68,6 +68,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int IDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList ids_; /** * @@ -348,6 +350,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; @@ -377,14 +380,24 @@ public com.google.cloud.aiplatform.v1beta1.IdMatcher build() { public com.google.cloud.aiplatform.v1beta1.IdMatcher buildPartial() { com.google.cloud.aiplatform.v1beta1.IdMatcher result = new com.google.cloud.aiplatform.v1beta1.IdMatcher(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.IdMatcher result) { if (((bitField0_ & 0x00000001) != 0)) { ids_ = ids_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.ids_ = ids_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.IdMatcher result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataConfig.java index b7895a0797dc..6e44fd884e0a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataConfig.java @@ -189,6 +189,7 @@ private static final class DataItemLabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField dataItemLabels_; private com.google.protobuf.MapField @@ -284,8 +285,10 @@ public java.util.Map getDataItemLabelsMap() * map<string, string> data_item_labels = 2; */ @java.lang.Override - public java.lang.String getDataItemLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getDataItemLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -338,6 +341,7 @@ private static final class AnnotationLabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField annotationLabels_; private com.google.protobuf.MapField @@ -427,8 +431,10 @@ public java.util.Map getAnnotationLabelsMap( * map<string, string> annotation_labels = 3; */ @java.lang.Override - public java.lang.String getAnnotationLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getAnnotationLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -467,7 +473,9 @@ public java.lang.String getAnnotationLabelsOrThrow(java.lang.String key) { } public static final int IMPORT_SCHEMA_URI_FIELD_NUMBER = 4; - private volatile java.lang.Object importSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object importSchemaUri_ = ""; /** * * @@ -801,13 +809,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (gcsSourceBuilder_ != null) { gcsSourceBuilder_.clear(); } internalGetMutableDataItemLabels().clear(); internalGetMutableAnnotationLabels().clear(); importSchemaUri_ = ""; - sourceCase_ = 0; source_ = null; return this; @@ -837,24 +845,37 @@ public com.google.cloud.aiplatform.v1beta1.ImportDataConfig build() { public com.google.cloud.aiplatform.v1beta1.ImportDataConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.ImportDataConfig result = new com.google.cloud.aiplatform.v1beta1.ImportDataConfig(this); - int from_bitField0_ = bitField0_; - if (sourceCase_ == 1) { - if (gcsSourceBuilder_ == null) { - result.source_ = source_; - } else { - result.source_ = gcsSourceBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - result.dataItemLabels_ = internalGetDataItemLabels(); - result.dataItemLabels_.makeImmutable(); - result.annotationLabels_ = internalGetAnnotationLabels(); - result.annotationLabels_.makeImmutable(); - result.importSchemaUri_ = importSchemaUri_; - result.sourceCase_ = sourceCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ImportDataConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataItemLabels_ = internalGetDataItemLabels(); + result.dataItemLabels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.annotationLabels_ = internalGetAnnotationLabels(); + result.annotationLabels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.importSchemaUri_ = importSchemaUri_; + } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.ImportDataConfig result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { + result.source_ = gcsSourceBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -902,9 +923,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ImportDataConfig ot if (other == com.google.cloud.aiplatform.v1beta1.ImportDataConfig.getDefaultInstance()) return this; internalGetMutableDataItemLabels().mergeFrom(other.internalGetDataItemLabels()); + bitField0_ |= 0x00000002; internalGetMutableAnnotationLabels().mergeFrom(other.internalGetAnnotationLabels()); + bitField0_ |= 0x00000004; if (!other.getImportSchemaUri().isEmpty()) { importSchemaUri_ = other.importSchemaUri_; + bitField0_ |= 0x00000008; onChanged(); } switch (other.getSourceCase()) { @@ -959,6 +983,7 @@ public Builder mergeFrom( internalGetMutableDataItemLabels() .getMutableMap() .put(dataItemLabels__.getKey(), dataItemLabels__.getValue()); + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -971,12 +996,13 @@ public Builder mergeFrom( internalGetMutableAnnotationLabels() .getMutableMap() .put(annotationLabels__.getKey(), annotationLabels__.getValue()); + bitField0_ |= 0x00000004; break; } // case 26 case 34: { importSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -1218,7 +1244,6 @@ public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuil } sourceCase_ = 1; onChanged(); - ; return gcsSourceBuilder_; } @@ -1235,8 +1260,6 @@ public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuil private com.google.protobuf.MapField internalGetMutableDataItemLabels() { - onChanged(); - ; if (dataItemLabels_ == null) { dataItemLabels_ = com.google.protobuf.MapField.newMapField(DataItemLabelsDefaultEntryHolder.defaultEntry); @@ -1244,6 +1267,8 @@ public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuil if (!dataItemLabels_.isMutable()) { dataItemLabels_ = dataItemLabels_.copy(); } + bitField0_ |= 0x00000002; + onChanged(); return dataItemLabels_; } @@ -1331,8 +1356,10 @@ public java.util.Map getDataItemLabelsMap() * map<string, string> data_item_labels = 2; */ @java.lang.Override - public java.lang.String getDataItemLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getDataItemLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1373,6 +1400,7 @@ public java.lang.String getDataItemLabelsOrThrow(java.lang.String key) { } public Builder clearDataItemLabels() { + bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableDataItemLabels().getMutableMap().clear(); return this; } @@ -1407,6 +1435,7 @@ public Builder removeDataItemLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableDataItemLabels() { + bitField0_ |= 0x00000002; return internalGetMutableDataItemLabels().getMutableMap(); } /** @@ -1437,8 +1466,8 @@ public Builder putDataItemLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableDataItemLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; return this; } /** @@ -1464,6 +1493,7 @@ public Builder putDataItemLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllDataItemLabels(java.util.Map values) { internalGetMutableDataItemLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; return this; } @@ -1480,8 +1510,6 @@ public Builder putAllDataItemLabels(java.util.Map internalGetMutableAnnotationLabels() { - onChanged(); - ; if (annotationLabels_ == null) { annotationLabels_ = com.google.protobuf.MapField.newMapField( @@ -1490,6 +1518,8 @@ public Builder putAllDataItemLabels(java.util.Map getAnnotationLabelsMap( * map<string, string> annotation_labels = 3; */ @java.lang.Override - public java.lang.String getAnnotationLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getAnnotationLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1613,6 +1645,7 @@ public java.lang.String getAnnotationLabelsOrThrow(java.lang.String key) { } public Builder clearAnnotationLabels() { + bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableAnnotationLabels().getMutableMap().clear(); return this; } @@ -1645,6 +1678,7 @@ public Builder removeAnnotationLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAnnotationLabels() { + bitField0_ |= 0x00000004; return internalGetMutableAnnotationLabels().getMutableMap(); } /** @@ -1673,8 +1707,8 @@ public Builder putAnnotationLabels(java.lang.String key, java.lang.String value) if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAnnotationLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; return this; } /** @@ -1699,6 +1733,7 @@ public Builder putAnnotationLabels(java.lang.String key, java.lang.String value) public Builder putAllAnnotationLabels( java.util.Map values) { internalGetMutableAnnotationLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; return this; } @@ -1772,8 +1807,8 @@ public Builder setImportSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - importSchemaUri_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1792,8 +1827,8 @@ public Builder setImportSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearImportSchemaUri() { - importSchemaUri_ = getDefaultInstance().getImportSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1817,8 +1852,8 @@ public Builder setImportSchemaUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - importSchemaUri_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataConfigOrBuilder.java index 88986a6ab34e..d0c1962cabe6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataConfigOrBuilder.java @@ -148,7 +148,6 @@ public interface ImportDataConfigOrBuilder * * map<string, string> data_item_labels = 2; */ - /* nullable */ java.lang.String getDataItemLabelsOrDefault( java.lang.String key, @@ -259,7 +258,6 @@ java.lang.String getDataItemLabelsOrDefault( * * map<string, string> annotation_labels = 3; */ - /* nullable */ java.lang.String getAnnotationLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataOperationMetadata.java index d85b789d9e37..0294633f3399 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataOperationMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -319,10 +321,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -353,15 +355,22 @@ public com.google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata build() { public com.google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -442,7 +451,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -462,6 +471,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -480,7 +491,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -518,11 +529,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -538,11 +549,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -557,20 +568,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -583,14 +594,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -604,7 +614,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataRequest.java index 177f25cacca4..3f9d20530552 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportDataRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -127,6 +129,8 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int IMPORT_CONFIGS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List importConfigs_; /** * @@ -422,15 +426,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - if (importConfigsBuilder_ == null) { importConfigs_ = java.util.Collections.emptyList(); } else { importConfigs_ = null; importConfigsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -458,19 +462,32 @@ public com.google.cloud.aiplatform.v1beta1.ImportDataRequest build() { public com.google.cloud.aiplatform.v1beta1.ImportDataRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ImportDataRequest result = new com.google.cloud.aiplatform.v1beta1.ImportDataRequest(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ImportDataRequest result) { if (importConfigsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { importConfigs_ = java.util.Collections.unmodifiableList(importConfigs_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.importConfigs_ = importConfigs_; } else { result.importConfigs_ = importConfigsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ImportDataRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } } @java.lang.Override @@ -521,13 +538,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ImportDataRequest o return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (importConfigsBuilder_ == null) { if (!other.importConfigs_.isEmpty()) { if (importConfigs_.isEmpty()) { importConfigs_ = other.importConfigs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureImportConfigsIsMutable(); importConfigs_.addAll(other.importConfigs_); @@ -540,7 +558,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ImportDataRequest o importConfigsBuilder_.dispose(); importConfigsBuilder_ = null; importConfigs_ = other.importConfigs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); importConfigsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getImportConfigsFieldBuilder() @@ -579,7 +597,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -688,8 +706,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -709,8 +727,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -735,8 +753,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -745,11 +763,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureImportConfigsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { importConfigs_ = new java.util.ArrayList( importConfigs_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1001,7 +1019,7 @@ public Builder addAllImportConfigs( public Builder clearImportConfigs() { if (importConfigsBuilder_ == null) { importConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { importConfigsBuilder_.clear(); @@ -1149,7 +1167,7 @@ public com.google.cloud.aiplatform.v1beta1.ImportDataConfig.Builder addImportCon com.google.cloud.aiplatform.v1beta1.ImportDataConfig.Builder, com.google.cloud.aiplatform.v1beta1.ImportDataConfigOrBuilder>( importConfigs_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); importConfigs_ = null; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadata.java index 81f7d0a1365f..a0984a8f8212 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadata.java @@ -115,11 +115,13 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } public static final int IMPORTED_ENTITY_COUNT_FIELD_NUMBER = 2; - private long importedEntityCount_; + private long importedEntityCount_ = 0L; /** * * @@ -137,7 +139,7 @@ public long getImportedEntityCount() { } public static final int IMPORTED_FEATURE_VALUE_COUNT_FIELD_NUMBER = 3; - private long importedFeatureValueCount_; + private long importedFeatureValueCount_ = 0L; /** * * @@ -155,6 +157,8 @@ public long getImportedFeatureValueCount() { } public static final int SOURCE_URIS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList sourceUris_; /** * @@ -216,7 +220,7 @@ public com.google.protobuf.ByteString getSourceUrisBytes(int index) { } public static final int INVALID_ROW_COUNT_FIELD_NUMBER = 6; - private long invalidRowCount_; + private long invalidRowCount_ = 0L; /** * * @@ -238,7 +242,7 @@ public long getInvalidRowCount() { } public static final int TIMESTAMP_OUTSIDE_RETENTION_ROWS_COUNT_FIELD_NUMBER = 7; - private long timestampOutsideRetentionRowsCount_; + private long timestampOutsideRetentionRowsCount_ = 0L; /** * * @@ -520,22 +524,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } importedEntityCount_ = 0L; - importedFeatureValueCount_ = 0L; - sourceUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); invalidRowCount_ = 0L; - timestampOutsideRetentionRowsCount_ = 0L; - return this; } @@ -566,23 +566,42 @@ public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata(this); - int from_bitField0_ = bitField0_; - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.importedEntityCount_ = importedEntityCount_; - result.importedFeatureValueCount_ = importedFeatureValueCount_; - if (((bitField0_ & 0x00000001) != 0)) { + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata result) { + if (((bitField0_ & 0x00000008) != 0)) { sourceUris_ = sourceUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.sourceUris_ = sourceUris_; - result.invalidRowCount_ = invalidRowCount_; - result.timestampOutsideRetentionRowsCount_ = timestampOutsideRetentionRowsCount_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.importedEntityCount_ = importedEntityCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.importedFeatureValueCount_ = importedFeatureValueCount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.invalidRowCount_ = invalidRowCount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.timestampOutsideRetentionRowsCount_ = timestampOutsideRetentionRowsCount_; + } } @java.lang.Override @@ -647,7 +666,7 @@ public Builder mergeFrom( if (!other.sourceUris_.isEmpty()) { if (sourceUris_.isEmpty()) { sourceUris_ = other.sourceUris_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureSourceUrisIsMutable(); sourceUris_.addAll(other.sourceUris_); @@ -689,19 +708,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { importedEntityCount_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { importedFeatureValueCount_ = input.readInt64(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: @@ -714,13 +733,13 @@ public Builder mergeFrom( case 48: { invalidRowCount_ = input.readInt64(); - + bitField0_ |= 0x00000010; break; } // case 48 case 56: { timestampOutsideRetentionRowsCount_ = input.readInt64(); - + bitField0_ |= 0x00000020; break; } // case 56 default: @@ -760,7 +779,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -798,11 +817,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -818,11 +837,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -837,20 +856,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -863,14 +882,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -884,7 +902,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } @@ -964,6 +982,7 @@ public long getImportedEntityCount() { public Builder setImportedEntityCount(long value) { importedEntityCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -979,7 +998,7 @@ public Builder setImportedEntityCount(long value) { * @return This builder for chaining. */ public Builder clearImportedEntityCount() { - + bitField0_ = (bitField0_ & ~0x00000002); importedEntityCount_ = 0L; onChanged(); return this; @@ -1016,6 +1035,7 @@ public long getImportedFeatureValueCount() { public Builder setImportedFeatureValueCount(long value) { importedFeatureValueCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1031,7 +1051,7 @@ public Builder setImportedFeatureValueCount(long value) { * @return This builder for chaining. */ public Builder clearImportedFeatureValueCount() { - + bitField0_ = (bitField0_ & ~0x00000004); importedFeatureValueCount_ = 0L; onChanged(); return this; @@ -1041,9 +1061,9 @@ public Builder clearImportedFeatureValueCount() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSourceUrisIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { sourceUris_ = new com.google.protobuf.LazyStringArrayList(sourceUris_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } /** @@ -1178,7 +1198,7 @@ public Builder addAllSourceUris(java.lang.Iterable values) { */ public Builder clearSourceUris() { sourceUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1244,6 +1264,7 @@ public long getInvalidRowCount() { public Builder setInvalidRowCount(long value) { invalidRowCount_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1263,7 +1284,7 @@ public Builder setInvalidRowCount(long value) { * @return This builder for chaining. */ public Builder clearInvalidRowCount() { - + bitField0_ = (bitField0_ & ~0x00000010); invalidRowCount_ = 0L; onChanged(); return this; @@ -1302,6 +1323,7 @@ public long getTimestampOutsideRetentionRowsCount() { public Builder setTimestampOutsideRetentionRowsCount(long value) { timestampOutsideRetentionRowsCount_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1318,7 +1340,7 @@ public Builder setTimestampOutsideRetentionRowsCount(long value) { * @return This builder for chaining. */ public Builder clearTimestampOutsideRetentionRowsCount() { - + bitField0_ = (bitField0_ & ~0x00000020); timestampOutsideRetentionRowsCount_ = 0L; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesRequest.java index 7a971a6b427f..e1c49b801191 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesRequest.java @@ -181,7 +181,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -232,7 +234,9 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int SOURCE_FIELD_FIELD_NUMBER = 2; - private volatile java.lang.Object sourceField_; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceField_ = ""; /** * * @@ -500,10 +504,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - sourceField_ = ""; - return this; } @@ -535,12 +538,24 @@ public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpe buildPartial() { com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec result = new com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec(this); - result.id_ = id_; - result.sourceField_ = sourceField_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sourceField_ = sourceField_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -595,10 +610,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getSourceField().isEmpty()) { sourceField_ = other.sourceField_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -630,13 +647,13 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { sourceField_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -656,6 +673,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object id_ = ""; /** * @@ -720,8 +739,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -738,8 +757,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -761,8 +780,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -831,8 +850,8 @@ public Builder setSourceField(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - sourceField_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -849,8 +868,8 @@ public Builder setSourceField(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSourceField() { - sourceField_ = getDefaultInstance().getSourceField(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -872,8 +891,8 @@ public Builder setSourceFieldBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - sourceField_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1264,7 +1283,9 @@ public com.google.protobuf.TimestampOrBuilder getFeatureTimeOrBuilder() { } public static final int ENTITY_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object entityType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityType_ = ""; /** * * @@ -1321,7 +1342,9 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { } public static final int ENTITY_ID_FIELD_FIELD_NUMBER = 5; - private volatile java.lang.Object entityIdField_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityIdField_ = ""; /** * * @@ -1372,6 +1395,8 @@ public com.google.protobuf.ByteString getEntityIdFieldBytes() { } public static final int FEATURE_SPECS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") private java.util.List featureSpecs_; /** @@ -1467,7 +1492,7 @@ public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpe } public static final int DISABLE_ONLINE_SERVING_FIELD_NUMBER = 9; - private boolean disableOnlineServing_; + private boolean disableOnlineServing_ = false; /** * * @@ -1487,7 +1512,7 @@ public boolean getDisableOnlineServing() { } public static final int WORKER_COUNT_FIELD_NUMBER = 11; - private int workerCount_; + private int workerCount_ = 0; /** * * @@ -1510,7 +1535,7 @@ public int getWorkerCount() { } public static final int DISABLE_INGESTION_ANALYSIS_FIELD_NUMBER = 12; - private boolean disableIngestionAnalysis_; + private boolean disableIngestionAnalysis_ = false; /** * * @@ -1864,6 +1889,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (avroSourceBuilder_ != null) { avroSourceBuilder_.clear(); } @@ -1877,22 +1903,17 @@ public Builder clear() { featureTimeBuilder_.clear(); } entityType_ = ""; - entityIdField_ = ""; - if (featureSpecsBuilder_ == null) { featureSpecs_ = java.util.Collections.emptyList(); } else { featureSpecs_ = null; featureSpecsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); disableOnlineServing_ = false; - workerCount_ = 0; - disableIngestionAnalysis_ = false; - sourceCase_ = 0; source_ = null; featureTimeSourceCase_ = 0; @@ -1925,56 +1946,66 @@ public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest build() { public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest result = new com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest(this); - int from_bitField0_ = bitField0_; - if (sourceCase_ == 2) { - if (avroSourceBuilder_ == null) { - result.source_ = source_; - } else { - result.source_ = avroSourceBuilder_.build(); - } - } - if (sourceCase_ == 3) { - if (bigquerySourceBuilder_ == null) { - result.source_ = source_; - } else { - result.source_ = bigquerySourceBuilder_.build(); - } - } - if (sourceCase_ == 4) { - if (csvSourceBuilder_ == null) { - result.source_ = source_; - } else { - result.source_ = csvSourceBuilder_.build(); - } - } - if (featureTimeSourceCase_ == 6) { - result.featureTimeSource_ = featureTimeSource_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - if (featureTimeSourceCase_ == 7) { - if (featureTimeBuilder_ == null) { - result.featureTimeSource_ = featureTimeSource_; - } else { - result.featureTimeSource_ = featureTimeBuilder_.build(); - } - } - result.entityType_ = entityType_; - result.entityIdField_ = entityIdField_; + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest result) { if (featureSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { featureSpecs_ = java.util.Collections.unmodifiableList(featureSpecs_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); } result.featureSpecs_ = featureSpecs_; } else { result.featureSpecs_ = featureSpecsBuilder_.build(); } - result.disableOnlineServing_ = disableOnlineServing_; - result.workerCount_ = workerCount_; - result.disableIngestionAnalysis_ = disableIngestionAnalysis_; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.entityType_ = entityType_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.entityIdField_ = entityIdField_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.disableOnlineServing_ = disableOnlineServing_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.workerCount_ = workerCount_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.disableIngestionAnalysis_ = disableIngestionAnalysis_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest result) { result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 2 && avroSourceBuilder_ != null) { + result.source_ = avroSourceBuilder_.build(); + } + if (sourceCase_ == 3 && bigquerySourceBuilder_ != null) { + result.source_ = bigquerySourceBuilder_.build(); + } + if (sourceCase_ == 4 && csvSourceBuilder_ != null) { + result.source_ = csvSourceBuilder_.build(); + } result.featureTimeSourceCase_ = featureTimeSourceCase_; - onBuilt(); - return result; + result.featureTimeSource_ = this.featureTimeSource_; + if (featureTimeSourceCase_ == 7 && featureTimeBuilder_ != null) { + result.featureTimeSource_ = featureTimeBuilder_.build(); + } } @java.lang.Override @@ -2026,17 +2057,19 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ImportFeatureValues return this; if (!other.getEntityType().isEmpty()) { entityType_ = other.entityType_; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getEntityIdField().isEmpty()) { entityIdField_ = other.entityIdField_; + bitField0_ |= 0x00000040; onChanged(); } if (featureSpecsBuilder_ == null) { if (!other.featureSpecs_.isEmpty()) { if (featureSpecs_.isEmpty()) { featureSpecs_ = other.featureSpecs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureFeatureSpecsIsMutable(); featureSpecs_.addAll(other.featureSpecs_); @@ -2049,7 +2082,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ImportFeatureValues featureSpecsBuilder_.dispose(); featureSpecsBuilder_ = null; featureSpecs_ = other.featureSpecs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); featureSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFeatureSpecsFieldBuilder() @@ -2136,7 +2169,7 @@ public Builder mergeFrom( case 10: { entityType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 10 case 18: @@ -2160,7 +2193,7 @@ public Builder mergeFrom( case 42: { entityIdField_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 42 case 50: @@ -2194,19 +2227,19 @@ public Builder mergeFrom( case 72: { disableOnlineServing_ = input.readBool(); - + bitField0_ |= 0x00000100; break; } // case 72 case 88: { workerCount_ = input.readInt32(); - + bitField0_ |= 0x00000200; break; } // case 88 case 96: { disableIngestionAnalysis_ = input.readBool(); - + bitField0_ |= 0x00000400; break; } // case 96 default: @@ -2394,7 +2427,6 @@ public com.google.cloud.aiplatform.v1beta1.AvroSourceOrBuilder getAvroSourceOrBu } sourceCase_ = 2; onChanged(); - ; return avroSourceBuilder_; } @@ -2537,7 +2569,6 @@ public com.google.cloud.aiplatform.v1beta1.BigQuerySource.Builder getBigquerySou } sourceCase_ = 3; onChanged(); - ; return bigquerySourceBuilder_; } @@ -2679,7 +2710,6 @@ public com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder getCsvSourceOrBuil } sourceCase_ = 4; onChanged(); - ; return csvSourceBuilder_; } @@ -3037,7 +3067,6 @@ public com.google.protobuf.TimestampOrBuilder getFeatureTimeOrBuilder() { } featureTimeSourceCase_ = 7; onChanged(); - ; return featureTimeBuilder_; } @@ -3114,8 +3143,8 @@ public Builder setEntityType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityType_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3135,8 +3164,8 @@ public Builder setEntityType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityType() { - entityType_ = getDefaultInstance().getEntityType(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -3161,8 +3190,8 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityType_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3231,8 +3260,8 @@ public Builder setEntityIdField(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityIdField_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3249,8 +3278,8 @@ public Builder setEntityIdField(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityIdField() { - entityIdField_ = getDefaultInstance().getEntityIdField(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -3272,8 +3301,8 @@ public Builder setEntityIdFieldBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityIdField_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3283,12 +3312,12 @@ public Builder setEntityIdFieldBytes(com.google.protobuf.ByteString value) { featureSpecs_ = java.util.Collections.emptyList(); private void ensureFeatureSpecsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { featureSpecs_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec>( featureSpecs_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000080; } } @@ -3564,7 +3593,7 @@ public Builder addAllFeatureSpecs( public Builder clearFeatureSpecs() { if (featureSpecsBuilder_ == null) { featureSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { featureSpecsBuilder_.clear(); @@ -3727,7 +3756,7 @@ public Builder removeFeatureSpecs(int index) { com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.Builder, com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest .FeatureSpecOrBuilder>( - featureSpecs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + featureSpecs_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); featureSpecs_ = null; } return featureSpecsBuilder_; @@ -3768,6 +3797,7 @@ public boolean getDisableOnlineServing() { public Builder setDisableOnlineServing(boolean value) { disableOnlineServing_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3785,7 +3815,7 @@ public Builder setDisableOnlineServing(boolean value) { * @return This builder for chaining. */ public Builder clearDisableOnlineServing() { - + bitField0_ = (bitField0_ & ~0x00000100); disableOnlineServing_ = false; onChanged(); return this; @@ -3832,6 +3862,7 @@ public int getWorkerCount() { public Builder setWorkerCount(int value) { workerCount_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3852,7 +3883,7 @@ public Builder setWorkerCount(int value) { * @return This builder for chaining. */ public Builder clearWorkerCount() { - + bitField0_ = (bitField0_ & ~0x00000200); workerCount_ = 0; onChanged(); return this; @@ -3889,6 +3920,7 @@ public boolean getDisableIngestionAnalysis() { public Builder setDisableIngestionAnalysis(boolean value) { disableIngestionAnalysis_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3904,7 +3936,7 @@ public Builder setDisableIngestionAnalysis(boolean value) { * @return This builder for chaining. */ public Builder clearDisableIngestionAnalysis() { - + bitField0_ = (bitField0_ & ~0x00000400); disableIngestionAnalysis_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesResponse.java index b5ca75c1d374..f292957969c7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesResponse.java @@ -67,7 +67,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int IMPORTED_ENTITY_COUNT_FIELD_NUMBER = 1; - private long importedEntityCount_; + private long importedEntityCount_ = 0L; /** * * @@ -85,7 +85,7 @@ public long getImportedEntityCount() { } public static final int IMPORTED_FEATURE_VALUE_COUNT_FIELD_NUMBER = 2; - private long importedFeatureValueCount_; + private long importedFeatureValueCount_ = 0L; /** * * @@ -103,7 +103,7 @@ public long getImportedFeatureValueCount() { } public static final int INVALID_ROW_COUNT_FIELD_NUMBER = 6; - private long invalidRowCount_; + private long invalidRowCount_ = 0L; /** * * @@ -125,7 +125,7 @@ public long getInvalidRowCount() { } public static final int TIMESTAMP_OUTSIDE_RETENTION_ROWS_COUNT_FIELD_NUMBER = 4; - private long timestampOutsideRetentionRowsCount_; + private long timestampOutsideRetentionRowsCount_ = 0L; /** * * @@ -374,14 +374,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; importedEntityCount_ = 0L; - importedFeatureValueCount_ = 0L; - invalidRowCount_ = 0L; - timestampOutsideRetentionRowsCount_ = 0L; - return this; } @@ -410,14 +407,30 @@ public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse build() { public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse result = new com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse(this); - result.importedEntityCount_ = importedEntityCount_; - result.importedFeatureValueCount_ = importedFeatureValueCount_; - result.invalidRowCount_ = invalidRowCount_; - result.timestampOutsideRetentionRowsCount_ = timestampOutsideRetentionRowsCount_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.importedEntityCount_ = importedEntityCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.importedFeatureValueCount_ = importedFeatureValueCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.invalidRowCount_ = invalidRowCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.timestampOutsideRetentionRowsCount_ = timestampOutsideRetentionRowsCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -507,25 +520,25 @@ public Builder mergeFrom( case 8: { importedEntityCount_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { importedFeatureValueCount_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 case 32: { timestampOutsideRetentionRowsCount_ = input.readInt64(); - + bitField0_ |= 0x00000008; break; } // case 32 case 48: { invalidRowCount_ = input.readInt64(); - + bitField0_ |= 0x00000004; break; } // case 48 default: @@ -545,6 +558,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long importedEntityCount_; /** * @@ -576,6 +591,7 @@ public long getImportedEntityCount() { public Builder setImportedEntityCount(long value) { importedEntityCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -591,7 +607,7 @@ public Builder setImportedEntityCount(long value) { * @return This builder for chaining. */ public Builder clearImportedEntityCount() { - + bitField0_ = (bitField0_ & ~0x00000001); importedEntityCount_ = 0L; onChanged(); return this; @@ -628,6 +644,7 @@ public long getImportedFeatureValueCount() { public Builder setImportedFeatureValueCount(long value) { importedFeatureValueCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -643,7 +660,7 @@ public Builder setImportedFeatureValueCount(long value) { * @return This builder for chaining. */ public Builder clearImportedFeatureValueCount() { - + bitField0_ = (bitField0_ & ~0x00000002); importedFeatureValueCount_ = 0L; onChanged(); return this; @@ -688,6 +705,7 @@ public long getInvalidRowCount() { public Builder setInvalidRowCount(long value) { invalidRowCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -707,7 +725,7 @@ public Builder setInvalidRowCount(long value) { * @return This builder for chaining. */ public Builder clearInvalidRowCount() { - + bitField0_ = (bitField0_ & ~0x00000004); invalidRowCount_ = 0L; onChanged(); return this; @@ -746,6 +764,7 @@ public long getTimestampOutsideRetentionRowsCount() { public Builder setTimestampOutsideRetentionRowsCount(long value) { timestampOutsideRetentionRowsCount_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -762,7 +781,7 @@ public Builder setTimestampOutsideRetentionRowsCount(long value) { * @return This builder for chaining. */ public Builder clearTimestampOutsideRetentionRowsCount() { - + bitField0_ = (bitField0_ & ~0x00000008); timestampOutsideRetentionRowsCount_ = 0L; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportModelEvaluationRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportModelEvaluationRequest.java index 9719369a6638..a0085c8b106d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportModelEvaluationRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportModelEvaluationRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -175,7 +177,9 @@ public com.google.cloud.aiplatform.v1beta1.ModelEvaluation getModelEvaluation() @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelEvaluationOrBuilder getModelEvaluationOrBuilder() { - return getModelEvaluation(); + return modelEvaluation_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelEvaluation.getDefaultInstance() + : modelEvaluation_; } private byte memoizedIsInitialized = -1; @@ -391,12 +395,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (modelEvaluationBuilder_ == null) { - modelEvaluation_ = null; - } else { - modelEvaluation_ = null; + modelEvaluation_ = null; + if (modelEvaluationBuilder_ != null) { + modelEvaluationBuilder_.dispose(); modelEvaluationBuilder_ = null; } return this; @@ -427,16 +430,25 @@ public com.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest build() public com.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest result = new com.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest(this); - result.parent_ = parent_; - if (modelEvaluationBuilder_ == null) { - result.modelEvaluation_ = modelEvaluation_; - } else { - result.modelEvaluation_ = modelEvaluationBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ImportModelEvaluationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelEvaluation_ = + modelEvaluationBuilder_ == null ? modelEvaluation_ : modelEvaluationBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -487,6 +499,7 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasModelEvaluation()) { @@ -521,13 +534,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getModelEvaluationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -547,6 +560,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -617,8 +632,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -637,8 +652,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -662,8 +677,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -688,7 +703,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the modelEvaluation field is set. */ public boolean hasModelEvaluation() { - return modelEvaluationBuilder_ != null || modelEvaluation_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -729,11 +744,11 @@ public Builder setModelEvaluation(com.google.cloud.aiplatform.v1beta1.ModelEvalu throw new NullPointerException(); } modelEvaluation_ = value; - onChanged(); } else { modelEvaluationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -751,11 +766,11 @@ public Builder setModelEvaluation( com.google.cloud.aiplatform.v1beta1.ModelEvaluation.Builder builderForValue) { if (modelEvaluationBuilder_ == null) { modelEvaluation_ = builderForValue.build(); - onChanged(); } else { modelEvaluationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -771,19 +786,19 @@ public Builder setModelEvaluation( */ public Builder mergeModelEvaluation(com.google.cloud.aiplatform.v1beta1.ModelEvaluation value) { if (modelEvaluationBuilder_ == null) { - if (modelEvaluation_ != null) { - modelEvaluation_ = - com.google.cloud.aiplatform.v1beta1.ModelEvaluation.newBuilder(modelEvaluation_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && modelEvaluation_ != null + && modelEvaluation_ + != com.google.cloud.aiplatform.v1beta1.ModelEvaluation.getDefaultInstance()) { + getModelEvaluationBuilder().mergeFrom(value); } else { modelEvaluation_ = value; } - onChanged(); } else { modelEvaluationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -798,14 +813,13 @@ public Builder mergeModelEvaluation(com.google.cloud.aiplatform.v1beta1.ModelEva * */ public Builder clearModelEvaluation() { - if (modelEvaluationBuilder_ == null) { - modelEvaluation_ = null; - onChanged(); - } else { - modelEvaluation_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + modelEvaluation_ = null; + if (modelEvaluationBuilder_ != null) { + modelEvaluationBuilder_.dispose(); modelEvaluationBuilder_ = null; } - + onChanged(); return this; } /** @@ -820,7 +834,7 @@ public Builder clearModelEvaluation() { * */ public com.google.cloud.aiplatform.v1beta1.ModelEvaluation.Builder getModelEvaluationBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getModelEvaluationFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Index.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Index.java index 1fef41cb80ec..2066cd24f42a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Index.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Index.java @@ -252,7 +252,9 @@ private IndexUpdateMethod(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -301,7 +303,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -354,7 +358,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -403,7 +409,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int METADATA_SCHEMA_URI_FIELD_NUMBER = 4; - private volatile java.lang.Object metadataSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metadataSchemaUri_ = ""; /** * * @@ -514,10 +522,12 @@ public com.google.protobuf.Value getMetadata() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; } public static final int DEPLOYED_INDEXES_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") private java.util.List deployedIndexes_; /** * @@ -609,7 +619,9 @@ public com.google.cloud.aiplatform.v1beta1.DeployedIndexRefOrBuilder getDeployed } public static final int ETAG_FIELD_NUMBER = 8; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -672,6 +684,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -741,7 +754,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -819,7 +835,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 11; @@ -889,7 +905,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int INDEX_STATS_FIELD_NUMBER = 14; @@ -943,11 +959,13 @@ public com.google.cloud.aiplatform.v1beta1.IndexStats getIndexStats() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.IndexStatsOrBuilder getIndexStatsOrBuilder() { - return getIndexStats(); + return indexStats_ == null + ? com.google.cloud.aiplatform.v1beta1.IndexStats.getDefaultInstance() + : indexStats_; } public static final int INDEX_UPDATE_METHOD_FIELD_NUMBER = 16; - private int indexUpdateMethod_; + private int indexUpdateMethod_ = 0; /** * * @@ -982,9 +1000,8 @@ public int getIndexUpdateMethodValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod getIndexUpdateMethod() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod result = - com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod.valueOf(indexUpdateMethod_); + com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod.forNumber(indexUpdateMethod_); return result == null ? com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod.UNRECOGNIZED : result; @@ -1343,18 +1360,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - metadataSchemaUri_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } if (deployedIndexesBuilder_ == null) { @@ -1363,30 +1376,25 @@ public Builder clear() { deployedIndexes_ = null; deployedIndexesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); etag_ = ""; - internalGetMutableLabels().clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - if (indexStatsBuilder_ == null) { - indexStats_ = null; - } else { - indexStats_ = null; + indexStats_ = null; + if (indexStatsBuilder_ != null) { + indexStatsBuilder_.dispose(); indexStatsBuilder_ = null; } indexUpdateMethod_ = 0; - return this; } @@ -1414,46 +1422,62 @@ public com.google.cloud.aiplatform.v1beta1.Index build() { public com.google.cloud.aiplatform.v1beta1.Index buildPartial() { com.google.cloud.aiplatform.v1beta1.Index result = new com.google.cloud.aiplatform.v1beta1.Index(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; - result.metadataSchemaUri_ = metadataSchemaUri_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.Index result) { if (deployedIndexesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { deployedIndexes_ = java.util.Collections.unmodifiableList(deployedIndexes_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); } result.deployedIndexes_ = deployedIndexes_; } else { result.deployedIndexes_ = deployedIndexesBuilder_.build(); } - result.etag_ = etag_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Index result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (indexStatsBuilder_ == null) { - result.indexStats_ = indexStats_; - } else { - result.indexStats_ = indexStatsBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.metadataSchemaUri_ = metadataSchemaUri_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.indexStats_ = indexStatsBuilder_ == null ? indexStats_ : indexStatsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.indexUpdateMethod_ = indexUpdateMethod_; } - result.indexUpdateMethod_ = indexUpdateMethod_; - onBuilt(); - return result; } @java.lang.Override @@ -1503,18 +1527,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Index other) { if (other == com.google.cloud.aiplatform.v1beta1.Index.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getMetadataSchemaUri().isEmpty()) { metadataSchemaUri_ = other.metadataSchemaUri_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasMetadata()) { @@ -1524,7 +1552,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Index other) { if (!other.deployedIndexes_.isEmpty()) { if (deployedIndexes_.isEmpty()) { deployedIndexes_ = other.deployedIndexes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureDeployedIndexesIsMutable(); deployedIndexes_.addAll(other.deployedIndexes_); @@ -1537,7 +1565,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Index other) { deployedIndexesBuilder_.dispose(); deployedIndexesBuilder_ = null; deployedIndexes_ = other.deployedIndexes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); deployedIndexesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDeployedIndexesFieldBuilder() @@ -1549,9 +1577,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Index other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000040; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000080; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1593,31 +1623,31 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { metadataSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 50: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 50 case 58: @@ -1637,7 +1667,7 @@ public Builder mergeFrom( case 66: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 66 case 74: @@ -1649,30 +1679,31 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; break; } // case 74 case 82: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 82 case 90: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 90 case 114: { input.readMessage(getIndexStatsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 114 case 128: { indexUpdateMethod_ = input.readEnum(); - + bitField0_ |= 0x00000800; break; } // case 128 default: @@ -1755,8 +1786,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1772,8 +1803,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1794,8 +1825,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1867,8 +1898,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1886,8 +1917,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1910,8 +1941,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1977,8 +2008,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1994,8 +2025,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2016,8 +2047,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2104,8 +2135,8 @@ public Builder setMetadataSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metadataSchemaUri_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2128,8 +2159,8 @@ public Builder setMetadataSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetadataSchemaUri() { - metadataSchemaUri_ = getDefaultInstance().getMetadataSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2157,8 +2188,8 @@ public Builder setMetadataSchemaUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metadataSchemaUri_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2183,7 +2214,7 @@ public Builder setMetadataSchemaUriBytes(com.google.protobuf.ByteString value) { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2222,11 +2253,11 @@ public Builder setMetadata(com.google.protobuf.Value value) { throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2243,11 +2274,11 @@ public Builder setMetadata(com.google.protobuf.Value value) { public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2263,17 +2294,18 @@ public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Value value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Value.newBuilder(metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Value.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2288,14 +2320,13 @@ public Builder mergeMetadata(com.google.protobuf.Value value) { * .google.protobuf.Value metadata = 6; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -2310,7 +2341,7 @@ public Builder clearMetadata() { * .google.protobuf.Value metadata = 6; */ public com.google.protobuf.Value.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -2364,11 +2395,11 @@ public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { java.util.Collections.emptyList(); private void ensureDeployedIndexesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { deployedIndexes_ = new java.util.ArrayList( deployedIndexes_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000020; } } @@ -2631,7 +2662,7 @@ public Builder addAllDeployedIndexes( public Builder clearDeployedIndexes() { if (deployedIndexesBuilder_ == null) { deployedIndexes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { deployedIndexesBuilder_.clear(); @@ -2787,7 +2818,7 @@ public com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder addDeployedI com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder, com.google.cloud.aiplatform.v1beta1.DeployedIndexRefOrBuilder>( deployedIndexes_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); deployedIndexes_ = null; @@ -2859,8 +2890,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2877,8 +2908,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2900,8 +2931,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2917,14 +2948,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000080; + onChanged(); return labels_; } @@ -2988,8 +3019,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 9; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3022,6 +3055,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000080); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -3048,6 +3082,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000080; return internalGetMutableLabels().getMutableMap(); } /** @@ -3070,8 +3105,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000080; return this; } /** @@ -3089,6 +3124,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000080; return this; } @@ -3112,7 +3148,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -3153,11 +3189,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3174,11 +3210,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3194,17 +3230,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3219,14 +3256,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3241,7 +3277,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -3320,7 +3356,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -3375,11 +3411,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3403,11 +3439,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3430,17 +3466,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3462,14 +3499,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3491,7 +3527,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -3577,7 +3613,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the indexStats field is set. */ public boolean hasIndexStats() { - return indexStatsBuilder_ != null || indexStats_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -3618,11 +3654,11 @@ public Builder setIndexStats(com.google.cloud.aiplatform.v1beta1.IndexStats valu throw new NullPointerException(); } indexStats_ = value; - onChanged(); } else { indexStatsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3640,11 +3676,11 @@ public Builder setIndexStats( com.google.cloud.aiplatform.v1beta1.IndexStats.Builder builderForValue) { if (indexStatsBuilder_ == null) { indexStats_ = builderForValue.build(); - onChanged(); } else { indexStatsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3660,19 +3696,18 @@ public Builder setIndexStats( */ public Builder mergeIndexStats(com.google.cloud.aiplatform.v1beta1.IndexStats value) { if (indexStatsBuilder_ == null) { - if (indexStats_ != null) { - indexStats_ = - com.google.cloud.aiplatform.v1beta1.IndexStats.newBuilder(indexStats_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && indexStats_ != null + && indexStats_ != com.google.cloud.aiplatform.v1beta1.IndexStats.getDefaultInstance()) { + getIndexStatsBuilder().mergeFrom(value); } else { indexStats_ = value; } - onChanged(); } else { indexStatsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3687,14 +3722,13 @@ public Builder mergeIndexStats(com.google.cloud.aiplatform.v1beta1.IndexStats va * */ public Builder clearIndexStats() { - if (indexStatsBuilder_ == null) { - indexStats_ = null; - onChanged(); - } else { - indexStats_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + indexStats_ = null; + if (indexStatsBuilder_ != null) { + indexStatsBuilder_.dispose(); indexStatsBuilder_ = null; } - + onChanged(); return this; } /** @@ -3709,7 +3743,7 @@ public Builder clearIndexStats() { * */ public com.google.cloud.aiplatform.v1beta1.IndexStats.Builder getIndexStatsBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getIndexStatsFieldBuilder().getBuilder(); } @@ -3796,8 +3830,8 @@ public int getIndexUpdateMethodValue() { * @return This builder for chaining. */ public Builder setIndexUpdateMethodValue(int value) { - indexUpdateMethod_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3817,9 +3851,8 @@ public Builder setIndexUpdateMethodValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod getIndexUpdateMethod() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod result = - com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod.valueOf(indexUpdateMethod_); + com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod.forNumber(indexUpdateMethod_); return result == null ? com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod.UNRECOGNIZED : result; @@ -3844,7 +3877,7 @@ public Builder setIndexUpdateMethod( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000800; indexUpdateMethod_ = value.getNumber(); onChanged(); return this; @@ -3864,7 +3897,7 @@ public Builder setIndexUpdateMethod( * @return This builder for chaining. */ public Builder clearIndexUpdateMethod() { - + bitField0_ = (bitField0_ & ~0x00000800); indexUpdateMethod_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexDatapoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexDatapoint.java index 0c35024b6032..52371312bd9d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexDatapoint.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexDatapoint.java @@ -254,7 +254,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAMESPACE_FIELD_NUMBER = 1; - private volatile java.lang.Object namespace_; + + @SuppressWarnings("serial") + private volatile java.lang.Object namespace_ = ""; /** * * @@ -303,6 +305,8 @@ public com.google.protobuf.ByteString getNamespaceBytes() { } public static final int ALLOW_LIST_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList allowList_; /** * @@ -364,6 +368,8 @@ public com.google.protobuf.ByteString getAllowListBytes(int index) { } public static final int DENY_LIST_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList denyList_; /** * @@ -657,12 +663,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; namespace_ = ""; - allowList_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - denyList_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); + denyList_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -691,20 +697,34 @@ public com.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction build() { public com.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction buildPartial() { com.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction result = new com.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction(this); - int from_bitField0_ = bitField0_; - result.namespace_ = namespace_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction result) { + if (((bitField0_ & 0x00000002) != 0)) { allowList_ = allowList_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.allowList_ = allowList_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { denyList_ = denyList_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.denyList_ = denyList_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.namespace_ = namespace_; + } } @java.lang.Override @@ -759,12 +779,13 @@ public Builder mergeFrom( return this; if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.allowList_.isEmpty()) { if (allowList_.isEmpty()) { allowList_ = other.allowList_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAllowListIsMutable(); allowList_.addAll(other.allowList_); @@ -774,7 +795,7 @@ public Builder mergeFrom( if (!other.denyList_.isEmpty()) { if (denyList_.isEmpty()) { denyList_ = other.denyList_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDenyListIsMutable(); denyList_.addAll(other.denyList_); @@ -810,7 +831,7 @@ public Builder mergeFrom( case 10: { namespace_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -907,8 +928,8 @@ public Builder setNamespace(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - namespace_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -924,8 +945,8 @@ public Builder setNamespace(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNamespace() { - namespace_ = getDefaultInstance().getNamespace(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -946,8 +967,8 @@ public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - namespace_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -956,9 +977,9 @@ public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { allowList_ = new com.google.protobuf.LazyStringArrayList(allowList_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -1093,7 +1114,7 @@ public Builder addAllAllowList(java.lang.Iterable values) { */ public Builder clearAllowList() { allowList_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1124,9 +1145,9 @@ public Builder addAllowListBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDenyListIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { denyList_ = new com.google.protobuf.LazyStringArrayList(denyList_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } /** @@ -1261,7 +1282,7 @@ public Builder addAllDenyList(java.lang.Iterable values) { */ public Builder clearDenyList() { denyList_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1445,7 +1466,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CROWDING_ATTRIBUTE_FIELD_NUMBER = 1; - private volatile java.lang.Object crowdingAttribute_; + + @SuppressWarnings("serial") + private volatile java.lang.Object crowdingAttribute_ = ""; /** * * @@ -1703,8 +1726,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; crowdingAttribute_ = ""; - return this; } @@ -1733,11 +1756,21 @@ public com.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag build() { public com.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag buildPartial() { com.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag result = new com.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag(this); - result.crowdingAttribute_ = crowdingAttribute_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.crowdingAttribute_ = crowdingAttribute_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1790,6 +1823,7 @@ public Builder mergeFrom( return this; if (!other.getCrowdingAttribute().isEmpty()) { crowdingAttribute_ = other.crowdingAttribute_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1821,7 +1855,7 @@ public Builder mergeFrom( case 10: { crowdingAttribute_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -1841,6 +1875,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object crowdingAttribute_ = ""; /** * @@ -1914,8 +1950,8 @@ public Builder setCrowdingAttribute(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - crowdingAttribute_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1935,8 +1971,8 @@ public Builder setCrowdingAttribute(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCrowdingAttribute() { - crowdingAttribute_ = getDefaultInstance().getCrowdingAttribute(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1961,8 +1997,8 @@ public Builder setCrowdingAttributeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - crowdingAttribute_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2035,7 +2071,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int DATAPOINT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object datapointId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object datapointId_ = ""; /** * * @@ -2084,6 +2122,8 @@ public com.google.protobuf.ByteString getDatapointIdBytes() { } public static final int FEATURE_VECTOR_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.FloatList featureVector_; /** * @@ -2136,6 +2176,8 @@ public float getFeatureVector(int index) { private int featureVectorMemoizedSerializedSize = -1; public static final int RESTRICTS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List restricts_; /** * @@ -2287,7 +2329,9 @@ public com.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag getCrowdin @java.lang.Override public com.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTagOrBuilder getCrowdingTagOrBuilder() { - return getCrowdingTag(); + return crowdingTag_ == null + ? com.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.getDefaultInstance() + : crowdingTag_; } private byte memoizedIsInitialized = -1; @@ -2535,21 +2579,19 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; datapointId_ = ""; - featureVector_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000001); if (restrictsBuilder_ == null) { restricts_ = java.util.Collections.emptyList(); } else { restricts_ = null; restrictsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); - if (crowdingTagBuilder_ == null) { - crowdingTag_ = null; - } else { - crowdingTag_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + crowdingTag_ = null; + if (crowdingTagBuilder_ != null) { + crowdingTagBuilder_.dispose(); crowdingTagBuilder_ = null; } return this; @@ -2579,29 +2621,41 @@ public com.google.cloud.aiplatform.v1beta1.IndexDatapoint build() { public com.google.cloud.aiplatform.v1beta1.IndexDatapoint buildPartial() { com.google.cloud.aiplatform.v1beta1.IndexDatapoint result = new com.google.cloud.aiplatform.v1beta1.IndexDatapoint(this); - int from_bitField0_ = bitField0_; - result.datapointId_ = datapointId_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.IndexDatapoint result) { + if (((bitField0_ & 0x00000002) != 0)) { featureVector_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.featureVector_ = featureVector_; if (restrictsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { restricts_ = java.util.Collections.unmodifiableList(restricts_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.restricts_ = restricts_; } else { result.restricts_ = restrictsBuilder_.build(); } - if (crowdingTagBuilder_ == null) { - result.crowdingTag_ = crowdingTag_; - } else { - result.crowdingTag_ = crowdingTagBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.IndexDatapoint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.datapointId_ = datapointId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.crowdingTag_ = + crowdingTagBuilder_ == null ? crowdingTag_ : crowdingTagBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -2652,12 +2706,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.IndexDatapoint othe return this; if (!other.getDatapointId().isEmpty()) { datapointId_ = other.datapointId_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.featureVector_.isEmpty()) { if (featureVector_.isEmpty()) { featureVector_ = other.featureVector_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFeatureVectorIsMutable(); featureVector_.addAll(other.featureVector_); @@ -2668,7 +2723,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.IndexDatapoint othe if (!other.restricts_.isEmpty()) { if (restricts_.isEmpty()) { restricts_ = other.restricts_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRestrictsIsMutable(); restricts_.addAll(other.restricts_); @@ -2681,7 +2736,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.IndexDatapoint othe restrictsBuilder_.dispose(); restrictsBuilder_ = null; restricts_ = other.restricts_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); restrictsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRestrictsFieldBuilder() @@ -2723,7 +2778,7 @@ public Builder mergeFrom( case 10: { datapointId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 21: @@ -2761,7 +2816,7 @@ public Builder mergeFrom( case 42: { input.readMessage(getCrowdingTagFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 42 default: @@ -2844,8 +2899,8 @@ public Builder setDatapointId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - datapointId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2861,8 +2916,8 @@ public Builder setDatapointId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDatapointId() { - datapointId_ = getDefaultInstance().getDatapointId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2883,8 +2938,8 @@ public Builder setDatapointIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - datapointId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2892,9 +2947,9 @@ public Builder setDatapointIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Internal.FloatList featureVector_ = emptyFloatList(); private void ensureFeatureVectorIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { featureVector_ = mutableCopy(featureVector_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -2910,7 +2965,7 @@ private void ensureFeatureVectorIsMutable() { * @return A list containing the featureVector. */ public java.util.List getFeatureVectorList() { - return ((bitField0_ & 0x00000001) != 0) + return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(featureVector_) : featureVector_; } @@ -2960,6 +3015,7 @@ public float getFeatureVector(int index) { * @return This builder for chaining. */ public Builder setFeatureVector(int index, float value) { + ensureFeatureVectorIsMutable(); featureVector_.setFloat(index, value); onChanged(); @@ -2979,6 +3035,7 @@ public Builder setFeatureVector(int index, float value) { * @return This builder for chaining. */ public Builder addFeatureVector(float value) { + ensureFeatureVectorIsMutable(); featureVector_.addFloat(value); onChanged(); @@ -3017,7 +3074,7 @@ public Builder addAllFeatureVector(java.lang.Iterable */ public Builder clearFeatureVector() { featureVector_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3026,11 +3083,11 @@ public Builder clearFeatureVector() { restricts_ = java.util.Collections.emptyList(); private void ensureRestrictsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { restricts_ = new java.util.ArrayList( restricts_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } @@ -3308,7 +3365,7 @@ public Builder addAllRestricts( public Builder clearRestricts() { if (restrictsBuilder_ == null) { restricts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { restrictsBuilder_.clear(); @@ -3473,7 +3530,7 @@ public Builder removeRestricts(int index) { com.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction, com.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.Builder, com.google.cloud.aiplatform.v1beta1.IndexDatapoint.RestrictionOrBuilder>( - restricts_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + restricts_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); restricts_ = null; } return restrictsBuilder_; @@ -3500,7 +3557,7 @@ public Builder removeRestricts(int index) { * @return Whether the crowdingTag field is set. */ public boolean hasCrowdingTag() { - return crowdingTagBuilder_ != null || crowdingTag_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -3544,11 +3601,11 @@ public Builder setCrowdingTag( throw new NullPointerException(); } crowdingTag_ = value; - onChanged(); } else { crowdingTagBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3567,11 +3624,11 @@ public Builder setCrowdingTag( com.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.Builder builderForValue) { if (crowdingTagBuilder_ == null) { crowdingTag_ = builderForValue.build(); - onChanged(); } else { crowdingTagBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3589,20 +3646,20 @@ public Builder setCrowdingTag( public Builder mergeCrowdingTag( com.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag value) { if (crowdingTagBuilder_ == null) { - if (crowdingTag_ != null) { - crowdingTag_ = - com.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.newBuilder( - crowdingTag_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && crowdingTag_ != null + && crowdingTag_ + != com.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + .getDefaultInstance()) { + getCrowdingTagBuilder().mergeFrom(value); } else { crowdingTag_ = value; } - onChanged(); } else { crowdingTagBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3618,14 +3675,13 @@ public Builder mergeCrowdingTag( * */ public Builder clearCrowdingTag() { - if (crowdingTagBuilder_ == null) { - crowdingTag_ = null; - onChanged(); - } else { - crowdingTag_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + crowdingTag_ = null; + if (crowdingTagBuilder_ != null) { + crowdingTagBuilder_.dispose(); crowdingTagBuilder_ = null; } - + onChanged(); return this; } /** @@ -3642,7 +3698,7 @@ public Builder clearCrowdingTag() { */ public com.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.Builder getCrowdingTagBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getCrowdingTagFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpoint.java index 622f09a186ec..269d255d5419 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpoint.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpoint.java @@ -85,7 +85,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -134,7 +136,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -187,7 +191,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -236,6 +242,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int DEPLOYED_INDEXES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List deployedIndexes_; /** * @@ -317,7 +325,9 @@ public com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder getDeployedInd } public static final int ETAG_FIELD_NUMBER = 5; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -380,6 +390,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -449,7 +460,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -527,7 +541,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 8; @@ -585,11 +599,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int NETWORK_FIELD_NUMBER = 9; - private volatile java.lang.Object network_; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; /** * * @@ -660,7 +676,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { } public static final int ENABLE_PRIVATE_SERVICE_CONNECT_FIELD_NUMBER = 10; - private boolean enablePrivateServiceConnect_; + private boolean enablePrivateServiceConnect_ = false; /** * * @@ -1007,38 +1023,31 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - if (deployedIndexesBuilder_ == null) { deployedIndexes_ = java.util.Collections.emptyList(); } else { deployedIndexes_ = null; deployedIndexesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); etag_ = ""; - internalGetMutableLabels().clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } network_ = ""; - enablePrivateServiceConnect_ = false; - return this; } @@ -1066,36 +1075,57 @@ public com.google.cloud.aiplatform.v1beta1.IndexEndpoint build() { public com.google.cloud.aiplatform.v1beta1.IndexEndpoint buildPartial() { com.google.cloud.aiplatform.v1beta1.IndexEndpoint result = new com.google.cloud.aiplatform.v1beta1.IndexEndpoint(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.IndexEndpoint result) { if (deployedIndexesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { deployedIndexes_ = java.util.Collections.unmodifiableList(deployedIndexes_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.deployedIndexes_ = deployedIndexes_; } else { result.deployedIndexes_ = deployedIndexesBuilder_.build(); } - result.etag_ = etag_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.IndexEndpoint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.enablePrivateServiceConnect_ = enablePrivateServiceConnect_; } - result.network_ = network_; - result.enablePrivateServiceConnect_ = enablePrivateServiceConnect_; - onBuilt(); - return result; } @java.lang.Override @@ -1146,21 +1176,24 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.IndexEndpoint other return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (deployedIndexesBuilder_ == null) { if (!other.deployedIndexes_.isEmpty()) { if (deployedIndexes_.isEmpty()) { deployedIndexes_ = other.deployedIndexes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureDeployedIndexesIsMutable(); deployedIndexes_.addAll(other.deployedIndexes_); @@ -1173,7 +1206,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.IndexEndpoint other deployedIndexesBuilder_.dispose(); deployedIndexesBuilder_ = null; deployedIndexes_ = other.deployedIndexes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); deployedIndexesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDeployedIndexesFieldBuilder() @@ -1185,9 +1218,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.IndexEndpoint other } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000010; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000020; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1196,6 +1231,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.IndexEndpoint other } if (!other.getNetwork().isEmpty()) { network_ = other.network_; + bitField0_ |= 0x00000100; onChanged(); } if (other.getEnablePrivateServiceConnect() != false) { @@ -1230,19 +1266,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: @@ -1262,7 +1298,7 @@ public Builder mergeFrom( case 42: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: @@ -1274,30 +1310,31 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 66 case 74: { network_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 74 case 80: { enablePrivateServiceConnect_ = input.readBool(); - + bitField0_ |= 0x00000200; break; } // case 80 default: @@ -1380,8 +1417,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1397,8 +1434,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1419,8 +1456,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1492,8 +1529,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1511,8 +1548,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1535,8 +1572,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1602,8 +1639,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1619,8 +1656,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1641,8 +1678,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1651,11 +1688,11 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureDeployedIndexesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { deployedIndexes_ = new java.util.ArrayList( deployedIndexes_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -1896,7 +1933,7 @@ public Builder addAllDeployedIndexes( public Builder clearDeployedIndexes() { if (deployedIndexesBuilder_ == null) { deployedIndexes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { deployedIndexesBuilder_.clear(); @@ -2037,7 +2074,7 @@ public com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder addDeployedInde com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder, com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder>( deployedIndexes_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); deployedIndexes_ = null; @@ -2109,8 +2146,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2127,8 +2164,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2150,8 +2187,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2167,14 +2204,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000020; + onChanged(); return labels_; } @@ -2238,8 +2275,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2272,6 +2311,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -2298,6 +2338,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000020; return internalGetMutableLabels().getMutableMap(); } /** @@ -2320,8 +2361,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000020; return this; } /** @@ -2339,6 +2380,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000020; return this; } @@ -2362,7 +2404,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2403,11 +2445,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2424,11 +2466,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2444,17 +2486,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2469,14 +2512,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2491,7 +2533,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2566,7 +2608,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2613,11 +2655,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2637,11 +2679,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2660,17 +2702,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2688,14 +2731,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2713,7 +2755,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2865,8 +2907,8 @@ public Builder setNetwork(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - network_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2893,8 +2935,8 @@ public Builder setNetwork(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNetwork() { - network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2926,8 +2968,8 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - network_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2983,6 +3025,7 @@ public boolean getEnablePrivateServiceConnect() { public Builder setEnablePrivateServiceConnect(boolean value) { enablePrivateServiceConnect_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3008,7 +3051,7 @@ public Builder setEnablePrivateServiceConnect(boolean value) { */ @java.lang.Deprecated public Builder clearEnablePrivateServiceConnect() { - + bitField0_ = (bitField0_ & ~0x00000200); enablePrivateServiceConnect_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointOrBuilder.java index 664d55913bd3..e008721274e9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointOrBuilder.java @@ -249,7 +249,6 @@ public interface IndexEndpointOrBuilder * * map<string, string> labels = 6; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexOrBuilder.java index d9aad175f622..7c02c93d3db2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexOrBuilder.java @@ -340,7 +340,6 @@ com.google.cloud.aiplatform.v1beta1.DeployedIndexRefOrBuilder getDeployedIndexes * * map<string, string> labels = 9; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexPrivateEndpoints.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexPrivateEndpoints.java index 95207382925f..938228315e05 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexPrivateEndpoints.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexPrivateEndpoints.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MATCH_GRPC_ADDRESS_FIELD_NUMBER = 1; - private volatile java.lang.Object matchGrpcAddress_; + + @SuppressWarnings("serial") + private volatile java.lang.Object matchGrpcAddress_ = ""; /** * * @@ -122,7 +124,9 @@ public com.google.protobuf.ByteString getMatchGrpcAddressBytes() { } public static final int SERVICE_ATTACHMENT_FIELD_NUMBER = 2; - private volatile java.lang.Object serviceAttachment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAttachment_ = ""; /** * * @@ -383,10 +387,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; matchGrpcAddress_ = ""; - serviceAttachment_ = ""; - return this; } @@ -414,12 +417,23 @@ public com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints build() { public com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints buildPartial() { com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints result = new com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints(this); - result.matchGrpcAddress_ = matchGrpcAddress_; - result.serviceAttachment_ = serviceAttachment_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.matchGrpcAddress_ = matchGrpcAddress_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.serviceAttachment_ = serviceAttachment_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -468,10 +482,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoin return this; if (!other.getMatchGrpcAddress().isEmpty()) { matchGrpcAddress_ = other.matchGrpcAddress_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getServiceAttachment().isEmpty()) { serviceAttachment_ = other.serviceAttachment_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -503,13 +519,13 @@ public Builder mergeFrom( case 10: { matchGrpcAddress_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { serviceAttachment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -529,6 +545,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object matchGrpcAddress_ = ""; /** * @@ -590,8 +608,8 @@ public Builder setMatchGrpcAddress(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - matchGrpcAddress_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -607,8 +625,8 @@ public Builder setMatchGrpcAddress(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMatchGrpcAddress() { - matchGrpcAddress_ = getDefaultInstance().getMatchGrpcAddress(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -629,8 +647,8 @@ public Builder setMatchGrpcAddressBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - matchGrpcAddress_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -699,8 +717,8 @@ public Builder setServiceAttachment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - serviceAttachment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -717,8 +735,8 @@ public Builder setServiceAttachment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearServiceAttachment() { - serviceAttachment_ = getDefaultInstance().getServiceAttachment(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -740,8 +758,8 @@ public Builder setServiceAttachmentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - serviceAttachment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexStats.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexStats.java index c0e7d3f4558d..d6a7578afcce 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexStats.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexStats.java @@ -66,7 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VECTORS_COUNT_FIELD_NUMBER = 1; - private long vectorsCount_; + private long vectorsCount_ = 0L; /** * * @@ -84,7 +84,7 @@ public long getVectorsCount() { } public static final int SHARDS_COUNT_FIELD_NUMBER = 2; - private int shardsCount_; + private int shardsCount_ = 0; /** * * @@ -307,10 +307,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; vectorsCount_ = 0L; - shardsCount_ = 0; - return this; } @@ -338,12 +337,23 @@ public com.google.cloud.aiplatform.v1beta1.IndexStats build() { public com.google.cloud.aiplatform.v1beta1.IndexStats buildPartial() { com.google.cloud.aiplatform.v1beta1.IndexStats result = new com.google.cloud.aiplatform.v1beta1.IndexStats(this); - result.vectorsCount_ = vectorsCount_; - result.shardsCount_ = shardsCount_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.IndexStats result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.vectorsCount_ = vectorsCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.shardsCount_ = shardsCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -424,13 +434,13 @@ public Builder mergeFrom( case 8: { vectorsCount_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { shardsCount_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -450,6 +460,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long vectorsCount_; /** * @@ -481,6 +493,7 @@ public long getVectorsCount() { public Builder setVectorsCount(long value) { vectorsCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -496,7 +509,7 @@ public Builder setVectorsCount(long value) { * @return This builder for chaining. */ public Builder clearVectorsCount() { - + bitField0_ = (bitField0_ & ~0x00000001); vectorsCount_ = 0L; onChanged(); return this; @@ -533,6 +546,7 @@ public int getShardsCount() { public Builder setShardsCount(int value) { shardsCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -548,7 +562,7 @@ public Builder setShardsCount(int value) { * @return This builder for chaining. */ public Builder clearShardsCount() { - + bitField0_ = (bitField0_ & ~0x00000002); shardsCount_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfig.java index 4ede38a3e9aa..b2ea7b33df0f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfig.java @@ -631,7 +631,9 @@ public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestin } public static final int DATASET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object datasetId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object datasetId_ = ""; /** * * @@ -692,7 +694,9 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { } public static final int ANNOTATIONS_FILTER_FIELD_NUMBER = 6; - private volatile java.lang.Object annotationsFilter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object annotationsFilter_ = ""; /** * * @@ -757,7 +761,9 @@ public com.google.protobuf.ByteString getAnnotationsFilterBytes() { } public static final int ANNOTATION_SCHEMA_URI_FIELD_NUMBER = 9; - private volatile java.lang.Object annotationSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object annotationSchemaUri_ = ""; /** * * @@ -844,7 +850,9 @@ public com.google.protobuf.ByteString getAnnotationSchemaUriBytes() { } public static final int SAVED_QUERY_ID_FIELD_NUMBER = 7; - private volatile java.lang.Object savedQueryId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object savedQueryId_ = ""; /** * * @@ -923,7 +931,7 @@ public com.google.protobuf.ByteString getSavedQueryIdBytes() { } public static final int PERSIST_ML_USE_ASSIGNMENT_FIELD_NUMBER = 11; - private boolean persistMlUseAssignment_; + private boolean persistMlUseAssignment_ = false; /** * * @@ -1298,6 +1306,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (fractionSplitBuilder_ != null) { fractionSplitBuilder_.clear(); } @@ -1320,15 +1329,10 @@ public Builder clear() { bigqueryDestinationBuilder_.clear(); } datasetId_ = ""; - annotationsFilter_ = ""; - annotationSchemaUri_ = ""; - savedQueryId_ = ""; - persistMlUseAssignment_ = false; - splitCase_ = 0; split_ = null; destinationCase_ = 0; @@ -1360,64 +1364,59 @@ public com.google.cloud.aiplatform.v1beta1.InputDataConfig build() { public com.google.cloud.aiplatform.v1beta1.InputDataConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.InputDataConfig result = new com.google.cloud.aiplatform.v1beta1.InputDataConfig(this); - if (splitCase_ == 2) { - if (fractionSplitBuilder_ == null) { - result.split_ = split_; - } else { - result.split_ = fractionSplitBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (splitCase_ == 3) { - if (filterSplitBuilder_ == null) { - result.split_ = split_; - } else { - result.split_ = filterSplitBuilder_.build(); - } - } - if (splitCase_ == 4) { - if (predefinedSplitBuilder_ == null) { - result.split_ = split_; - } else { - result.split_ = predefinedSplitBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.InputDataConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.datasetId_ = datasetId_; } - if (splitCase_ == 5) { - if (timestampSplitBuilder_ == null) { - result.split_ = split_; - } else { - result.split_ = timestampSplitBuilder_.build(); - } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.annotationsFilter_ = annotationsFilter_; } - if (splitCase_ == 12) { - if (stratifiedSplitBuilder_ == null) { - result.split_ = split_; - } else { - result.split_ = stratifiedSplitBuilder_.build(); - } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.annotationSchemaUri_ = annotationSchemaUri_; } - if (destinationCase_ == 8) { - if (gcsDestinationBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = gcsDestinationBuilder_.build(); - } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.savedQueryId_ = savedQueryId_; } - if (destinationCase_ == 10) { - if (bigqueryDestinationBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = bigqueryDestinationBuilder_.build(); - } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.persistMlUseAssignment_ = persistMlUseAssignment_; } - result.datasetId_ = datasetId_; - result.annotationsFilter_ = annotationsFilter_; - result.annotationSchemaUri_ = annotationSchemaUri_; - result.savedQueryId_ = savedQueryId_; - result.persistMlUseAssignment_ = persistMlUseAssignment_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.InputDataConfig result) { result.splitCase_ = splitCase_; + result.split_ = this.split_; + if (splitCase_ == 2 && fractionSplitBuilder_ != null) { + result.split_ = fractionSplitBuilder_.build(); + } + if (splitCase_ == 3 && filterSplitBuilder_ != null) { + result.split_ = filterSplitBuilder_.build(); + } + if (splitCase_ == 4 && predefinedSplitBuilder_ != null) { + result.split_ = predefinedSplitBuilder_.build(); + } + if (splitCase_ == 5 && timestampSplitBuilder_ != null) { + result.split_ = timestampSplitBuilder_.build(); + } + if (splitCase_ == 12 && stratifiedSplitBuilder_ != null) { + result.split_ = stratifiedSplitBuilder_.build(); + } result.destinationCase_ = destinationCase_; - onBuilt(); - return result; + result.destination_ = this.destination_; + if (destinationCase_ == 8 && gcsDestinationBuilder_ != null) { + result.destination_ = gcsDestinationBuilder_.build(); + } + if (destinationCase_ == 10 && bigqueryDestinationBuilder_ != null) { + result.destination_ = bigqueryDestinationBuilder_.build(); + } } @java.lang.Override @@ -1468,18 +1467,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.InputDataConfig oth return this; if (!other.getDatasetId().isEmpty()) { datasetId_ = other.datasetId_; + bitField0_ |= 0x00000080; onChanged(); } if (!other.getAnnotationsFilter().isEmpty()) { annotationsFilter_ = other.annotationsFilter_; + bitField0_ |= 0x00000100; onChanged(); } if (!other.getAnnotationSchemaUri().isEmpty()) { annotationSchemaUri_ = other.annotationSchemaUri_; + bitField0_ |= 0x00000200; onChanged(); } if (!other.getSavedQueryId().isEmpty()) { savedQueryId_ = other.savedQueryId_; + bitField0_ |= 0x00000400; onChanged(); } if (other.getPersistMlUseAssignment() != false) { @@ -1561,7 +1564,7 @@ public Builder mergeFrom( case 10: { datasetId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 10 case 18: @@ -1591,13 +1594,13 @@ public Builder mergeFrom( case 50: { annotationsFilter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 50 case 58: { savedQueryId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000400; break; } // case 58 case 66: @@ -1609,7 +1612,7 @@ public Builder mergeFrom( case 74: { annotationSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000200; break; } // case 74 case 82: @@ -1622,7 +1625,7 @@ public Builder mergeFrom( case 88: { persistMlUseAssignment_ = input.readBool(); - + bitField0_ |= 0x00000800; break; } // case 88 case 98: @@ -1676,6 +1679,8 @@ public Builder clearDestination() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.FractionSplit, com.google.cloud.aiplatform.v1beta1.FractionSplit.Builder, @@ -1882,7 +1887,6 @@ public com.google.cloud.aiplatform.v1beta1.FractionSplitOrBuilder getFractionSpl } splitCase_ = 2; onChanged(); - ; return fractionSplitBuilder_; } @@ -2092,7 +2096,6 @@ public com.google.cloud.aiplatform.v1beta1.FilterSplitOrBuilder getFilterSplitOr } splitCase_ = 3; onChanged(); - ; return filterSplitBuilder_; } @@ -2312,7 +2315,6 @@ public com.google.cloud.aiplatform.v1beta1.PredefinedSplit.Builder getPredefined } splitCase_ = 4; onChanged(); - ; return predefinedSplitBuilder_; } @@ -2532,7 +2534,6 @@ public com.google.cloud.aiplatform.v1beta1.TimestampSplit.Builder getTimestampSp } splitCase_ = 5; onChanged(); - ; return timestampSplitBuilder_; } @@ -2752,7 +2753,6 @@ public com.google.cloud.aiplatform.v1beta1.StratifiedSplit.Builder getStratified } splitCase_ = 12; onChanged(); - ; return stratifiedSplitBuilder_; } @@ -3099,7 +3099,6 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder getGcsDestinat } destinationCase_ = 8; onChanged(); - ; return gcsDestinationBuilder_; } @@ -3441,7 +3440,6 @@ public Builder clearBigqueryDestination() { } destinationCase_ = 10; onChanged(); - ; return bigqueryDestinationBuilder_; } @@ -3524,8 +3522,8 @@ public Builder setDatasetId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - datasetId_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3547,8 +3545,8 @@ public Builder setDatasetId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDatasetId() { - datasetId_ = getDefaultInstance().getDatasetId(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -3575,8 +3573,8 @@ public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - datasetId_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3666,8 +3664,8 @@ public Builder setAnnotationsFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - annotationsFilter_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3691,8 +3689,8 @@ public Builder setAnnotationsFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAnnotationsFilter() { - annotationsFilter_ = getDefaultInstance().getAnnotationsFilter(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -3721,8 +3719,8 @@ public Builder setAnnotationsFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - annotationsFilter_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3845,8 +3843,8 @@ public Builder setAnnotationSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - annotationSchemaUri_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3881,8 +3879,8 @@ public Builder setAnnotationSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAnnotationSchemaUri() { - annotationSchemaUri_ = getDefaultInstance().getAnnotationSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -3922,8 +3920,8 @@ public Builder setAnnotationSchemaUriBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - annotationSchemaUri_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4034,8 +4032,8 @@ public Builder setSavedQueryId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - savedQueryId_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4066,8 +4064,8 @@ public Builder setSavedQueryId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSavedQueryId() { - savedQueryId_ = getDefaultInstance().getSavedQueryId(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -4103,8 +4101,8 @@ public Builder setSavedQueryIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - savedQueryId_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4140,6 +4138,7 @@ public boolean getPersistMlUseAssignment() { public Builder setPersistMlUseAssignment(boolean value) { persistMlUseAssignment_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4155,7 +4154,7 @@ public Builder setPersistMlUseAssignment(boolean value) { * @return This builder for chaining. */ public Builder clearPersistMlUseAssignment() { - + bitField0_ = (bitField0_ & ~0x00000800); persistMlUseAssignment_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Int64Array.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Int64Array.java index 4c69cea982b3..dfc456694268 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Int64Array.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Int64Array.java @@ -68,6 +68,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList values_; /** * @@ -329,8 +331,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; values_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -358,14 +360,24 @@ public com.google.cloud.aiplatform.v1beta1.Int64Array build() { public com.google.cloud.aiplatform.v1beta1.Int64Array buildPartial() { com.google.cloud.aiplatform.v1beta1.Int64Array result = new com.google.cloud.aiplatform.v1beta1.Int64Array(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.Int64Array result) { if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Int64Array result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -553,6 +565,7 @@ public long getValues(int index) { * @return This builder for chaining. */ public Builder setValues(int index, long value) { + ensureValuesIsMutable(); values_.setLong(index, value); onChanged(); @@ -571,6 +584,7 @@ public Builder setValues(int index, long value) { * @return This builder for chaining. */ public Builder addValues(long value) { + ensureValuesIsMutable(); values_.addLong(value); onChanged(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IntegratedGradientsAttribution.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IntegratedGradientsAttribution.java index b0850fbf34ef..97a4953613cf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IntegratedGradientsAttribution.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IntegratedGradientsAttribution.java @@ -69,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int STEP_COUNT_FIELD_NUMBER = 1; - private int stepCount_; + private int stepCount_ = 0; /** * * @@ -147,7 +147,9 @@ public com.google.cloud.aiplatform.v1beta1.SmoothGradConfig getSmoothGradConfig( @java.lang.Override public com.google.cloud.aiplatform.v1beta1.SmoothGradConfigOrBuilder getSmoothGradConfigOrBuilder() { - return getSmoothGradConfig(); + return smoothGradConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.SmoothGradConfig.getDefaultInstance() + : smoothGradConfig_; } public static final int BLUR_BASELINE_CONFIG_FIELD_NUMBER = 3; @@ -208,7 +210,9 @@ public com.google.cloud.aiplatform.v1beta1.BlurBaselineConfig getBlurBaselineCon @java.lang.Override public com.google.cloud.aiplatform.v1beta1.BlurBaselineConfigOrBuilder getBlurBaselineConfigOrBuilder() { - return getBlurBaselineConfig(); + return blurBaselineConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.BlurBaselineConfig.getDefaultInstance() + : blurBaselineConfig_; } private byte memoizedIsInitialized = -1; @@ -441,18 +445,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; stepCount_ = 0; - - if (smoothGradConfigBuilder_ == null) { - smoothGradConfig_ = null; - } else { - smoothGradConfig_ = null; + smoothGradConfig_ = null; + if (smoothGradConfigBuilder_ != null) { + smoothGradConfigBuilder_.dispose(); smoothGradConfigBuilder_ = null; } - if (blurBaselineConfigBuilder_ == null) { - blurBaselineConfig_ = null; - } else { - blurBaselineConfig_ = null; + blurBaselineConfig_ = null; + if (blurBaselineConfigBuilder_ != null) { + blurBaselineConfigBuilder_.dispose(); blurBaselineConfigBuilder_ = null; } return this; @@ -484,21 +486,31 @@ public com.google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution build( public com.google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution buildPartial() { com.google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution result = new com.google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution(this); - result.stepCount_ = stepCount_; - if (smoothGradConfigBuilder_ == null) { - result.smoothGradConfig_ = smoothGradConfig_; - } else { - result.smoothGradConfig_ = smoothGradConfigBuilder_.build(); - } - if (blurBaselineConfigBuilder_ == null) { - result.blurBaselineConfig_ = blurBaselineConfig_; - } else { - result.blurBaselineConfig_ = blurBaselineConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.stepCount_ = stepCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.smoothGradConfig_ = + smoothGradConfigBuilder_ == null ? smoothGradConfig_ : smoothGradConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.blurBaselineConfig_ = + blurBaselineConfigBuilder_ == null + ? blurBaselineConfig_ + : blurBaselineConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -586,21 +598,21 @@ public Builder mergeFrom( case 8: { stepCount_ = input.readInt32(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getSmoothGradConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getBlurBaselineConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -620,6 +632,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int stepCount_; /** * @@ -657,6 +671,7 @@ public int getStepCount() { public Builder setStepCount(int value) { stepCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -675,7 +690,7 @@ public Builder setStepCount(int value) { * @return This builder for chaining. */ public Builder clearStepCount() { - + bitField0_ = (bitField0_ & ~0x00000001); stepCount_ = 0; onChanged(); return this; @@ -703,7 +718,7 @@ public Builder clearStepCount() { * @return Whether the smoothGradConfig field is set. */ public boolean hasSmoothGradConfig() { - return smoothGradConfigBuilder_ != null || smoothGradConfig_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -748,11 +763,11 @@ public Builder setSmoothGradConfig(com.google.cloud.aiplatform.v1beta1.SmoothGra throw new NullPointerException(); } smoothGradConfig_ = value; - onChanged(); } else { smoothGradConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -772,11 +787,11 @@ public Builder setSmoothGradConfig( com.google.cloud.aiplatform.v1beta1.SmoothGradConfig.Builder builderForValue) { if (smoothGradConfigBuilder_ == null) { smoothGradConfig_ = builderForValue.build(); - onChanged(); } else { smoothGradConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -795,19 +810,19 @@ public Builder setSmoothGradConfig( public Builder mergeSmoothGradConfig( com.google.cloud.aiplatform.v1beta1.SmoothGradConfig value) { if (smoothGradConfigBuilder_ == null) { - if (smoothGradConfig_ != null) { - smoothGradConfig_ = - com.google.cloud.aiplatform.v1beta1.SmoothGradConfig.newBuilder(smoothGradConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && smoothGradConfig_ != null + && smoothGradConfig_ + != com.google.cloud.aiplatform.v1beta1.SmoothGradConfig.getDefaultInstance()) { + getSmoothGradConfigBuilder().mergeFrom(value); } else { smoothGradConfig_ = value; } - onChanged(); } else { smoothGradConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -824,14 +839,13 @@ public Builder mergeSmoothGradConfig( * .google.cloud.aiplatform.v1beta1.SmoothGradConfig smooth_grad_config = 2; */ public Builder clearSmoothGradConfig() { - if (smoothGradConfigBuilder_ == null) { - smoothGradConfig_ = null; - onChanged(); - } else { - smoothGradConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + smoothGradConfig_ = null; + if (smoothGradConfigBuilder_ != null) { + smoothGradConfigBuilder_.dispose(); smoothGradConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -849,7 +863,7 @@ public Builder clearSmoothGradConfig() { */ public com.google.cloud.aiplatform.v1beta1.SmoothGradConfig.Builder getSmoothGradConfigBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getSmoothGradConfigFieldBuilder().getBuilder(); } @@ -928,7 +942,7 @@ public Builder clearSmoothGradConfig() { * @return Whether the blurBaselineConfig field is set. */ public boolean hasBlurBaselineConfig() { - return blurBaselineConfigBuilder_ != null || blurBaselineConfig_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -974,11 +988,11 @@ public Builder setBlurBaselineConfig( throw new NullPointerException(); } blurBaselineConfig_ = value; - onChanged(); } else { blurBaselineConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -998,11 +1012,11 @@ public Builder setBlurBaselineConfig( com.google.cloud.aiplatform.v1beta1.BlurBaselineConfig.Builder builderForValue) { if (blurBaselineConfigBuilder_ == null) { blurBaselineConfig_ = builderForValue.build(); - onChanged(); } else { blurBaselineConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1021,19 +1035,19 @@ public Builder setBlurBaselineConfig( public Builder mergeBlurBaselineConfig( com.google.cloud.aiplatform.v1beta1.BlurBaselineConfig value) { if (blurBaselineConfigBuilder_ == null) { - if (blurBaselineConfig_ != null) { - blurBaselineConfig_ = - com.google.cloud.aiplatform.v1beta1.BlurBaselineConfig.newBuilder(blurBaselineConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && blurBaselineConfig_ != null + && blurBaselineConfig_ + != com.google.cloud.aiplatform.v1beta1.BlurBaselineConfig.getDefaultInstance()) { + getBlurBaselineConfigBuilder().mergeFrom(value); } else { blurBaselineConfig_ = value; } - onChanged(); } else { blurBaselineConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1050,14 +1064,13 @@ public Builder mergeBlurBaselineConfig( * .google.cloud.aiplatform.v1beta1.BlurBaselineConfig blur_baseline_config = 3; */ public Builder clearBlurBaselineConfig() { - if (blurBaselineConfigBuilder_ == null) { - blurBaselineConfig_ = null; - onChanged(); - } else { - blurBaselineConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + blurBaselineConfig_ = null; + if (blurBaselineConfigBuilder_ != null) { + blurBaselineConfigBuilder_.dispose(); blurBaselineConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1075,7 +1088,7 @@ public Builder clearBlurBaselineConfig() { */ public com.google.cloud.aiplatform.v1beta1.BlurBaselineConfig.Builder getBlurBaselineConfigBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getBlurBaselineConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraph.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraph.java index 4363b13d3856..a5e95cb31a53 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraph.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraph.java @@ -71,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ARTIFACTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List artifacts_; /** * @@ -140,6 +142,8 @@ public com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder getArtifactsOrBuild } public static final int EXECUTIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List executions_; /** * @@ -209,6 +213,8 @@ public com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionsOrBui } public static final int EVENTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List events_; /** * @@ -499,6 +505,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (artifactsBuilder_ == null) { artifacts_ = java.util.Collections.emptyList(); } else { @@ -547,7 +554,16 @@ public com.google.cloud.aiplatform.v1beta1.LineageSubgraph build() { public com.google.cloud.aiplatform.v1beta1.LineageSubgraph buildPartial() { com.google.cloud.aiplatform.v1beta1.LineageSubgraph result = new com.google.cloud.aiplatform.v1beta1.LineageSubgraph(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.LineageSubgraph result) { if (artifactsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { artifacts_ = java.util.Collections.unmodifiableList(artifacts_); @@ -575,8 +591,10 @@ public com.google.cloud.aiplatform.v1beta1.LineageSubgraph buildPartial() { } else { result.events_ = eventsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.LineageSubgraph result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListAnnotationsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListAnnotationsRequest.java index bcdddd94db41..8708b8e9bec4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListAnnotationsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListAnnotationsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -178,7 +182,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -196,7 +200,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -287,11 +293,13 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } public static final int ORDER_BY_FIELD_NUMBER = 6; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -590,22 +598,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } orderBy_ = ""; - return this; } @@ -633,20 +636,35 @@ public com.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest build() { public com.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest result = new com.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.orderBy_ = orderBy_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -695,10 +713,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListAnnotationsRequ return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -706,6 +726,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListAnnotationsRequ } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -713,6 +734,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListAnnotationsRequ } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -744,37 +766,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -794,6 +816,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -867,8 +891,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -888,8 +912,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -914,8 +938,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -981,8 +1005,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -998,8 +1022,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1020,8 +1044,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1057,6 +1081,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1072,7 +1097,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1139,8 +1164,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1156,8 +1181,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1178,8 +1203,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1202,7 +1227,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1237,11 +1262,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1256,11 +1281,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1274,17 +1299,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1297,14 +1323,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1317,7 +1342,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } @@ -1427,8 +1452,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1445,8 +1470,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1468,8 +1493,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListAnnotationsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListAnnotationsResponse.java index 530705288184..f2321b5c0222 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListAnnotationsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListAnnotationsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ANNOTATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List annotations_; /** * @@ -140,7 +142,9 @@ public com.google.cloud.aiplatform.v1beta1.AnnotationOrBuilder getAnnotationsOrB } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -398,6 +402,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (annotationsBuilder_ == null) { annotations_ = java.util.Collections.emptyList(); } else { @@ -406,7 +411,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -434,7 +438,16 @@ public com.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse build() { public com.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse result = new com.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse result) { if (annotationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { annotations_ = java.util.Collections.unmodifiableList(annotations_); @@ -444,9 +457,13 @@ public com.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse buildPartial( } else { result.annotations_ = annotationsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -524,6 +541,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListAnnotationsResp } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -568,7 +586,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1003,8 +1021,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1020,8 +1038,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1042,8 +1060,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsRequest.java index 26347e5ddac5..538dede75421 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -148,7 +150,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -207,7 +211,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -304,7 +310,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -597,16 +605,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - filter_ = ""; - orderBy_ = ""; - return this; } @@ -634,15 +638,32 @@ public com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest build() { public com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest result = new com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; - result.orderBy_ = orderBy_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListArtifactsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -691,6 +712,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListArtifactsReques return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -698,14 +720,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListArtifactsReques } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -737,31 +762,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -781,6 +806,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -854,8 +881,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -875,8 +902,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -901,8 +928,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -940,6 +967,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -956,7 +984,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -1038,8 +1066,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1060,8 +1088,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1087,8 +1115,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1226,8 +1254,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1267,8 +1295,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1313,8 +1341,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1395,8 +1423,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1417,8 +1445,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1444,8 +1472,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsResponse.java index b3fe11c268d0..e96e913ca182 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListArtifactsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ARTIFACTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List artifacts_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder getArtifactsOrBuild } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -403,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (artifactsBuilder_ == null) { artifacts_ = java.util.Collections.emptyList(); } else { @@ -411,7 +416,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -439,7 +443,16 @@ public com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse build() { public com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse result = new com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse result) { if (artifactsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { artifacts_ = java.util.Collections.unmodifiableList(artifacts_); @@ -449,9 +462,13 @@ public com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse buildPartial() } else { result.artifacts_ = artifactsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListArtifactsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -529,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListArtifactsRespon } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -573,7 +591,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1016,8 +1034,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1036,8 +1054,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1061,8 +1079,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsRequest.java index 3486e1980b58..cf3759e6b34e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -208,7 +212,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -226,7 +230,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -327,7 +333,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -572,18 +578,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -615,19 +617,33 @@ public com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest build( public com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest result = new com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -679,10 +695,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -690,6 +708,7 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -724,31 +743,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -768,6 +787,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -838,8 +859,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -858,8 +879,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -883,8 +904,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -998,8 +1019,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1031,8 +1052,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1069,8 +1090,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1106,6 +1127,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1121,7 +1143,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1203,8 +1225,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1225,8 +1247,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1252,8 +1274,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1276,7 +1298,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1311,11 +1333,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1330,11 +1352,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1348,17 +1370,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1371,14 +1394,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1391,7 +1413,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsResponse.java index e8f31d4409d7..0ff567641b67 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsResponse.java @@ -71,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int BATCH_PREDICTION_JOBS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List batchPredictionJobs_; /** @@ -148,7 +150,9 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob getBatchPrediction } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -415,6 +419,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (batchPredictionJobsBuilder_ == null) { batchPredictionJobs_ = java.util.Collections.emptyList(); } else { @@ -423,7 +428,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -453,7 +457,16 @@ public com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse build public com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse result = new com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse result) { if (batchPredictionJobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { batchPredictionJobs_ = java.util.Collections.unmodifiableList(batchPredictionJobs_); @@ -463,9 +476,14 @@ public com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse build } else { result.batchPredictionJobs_ = batchPredictionJobsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -546,6 +564,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -591,7 +610,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1067,8 +1086,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1087,8 +1106,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1112,8 +1131,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsRequest.java index 5eeb2c11ddff..166e258cc7ad 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -148,7 +150,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -207,7 +211,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -310,7 +316,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -603,16 +611,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - filter_ = ""; - orderBy_ = ""; - return this; } @@ -640,15 +644,32 @@ public com.google.cloud.aiplatform.v1beta1.ListContextsRequest build() { public com.google.cloud.aiplatform.v1beta1.ListContextsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListContextsRequest result = new com.google.cloud.aiplatform.v1beta1.ListContextsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; - result.orderBy_ = orderBy_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListContextsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -697,6 +718,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListContextsRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -704,14 +726,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListContextsRequest } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -743,31 +768,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -787,6 +812,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -860,8 +887,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -881,8 +908,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -907,8 +934,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -946,6 +973,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -962,7 +990,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -1044,8 +1072,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1066,8 +1094,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1093,8 +1121,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1241,8 +1269,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1285,8 +1313,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1334,8 +1362,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1416,8 +1444,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1438,8 +1466,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1465,8 +1493,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsResponse.java index fb19f7c70184..30becf049d77 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListContextsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTEXTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List contexts_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getContextsOrBuilder } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -403,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (contextsBuilder_ == null) { contexts_ = java.util.Collections.emptyList(); } else { @@ -411,7 +416,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -439,7 +443,16 @@ public com.google.cloud.aiplatform.v1beta1.ListContextsResponse build() { public com.google.cloud.aiplatform.v1beta1.ListContextsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListContextsResponse result = new com.google.cloud.aiplatform.v1beta1.ListContextsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListContextsResponse result) { if (contextsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { contexts_ = java.util.Collections.unmodifiableList(contexts_); @@ -449,9 +462,13 @@ public com.google.cloud.aiplatform.v1beta1.ListContextsResponse buildPartial() { } else { result.contexts_ = contextsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListContextsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -529,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListContextsRespons } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -573,7 +591,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1015,8 +1033,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1035,8 +1053,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1060,8 +1078,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsRequest.java index e4ae997324b1..ec569c1d018c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -126,7 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -205,7 +209,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -223,7 +227,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -324,7 +330,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -567,18 +573,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -608,19 +610,32 @@ public com.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest build() { public com.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest result = new com.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -669,10 +684,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListCustomJobsReque return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -680,6 +697,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListCustomJobsReque } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -714,31 +732,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -758,6 +776,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -828,8 +848,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -848,8 +868,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -873,8 +893,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -985,8 +1005,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1017,8 +1037,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1054,8 +1074,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1091,6 +1111,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1106,7 +1127,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1188,8 +1209,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1210,8 +1231,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1237,8 +1258,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1261,7 +1282,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1296,11 +1317,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1315,11 +1336,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1333,17 +1354,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1356,14 +1378,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1376,7 +1397,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsResponse.java index 06b9e1122cf0..8319960f8f4b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CUSTOM_JOBS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List customJobs_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1beta1.CustomJobOrBuilder getCustomJobsOrBui } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -403,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (customJobsBuilder_ == null) { customJobs_ = java.util.Collections.emptyList(); } else { @@ -411,7 +416,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -439,7 +443,16 @@ public com.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse build() { public com.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse result = new com.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse result) { if (customJobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { customJobs_ = java.util.Collections.unmodifiableList(customJobs_); @@ -449,9 +462,13 @@ public com.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse buildPartial() } else { result.customJobs_ = customJobsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -529,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListCustomJobsRespo } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -573,7 +591,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1017,8 +1035,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1037,8 +1055,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1062,8 +1080,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataItemsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataItemsRequest.java index d18f2211d310..4f813cbf4200 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataItemsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataItemsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -178,7 +182,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -196,7 +200,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -287,11 +293,13 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } public static final int ORDER_BY_FIELD_NUMBER = 6; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -590,22 +598,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } orderBy_ = ""; - return this; } @@ -633,20 +636,35 @@ public com.google.cloud.aiplatform.v1beta1.ListDataItemsRequest build() { public com.google.cloud.aiplatform.v1beta1.ListDataItemsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListDataItemsRequest result = new com.google.cloud.aiplatform.v1beta1.ListDataItemsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.orderBy_ = orderBy_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListDataItemsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -695,10 +713,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListDataItemsReques return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -706,6 +726,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListDataItemsReques } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -713,6 +734,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListDataItemsReques } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -744,37 +766,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -794,6 +816,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -867,8 +891,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -888,8 +912,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -914,8 +938,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -981,8 +1005,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -998,8 +1022,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1020,8 +1044,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1057,6 +1081,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1072,7 +1097,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1139,8 +1164,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1156,8 +1181,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1178,8 +1203,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1202,7 +1227,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1237,11 +1262,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1256,11 +1281,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1274,17 +1299,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1297,14 +1323,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1317,7 +1342,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } @@ -1427,8 +1452,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1445,8 +1470,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1468,8 +1493,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataItemsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataItemsResponse.java index 62c9d71a7ca7..00e30ee34c2c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataItemsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataItemsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DATA_ITEMS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List dataItems_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1beta1.DataItemOrBuilder getDataItemsOrBuild } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -397,6 +401,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (dataItemsBuilder_ == null) { dataItems_ = java.util.Collections.emptyList(); } else { @@ -405,7 +410,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -433,7 +437,16 @@ public com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse build() { public com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse result = new com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse result) { if (dataItemsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { dataItems_ = java.util.Collections.unmodifiableList(dataItems_); @@ -443,9 +456,13 @@ public com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse buildPartial() } else { result.dataItems_ = dataItemsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -523,6 +540,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListDataItemsRespon } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -567,7 +585,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1001,8 +1019,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1018,8 +1036,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1040,8 +1058,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsRequest.java index d256ab07f78f..9fd6266fbf1a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -206,7 +210,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -224,7 +228,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -324,11 +330,13 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } public static final int ORDER_BY_FIELD_NUMBER = 6; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -629,22 +637,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } orderBy_ = ""; - return this; } @@ -673,20 +676,36 @@ public com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest build() { public com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest result = new com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.orderBy_ = orderBy_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -737,10 +756,12 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -748,6 +769,7 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -755,6 +777,7 @@ public Builder mergeFrom( } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -786,37 +809,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -836,6 +859,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -906,8 +931,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -926,8 +951,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -951,8 +976,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1063,8 +1088,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1095,8 +1120,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1132,8 +1157,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1169,6 +1194,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1184,7 +1210,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1251,8 +1277,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1268,8 +1294,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1290,8 +1316,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1317,7 +1343,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1358,11 +1384,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1380,11 +1406,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1401,17 +1427,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1427,14 +1454,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1450,7 +1476,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } @@ -1569,8 +1595,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1588,8 +1614,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1612,8 +1638,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsResponse.java index 8c50cf5cdc5a..47f8efe15c4f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DATA_LABELING_JOBS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List dataLabelingJobs_; /** * @@ -146,7 +148,9 @@ public com.google.cloud.aiplatform.v1beta1.DataLabelingJobOrBuilder getDataLabel } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -404,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (dataLabelingJobsBuilder_ == null) { dataLabelingJobs_ = java.util.Collections.emptyList(); } else { @@ -412,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -441,7 +445,16 @@ public com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse build() public com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse result = new com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse result) { if (dataLabelingJobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { dataLabelingJobs_ = java.util.Collections.unmodifiableList(dataLabelingJobs_); @@ -451,9 +464,14 @@ public com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse buildPar } else { result.dataLabelingJobs_ = dataLabelingJobsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -533,6 +551,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -578,7 +597,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1060,8 +1079,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1077,8 +1096,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1099,8 +1118,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetsRequest.java index f2bd4b59a4a2..6d58ece6b780 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -196,7 +200,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -214,7 +218,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -305,11 +311,13 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } public static final int ORDER_BY_FIELD_NUMBER = 6; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -616,22 +624,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } orderBy_ = ""; - return this; } @@ -659,20 +662,35 @@ public com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest build() { public com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest result = new com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.orderBy_ = orderBy_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -721,10 +739,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -732,6 +752,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -739,6 +760,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -770,37 +792,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -820,6 +842,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -890,8 +914,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -910,8 +934,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -935,8 +959,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1032,8 +1056,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1059,8 +1083,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1091,8 +1115,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1128,6 +1152,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1143,7 +1168,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1210,8 +1235,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1227,8 +1252,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1249,8 +1274,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1273,7 +1298,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1308,11 +1333,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1327,11 +1352,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1345,17 +1370,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1368,14 +1394,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1388,7 +1413,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } @@ -1510,8 +1535,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1532,8 +1557,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1559,8 +1584,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetsResponse.java index 63c148fbef9e..ab53e50a3d8d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DATASETS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List datasets_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1beta1.DatasetOrBuilder getDatasetsOrBuilder } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -397,6 +401,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (datasetsBuilder_ == null) { datasets_ = java.util.Collections.emptyList(); } else { @@ -405,7 +410,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -433,7 +437,16 @@ public com.google.cloud.aiplatform.v1beta1.ListDatasetsResponse build() { public com.google.cloud.aiplatform.v1beta1.ListDatasetsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListDatasetsResponse result = new com.google.cloud.aiplatform.v1beta1.ListDatasetsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListDatasetsResponse result) { if (datasetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { datasets_ = java.util.Collections.unmodifiableList(datasets_); @@ -443,9 +456,13 @@ public com.google.cloud.aiplatform.v1beta1.ListDatasetsResponse buildPartial() { } else { result.datasets_ = datasetsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListDatasetsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -523,6 +540,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListDatasetsRespons } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -567,7 +585,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1000,8 +1018,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1017,8 +1035,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1039,8 +1057,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsRequest.java index 1e4aa01eeb3b..4f12578c4ddc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -125,7 +127,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -144,7 +146,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -418,12 +422,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -454,13 +456,27 @@ public com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest bu public com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest result = new com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -512,6 +528,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -519,6 +536,7 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -550,19 +568,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -582,6 +600,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -652,8 +672,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -672,8 +692,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -697,8 +717,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -736,6 +756,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -752,7 +773,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -831,8 +852,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -852,8 +873,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -878,8 +899,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsResponse.java index d909aed340ad..88aaf5f4c7ac 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsResponse.java @@ -71,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DEPLOYMENT_RESOURCE_POOLS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List deploymentResourcePools_; /** @@ -155,7 +157,9 @@ public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool getDeploymentR } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -420,6 +424,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (deploymentResourcePoolsBuilder_ == null) { deploymentResourcePools_ = java.util.Collections.emptyList(); } else { @@ -428,7 +433,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -459,7 +463,16 @@ public com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse b public com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse result = new com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse result) { if (deploymentResourcePoolsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { deploymentResourcePools_ = @@ -470,9 +483,14 @@ public com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse b } else { result.deploymentResourcePools_ = deploymentResourcePoolsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -554,6 +572,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -599,7 +618,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1092,8 +1111,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1110,8 +1129,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1133,8 +1152,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsRequest.java index 616e3a9993b1..80f4e23a7430 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -126,7 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -201,7 +205,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -219,7 +223,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -323,7 +329,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -566,18 +572,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -607,19 +609,32 @@ public com.google.cloud.aiplatform.v1beta1.ListEndpointsRequest build() { public com.google.cloud.aiplatform.v1beta1.ListEndpointsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListEndpointsRequest result = new com.google.cloud.aiplatform.v1beta1.ListEndpointsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListEndpointsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -668,10 +683,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListEndpointsReques return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -679,6 +696,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListEndpointsReques } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -713,31 +731,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -757,6 +775,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -827,8 +847,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -847,8 +867,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -872,8 +892,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -978,8 +998,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1008,8 +1028,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1043,8 +1063,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1080,6 +1100,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1095,7 +1116,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1177,8 +1198,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1199,8 +1220,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1226,8 +1247,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1251,7 +1272,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1288,11 +1309,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1308,11 +1329,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1327,17 +1348,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1351,14 +1373,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1372,7 +1393,7 @@ public Builder clearReadMask() { * */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsResponse.java index fdcc6d056459..fe450a8e481c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENDPOINTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List endpoints_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1beta1.EndpointOrBuilder getEndpointsOrBuild } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -403,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (endpointsBuilder_ == null) { endpoints_ = java.util.Collections.emptyList(); } else { @@ -411,7 +416,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -439,7 +443,16 @@ public com.google.cloud.aiplatform.v1beta1.ListEndpointsResponse build() { public com.google.cloud.aiplatform.v1beta1.ListEndpointsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListEndpointsResponse result = new com.google.cloud.aiplatform.v1beta1.ListEndpointsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListEndpointsResponse result) { if (endpointsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { endpoints_ = java.util.Collections.unmodifiableList(endpoints_); @@ -449,9 +462,13 @@ public com.google.cloud.aiplatform.v1beta1.ListEndpointsResponse buildPartial() } else { result.endpoints_ = endpointsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListEndpointsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -529,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListEndpointsRespon } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -573,7 +591,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1016,8 +1034,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1036,8 +1054,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1061,8 +1079,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesRequest.java index 3d15abbb7ffc..4031fab9b2e5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -206,7 +210,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -227,7 +231,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -286,7 +292,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -387,7 +395,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -639,20 +647,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - orderBy_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -682,20 +685,35 @@ public com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest build() { public com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest result = new com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.orderBy_ = orderBy_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -744,10 +762,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequ return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -755,10 +775,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListEntityTypesRequ } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasReadMask()) { @@ -793,37 +815,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -843,6 +865,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -916,8 +940,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -937,8 +961,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -963,8 +987,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1072,8 +1096,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1103,8 +1127,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1139,8 +1163,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1182,6 +1206,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1200,7 +1225,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1282,8 +1307,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1304,8 +1329,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1331,8 +1356,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1413,8 +1438,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1435,8 +1460,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1462,8 +1487,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1486,7 +1511,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1521,11 +1546,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1540,11 +1565,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1558,17 +1583,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1581,14 +1607,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 6; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1601,7 +1626,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 6; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesResponse.java index 450a32d9e840..2c21b376c3a8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEntityTypesResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENTITY_TYPES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List entityTypes_; /** * @@ -140,7 +142,9 @@ public com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder getEntityTypesOrB } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -404,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (entityTypesBuilder_ == null) { entityTypes_ = java.util.Collections.emptyList(); } else { @@ -412,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -440,7 +444,16 @@ public com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse build() { public com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse result = new com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse result) { if (entityTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { entityTypes_ = java.util.Collections.unmodifiableList(entityTypes_); @@ -450,9 +463,13 @@ public com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse buildPartial( } else { result.entityTypes_ = entityTypesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -530,6 +547,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListEntityTypesResp } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -574,7 +592,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1018,8 +1036,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1038,8 +1056,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1063,8 +1081,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsRequest.java index 5ba6b9478e08..e808cc30f5d2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -148,7 +150,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -207,7 +211,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -304,7 +310,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -597,16 +605,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - filter_ = ""; - orderBy_ = ""; - return this; } @@ -634,15 +638,32 @@ public com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest build() { public com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest result = new com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; - result.orderBy_ = orderBy_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListExecutionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -691,6 +712,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListExecutionsReque return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -698,14 +720,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListExecutionsReque } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -737,31 +762,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -781,6 +806,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -854,8 +881,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -875,8 +902,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -901,8 +928,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -940,6 +967,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -956,7 +984,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -1038,8 +1066,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1060,8 +1088,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1087,8 +1115,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1226,8 +1254,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1267,8 +1295,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1313,8 +1341,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1395,8 +1423,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1417,8 +1445,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1444,8 +1472,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsResponse.java index 20db35fd721f..68bdd06831cf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListExecutionsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int EXECUTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List executions_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionsOrBui } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -403,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (executionsBuilder_ == null) { executions_ = java.util.Collections.emptyList(); } else { @@ -411,7 +416,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -439,7 +443,16 @@ public com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse build() { public com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse result = new com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse result) { if (executionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { executions_ = java.util.Collections.unmodifiableList(executions_); @@ -449,9 +462,13 @@ public com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse buildPartial() } else { result.executions_ = executionsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListExecutionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -529,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListExecutionsRespo } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -573,7 +591,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1017,8 +1035,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1037,8 +1055,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1062,8 +1080,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesRequest.java index 24ef6bc44aea..c60db877203f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -210,7 +214,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -231,7 +235,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -290,7 +296,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -393,11 +401,11 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } public static final int LATEST_STATS_COUNT_FIELD_NUMBER = 7; - private int latestStatsCount_; + private int latestStatsCount_ = 0; /** * * @@ -677,24 +685,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - orderBy_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } latestStatsCount_ = 0; - return this; } @@ -722,21 +724,38 @@ public com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest build() { public com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest result = new com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.orderBy_ = orderBy_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.latestStatsCount_ = latestStatsCount_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.latestStatsCount_ = latestStatsCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -785,10 +804,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -796,10 +817,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListFeaturesRequest } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasReadMask()) { @@ -837,43 +860,43 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 case 56: { latestStatsCount_ = input.readInt32(); - + bitField0_ |= 0x00000040; break; } // case 56 default: @@ -893,6 +916,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -966,8 +991,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -987,8 +1012,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1013,8 +1038,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1128,8 +1153,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1161,8 +1186,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1199,8 +1224,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1242,6 +1267,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1260,7 +1286,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1342,8 +1368,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1364,8 +1390,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1391,8 +1417,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1476,8 +1502,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1499,8 +1525,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1527,8 +1553,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1551,7 +1577,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1586,11 +1612,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1605,11 +1631,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1623,17 +1649,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1646,14 +1673,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 6; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1666,7 +1692,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 6; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } @@ -1753,6 +1779,7 @@ public int getLatestStatsCount() { public Builder setLatestStatsCount(int value) { latestStatsCount_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1773,7 +1800,7 @@ public Builder setLatestStatsCount(int value) { * @return This builder for chaining. */ public Builder clearLatestStatsCount() { - + bitField0_ = (bitField0_ & ~0x00000040); latestStatsCount_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesResponse.java index 322d55748dd6..54884e8a990d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturesResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int FEATURES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List features_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeaturesOrBuilder } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -403,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (featuresBuilder_ == null) { features_ = java.util.Collections.emptyList(); } else { @@ -411,7 +416,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -439,7 +443,16 @@ public com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse build() { public com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse result = new com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse result) { if (featuresBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); @@ -449,9 +462,13 @@ public com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse buildPartial() { } else { result.features_ = featuresBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -529,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListFeaturesRespons } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -573,7 +591,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1015,8 +1033,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1035,8 +1053,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1060,8 +1078,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresRequest.java index 201fa08dac63..acfdfa1c2500 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -208,7 +212,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -229,7 +233,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -288,7 +294,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -389,7 +397,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -641,20 +649,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - orderBy_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -685,20 +688,36 @@ public com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest build() { public com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest result = new com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.orderBy_ = orderBy_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -748,10 +767,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRe return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -759,10 +780,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRe } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasReadMask()) { @@ -797,37 +820,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -847,6 +870,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -920,8 +945,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -941,8 +966,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -967,8 +992,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1079,8 +1104,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1111,8 +1136,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1148,8 +1173,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1191,6 +1216,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1209,7 +1235,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1291,8 +1317,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1313,8 +1339,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1340,8 +1366,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1422,8 +1448,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1444,8 +1470,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1471,8 +1497,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1495,7 +1521,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1530,11 +1556,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1549,11 +1575,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1567,17 +1593,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1590,14 +1617,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 6; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1610,7 +1636,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 6; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresResponse.java index d9eddb1a3c23..074a564f66b3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListFeaturestoresResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int FEATURESTORES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List featurestores_; /** * @@ -140,7 +142,9 @@ public com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder getFeaturestore } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -404,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (featurestoresBuilder_ == null) { featurestores_ = java.util.Collections.emptyList(); } else { @@ -412,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -441,7 +445,16 @@ public com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse build() { public com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse result = new com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse result) { if (featurestoresBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { featurestores_ = java.util.Collections.unmodifiableList(featurestores_); @@ -451,9 +464,14 @@ public com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse buildPartia } else { result.featurestores_ = featurestoresBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -532,6 +550,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListFeaturestoresRe } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -577,7 +596,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1029,8 +1048,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1049,8 +1068,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1074,8 +1093,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsRequest.java index 3b7c0008c45a..c7bd8f151679 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsRequest.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -130,7 +132,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -209,7 +213,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -227,7 +231,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -328,7 +334,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -574,18 +580,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -618,19 +620,33 @@ public com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest b public com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest result = new com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -683,10 +699,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -694,6 +712,7 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -728,31 +747,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -772,6 +791,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -845,8 +866,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -866,8 +887,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -892,8 +913,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1004,8 +1025,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1036,8 +1057,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1073,8 +1094,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1110,6 +1131,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1125,7 +1147,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1207,8 +1229,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1229,8 +1251,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1256,8 +1278,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1280,7 +1302,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1315,11 +1337,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1334,11 +1356,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1352,17 +1374,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1375,14 +1398,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1395,7 +1417,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsResponse.java index c93ba1b923de..0476b056a789 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsResponse.java @@ -72,6 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int HYPERPARAMETER_TUNING_JOBS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List hyperparameterTuningJobs_; /** @@ -166,7 +168,9 @@ public com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob getHyperparam } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -437,6 +441,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (hyperparameterTuningJobsBuilder_ == null) { hyperparameterTuningJobs_ = java.util.Collections.emptyList(); } else { @@ -445,7 +450,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -476,7 +480,16 @@ public com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse public com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse result = new com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse result) { if (hyperparameterTuningJobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { hyperparameterTuningJobs_ = @@ -487,9 +500,14 @@ public com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse } else { result.hyperparameterTuningJobs_ = hyperparameterTuningJobsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -571,6 +589,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -616,7 +635,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1151,8 +1170,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1171,8 +1190,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1196,8 +1215,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsRequest.java index fd7c8c30feee..ce44c73146c2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -126,7 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -205,7 +209,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -223,7 +227,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -327,7 +333,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -570,18 +576,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -612,19 +614,33 @@ public com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest build() { public com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest result = new com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -674,10 +690,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsR return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -685,6 +703,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsR } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -719,31 +738,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -763,6 +782,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -833,8 +854,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -853,8 +874,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -878,8 +899,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -990,8 +1011,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1022,8 +1043,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1059,8 +1080,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1096,6 +1117,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1111,7 +1133,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1193,8 +1215,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1215,8 +1237,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1242,8 +1264,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1267,7 +1289,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1304,11 +1326,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1324,11 +1346,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1343,17 +1365,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1367,14 +1390,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1388,7 +1410,7 @@ public Builder clearReadMask() { * */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsResponse.java index a9ae55064cab..3ed7af15eae1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexEndpointsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INDEX_ENDPOINTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List indexEndpoints_; /** * @@ -140,7 +142,9 @@ public com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder getIndexEndpoi } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -404,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (indexEndpointsBuilder_ == null) { indexEndpoints_ = java.util.Collections.emptyList(); } else { @@ -412,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -441,7 +445,16 @@ public com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse build() { public com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse result = new com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse result) { if (indexEndpointsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { indexEndpoints_ = java.util.Collections.unmodifiableList(indexEndpoints_); @@ -451,9 +464,14 @@ public com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse buildParti } else { result.indexEndpoints_ = indexEndpointsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -532,6 +550,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListIndexEndpointsR } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -577,7 +596,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1031,8 +1050,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1051,8 +1070,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1076,8 +1095,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesRequest.java index 0f78c9b721db..2ea5a8cbf24d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -126,7 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -175,7 +179,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -193,7 +197,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -294,7 +300,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -537,18 +543,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -578,19 +580,32 @@ public com.google.cloud.aiplatform.v1beta1.ListIndexesRequest build() { public com.google.cloud.aiplatform.v1beta1.ListIndexesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListIndexesRequest result = new com.google.cloud.aiplatform.v1beta1.ListIndexesRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListIndexesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -639,10 +654,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListIndexesRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -650,6 +667,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListIndexesRequest } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -684,31 +702,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -728,6 +746,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -798,8 +818,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -818,8 +838,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -843,8 +863,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -910,8 +930,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -927,8 +947,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -949,8 +969,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -986,6 +1006,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1001,7 +1022,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1083,8 +1104,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1105,8 +1126,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1132,8 +1153,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1156,7 +1177,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1191,11 +1212,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1210,11 +1231,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1228,17 +1249,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1251,14 +1273,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1271,7 +1292,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesResponse.java index 02f1a2154811..8317a7d23e14 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListIndexesResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INDEXES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List indexes_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1beta1.IndexOrBuilder getIndexesOrBuilder(in } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -403,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (indexesBuilder_ == null) { indexes_ = java.util.Collections.emptyList(); } else { @@ -411,7 +416,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -439,7 +443,16 @@ public com.google.cloud.aiplatform.v1beta1.ListIndexesResponse build() { public com.google.cloud.aiplatform.v1beta1.ListIndexesResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListIndexesResponse result = new com.google.cloud.aiplatform.v1beta1.ListIndexesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListIndexesResponse result) { if (indexesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { indexes_ = java.util.Collections.unmodifiableList(indexes_); @@ -449,9 +462,13 @@ public com.google.cloud.aiplatform.v1beta1.ListIndexesResponse buildPartial() { } else { result.indexes_ = indexesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListIndexesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -529,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListIndexesResponse } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -573,7 +591,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1014,8 +1032,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1034,8 +1052,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1059,8 +1077,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasRequest.java index 403f3dd5d281..21b2f1bdfcf2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -128,7 +130,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -148,7 +150,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -207,7 +211,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -481,14 +487,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - filter_ = ""; - return this; } @@ -517,14 +520,30 @@ public com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest build() { public com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest result = new com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -574,6 +593,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListMetadataSchemas return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -581,10 +601,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListMetadataSchemas } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -616,25 +638,25 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -654,6 +676,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -727,8 +751,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -748,8 +772,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -774,8 +798,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -815,6 +839,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -832,7 +857,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -914,8 +939,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -936,8 +961,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -963,8 +988,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1030,8 +1055,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1047,8 +1072,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1069,8 +1094,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasResponse.java index 21c5e55ba068..fb4928d146b1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataSchemasResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int METADATA_SCHEMAS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List metadataSchemas_; /** * @@ -141,7 +143,9 @@ public com.google.cloud.aiplatform.v1beta1.MetadataSchemaOrBuilder getMetadataSc } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -405,6 +409,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (metadataSchemasBuilder_ == null) { metadataSchemas_ = java.util.Collections.emptyList(); } else { @@ -413,7 +418,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -442,7 +446,16 @@ public com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse build() { public com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse result = new com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse result) { if (metadataSchemasBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { metadataSchemas_ = java.util.Collections.unmodifiableList(metadataSchemas_); @@ -452,9 +465,14 @@ public com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse buildPart } else { result.metadataSchemas_ = metadataSchemasBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -534,6 +552,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -579,7 +598,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1033,8 +1052,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1053,8 +1072,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1078,8 +1097,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresRequest.java index 111d43eee911..c17e7f79d325 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -147,7 +149,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -422,12 +426,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -456,13 +458,27 @@ public com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest build() { public com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest result = new com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -512,6 +528,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListMetadataStoresR return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -519,6 +536,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListMetadataStoresR } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -550,19 +568,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -582,6 +600,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -655,8 +675,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -676,8 +696,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -702,8 +722,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -743,6 +763,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -760,7 +781,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -842,8 +863,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -864,8 +885,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -891,8 +912,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresResponse.java index b8c20df9a471..3e532e120c8d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListMetadataStoresResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int METADATA_STORES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List metadataStores_; /** * @@ -140,7 +142,9 @@ public com.google.cloud.aiplatform.v1beta1.MetadataStoreOrBuilder getMetadataSto } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -404,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (metadataStoresBuilder_ == null) { metadataStores_ = java.util.Collections.emptyList(); } else { @@ -412,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -441,7 +445,16 @@ public com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse build() { public com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse result = new com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse result) { if (metadataStoresBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { metadataStores_ = java.util.Collections.unmodifiableList(metadataStores_); @@ -451,9 +464,14 @@ public com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse buildParti } else { result.metadataStores_ = metadataStoresBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -532,6 +550,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListMetadataStoresR } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -577,7 +596,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1031,8 +1050,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1051,8 +1070,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1076,8 +1095,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequest.java index 528ab9d6a708..c5a177ed5f23 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequest.java @@ -74,7 +74,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -208,7 +212,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -226,7 +230,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -317,7 +323,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -569,18 +575,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -614,19 +616,33 @@ public com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequ buildPartial() { com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest result = new com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -679,10 +695,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -690,6 +708,7 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -724,31 +743,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -768,6 +787,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -838,8 +859,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -858,8 +879,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -883,8 +904,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -995,8 +1016,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1027,8 +1048,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1064,8 +1085,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1101,6 +1122,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1116,7 +1138,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1183,8 +1205,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1200,8 +1222,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1222,8 +1244,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1246,7 +1268,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1281,11 +1303,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1300,11 +1322,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1318,17 +1340,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1341,14 +1364,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1361,7 +1383,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsResponse.java index 025376da96c8..3a42e246b3de 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsResponse.java @@ -73,6 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MODEL_DEPLOYMENT_MONITORING_JOBS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List modelDeploymentMonitoringJobs_; /** @@ -162,7 +164,9 @@ public int getModelDeploymentMonitoringJobsCount() { } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -432,6 +436,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (modelDeploymentMonitoringJobsBuilder_ == null) { modelDeploymentMonitoringJobs_ = java.util.Collections.emptyList(); } else { @@ -440,7 +445,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -472,7 +476,16 @@ public com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResp buildPartial() { com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse result = new com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse result) { if (modelDeploymentMonitoringJobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { modelDeploymentMonitoringJobs_ = @@ -483,9 +496,14 @@ public com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResp } else { result.modelDeploymentMonitoringJobs_ = modelDeploymentMonitoringJobsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -569,6 +587,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -614,7 +633,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1127,8 +1146,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1144,8 +1163,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1166,8 +1185,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationSlicesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationSlicesRequest.java index bac850b47f3f..4b7f8ebae08d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationSlicesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationSlicesRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -180,7 +184,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -198,7 +202,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -299,7 +305,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -544,18 +550,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -587,19 +589,33 @@ public com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest buil public com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest result = new com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -651,10 +667,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -662,6 +680,7 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -696,31 +715,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -740,6 +759,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -813,8 +834,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -834,8 +855,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -860,8 +881,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -930,8 +951,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -948,8 +969,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -971,8 +992,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1008,6 +1029,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1023,7 +1045,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1105,8 +1127,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1127,8 +1149,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1154,8 +1176,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1178,7 +1200,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1213,11 +1235,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1232,11 +1254,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1250,17 +1272,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1273,14 +1296,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1293,7 +1315,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationSlicesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationSlicesResponse.java index b9e08fe43696..e6e480541b15 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationSlicesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationSlicesResponse.java @@ -71,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MODEL_EVALUATION_SLICES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List modelEvaluationSlices_; /** @@ -154,7 +156,9 @@ public com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice getModelEvaluati } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -422,6 +426,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (modelEvaluationSlicesBuilder_ == null) { modelEvaluationSlices_ = java.util.Collections.emptyList(); } else { @@ -430,7 +435,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -460,7 +464,16 @@ public com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse bui public com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse result = new com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse result) { if (modelEvaluationSlicesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { modelEvaluationSlices_ = java.util.Collections.unmodifiableList(modelEvaluationSlices_); @@ -470,9 +483,14 @@ public com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse bui } else { result.modelEvaluationSlices_ = modelEvaluationSlicesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -553,6 +571,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -598,7 +617,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1096,8 +1115,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1116,8 +1135,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1141,8 +1160,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationsRequest.java index 1b22458e0480..726f36d85462 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationsRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -126,7 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -175,7 +179,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -193,7 +197,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -294,7 +300,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -537,18 +543,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -579,19 +581,33 @@ public com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest build() { public com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest result = new com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -642,10 +658,12 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -653,6 +671,7 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -687,31 +706,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -731,6 +750,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -801,8 +822,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -821,8 +842,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -846,8 +867,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -913,8 +934,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -930,8 +951,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -952,8 +973,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -989,6 +1010,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1004,7 +1026,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1086,8 +1108,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1108,8 +1130,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1135,8 +1157,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1159,7 +1181,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1194,11 +1216,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1213,11 +1235,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1231,17 +1253,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1254,14 +1277,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1274,7 +1296,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationsResponse.java index 8d92912ea985..d9ab181fdd51 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelEvaluationsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MODEL_EVALUATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List modelEvaluations_; /** * @@ -141,7 +143,9 @@ public com.google.cloud.aiplatform.v1beta1.ModelEvaluationOrBuilder getModelEval } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -405,6 +409,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (modelEvaluationsBuilder_ == null) { modelEvaluations_ = java.util.Collections.emptyList(); } else { @@ -413,7 +418,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -442,7 +446,16 @@ public com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse build() public com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse result = new com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse result) { if (modelEvaluationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { modelEvaluations_ = java.util.Collections.unmodifiableList(modelEvaluations_); @@ -452,9 +465,14 @@ public com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse buildPar } else { result.modelEvaluations_ = modelEvaluationsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -534,6 +552,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -579,7 +598,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1034,8 +1053,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1054,8 +1073,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1079,8 +1098,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionsRequest.java index fc693c427abf..4940fc6d01df 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -125,7 +127,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -143,7 +145,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -198,7 +202,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -303,11 +309,13 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } public static final int ORDER_BY_FIELD_NUMBER = 6; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -614,22 +622,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - pageSize_ = 0; - pageToken_ = ""; - filter_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } orderBy_ = ""; - return this; } @@ -658,20 +661,36 @@ public com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest build() { public com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest result = new com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest(this); - result.name_ = name_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.orderBy_ = orderBy_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -721,6 +740,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListModelVersionsRe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -728,10 +748,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListModelVersionsRe } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -739,6 +761,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListModelVersionsRe } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -770,37 +793,37 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -820,6 +843,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -887,8 +912,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -906,8 +931,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -930,8 +955,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -967,6 +992,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -982,7 +1008,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -1058,8 +1084,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1078,8 +1104,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1103,8 +1129,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1191,8 +1217,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1215,8 +1241,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1244,8 +1270,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1268,7 +1294,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1303,11 +1329,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1322,11 +1348,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1340,17 +1366,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1363,14 +1390,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1383,7 +1409,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } @@ -1505,8 +1531,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1527,8 +1553,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1554,8 +1580,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionsResponse.java index 6a46874a2aa8..acd5a371b1e6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MODELS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List models_; /** * @@ -149,7 +151,9 @@ public com.google.cloud.aiplatform.v1beta1.ModelOrBuilder getModelsOrBuilder(int } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -413,6 +417,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (modelsBuilder_ == null) { models_ = java.util.Collections.emptyList(); } else { @@ -421,7 +426,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -450,7 +454,16 @@ public com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse build() { public com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse result = new com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse result) { if (modelsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { models_ = java.util.Collections.unmodifiableList(models_); @@ -460,9 +473,14 @@ public com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse buildPartia } else { result.models_ = modelsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -541,6 +559,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListModelVersionsRe } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -585,7 +604,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1062,8 +1081,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1082,8 +1101,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1107,8 +1126,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsRequest.java index 8ecdd1f94b1f..c2904650d46a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -126,7 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -201,7 +205,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -219,7 +223,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -320,7 +326,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -563,18 +569,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -604,19 +606,32 @@ public com.google.cloud.aiplatform.v1beta1.ListModelsRequest build() { public com.google.cloud.aiplatform.v1beta1.ListModelsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListModelsRequest result = new com.google.cloud.aiplatform.v1beta1.ListModelsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListModelsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -665,10 +680,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListModelsRequest o return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -676,6 +693,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListModelsRequest o } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -710,31 +728,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -754,6 +772,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -824,8 +844,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -844,8 +864,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -869,8 +889,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -975,8 +995,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1005,8 +1025,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1040,8 +1060,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1077,6 +1097,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1092,7 +1113,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1174,8 +1195,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1196,8 +1217,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1223,8 +1244,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1247,7 +1268,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1282,11 +1303,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1301,11 +1322,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1319,17 +1340,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1342,14 +1364,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1362,7 +1383,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsResponse.java index 54b8cbeb7c04..1def4e1a3d08 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MODELS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List models_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1beta1.ModelOrBuilder getModelsOrBuilder(int } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -403,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (modelsBuilder_ == null) { models_ = java.util.Collections.emptyList(); } else { @@ -411,7 +416,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -439,7 +443,16 @@ public com.google.cloud.aiplatform.v1beta1.ListModelsResponse build() { public com.google.cloud.aiplatform.v1beta1.ListModelsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListModelsResponse result = new com.google.cloud.aiplatform.v1beta1.ListModelsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListModelsResponse result) { if (modelsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { models_ = java.util.Collections.unmodifiableList(models_); @@ -449,9 +462,13 @@ public com.google.cloud.aiplatform.v1beta1.ListModelsResponse buildPartial() { } else { result.models_ = modelsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListModelsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -529,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListModelsResponse } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -573,7 +591,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1014,8 +1032,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1034,8 +1052,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1059,8 +1077,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsRequest.java index e9e8d17cd250..399f4a7b8808 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -320,8 +322,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - return this; } @@ -350,11 +352,21 @@ public com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest build() { public com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest result = new com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest(this); - result.parent_ = parent_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRe return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -435,7 +448,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -455,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -522,8 +537,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -541,8 +556,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -565,8 +580,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsResponse.java index e6ea27beb62d..85d4d399f88c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOptimalTrialsResponse.java @@ -69,6 +69,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int OPTIMAL_TRIALS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List optimalTrials_; /** * @@ -353,6 +355,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (optimalTrialsBuilder_ == null) { optimalTrials_ = java.util.Collections.emptyList(); } else { @@ -388,7 +391,16 @@ public com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse build() { public com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse result = new com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse result) { if (optimalTrialsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { optimalTrials_ = java.util.Collections.unmodifiableList(optimalTrials_); @@ -398,8 +410,11 @@ public com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse buildPartia } else { result.optimalTrials_ = optimalTrialsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequest.java index cdf1afa66a71..3504a096c4e8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -232,7 +236,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -250,7 +254,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -309,7 +315,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 6; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -422,7 +430,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -674,20 +682,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - orderBy_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -717,20 +720,35 @@ public com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest build() { public com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest result = new com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.orderBy_ = orderBy_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -779,10 +797,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListPipelineJobsReq return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -790,10 +810,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListPipelineJobsReq } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasReadMask()) { @@ -828,37 +850,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 50: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 50 case 58: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 58 default: @@ -878,6 +900,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -948,8 +972,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -968,8 +992,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -993,8 +1017,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1144,8 +1168,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1189,8 +1213,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1239,8 +1263,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1276,6 +1300,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1291,7 +1316,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1373,8 +1398,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1395,8 +1420,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1422,8 +1447,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1522,8 +1547,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1550,8 +1575,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1583,8 +1608,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1607,7 +1632,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1642,11 +1667,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1661,11 +1686,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1679,17 +1704,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1702,14 +1728,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 7; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1722,7 +1747,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 7; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsResponse.java index df38acf6b517..a212616f5c82 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PIPELINE_JOBS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List pipelineJobs_; /** * @@ -140,7 +142,9 @@ public com.google.cloud.aiplatform.v1beta1.PipelineJobOrBuilder getPipelineJobsO } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -404,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (pipelineJobsBuilder_ == null) { pipelineJobs_ = java.util.Collections.emptyList(); } else { @@ -412,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -441,7 +445,16 @@ public com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse build() { public com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse result = new com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse result) { if (pipelineJobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { pipelineJobs_ = java.util.Collections.unmodifiableList(pipelineJobs_); @@ -451,9 +464,14 @@ public com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse buildPartial } else { result.pipelineJobs_ = pipelineJobsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -532,6 +550,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListPipelineJobsRes } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -577,7 +596,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1025,8 +1044,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1045,8 +1064,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1070,8 +1089,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesRequest.java index de7209e1167e..bb9ead34b1e9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -178,7 +182,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -196,7 +200,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -287,11 +293,13 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } public static final int ORDER_BY_FIELD_NUMBER = 6; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -590,22 +598,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } orderBy_ = ""; - return this; } @@ -633,20 +636,35 @@ public com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest build() { public com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest result = new com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.orderBy_ = orderBy_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -695,10 +713,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListSavedQueriesReq return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -706,6 +726,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListSavedQueriesReq } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -713,6 +734,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListSavedQueriesReq } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -744,37 +766,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -794,6 +816,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -867,8 +891,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -888,8 +912,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -914,8 +938,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -981,8 +1005,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -998,8 +1022,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1020,8 +1044,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1057,6 +1081,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1072,7 +1097,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1139,8 +1164,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1156,8 +1181,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1178,8 +1203,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1202,7 +1227,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1237,11 +1262,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1256,11 +1281,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1274,17 +1299,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1297,14 +1323,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1317,7 +1342,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } @@ -1427,8 +1452,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1445,8 +1470,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1468,8 +1493,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesResponse.java index 6734b9f8ea7a..748e1195300a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SAVED_QUERIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List savedQueries_; /** * @@ -140,7 +142,9 @@ public com.google.cloud.aiplatform.v1beta1.SavedQueryOrBuilder getSavedQueriesOr } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -398,6 +402,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (savedQueriesBuilder_ == null) { savedQueries_ = java.util.Collections.emptyList(); } else { @@ -406,7 +411,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -435,7 +439,16 @@ public com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse build() { public com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse result = new com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse result) { if (savedQueriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { savedQueries_ = java.util.Collections.unmodifiableList(savedQueries_); @@ -445,9 +458,14 @@ public com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse buildPartial } else { result.savedQueries_ = savedQueriesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -526,6 +544,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRes } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -570,7 +589,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1009,8 +1028,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1026,8 +1045,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1048,8 +1067,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSpecialistPoolsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSpecialistPoolsRequest.java index e81d3361c1f9..bf741232697c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSpecialistPoolsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSpecialistPoolsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -125,7 +127,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -143,7 +145,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -244,7 +248,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -478,16 +482,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -518,18 +519,30 @@ public com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest build() { public com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest result = new com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -579,6 +592,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListSpecialistPools return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -586,6 +600,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListSpecialistPools } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasReadMask()) { @@ -620,25 +635,25 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -658,6 +673,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -728,8 +745,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -748,8 +765,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -773,8 +790,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -810,6 +827,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -825,7 +843,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -907,8 +925,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -929,8 +947,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -956,8 +974,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -980,7 +998,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1015,11 +1033,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1034,11 +1052,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1052,17 +1070,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1075,14 +1094,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 4; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1095,7 +1113,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 4; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSpecialistPoolsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSpecialistPoolsResponse.java index cb1ecda34946..1439201d8028 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSpecialistPoolsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSpecialistPoolsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SPECIALIST_POOLS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List specialistPools_; /** * @@ -141,7 +143,9 @@ public com.google.cloud.aiplatform.v1beta1.SpecialistPoolOrBuilder getSpecialist } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -399,6 +403,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (specialistPoolsBuilder_ == null) { specialistPools_ = java.util.Collections.emptyList(); } else { @@ -407,7 +412,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -436,7 +440,16 @@ public com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse build() { public com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse result = new com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse result) { if (specialistPoolsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { specialistPools_ = java.util.Collections.unmodifiableList(specialistPools_); @@ -446,9 +459,14 @@ public com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse buildPart } else { result.specialistPools_ = specialistPoolsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -528,6 +546,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -573,7 +592,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1018,8 +1037,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1035,8 +1054,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1057,8 +1076,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesRequest.java index 2b87fca69dac..2a32996d6759 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -125,7 +127,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -176,7 +180,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -411,12 +415,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageToken_ = ""; - pageSize_ = 0; - return this; } @@ -444,13 +446,26 @@ public com.google.cloud.aiplatform.v1beta1.ListStudiesRequest build() { public com.google.cloud.aiplatform.v1beta1.ListStudiesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListStudiesRequest result = new com.google.cloud.aiplatform.v1beta1.ListStudiesRequest(this); - result.parent_ = parent_; - result.pageToken_ = pageToken_; - result.pageSize_ = pageSize_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListStudiesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -499,10 +514,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListStudiesRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -537,19 +554,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -569,6 +586,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -639,8 +658,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -659,8 +678,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -684,8 +703,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -754,8 +773,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -772,8 +791,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -795,8 +814,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -834,6 +853,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -850,7 +870,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesResponse.java index 06577c08eb9e..7800629e9ff0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListStudiesResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int STUDIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List studies_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1beta1.StudyOrBuilder getStudiesOrBuilder(in } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -401,6 +405,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (studiesBuilder_ == null) { studies_ = java.util.Collections.emptyList(); } else { @@ -409,7 +414,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -437,7 +441,16 @@ public com.google.cloud.aiplatform.v1beta1.ListStudiesResponse build() { public com.google.cloud.aiplatform.v1beta1.ListStudiesResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListStudiesResponse result = new com.google.cloud.aiplatform.v1beta1.ListStudiesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListStudiesResponse result) { if (studiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { studies_ = java.util.Collections.unmodifiableList(studies_); @@ -447,9 +460,13 @@ public com.google.cloud.aiplatform.v1beta1.ListStudiesResponse buildPartial() { } else { result.studies_ = studiesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListStudiesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -527,6 +544,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListStudiesResponse } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -571,7 +589,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1009,8 +1027,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1028,8 +1046,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1052,8 +1070,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsRequest.java index b0402b9cd4b4..860e21521215 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsRequest.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -130,7 +132,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -179,7 +183,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -200,7 +204,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -259,7 +265,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -350,7 +358,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -604,20 +612,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - orderBy_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -649,20 +652,36 @@ public com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest bui public com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest result = new com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.orderBy_ = orderBy_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -714,10 +733,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -725,10 +746,12 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasReadMask()) { @@ -763,37 +786,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -813,6 +836,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -886,8 +911,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -907,8 +932,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -933,8 +958,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1000,8 +1025,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1017,8 +1042,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1039,8 +1064,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1082,6 +1107,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1100,7 +1126,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1182,8 +1208,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1204,8 +1230,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1231,8 +1257,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1298,8 +1324,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1315,8 +1341,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1337,8 +1363,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1361,7 +1387,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1396,11 +1422,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1415,11 +1441,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1433,17 +1459,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1456,14 +1483,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 6; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1476,7 +1502,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 6; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsResponse.java index ac630f2958ad..d670e68869db 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardExperimentsResponse.java @@ -71,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_EXPERIMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List tensorboardExperiments_; /** @@ -155,7 +157,9 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment getTensorboardE } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -424,6 +428,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (tensorboardExperimentsBuilder_ == null) { tensorboardExperiments_ = java.util.Collections.emptyList(); } else { @@ -432,7 +437,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -463,7 +467,16 @@ public com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse bu public com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse result = new com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse result) { if (tensorboardExperimentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { tensorboardExperiments_ = java.util.Collections.unmodifiableList(tensorboardExperiments_); @@ -473,9 +486,14 @@ public com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse bu } else { result.tensorboardExperiments_ = tensorboardExperimentsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -556,6 +574,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -601,7 +620,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1100,8 +1119,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1120,8 +1139,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1145,8 +1164,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsRequest.java index fdd110f7df8b..6cea00ca073f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -178,7 +182,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -199,7 +203,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -258,7 +264,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -349,7 +357,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -601,20 +609,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - orderBy_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -645,20 +648,36 @@ public com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest build() { public com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest result = new com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.orderBy_ = orderBy_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -708,10 +727,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListTensorboardRuns return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -719,10 +740,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListTensorboardRuns } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasReadMask()) { @@ -757,37 +780,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -807,6 +830,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -880,8 +905,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -901,8 +926,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -927,8 +952,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -994,8 +1019,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1011,8 +1036,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1033,8 +1058,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1076,6 +1101,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1094,7 +1120,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1176,8 +1202,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1198,8 +1224,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1225,8 +1251,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1292,8 +1318,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1309,8 +1335,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1331,8 +1357,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1355,7 +1381,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1390,11 +1416,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1409,11 +1435,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1427,17 +1453,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1450,14 +1477,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 6; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1470,7 +1496,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 6; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsResponse.java index d1f7f7185420..61293b79f1cb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardRunsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_RUNS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List tensorboardRuns_; /** * @@ -141,7 +143,9 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder getTensorboar } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -405,6 +409,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (tensorboardRunsBuilder_ == null) { tensorboardRuns_ = java.util.Collections.emptyList(); } else { @@ -413,7 +418,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -442,7 +446,16 @@ public com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse build() { public com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse result = new com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse result) { if (tensorboardRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { tensorboardRuns_ = java.util.Collections.unmodifiableList(tensorboardRuns_); @@ -452,9 +465,14 @@ public com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse buildPart } else { result.tensorboardRuns_ = tensorboardRunsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -534,6 +552,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -579,7 +598,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1033,8 +1052,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1053,8 +1072,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1078,8 +1097,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesRequest.java index a5c3dfe487a9..276c9c3cb68a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesRequest.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -130,7 +132,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -179,7 +183,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -200,7 +204,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -259,7 +265,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -350,7 +358,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -604,20 +612,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - orderBy_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -649,20 +652,36 @@ public com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest buil public com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest result = new com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.orderBy_ = orderBy_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -714,10 +733,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -725,10 +746,12 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasReadMask()) { @@ -763,37 +786,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -813,6 +836,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -886,8 +911,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -907,8 +932,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -933,8 +958,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1000,8 +1025,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1017,8 +1042,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1039,8 +1064,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1082,6 +1107,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1100,7 +1126,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1182,8 +1208,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1204,8 +1230,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1231,8 +1257,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1298,8 +1324,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1315,8 +1341,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1337,8 +1363,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1361,7 +1387,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1396,11 +1422,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1415,11 +1441,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1433,17 +1459,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1456,14 +1483,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 6; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1476,7 +1502,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 6; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesResponse.java index 14965a4d5ee5..446a57c7d835 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardTimeSeriesResponse.java @@ -71,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_TIME_SERIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List tensorboardTimeSeries_; /** @@ -155,7 +157,9 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries getTensorboardT } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -423,6 +427,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (tensorboardTimeSeriesBuilder_ == null) { tensorboardTimeSeries_ = java.util.Collections.emptyList(); } else { @@ -431,7 +436,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -461,7 +465,16 @@ public com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse bui public com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse result = new com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse result) { if (tensorboardTimeSeriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { tensorboardTimeSeries_ = java.util.Collections.unmodifiableList(tensorboardTimeSeries_); @@ -471,9 +484,14 @@ public com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse bui } else { result.tensorboardTimeSeries_ = tensorboardTimeSeriesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -554,6 +572,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -599,7 +618,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1098,8 +1117,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1118,8 +1137,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1143,8 +1162,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsRequest.java index e01558a1e89b..d25bb7f4b8a7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -178,7 +182,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -199,7 +203,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -258,7 +264,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -349,7 +357,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -601,20 +609,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - orderBy_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -644,20 +647,35 @@ public com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest build() { public com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest result = new com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.orderBy_ = orderBy_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListTensorboardsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -706,10 +724,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListTensorboardsReq return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -717,10 +737,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListTensorboardsReq } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasReadMask()) { @@ -755,37 +777,37 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -805,6 +827,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -878,8 +902,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -899,8 +923,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -925,8 +949,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -992,8 +1016,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1009,8 +1033,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1031,8 +1055,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1074,6 +1098,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1092,7 +1117,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1174,8 +1199,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1196,8 +1221,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1223,8 +1248,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1290,8 +1315,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1307,8 +1332,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1329,8 +1354,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1353,7 +1378,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1388,11 +1413,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1407,11 +1432,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1425,17 +1450,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1448,14 +1474,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 6; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1468,7 +1493,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 6; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsResponse.java index 48ef06c07f72..e52956e100db 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTensorboardsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List tensorboards_; /** * @@ -140,7 +142,9 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder getTensorboardsO } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -404,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (tensorboardsBuilder_ == null) { tensorboards_ = java.util.Collections.emptyList(); } else { @@ -412,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -441,7 +445,16 @@ public com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse build() { public com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse result = new com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse result) { if (tensorboardsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { tensorboards_ = java.util.Collections.unmodifiableList(tensorboards_); @@ -451,9 +464,14 @@ public com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse buildPartial } else { result.tensorboards_ = tensorboardsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListTensorboardsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -532,6 +550,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListTensorboardsRes } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -577,7 +596,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1025,8 +1044,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1045,8 +1064,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1070,8 +1089,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequest.java index 33d32a83dc1e..329ca32f60e1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -126,7 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -205,7 +209,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -223,7 +227,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -324,7 +330,7 @@ public com.google.protobuf.FieldMask getReadMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } private byte memoizedIsInitialized = -1; @@ -567,18 +573,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } return this; @@ -609,19 +611,33 @@ public com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest build() public com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest result = new com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -672,10 +688,12 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -683,6 +701,7 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasReadMask()) { @@ -717,31 +736,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -761,6 +780,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -831,8 +852,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -851,8 +872,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -876,8 +897,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -988,8 +1009,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1020,8 +1041,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1057,8 +1078,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1094,6 +1115,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1109,7 +1131,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1191,8 +1213,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1213,8 +1235,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1240,8 +1262,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1264,7 +1286,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the readMask field is set. */ public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1299,11 +1321,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } readMask_ = value; - onChanged(); } else { readMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1318,11 +1340,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); - onChanged(); } else { readMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1336,17 +1358,18 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); } else { readMask_ = value; } - onChanged(); } else { readMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1359,14 +1382,13 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask read_mask = 5; */ public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); readMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1379,7 +1401,7 @@ public Builder clearReadMask() { * .google.protobuf.FieldMask read_mask = 5; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getReadMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesResponse.java index 37ed735bd784..390cdbd17ca1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRAINING_PIPELINES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List trainingPipelines_; /** * @@ -141,7 +143,9 @@ public com.google.cloud.aiplatform.v1beta1.TrainingPipeline getTrainingPipelines } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -408,6 +412,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (trainingPipelinesBuilder_ == null) { trainingPipelines_ = java.util.Collections.emptyList(); } else { @@ -416,7 +421,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -445,7 +449,16 @@ public com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse build() public com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse result = new com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse result) { if (trainingPipelinesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { trainingPipelines_ = java.util.Collections.unmodifiableList(trainingPipelines_); @@ -455,9 +468,14 @@ public com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse buildPa } else { result.trainingPipelines_ = trainingPipelinesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -537,6 +555,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -582,7 +601,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1056,8 +1075,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1076,8 +1095,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1101,8 +1120,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsRequest.java index 3e72bcb4c123..1f2b876144d7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -125,7 +127,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -176,7 +180,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -411,12 +415,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageToken_ = ""; - pageSize_ = 0; - return this; } @@ -444,13 +446,26 @@ public com.google.cloud.aiplatform.v1beta1.ListTrialsRequest build() { public com.google.cloud.aiplatform.v1beta1.ListTrialsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ListTrialsRequest result = new com.google.cloud.aiplatform.v1beta1.ListTrialsRequest(this); - result.parent_ = parent_; - result.pageToken_ = pageToken_; - result.pageSize_ = pageSize_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListTrialsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -499,10 +514,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListTrialsRequest o return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -537,19 +554,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -569,6 +586,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -639,8 +658,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -659,8 +678,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -684,8 +703,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -754,8 +773,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -772,8 +791,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -795,8 +814,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -834,6 +853,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -850,7 +870,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsResponse.java index 52a09f1ab3c3..016de82d33e7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrialsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRIALS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List trials_; /** * @@ -139,7 +141,9 @@ public com.google.cloud.aiplatform.v1beta1.TrialOrBuilder getTrialsOrBuilder(int } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -401,6 +405,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (trialsBuilder_ == null) { trials_ = java.util.Collections.emptyList(); } else { @@ -409,7 +414,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -437,7 +441,16 @@ public com.google.cloud.aiplatform.v1beta1.ListTrialsResponse build() { public com.google.cloud.aiplatform.v1beta1.ListTrialsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ListTrialsResponse result = new com.google.cloud.aiplatform.v1beta1.ListTrialsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListTrialsResponse result) { if (trialsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { trials_ = java.util.Collections.unmodifiableList(trials_); @@ -447,9 +460,13 @@ public com.google.cloud.aiplatform.v1beta1.ListTrialsResponse buildPartial() { } else { result.trials_ = trialsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ListTrialsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -527,6 +544,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListTrialsResponse } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -571,7 +589,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1009,8 +1027,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1028,8 +1046,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1052,8 +1070,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LookupStudyRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LookupStudyRequest.java index 91aca04ce5f4..44c91a83cb16 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LookupStudyRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LookupStudyRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -125,7 +127,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -381,10 +385,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - displayName_ = ""; - return this; } @@ -412,12 +415,23 @@ public com.google.cloud.aiplatform.v1beta1.LookupStudyRequest build() { public com.google.cloud.aiplatform.v1beta1.LookupStudyRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.LookupStudyRequest result = new com.google.cloud.aiplatform.v1beta1.LookupStudyRequest(this); - result.parent_ = parent_; - result.displayName_ = displayName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.LookupStudyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -466,10 +480,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.LookupStudyRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -501,13 +517,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -527,6 +543,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -597,8 +615,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -617,8 +635,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -642,8 +660,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -709,8 +727,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -726,8 +744,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -748,8 +766,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpec.java index 1bad106f23ed..b6ceea1ef657 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpec.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MACHINE_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object machineType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object machineType_ = ""; /** * * @@ -136,7 +138,7 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { } public static final int ACCELERATOR_TYPE_FIELD_NUMBER = 2; - private int acceleratorType_; + private int acceleratorType_ = 0; /** * * @@ -173,16 +175,15 @@ public int getAcceleratorTypeValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.AcceleratorType getAcceleratorType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.AcceleratorType result = - com.google.cloud.aiplatform.v1beta1.AcceleratorType.valueOf(acceleratorType_); + com.google.cloud.aiplatform.v1beta1.AcceleratorType.forNumber(acceleratorType_); return result == null ? com.google.cloud.aiplatform.v1beta1.AcceleratorType.UNRECOGNIZED : result; } public static final int ACCELERATOR_COUNT_FIELD_NUMBER = 3; - private int acceleratorCount_; + private int acceleratorCount_ = 0; /** * * @@ -418,12 +419,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; machineType_ = ""; - acceleratorType_ = 0; - acceleratorCount_ = 0; - return this; } @@ -451,13 +450,26 @@ public com.google.cloud.aiplatform.v1beta1.MachineSpec build() { public com.google.cloud.aiplatform.v1beta1.MachineSpec buildPartial() { com.google.cloud.aiplatform.v1beta1.MachineSpec result = new com.google.cloud.aiplatform.v1beta1.MachineSpec(this); - result.machineType_ = machineType_; - result.acceleratorType_ = acceleratorType_; - result.acceleratorCount_ = acceleratorCount_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MachineSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.machineType_ = machineType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.acceleratorType_ = acceleratorType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.acceleratorCount_ = acceleratorCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -506,6 +518,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MachineSpec other) return this; if (!other.getMachineType().isEmpty()) { machineType_ = other.machineType_; + bitField0_ |= 0x00000001; onChanged(); } if (other.acceleratorType_ != 0) { @@ -543,19 +556,19 @@ public Builder mergeFrom( case 10: { machineType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { acceleratorType_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { acceleratorCount_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -575,6 +588,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object machineType_ = ""; /** * @@ -663,8 +678,8 @@ public Builder setMachineType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - machineType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -689,8 +704,8 @@ public Builder setMachineType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMachineType() { - machineType_ = getDefaultInstance().getMachineType(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -720,8 +735,8 @@ public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - machineType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -763,8 +778,8 @@ public int getAcceleratorTypeValue() { * @return This builder for chaining. */ public Builder setAcceleratorTypeValue(int value) { - acceleratorType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -785,9 +800,8 @@ public Builder setAcceleratorTypeValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.AcceleratorType getAcceleratorType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.AcceleratorType result = - com.google.cloud.aiplatform.v1beta1.AcceleratorType.valueOf(acceleratorType_); + com.google.cloud.aiplatform.v1beta1.AcceleratorType.forNumber(acceleratorType_); return result == null ? com.google.cloud.aiplatform.v1beta1.AcceleratorType.UNRECOGNIZED : result; @@ -812,7 +826,7 @@ public Builder setAcceleratorType(com.google.cloud.aiplatform.v1beta1.Accelerato if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; acceleratorType_ = value.getNumber(); onChanged(); return this; @@ -833,7 +847,7 @@ public Builder setAcceleratorType(com.google.cloud.aiplatform.v1beta1.Accelerato * @return This builder for chaining. */ public Builder clearAcceleratorType() { - + bitField0_ = (bitField0_ & ~0x00000002); acceleratorType_ = 0; onChanged(); return this; @@ -870,6 +884,7 @@ public int getAcceleratorCount() { public Builder setAcceleratorCount(int value) { acceleratorCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -885,7 +900,7 @@ public Builder setAcceleratorCount(int value) { * @return This builder for chaining. */ public Builder clearAcceleratorCount() { - + bitField0_ = (bitField0_ & ~0x00000004); acceleratorCount_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParameters.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParameters.java index 3fc4697669fd..83045f9f4b99 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParameters.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParameters.java @@ -66,7 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int BATCH_SIZE_FIELD_NUMBER = 1; - private int batchSize_; + private int batchSize_ = 0; /** * * @@ -287,8 +287,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; batchSize_ = 0; - return this; } @@ -317,11 +317,21 @@ public com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters build() { public com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters buildPartial() { com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters result = new com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters(this); - result.batchSize_ = batchSize_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.batchSize_ = batchSize_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -402,7 +412,7 @@ public Builder mergeFrom( case 8: { batchSize_ = input.readInt32(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -422,6 +432,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int batchSize_; /** * @@ -465,6 +477,7 @@ public int getBatchSize() { public Builder setBatchSize(int value) { batchSize_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -486,7 +499,7 @@ public Builder setBatchSize(int value) { * @return This builder for chaining. */ public Builder clearBatchSize() { - + bitField0_ = (bitField0_ & ~0x00000001); batchSize_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Measurement.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Measurement.java index c539eff61ba2..ac65eb078d02 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Measurement.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Measurement.java @@ -164,7 +164,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int METRIC_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object metricId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metricId_ = ""; /** * * @@ -215,7 +217,7 @@ public com.google.protobuf.ByteString getMetricIdBytes() { } public static final int VALUE_FIELD_NUMBER = 2; - private double value_; + private double value_ = 0D; /** * * @@ -445,10 +447,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; metricId_ = ""; - value_ = 0D; - return this; } @@ -476,12 +477,23 @@ public com.google.cloud.aiplatform.v1beta1.Measurement.Metric build() { public com.google.cloud.aiplatform.v1beta1.Measurement.Metric buildPartial() { com.google.cloud.aiplatform.v1beta1.Measurement.Metric result = new com.google.cloud.aiplatform.v1beta1.Measurement.Metric(this); - result.metricId_ = metricId_; - result.value_ = value_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Measurement.Metric result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricId_ = metricId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -532,6 +544,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Measurement.Metric return this; if (!other.getMetricId().isEmpty()) { metricId_ = other.metricId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getValue() != 0D) { @@ -566,13 +579,13 @@ public Builder mergeFrom( case 10: { metricId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 17: { value_ = input.readDouble(); - + bitField0_ |= 0x00000002; break; } // case 17 default: @@ -592,6 +605,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object metricId_ = ""; /** * @@ -656,8 +671,8 @@ public Builder setMetricId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metricId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -674,8 +689,8 @@ public Builder setMetricId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetricId() { - metricId_ = getDefaultInstance().getMetricId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -697,8 +712,8 @@ public Builder setMetricIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metricId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -734,6 +749,7 @@ public double getValue() { public Builder setValue(double value) { value_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -749,7 +765,7 @@ public Builder setValue(double value) { * @return This builder for chaining. */ public Builder clearValue() { - + bitField0_ = (bitField0_ & ~0x00000002); value_ = 0D; onChanged(); return this; @@ -873,11 +889,13 @@ public com.google.protobuf.Duration getElapsedDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getElapsedDurationOrBuilder() { - return getElapsedDuration(); + return elapsedDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : elapsedDuration_; } public static final int STEP_COUNT_FIELD_NUMBER = 2; - private long stepCount_; + private long stepCount_ = 0L; /** * * @@ -896,6 +914,8 @@ public long getStepCount() { } public static final int METRICS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List metrics_; /** * @@ -1204,21 +1224,20 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (elapsedDurationBuilder_ == null) { - elapsedDuration_ = null; - } else { - elapsedDuration_ = null; + bitField0_ = 0; + elapsedDuration_ = null; + if (elapsedDurationBuilder_ != null) { + elapsedDurationBuilder_.dispose(); elapsedDurationBuilder_ = null; } stepCount_ = 0L; - if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); } else { metrics_ = null; metricsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -1246,24 +1265,36 @@ public com.google.cloud.aiplatform.v1beta1.Measurement build() { public com.google.cloud.aiplatform.v1beta1.Measurement buildPartial() { com.google.cloud.aiplatform.v1beta1.Measurement result = new com.google.cloud.aiplatform.v1beta1.Measurement(this); - int from_bitField0_ = bitField0_; - if (elapsedDurationBuilder_ == null) { - result.elapsedDuration_ = elapsedDuration_; - } else { - result.elapsedDuration_ = elapsedDurationBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.stepCount_ = stepCount_; + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.Measurement result) { if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.metrics_ = metrics_; } else { result.metrics_ = metricsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Measurement result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.elapsedDuration_ = + elapsedDurationBuilder_ == null ? elapsedDuration_ : elapsedDurationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.stepCount_ = stepCount_; + } } @java.lang.Override @@ -1322,7 +1353,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Measurement other) if (!other.metrics_.isEmpty()) { if (metrics_.isEmpty()) { metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureMetricsIsMutable(); metrics_.addAll(other.metrics_); @@ -1335,7 +1366,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Measurement other) metricsBuilder_.dispose(); metricsBuilder_ = null; metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); metricsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMetricsFieldBuilder() @@ -1374,13 +1405,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getElapsedDurationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { stepCount_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: @@ -1437,7 +1468,7 @@ public Builder mergeFrom( * @return Whether the elapsedDuration field is set. */ public boolean hasElapsedDuration() { - return elapsedDurationBuilder_ != null || elapsedDuration_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1480,11 +1511,11 @@ public Builder setElapsedDuration(com.google.protobuf.Duration value) { throw new NullPointerException(); } elapsedDuration_ = value; - onChanged(); } else { elapsedDurationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1502,11 +1533,11 @@ public Builder setElapsedDuration(com.google.protobuf.Duration value) { public Builder setElapsedDuration(com.google.protobuf.Duration.Builder builderForValue) { if (elapsedDurationBuilder_ == null) { elapsedDuration_ = builderForValue.build(); - onChanged(); } else { elapsedDurationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1523,19 +1554,18 @@ public Builder setElapsedDuration(com.google.protobuf.Duration.Builder builderFo */ public Builder mergeElapsedDuration(com.google.protobuf.Duration value) { if (elapsedDurationBuilder_ == null) { - if (elapsedDuration_ != null) { - elapsedDuration_ = - com.google.protobuf.Duration.newBuilder(elapsedDuration_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && elapsedDuration_ != null + && elapsedDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getElapsedDurationBuilder().mergeFrom(value); } else { elapsedDuration_ = value; } - onChanged(); } else { elapsedDurationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1551,14 +1581,13 @@ public Builder mergeElapsedDuration(com.google.protobuf.Duration value) { * */ public Builder clearElapsedDuration() { - if (elapsedDurationBuilder_ == null) { - elapsedDuration_ = null; - onChanged(); - } else { - elapsedDuration_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + elapsedDuration_ = null; + if (elapsedDurationBuilder_ != null) { + elapsedDurationBuilder_.dispose(); elapsedDurationBuilder_ = null; } - + onChanged(); return this; } /** @@ -1574,7 +1603,7 @@ public Builder clearElapsedDuration() { * */ public com.google.protobuf.Duration.Builder getElapsedDurationBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getElapsedDurationFieldBuilder().getBuilder(); } @@ -1661,6 +1690,7 @@ public long getStepCount() { public Builder setStepCount(long value) { stepCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1677,7 +1707,7 @@ public Builder setStepCount(long value) { * @return This builder for chaining. */ public Builder clearStepCount() { - + bitField0_ = (bitField0_ & ~0x00000002); stepCount_ = 0L; onChanged(); return this; @@ -1687,11 +1717,11 @@ public Builder clearStepCount() { java.util.Collections.emptyList(); private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { metrics_ = new java.util.ArrayList( metrics_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -1943,7 +1973,7 @@ public Builder addAllMetrics( public Builder clearMetrics() { if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { metricsBuilder_.clear(); @@ -2090,7 +2120,7 @@ public com.google.cloud.aiplatform.v1beta1.Measurement.Metric.Builder addMetrics com.google.cloud.aiplatform.v1beta1.Measurement.Metric, com.google.cloud.aiplatform.v1beta1.Measurement.Metric.Builder, com.google.cloud.aiplatform.v1beta1.Measurement.MetricOrBuilder>( - metrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + metrics_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); metrics_ = null; } return metricsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MergeVersionAliasesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MergeVersionAliasesRequest.java index 27d2512ca21b..43c2bc1a1306 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MergeVersionAliasesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MergeVersionAliasesRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -127,6 +129,8 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int VERSION_ALIASES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList versionAliases_; /** * @@ -442,10 +446,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -474,17 +478,31 @@ public com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest build() { public com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest result = new com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (((bitField0_ & 0x00000001) != 0)) { - versionAliases_ = versionAliases_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.versionAliases_ = versionAliases_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest result) { + if (((bitField0_ & 0x00000002) != 0)) { + versionAliases_ = versionAliases_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.versionAliases_ = versionAliases_; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.MergeVersionAliasesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -534,12 +552,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MergeVersionAliases return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.versionAliases_.isEmpty()) { if (versionAliases_.isEmpty()) { versionAliases_ = other.versionAliases_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureVersionAliasesIsMutable(); versionAliases_.addAll(other.versionAliases_); @@ -575,7 +594,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -677,8 +696,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -698,8 +717,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -724,8 +743,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -734,9 +753,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureVersionAliasesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { versionAliases_ = new com.google.protobuf.LazyStringArrayList(versionAliases_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -951,7 +970,7 @@ public Builder addAllVersionAliases(java.lang.Iterable values) */ public Builder clearVersionAliases() { versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchema.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchema.java index 304bd4468192..2114548c7412 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchema.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchema.java @@ -256,7 +256,9 @@ private MetadataSchemaType(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -305,7 +307,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int SCHEMA_VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object schemaVersion_; + + @SuppressWarnings("serial") + private volatile java.lang.Object schemaVersion_ = ""; /** * * @@ -358,7 +362,9 @@ public com.google.protobuf.ByteString getSchemaVersionBytes() { } public static final int SCHEMA_FIELD_NUMBER = 3; - private volatile java.lang.Object schema_; + + @SuppressWarnings("serial") + private volatile java.lang.Object schema_ = ""; /** * * @@ -417,7 +423,7 @@ public com.google.protobuf.ByteString getSchemaBytes() { } public static final int SCHEMA_TYPE_FIELD_NUMBER = 4; - private int schemaType_; + private int schemaType_ = 0; /** * * @@ -450,9 +456,9 @@ public int getSchemaTypeValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType getSchemaType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType result = - com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType.valueOf(schemaType_); + com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType.forNumber( + schemaType_); return result == null ? com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType.UNRECOGNIZED : result; @@ -504,11 +510,13 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int DESCRIPTION_FIELD_NUMBER = 6; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -809,22 +817,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - schemaVersion_ = ""; - schema_ = ""; - schemaType_ = 0; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } description_ = ""; - return this; } @@ -852,20 +855,35 @@ public com.google.cloud.aiplatform.v1beta1.MetadataSchema build() { public com.google.cloud.aiplatform.v1beta1.MetadataSchema buildPartial() { com.google.cloud.aiplatform.v1beta1.MetadataSchema result = new com.google.cloud.aiplatform.v1beta1.MetadataSchema(this); - result.name_ = name_; - result.schemaVersion_ = schemaVersion_; - result.schema_ = schema_; - result.schemaType_ = schemaType_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.description_ = description_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MetadataSchema result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.schemaVersion_ = schemaVersion_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.schema_ = schema_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.schemaType_ = schemaType_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.description_ = description_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -914,14 +932,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MetadataSchema othe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getSchemaVersion().isEmpty()) { schemaVersion_ = other.schemaVersion_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getSchema().isEmpty()) { schema_ = other.schema_; + bitField0_ |= 0x00000004; onChanged(); } if (other.schemaType_ != 0) { @@ -932,6 +953,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MetadataSchema othe } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -963,37 +985,37 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { schemaVersion_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { schema_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 32: { schemaType_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -1013,6 +1035,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -1074,8 +1098,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1091,8 +1115,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1113,8 +1137,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1186,8 +1210,8 @@ public Builder setSchemaVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - schemaVersion_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1205,8 +1229,8 @@ public Builder setSchemaVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSchemaVersion() { - schemaVersion_ = getDefaultInstance().getSchemaVersion(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1229,8 +1253,8 @@ public Builder setSchemaVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - schemaVersion_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1311,8 +1335,8 @@ public Builder setSchema(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - schema_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1333,8 +1357,8 @@ public Builder setSchema(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSchema() { - schema_ = getDefaultInstance().getSchema(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1360,8 +1384,8 @@ public Builder setSchemaBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - schema_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1399,8 +1423,8 @@ public int getSchemaTypeValue() { * @return This builder for chaining. */ public Builder setSchemaTypeValue(int value) { - schemaType_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1419,9 +1443,8 @@ public Builder setSchemaTypeValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType getSchemaType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType result = - com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType.valueOf( + com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType.forNumber( schemaType_); return result == null ? com.google.cloud.aiplatform.v1beta1.MetadataSchema.MetadataSchemaType.UNRECOGNIZED @@ -1446,7 +1469,7 @@ public Builder setSchemaType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; schemaType_ = value.getNumber(); onChanged(); return this; @@ -1465,7 +1488,7 @@ public Builder setSchemaType( * @return This builder for chaining. */ public Builder clearSchemaType() { - + bitField0_ = (bitField0_ & ~0x00000008); schemaType_ = 0; onChanged(); return this; @@ -1491,7 +1514,7 @@ public Builder clearSchemaType() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1532,11 +1555,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1553,11 +1576,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1573,17 +1596,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1598,14 +1622,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1620,7 +1643,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1733,8 +1756,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1750,8 +1773,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1772,8 +1795,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStore.java index 9742db33a1f9..4820a8b13272 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStore.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStore.java @@ -135,7 +135,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DISK_UTILIZATION_BYTES_FIELD_NUMBER = 1; - private long diskUtilizationBytes_; + private long diskUtilizationBytes_ = 0L; /** * * @@ -354,8 +354,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; diskUtilizationBytes_ = 0L; - return this; } @@ -386,11 +386,21 @@ public com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState buil public com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState buildPartial() { com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState result = new com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState(this); - result.diskUtilizationBytes_ = diskUtilizationBytes_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.diskUtilizationBytes_ = diskUtilizationBytes_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -474,7 +484,7 @@ public Builder mergeFrom( case 8: { diskUtilizationBytes_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -494,6 +504,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long diskUtilizationBytes_; /** * @@ -525,6 +537,7 @@ public long getDiskUtilizationBytes() { public Builder setDiskUtilizationBytes(long value) { diskUtilizationBytes_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -540,7 +553,7 @@ public Builder setDiskUtilizationBytes(long value) { * @return This builder for chaining. */ public Builder clearDiskUtilizationBytes() { - + bitField0_ = (bitField0_ & ~0x00000001); diskUtilizationBytes_ = 0L; onChanged(); return this; @@ -614,7 +627,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -708,7 +723,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 4; @@ -757,7 +772,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 5; @@ -811,11 +826,15 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } public static final int DESCRIPTION_FIELD_NUMBER = 6; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -915,7 +934,9 @@ public com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState getS @java.lang.Override public com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreStateOrBuilder getStateOrBuilder() { - return getState(); + return state_ == null + ? com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.getDefaultInstance() + : state_; } private byte memoizedIsInitialized = -1; @@ -1181,32 +1202,27 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } description_ = ""; - - if (stateBuilder_ == null) { - state_ = null; - } else { - state_ = null; + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); stateBuilder_ = null; } return this; @@ -1236,30 +1252,34 @@ public com.google.cloud.aiplatform.v1beta1.MetadataStore build() { public com.google.cloud.aiplatform.v1beta1.MetadataStore buildPartial() { com.google.cloud.aiplatform.v1beta1.MetadataStore result = new com.google.cloud.aiplatform.v1beta1.MetadataStore(this); - result.name_ = name_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MetadataStore result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } - result.description_ = description_; - if (stateBuilder_ == null) { - result.state_ = state_; - } else { - result.state_ = stateBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -1310,6 +1330,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MetadataStore other return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasCreateTime()) { @@ -1323,6 +1344,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MetadataStore other } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasState()) { @@ -1357,37 +1379,37 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 26 case 34: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 34 case 42: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 42 case 50: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 50 case 58: { input.readMessage(getStateFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 58 default: @@ -1407,6 +1429,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -1468,8 +1492,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1485,8 +1509,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1507,8 +1531,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1533,7 +1557,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1574,11 +1598,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1595,11 +1619,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1615,17 +1639,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1640,14 +1665,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1662,7 +1686,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1734,7 +1758,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1775,11 +1799,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1796,11 +1820,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1816,17 +1840,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1841,14 +1866,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1863,7 +1887,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -1935,7 +1959,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1976,11 +2000,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1998,11 +2022,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2018,19 +2042,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1beta1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2045,14 +2069,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 5; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -2067,7 +2090,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 5; */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -2181,8 +2204,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2198,8 +2221,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2220,8 +2243,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2246,7 +2269,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the state field is set. */ public boolean hasState() { - return stateBuilder_ != null || state_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2289,11 +2312,11 @@ public Builder setState( throw new NullPointerException(); } state_ = value; - onChanged(); } else { stateBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2312,11 +2335,11 @@ public Builder setState( builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); - onChanged(); } else { stateBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2333,20 +2356,20 @@ public Builder setState( public Builder mergeState( com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState value) { if (stateBuilder_ == null) { - if (state_ != null) { - state_ = - com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.newBuilder( - state_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && state_ != null + && state_ + != com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState + .getDefaultInstance()) { + getStateBuilder().mergeFrom(value); } else { state_ = value; } - onChanged(); } else { stateBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2361,14 +2384,13 @@ public Builder mergeState( * */ public Builder clearState() { - if (stateBuilder_ == null) { - state_ = null; - onChanged(); - } else { - state_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); stateBuilder_ = null; } - + onChanged(); return this; } /** @@ -2384,7 +2406,7 @@ public Builder clearState() { */ public com.google.cloud.aiplatform.v1beta1.MetadataStore.MetadataStoreState.Builder getStateBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getStateFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigratableResource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigratableResource.java index a00f47f301b6..03e1ab9a0a7f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigratableResource.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigratableResource.java @@ -187,7 +187,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object endpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; /** * * @@ -248,7 +250,9 @@ public com.google.protobuf.ByteString getEndpointBytes() { } public static final int VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object version_; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; /** * * @@ -516,10 +520,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; endpoint_ = ""; - version_ = ""; - return this; } @@ -551,12 +554,24 @@ public com.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersi buildPartial() { com.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion result = new com.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion(this); - result.endpoint_ = endpoint_; - result.version_ = version_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.version_ = version_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -612,10 +627,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -647,13 +664,13 @@ public Builder mergeFrom( case 10: { endpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { version_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -673,6 +690,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object endpoint_ = ""; /** * @@ -752,8 +771,8 @@ public Builder setEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -775,8 +794,8 @@ public Builder setEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEndpoint() { - endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -803,8 +822,8 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -873,8 +892,8 @@ public Builder setVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - version_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -891,8 +910,8 @@ public Builder setVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -914,8 +933,8 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - version_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1098,7 +1117,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MODEL_FIELD_NUMBER = 1; - private volatile java.lang.Object model_; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; /** * * @@ -1151,7 +1172,9 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int MODEL_DISPLAY_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object modelDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelDisplayName_ = ""; /** * * @@ -1410,10 +1433,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; model_ = ""; - modelDisplayName_ = ""; - return this; } @@ -1443,12 +1465,24 @@ public com.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel build( public com.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel buildPartial() { com.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel result = new com.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel(this); - result.model_ = model_; - result.modelDisplayName_ = modelDisplayName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlModel result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.model_ = model_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelDisplayName_ = modelDisplayName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1502,10 +1536,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getModel().isEmpty()) { model_ = other.model_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getModelDisplayName().isEmpty()) { modelDisplayName_ = other.modelDisplayName_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1537,13 +1573,13 @@ public Builder mergeFrom( case 10: { model_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: { modelDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 26 default: @@ -1563,6 +1599,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object model_ = ""; /** * @@ -1630,8 +1668,8 @@ public Builder setModel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - model_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1649,8 +1687,8 @@ public Builder setModel(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModel() { - model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1673,8 +1711,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - model_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1740,8 +1778,8 @@ public Builder setModelDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1757,8 +1795,8 @@ public Builder setModelDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelDisplayName() { - modelDisplayName_ = getDefaultInstance().getModelDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1779,8 +1817,8 @@ public Builder setModelDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1962,7 +2000,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DATASET_FIELD_NUMBER = 1; - private volatile java.lang.Object dataset_; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataset_ = ""; /** * * @@ -2015,7 +2055,9 @@ public com.google.protobuf.ByteString getDatasetBytes() { } public static final int DATASET_DISPLAY_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object datasetDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object datasetDisplayName_ = ""; /** * * @@ -2274,10 +2316,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; dataset_ = ""; - datasetDisplayName_ = ""; - return this; } @@ -2308,12 +2349,24 @@ public com.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset buil public com.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset buildPartial() { com.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset result = new com.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset(this); - result.dataset_ = dataset_; - result.datasetDisplayName_ = datasetDisplayName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.MigratableResource.AutomlDataset result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataset_ = dataset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.datasetDisplayName_ = datasetDisplayName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2367,10 +2420,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDatasetDisplayName().isEmpty()) { datasetDisplayName_ = other.datasetDisplayName_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -2402,13 +2457,13 @@ public Builder mergeFrom( case 10: { dataset_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 34: { datasetDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 34 default: @@ -2428,6 +2483,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object dataset_ = ""; /** * @@ -2495,8 +2552,8 @@ public Builder setDataset(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - dataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2514,8 +2571,8 @@ public Builder setDataset(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDataset() { - dataset_ = getDefaultInstance().getDataset(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2538,8 +2595,8 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - dataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2605,8 +2662,8 @@ public Builder setDatasetDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - datasetDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2622,8 +2679,8 @@ public Builder setDatasetDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDatasetDisplayName() { - datasetDisplayName_ = getDefaultInstance().getDatasetDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2644,8 +2701,8 @@ public Builder setDatasetDisplayNameBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - datasetDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3020,7 +3077,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ANNOTATED_DATASET_FIELD_NUMBER = 1; - private volatile java.lang.Object annotatedDataset_; + + @SuppressWarnings("serial") + private volatile java.lang.Object annotatedDataset_ = ""; /** * * @@ -3073,7 +3132,9 @@ public com.google.protobuf.ByteString getAnnotatedDatasetBytes() { } public static final int ANNOTATED_DATASET_DISPLAY_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object annotatedDatasetDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object annotatedDatasetDisplayName_ = ""; /** * * @@ -3368,10 +3429,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; annotatedDataset_ = ""; - annotatedDatasetDisplayName_ = ""; - return this; } @@ -3411,12 +3471,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset .DataLabelingAnnotatedDataset(this); - result.annotatedDataset_ = annotatedDataset_; - result.annotatedDatasetDisplayName_ = annotatedDatasetDisplayName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset + .DataLabelingAnnotatedDataset + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.annotatedDataset_ = annotatedDataset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.annotatedDatasetDisplayName_ = annotatedDatasetDisplayName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3477,10 +3551,12 @@ public Builder mergeFrom( .DataLabelingAnnotatedDataset.getDefaultInstance()) return this; if (!other.getAnnotatedDataset().isEmpty()) { annotatedDataset_ = other.annotatedDataset_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getAnnotatedDatasetDisplayName().isEmpty()) { annotatedDatasetDisplayName_ = other.annotatedDatasetDisplayName_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -3512,13 +3588,13 @@ public Builder mergeFrom( case 10: { annotatedDataset_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: { annotatedDatasetDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 26 default: @@ -3538,6 +3614,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object annotatedDataset_ = ""; /** * @@ -3605,8 +3683,8 @@ public Builder setAnnotatedDataset(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - annotatedDataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3624,8 +3702,8 @@ public Builder setAnnotatedDataset(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAnnotatedDataset() { - annotatedDataset_ = getDefaultInstance().getAnnotatedDataset(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3648,8 +3726,8 @@ public Builder setAnnotatedDatasetBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - annotatedDataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3715,8 +3793,8 @@ public Builder setAnnotatedDatasetDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - annotatedDatasetDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3732,8 +3810,8 @@ public Builder setAnnotatedDatasetDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAnnotatedDatasetDisplayName() { - annotatedDatasetDisplayName_ = getDefaultInstance().getAnnotatedDatasetDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3754,8 +3832,8 @@ public Builder setAnnotatedDatasetDisplayNameBytes(com.google.protobuf.ByteStrin throw new NullPointerException(); } checkByteStringIsUtf8(value); - annotatedDatasetDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3833,7 +3911,9 @@ public com.google.protobuf.Parser getParserForType } public static final int DATASET_FIELD_NUMBER = 1; - private volatile java.lang.Object dataset_; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataset_ = ""; /** * * @@ -3886,7 +3966,9 @@ public com.google.protobuf.ByteString getDatasetBytes() { } public static final int DATASET_DISPLAY_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object datasetDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object datasetDisplayName_ = ""; /** * * @@ -3935,6 +4017,8 @@ public com.google.protobuf.ByteString getDatasetDisplayNameBytes() { } public static final int DATA_LABELING_ANNOTATED_DATASETS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset .DataLabelingAnnotatedDataset> @@ -4263,17 +4347,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; dataset_ = ""; - datasetDisplayName_ = ""; - if (dataLabelingAnnotatedDatasetsBuilder_ == null) { dataLabelingAnnotatedDatasets_ = java.util.Collections.emptyList(); } else { dataLabelingAnnotatedDatasets_ = null; dataLabelingAnnotatedDatasetsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -4305,21 +4388,37 @@ public com.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDatase buildPartial() { com.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset result = new com.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset(this); - int from_bitField0_ = bitField0_; - result.dataset_ = dataset_; - result.datasetDisplayName_ = datasetDisplayName_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset result) { if (dataLabelingAnnotatedDatasetsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { dataLabelingAnnotatedDatasets_ = java.util.Collections.unmodifiableList(dataLabelingAnnotatedDatasets_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.dataLabelingAnnotatedDatasets_ = dataLabelingAnnotatedDatasets_; } else { result.dataLabelingAnnotatedDatasets_ = dataLabelingAnnotatedDatasetsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataset_ = dataset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.datasetDisplayName_ = datasetDisplayName_; + } } @java.lang.Override @@ -4376,17 +4475,19 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDatasetDisplayName().isEmpty()) { datasetDisplayName_ = other.datasetDisplayName_; + bitField0_ |= 0x00000002; onChanged(); } if (dataLabelingAnnotatedDatasetsBuilder_ == null) { if (!other.dataLabelingAnnotatedDatasets_.isEmpty()) { if (dataLabelingAnnotatedDatasets_.isEmpty()) { dataLabelingAnnotatedDatasets_ = other.dataLabelingAnnotatedDatasets_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDataLabelingAnnotatedDatasetsIsMutable(); dataLabelingAnnotatedDatasets_.addAll(other.dataLabelingAnnotatedDatasets_); @@ -4399,7 +4500,7 @@ public Builder mergeFrom( dataLabelingAnnotatedDatasetsBuilder_.dispose(); dataLabelingAnnotatedDatasetsBuilder_ = null; dataLabelingAnnotatedDatasets_ = other.dataLabelingAnnotatedDatasets_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); dataLabelingAnnotatedDatasetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataLabelingAnnotatedDatasetsFieldBuilder() @@ -4439,7 +4540,7 @@ public Builder mergeFrom( case 10: { dataset_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: @@ -4462,7 +4563,7 @@ public Builder mergeFrom( case 34: { datasetDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 34 default: @@ -4551,8 +4652,8 @@ public Builder setDataset(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - dataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4570,8 +4671,8 @@ public Builder setDataset(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDataset() { - dataset_ = getDefaultInstance().getDataset(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -4594,8 +4695,8 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - dataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4661,8 +4762,8 @@ public Builder setDatasetDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - datasetDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4678,8 +4779,8 @@ public Builder setDatasetDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDatasetDisplayName() { - datasetDisplayName_ = getDefaultInstance().getDatasetDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -4700,8 +4801,8 @@ public Builder setDatasetDisplayNameBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - datasetDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4712,12 +4813,12 @@ public Builder setDatasetDisplayNameBytes(com.google.protobuf.ByteString value) dataLabelingAnnotatedDatasets_ = java.util.Collections.emptyList(); private void ensureDataLabelingAnnotatedDatasetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { dataLabelingAnnotatedDatasets_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset .DataLabelingAnnotatedDataset>(dataLabelingAnnotatedDatasets_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -4998,7 +5099,7 @@ public Builder addAllDataLabelingAnnotatedDatasets( public Builder clearDataLabelingAnnotatedDatasets() { if (dataLabelingAnnotatedDatasetsBuilder_ == null) { dataLabelingAnnotatedDatasets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { dataLabelingAnnotatedDatasetsBuilder_.clear(); @@ -5166,7 +5267,7 @@ public Builder removeDataLabelingAnnotatedDatasets(int index) { com.google.cloud.aiplatform.v1beta1.MigratableResource.DataLabelingDataset .DataLabelingAnnotatedDatasetOrBuilder>( dataLabelingAnnotatedDatasets_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); dataLabelingAnnotatedDatasets_ = null; @@ -5594,7 +5695,9 @@ public com.google.protobuf.Timestamp getLastMigrateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastMigrateTimeOrBuilder() { - return getLastMigrateTime(); + return lastMigrateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastMigrateTime_; } public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 6; @@ -5648,7 +5751,9 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - return getLastUpdateTime(); + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } private byte memoizedIsInitialized = -1; @@ -5948,6 +6053,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (mlEngineModelVersionBuilder_ != null) { mlEngineModelVersionBuilder_.clear(); } @@ -5960,16 +6066,14 @@ public Builder clear() { if (dataLabelingDatasetBuilder_ != null) { dataLabelingDatasetBuilder_.clear(); } - if (lastMigrateTimeBuilder_ == null) { - lastMigrateTime_ = null; - } else { - lastMigrateTime_ = null; + lastMigrateTime_ = null; + if (lastMigrateTimeBuilder_ != null) { + lastMigrateTimeBuilder_.dispose(); lastMigrateTimeBuilder_ = null; } - if (lastUpdateTimeBuilder_ == null) { - lastUpdateTime_ = null; - } else { - lastUpdateTime_ = null; + lastUpdateTime_ = null; + if (lastUpdateTimeBuilder_ != null) { + lastUpdateTimeBuilder_.dispose(); lastUpdateTimeBuilder_ = null; } resourceCase_ = 0; @@ -6001,47 +6105,41 @@ public com.google.cloud.aiplatform.v1beta1.MigratableResource build() { public com.google.cloud.aiplatform.v1beta1.MigratableResource buildPartial() { com.google.cloud.aiplatform.v1beta1.MigratableResource result = new com.google.cloud.aiplatform.v1beta1.MigratableResource(this); - if (resourceCase_ == 1) { - if (mlEngineModelVersionBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = mlEngineModelVersionBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (resourceCase_ == 2) { - if (automlModelBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = automlModelBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MigratableResource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.lastMigrateTime_ = + lastMigrateTimeBuilder_ == null ? lastMigrateTime_ : lastMigrateTimeBuilder_.build(); } - if (resourceCase_ == 3) { - if (automlDatasetBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = automlDatasetBuilder_.build(); - } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.lastUpdateTime_ = + lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build(); } - if (resourceCase_ == 4) { - if (dataLabelingDatasetBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = dataLabelingDatasetBuilder_.build(); - } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.MigratableResource result) { + result.resourceCase_ = resourceCase_; + result.resource_ = this.resource_; + if (resourceCase_ == 1 && mlEngineModelVersionBuilder_ != null) { + result.resource_ = mlEngineModelVersionBuilder_.build(); } - if (lastMigrateTimeBuilder_ == null) { - result.lastMigrateTime_ = lastMigrateTime_; - } else { - result.lastMigrateTime_ = lastMigrateTimeBuilder_.build(); + if (resourceCase_ == 2 && automlModelBuilder_ != null) { + result.resource_ = automlModelBuilder_.build(); } - if (lastUpdateTimeBuilder_ == null) { - result.lastUpdateTime_ = lastUpdateTime_; - } else { - result.lastUpdateTime_ = lastUpdateTimeBuilder_.build(); + if (resourceCase_ == 3 && automlDatasetBuilder_ != null) { + result.resource_ = automlDatasetBuilder_.build(); + } + if (resourceCase_ == 4 && dataLabelingDatasetBuilder_ != null) { + result.resource_ = dataLabelingDatasetBuilder_.build(); } - result.resourceCase_ = resourceCase_; - onBuilt(); - return result; } @java.lang.Override @@ -6177,13 +6275,13 @@ public Builder mergeFrom( case 42: { input.readMessage(getLastMigrateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -6217,6 +6315,8 @@ public Builder clearResource() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion, com.google.cloud.aiplatform.v1beta1.MigratableResource.MlEngineModelVersion.Builder, @@ -6460,7 +6560,6 @@ public Builder clearMlEngineModelVersion() { } resourceCase_ = 1; onChanged(); - ; return mlEngineModelVersionBuilder_; } @@ -6701,7 +6800,6 @@ public Builder clearAutomlModel() { } resourceCase_ = 2; onChanged(); - ; return automlModelBuilder_; } @@ -6942,7 +7040,6 @@ public Builder clearAutomlDataset() { } resourceCase_ = 3; onChanged(); - ; return automlDatasetBuilder_; } @@ -7188,7 +7285,6 @@ public Builder clearDataLabelingDataset() { } resourceCase_ = 4; onChanged(); - ; return dataLabelingDatasetBuilder_; } @@ -7214,7 +7310,7 @@ public Builder clearDataLabelingDataset() { * @return Whether the lastMigrateTime field is set. */ public boolean hasLastMigrateTime() { - return lastMigrateTimeBuilder_ != null || lastMigrateTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -7259,11 +7355,11 @@ public Builder setLastMigrateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } lastMigrateTime_ = value; - onChanged(); } else { lastMigrateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -7282,11 +7378,11 @@ public Builder setLastMigrateTime(com.google.protobuf.Timestamp value) { public Builder setLastMigrateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastMigrateTimeBuilder_ == null) { lastMigrateTime_ = builderForValue.build(); - onChanged(); } else { lastMigrateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -7304,19 +7400,18 @@ public Builder setLastMigrateTime(com.google.protobuf.Timestamp.Builder builderF */ public Builder mergeLastMigrateTime(com.google.protobuf.Timestamp value) { if (lastMigrateTimeBuilder_ == null) { - if (lastMigrateTime_ != null) { - lastMigrateTime_ = - com.google.protobuf.Timestamp.newBuilder(lastMigrateTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && lastMigrateTime_ != null + && lastMigrateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastMigrateTimeBuilder().mergeFrom(value); } else { lastMigrateTime_ = value; } - onChanged(); } else { lastMigrateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -7333,14 +7428,13 @@ public Builder mergeLastMigrateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearLastMigrateTime() { - if (lastMigrateTimeBuilder_ == null) { - lastMigrateTime_ = null; - onChanged(); - } else { - lastMigrateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + lastMigrateTime_ = null; + if (lastMigrateTimeBuilder_ != null) { + lastMigrateTimeBuilder_.dispose(); lastMigrateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -7357,7 +7451,7 @@ public Builder clearLastMigrateTime() { * */ public com.google.protobuf.Timestamp.Builder getLastMigrateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getLastMigrateTimeFieldBuilder().getBuilder(); } @@ -7433,7 +7527,7 @@ public com.google.protobuf.TimestampOrBuilder getLastMigrateTimeOrBuilder() { * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { - return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -7474,11 +7568,11 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } lastUpdateTime_ = value; - onChanged(); } else { lastUpdateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -7495,11 +7589,11 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); - onChanged(); } else { lastUpdateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -7515,19 +7609,18 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { - if (lastUpdateTime_ != null) { - lastUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && lastUpdateTime_ != null + && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; } - onChanged(); } else { lastUpdateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -7542,14 +7635,13 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearLastUpdateTime() { - if (lastUpdateTimeBuilder_ == null) { - lastUpdateTime_ = null; - onChanged(); - } else { - lastUpdateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + lastUpdateTime_ = null; + if (lastUpdateTimeBuilder_ != null) { + lastUpdateTimeBuilder_.dispose(); lastUpdateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -7564,7 +7656,7 @@ public Builder clearLastUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceRequest.java index 3331618c0648..5c07c6865127 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceRequest.java @@ -221,7 +221,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object endpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; /** * * @@ -280,7 +282,9 @@ public com.google.protobuf.ByteString getEndpointBytes() { } public static final int MODEL_VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object modelVersion_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelVersion_ = ""; /** * * @@ -335,7 +339,9 @@ public com.google.protobuf.ByteString getModelVersionBytes() { } public static final int MODEL_DISPLAY_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object modelDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelDisplayName_ = ""; /** * * @@ -633,12 +639,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; endpoint_ = ""; - modelVersion_ = ""; - modelDisplayName_ = ""; - return this; } @@ -676,13 +680,29 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest .MigrateMlEngineModelVersionConfig(this); - result.endpoint_ = endpoint_; - result.modelVersion_ = modelVersion_; - result.modelDisplayName_ = modelDisplayName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest + .MigrateMlEngineModelVersionConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelVersion_ = modelVersion_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.modelDisplayName_ = modelDisplayName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -743,14 +763,17 @@ public Builder mergeFrom( .MigrateMlEngineModelVersionConfig.getDefaultInstance()) return this; if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getModelVersion().isEmpty()) { modelVersion_ = other.modelVersion_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getModelDisplayName().isEmpty()) { modelDisplayName_ = other.modelDisplayName_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -782,19 +805,19 @@ public Builder mergeFrom( case 10: { endpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { modelVersion_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { modelDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -814,6 +837,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object endpoint_ = ""; /** * @@ -890,8 +915,8 @@ public Builder setEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -912,8 +937,8 @@ public Builder setEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEndpoint() { - endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -939,8 +964,8 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1015,8 +1040,8 @@ public Builder setModelVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelVersion_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1035,8 +1060,8 @@ public Builder setModelVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelVersion() { - modelVersion_ = getDefaultInstance().getModelVersion(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1060,8 +1085,8 @@ public Builder setModelVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelVersion_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1130,8 +1155,8 @@ public Builder setModelDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelDisplayName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1148,8 +1173,8 @@ public Builder setModelDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelDisplayName() { - modelDisplayName_ = getDefaultInstance().getModelDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1171,8 +1196,8 @@ public Builder setModelDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelDisplayName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1368,7 +1393,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MODEL_FIELD_NUMBER = 1; - private volatile java.lang.Object model_; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; /** * * @@ -1425,7 +1452,9 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int MODEL_DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object modelDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelDisplayName_ = ""; /** * * @@ -1710,10 +1739,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; model_ = ""; - modelDisplayName_ = ""; - return this; } @@ -1747,12 +1775,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig result = new com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig( this); - result.model_ = model_; - result.modelDisplayName_ = modelDisplayName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlModelConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.model_ = model_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelDisplayName_ = modelDisplayName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1810,10 +1851,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getModel().isEmpty()) { model_ = other.model_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getModelDisplayName().isEmpty()) { modelDisplayName_ = other.modelDisplayName_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1845,13 +1888,13 @@ public Builder mergeFrom( case 10: { model_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { modelDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1871,6 +1914,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object model_ = ""; /** * @@ -1944,8 +1989,8 @@ public Builder setModel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - model_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1965,8 +2010,8 @@ public Builder setModel(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModel() { - model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1991,8 +2036,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - model_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2061,8 +2106,8 @@ public Builder setModelDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2079,8 +2124,8 @@ public Builder setModelDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelDisplayName() { - modelDisplayName_ = getDefaultInstance().getModelDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2102,8 +2147,8 @@ public Builder setModelDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2299,7 +2344,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DATASET_FIELD_NUMBER = 1; - private volatile java.lang.Object dataset_; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataset_ = ""; /** * * @@ -2356,7 +2403,9 @@ public com.google.protobuf.ByteString getDatasetBytes() { } public static final int DATASET_DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object datasetDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object datasetDisplayName_ = ""; /** * * @@ -2643,10 +2692,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; dataset_ = ""; - datasetDisplayName_ = ""; - return this; } @@ -2681,12 +2729,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest .MigrateAutomlDatasetConfig(this); - result.dataset_ = dataset_; - result.datasetDisplayName_ = datasetDisplayName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest.MigrateAutomlDatasetConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataset_ = dataset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.datasetDisplayName_ = datasetDisplayName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2745,10 +2806,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDatasetDisplayName().isEmpty()) { datasetDisplayName_ = other.datasetDisplayName_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -2780,13 +2843,13 @@ public Builder mergeFrom( case 10: { dataset_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { datasetDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -2806,6 +2869,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object dataset_ = ""; /** * @@ -2879,8 +2944,8 @@ public Builder setDataset(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - dataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2900,8 +2965,8 @@ public Builder setDataset(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDataset() { - dataset_ = getDefaultInstance().getDataset(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2926,8 +2991,8 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - dataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2996,8 +3061,8 @@ public Builder setDatasetDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - datasetDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3014,8 +3079,8 @@ public Builder setDatasetDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDatasetDisplayName() { - datasetDisplayName_ = getDefaultInstance().getDatasetDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3037,8 +3102,8 @@ public Builder setDatasetDisplayNameBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - datasetDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3415,7 +3480,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ANNOTATED_DATASET_FIELD_NUMBER = 1; - private volatile java.lang.Object annotatedDataset_; + + @SuppressWarnings("serial") + private volatile java.lang.Object annotatedDataset_ = ""; /** * * @@ -3708,8 +3775,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; annotatedDataset_ = ""; - return this; } @@ -3751,11 +3818,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { new com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest .MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig( this); - result.annotatedDataset_ = annotatedDataset_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest + .MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.annotatedDataset_ = annotatedDataset_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3817,6 +3896,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getAnnotatedDataset().isEmpty()) { annotatedDataset_ = other.annotatedDataset_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -3848,7 +3928,7 @@ public Builder mergeFrom( case 10: { annotatedDataset_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -3868,6 +3948,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object annotatedDataset_ = ""; /** * @@ -3941,8 +4023,8 @@ public Builder setAnnotatedDataset(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - annotatedDataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3962,8 +4044,8 @@ public Builder setAnnotatedDataset(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAnnotatedDataset() { - annotatedDataset_ = getDefaultInstance().getAnnotatedDataset(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3988,8 +4070,8 @@ public Builder setAnnotatedDatasetBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - annotatedDataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4069,7 +4151,9 @@ public static com.google.protobuf.Parser @@ -4533,17 +4621,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; dataset_ = ""; - datasetDisplayName_ = ""; - if (migrateDataLabelingAnnotatedDatasetConfigsBuilder_ == null) { migrateDataLabelingAnnotatedDatasetConfigs_ = java.util.Collections.emptyList(); } else { migrateDataLabelingAnnotatedDatasetConfigs_ = null; migrateDataLabelingAnnotatedDatasetConfigsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -4581,14 +4668,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest .MigrateDataLabelingDatasetConfig(this); - int from_bitField0_ = bitField0_; - result.dataset_ = dataset_; - result.datasetDisplayName_ = datasetDisplayName_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest + .MigrateDataLabelingDatasetConfig + result) { if (migrateDataLabelingAnnotatedDatasetConfigsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { migrateDataLabelingAnnotatedDatasetConfigs_ = java.util.Collections.unmodifiableList(migrateDataLabelingAnnotatedDatasetConfigs_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.migrateDataLabelingAnnotatedDatasetConfigs_ = migrateDataLabelingAnnotatedDatasetConfigs_; @@ -4596,8 +4692,19 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result.migrateDataLabelingAnnotatedDatasetConfigs_ = migrateDataLabelingAnnotatedDatasetConfigsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest + .MigrateDataLabelingDatasetConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataset_ = dataset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.datasetDisplayName_ = datasetDisplayName_; + } } @java.lang.Override @@ -4660,10 +4767,12 @@ public Builder mergeFrom( .MigrateDataLabelingDatasetConfig.getDefaultInstance()) return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDatasetDisplayName().isEmpty()) { datasetDisplayName_ = other.datasetDisplayName_; + bitField0_ |= 0x00000002; onChanged(); } if (migrateDataLabelingAnnotatedDatasetConfigsBuilder_ == null) { @@ -4671,7 +4780,7 @@ public Builder mergeFrom( if (migrateDataLabelingAnnotatedDatasetConfigs_.isEmpty()) { migrateDataLabelingAnnotatedDatasetConfigs_ = other.migrateDataLabelingAnnotatedDatasetConfigs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureMigrateDataLabelingAnnotatedDatasetConfigsIsMutable(); migrateDataLabelingAnnotatedDatasetConfigs_.addAll( @@ -4686,7 +4795,7 @@ public Builder mergeFrom( migrateDataLabelingAnnotatedDatasetConfigsBuilder_ = null; migrateDataLabelingAnnotatedDatasetConfigs_ = other.migrateDataLabelingAnnotatedDatasetConfigs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); migrateDataLabelingAnnotatedDatasetConfigsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMigrateDataLabelingAnnotatedDatasetConfigsFieldBuilder() @@ -4726,13 +4835,13 @@ public Builder mergeFrom( case 10: { dataset_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { datasetDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -4846,8 +4955,8 @@ public Builder setDataset(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - dataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4867,8 +4976,8 @@ public Builder setDataset(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDataset() { - dataset_ = getDefaultInstance().getDataset(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -4893,8 +5002,8 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - dataset_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4963,8 +5072,8 @@ public Builder setDatasetDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - datasetDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4981,8 +5090,8 @@ public Builder setDatasetDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDatasetDisplayName() { - datasetDisplayName_ = getDefaultInstance().getDatasetDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -5004,8 +5113,8 @@ public Builder setDatasetDisplayNameBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - datasetDisplayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -5016,13 +5125,13 @@ public Builder setDatasetDisplayNameBytes(com.google.protobuf.ByteString value) migrateDataLabelingAnnotatedDatasetConfigs_ = java.util.Collections.emptyList(); private void ensureMigrateDataLabelingAnnotatedDatasetConfigsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { migrateDataLabelingAnnotatedDatasetConfigs_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest .MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig>( migrateDataLabelingAnnotatedDatasetConfigs_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -5323,7 +5432,7 @@ public Builder addAllMigrateDataLabelingAnnotatedDatasetConfigs( public Builder clearMigrateDataLabelingAnnotatedDatasetConfigs() { if (migrateDataLabelingAnnotatedDatasetConfigsBuilder_ == null) { migrateDataLabelingAnnotatedDatasetConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { migrateDataLabelingAnnotatedDatasetConfigsBuilder_.clear(); @@ -5507,7 +5616,7 @@ public Builder removeMigrateDataLabelingAnnotatedDatasetConfigs(int index) { .MigrateDataLabelingDatasetConfig .MigrateDataLabelingAnnotatedDatasetConfigOrBuilder>( migrateDataLabelingAnnotatedDatasetConfigs_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); migrateDataLabelingAnnotatedDatasetConfigs_ = null; @@ -6198,6 +6307,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (migrateMlEngineModelVersionConfigBuilder_ != null) { migrateMlEngineModelVersionConfigBuilder_.clear(); } @@ -6239,37 +6349,34 @@ public com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest build() { public com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest result = new com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest(this); - if (requestCase_ == 1) { - if (migrateMlEngineModelVersionConfigBuilder_ == null) { - result.request_ = request_; - } else { - result.request_ = migrateMlEngineModelVersionConfigBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (requestCase_ == 2) { - if (migrateAutomlModelConfigBuilder_ == null) { - result.request_ = request_; - } else { - result.request_ = migrateAutomlModelConfigBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest result) { + result.requestCase_ = requestCase_; + result.request_ = this.request_; + if (requestCase_ == 1 && migrateMlEngineModelVersionConfigBuilder_ != null) { + result.request_ = migrateMlEngineModelVersionConfigBuilder_.build(); } - if (requestCase_ == 3) { - if (migrateAutomlDatasetConfigBuilder_ == null) { - result.request_ = request_; - } else { - result.request_ = migrateAutomlDatasetConfigBuilder_.build(); - } + if (requestCase_ == 2 && migrateAutomlModelConfigBuilder_ != null) { + result.request_ = migrateAutomlModelConfigBuilder_.build(); } - if (requestCase_ == 4) { - if (migrateDataLabelingDatasetConfigBuilder_ == null) { - result.request_ = request_; - } else { - result.request_ = migrateDataLabelingDatasetConfigBuilder_.build(); - } + if (requestCase_ == 3 && migrateAutomlDatasetConfigBuilder_ != null) { + result.request_ = migrateAutomlDatasetConfigBuilder_.build(); + } + if (requestCase_ == 4 && migrateDataLabelingDatasetConfigBuilder_ != null) { + result.request_ = migrateDataLabelingDatasetConfigBuilder_.build(); } - result.requestCase_ = requestCase_; - onBuilt(); - return result; } @java.lang.Override @@ -6431,6 +6538,8 @@ public Builder clearRequest() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.MigrateResourceRequest .MigrateMlEngineModelVersionConfig, @@ -6692,7 +6801,6 @@ public Builder clearMigrateMlEngineModelVersionConfig() { } requestCase_ = 1; onChanged(); - ; return migrateMlEngineModelVersionConfigBuilder_; } @@ -6959,7 +7067,6 @@ public Builder clearMigrateAutomlModelConfig() { } requestCase_ = 2; onChanged(); - ; return migrateAutomlModelConfigBuilder_; } @@ -7230,7 +7337,6 @@ public Builder clearMigrateAutomlDatasetConfig() { } requestCase_ = 3; onChanged(); - ; return migrateAutomlDatasetConfigBuilder_; } @@ -7504,7 +7610,6 @@ public Builder clearMigrateDataLabelingDatasetConfig() { } requestCase_ = 4; onChanged(); - ; return migrateDataLabelingDatasetConfigBuilder_; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceResponse.java index d771b278d4a2..03fcbaedefc4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrateResourceResponse.java @@ -301,7 +301,9 @@ public com.google.cloud.aiplatform.v1beta1.MigratableResource getMigratableResou @java.lang.Override public com.google.cloud.aiplatform.v1beta1.MigratableResourceOrBuilder getMigratableResourceOrBuilder() { - return getMigratableResource(); + return migratableResource_ == null + ? com.google.cloud.aiplatform.v1beta1.MigratableResource.getDefaultInstance() + : migratableResource_; } private byte memoizedIsInitialized = -1; @@ -542,10 +544,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (migratableResourceBuilder_ == null) { - migratableResource_ = null; - } else { - migratableResource_ = null; + bitField0_ = 0; + migratableResource_ = null; + if (migratableResourceBuilder_ != null) { + migratableResourceBuilder_.dispose(); migratableResourceBuilder_ = null; } migratedResourceCase_ = 0; @@ -577,22 +579,30 @@ public com.google.cloud.aiplatform.v1beta1.MigrateResourceResponse build() { public com.google.cloud.aiplatform.v1beta1.MigrateResourceResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.MigrateResourceResponse result = new com.google.cloud.aiplatform.v1beta1.MigrateResourceResponse(this); - if (migratedResourceCase_ == 1) { - result.migratedResource_ = migratedResource_; - } - if (migratedResourceCase_ == 2) { - result.migratedResource_ = migratedResource_; + if (bitField0_ != 0) { + buildPartial0(result); } - if (migratableResourceBuilder_ == null) { - result.migratableResource_ = migratableResource_; - } else { - result.migratableResource_ = migratableResourceBuilder_.build(); - } - result.migratedResourceCase_ = migratedResourceCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MigrateResourceResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.migratableResource_ = + migratableResourceBuilder_ == null + ? migratableResource_ + : migratableResourceBuilder_.build(); + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.MigrateResourceResponse result) { + result.migratedResourceCase_ = migratedResourceCase_; + result.migratedResource_ = this.migratedResource_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -706,7 +716,7 @@ public Builder mergeFrom( { input.readMessage( getMigratableResourceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -740,6 +750,8 @@ public Builder clearMigratedResource() { return this; } + private int bitField0_; + /** * * @@ -1027,7 +1039,7 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { * @return Whether the migratableResource field is set. */ public boolean hasMigratableResource() { - return migratableResourceBuilder_ != null || migratableResource_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1067,11 +1079,11 @@ public Builder setMigratableResource( throw new NullPointerException(); } migratableResource_ = value; - onChanged(); } else { migratableResourceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1088,11 +1100,11 @@ public Builder setMigratableResource( com.google.cloud.aiplatform.v1beta1.MigratableResource.Builder builderForValue) { if (migratableResourceBuilder_ == null) { migratableResource_ = builderForValue.build(); - onChanged(); } else { migratableResourceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1108,19 +1120,19 @@ public Builder setMigratableResource( public Builder mergeMigratableResource( com.google.cloud.aiplatform.v1beta1.MigratableResource value) { if (migratableResourceBuilder_ == null) { - if (migratableResource_ != null) { - migratableResource_ = - com.google.cloud.aiplatform.v1beta1.MigratableResource.newBuilder(migratableResource_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && migratableResource_ != null + && migratableResource_ + != com.google.cloud.aiplatform.v1beta1.MigratableResource.getDefaultInstance()) { + getMigratableResourceBuilder().mergeFrom(value); } else { migratableResource_ = value; } - onChanged(); } else { migratableResourceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1134,14 +1146,13 @@ public Builder mergeMigratableResource( * .google.cloud.aiplatform.v1beta1.MigratableResource migratable_resource = 3; */ public Builder clearMigratableResource() { - if (migratableResourceBuilder_ == null) { - migratableResource_ = null; - onChanged(); - } else { - migratableResource_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + migratableResource_ = null; + if (migratableResourceBuilder_ != null) { + migratableResourceBuilder_.dispose(); migratableResourceBuilder_ = null; } - + onChanged(); return this; } /** @@ -1156,7 +1167,7 @@ public Builder clearMigratableResource() { */ public com.google.cloud.aiplatform.v1beta1.MigratableResource.Builder getMigratableResourceBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getMigratableResourceFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java index 70f31f50d17b..d0ea2bf64b27 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java @@ -650,7 +650,9 @@ private ExportableContent(int value) { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -727,7 +729,10 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int EXPORTABLE_CONTENTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List exportableContents_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent> @@ -737,10 +742,9 @@ public com.google.protobuf.ByteString getIdBytes() { com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent>() { public com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent result = com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent - .valueOf(from); + .forNumber(from); return result == null ? com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent .UNRECOGNIZED @@ -1070,10 +1074,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - exportableContents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -1101,17 +1105,30 @@ public com.google.cloud.aiplatform.v1beta1.Model.ExportFormat build() { public com.google.cloud.aiplatform.v1beta1.Model.ExportFormat buildPartial() { com.google.cloud.aiplatform.v1beta1.Model.ExportFormat result = new com.google.cloud.aiplatform.v1beta1.Model.ExportFormat(this); - int from_bitField0_ = bitField0_; - result.id_ = id_; - if (((bitField0_ & 0x00000001) != 0)) { - exportableContents_ = java.util.Collections.unmodifiableList(exportableContents_); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.exportableContents_ = exportableContents_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.Model.ExportFormat result) { + if (((bitField0_ & 0x00000002) != 0)) { + exportableContents_ = java.util.Collections.unmodifiableList(exportableContents_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.exportableContents_ = exportableContents_; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Model.ExportFormat result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1162,12 +1179,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model.ExportFormat return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.exportableContents_.isEmpty()) { if (exportableContents_.isEmpty()) { exportableContents_ = other.exportableContents_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureExportableContentsIsMutable(); exportableContents_.addAll(other.exportableContents_); @@ -1203,7 +1221,7 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: @@ -1347,8 +1365,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1378,8 +1396,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1414,8 +1432,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1424,9 +1442,9 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureExportableContentsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { exportableContents_ = new java.util.ArrayList(exportableContents_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -1576,7 +1594,7 @@ public Builder addAllExportableContents( */ public Builder clearExportableContents() { exportableContents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1742,7 +1760,9 @@ public com.google.cloud.aiplatform.v1beta1.Model.ExportFormat getDefaultInstance } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -1791,7 +1811,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int VERSION_ID_FIELD_NUMBER = 28; - private volatile java.lang.Object versionId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object versionId_ = ""; /** * * @@ -1850,6 +1872,8 @@ public com.google.protobuf.ByteString getVersionIdBytes() { } public static final int VERSION_ALIASES_FIELD_NUMBER = 29; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList versionAliases_; /** * @@ -1993,7 +2017,9 @@ public com.google.protobuf.Timestamp getVersionCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getVersionCreateTimeOrBuilder() { - return getVersionCreateTime(); + return versionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : versionCreateTime_; } public static final int VERSION_UPDATE_TIME_FIELD_NUMBER = 32; @@ -2047,11 +2073,15 @@ public com.google.protobuf.Timestamp getVersionUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getVersionUpdateTimeOrBuilder() { - return getVersionUpdateTime(); + return versionUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : versionUpdateTime_; } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -2104,7 +2134,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -2153,7 +2185,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int VERSION_DESCRIPTION_FIELD_NUMBER = 30; - private volatile java.lang.Object versionDescription_; + + @SuppressWarnings("serial") + private volatile java.lang.Object versionDescription_ = ""; /** * * @@ -2259,11 +2293,15 @@ public com.google.cloud.aiplatform.v1beta1.PredictSchemata getPredictSchemata() @java.lang.Override public com.google.cloud.aiplatform.v1beta1.PredictSchemataOrBuilder getPredictSchemataOrBuilder() { - return getPredictSchemata(); + return predictSchemata_ == null + ? com.google.cloud.aiplatform.v1beta1.PredictSchemata.getDefaultInstance() + : predictSchemata_; } public static final int METADATA_SCHEMA_URI_FIELD_NUMBER = 5; - private volatile java.lang.Object metadataSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metadataSchemaUri_ = ""; /** * * @@ -2381,10 +2419,12 @@ public com.google.protobuf.Value getMetadata() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; } public static final int SUPPORTED_EXPORT_FORMATS_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") private java.util.List supportedExportFormats_; /** @@ -2473,7 +2513,9 @@ public com.google.cloud.aiplatform.v1beta1.Model.ExportFormat getSupportedExport } public static final int TRAINING_PIPELINE_FIELD_NUMBER = 7; - private volatile java.lang.Object trainingPipeline_; + + @SuppressWarnings("serial") + private volatile java.lang.Object trainingPipeline_ = ""; /** * * @@ -2591,11 +2633,15 @@ public com.google.cloud.aiplatform.v1beta1.ModelContainerSpec getContainerSpec() @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelContainerSpecOrBuilder getContainerSpecOrBuilder() { - return getContainerSpec(); + return containerSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.getDefaultInstance() + : containerSpec_; } public static final int ARTIFACT_URI_FIELD_NUMBER = 26; - private volatile java.lang.Object artifactUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object artifactUri_ = ""; /** * * @@ -2646,7 +2692,10 @@ public com.google.protobuf.ByteString getArtifactUriBytes() { } public static final int SUPPORTED_DEPLOYMENT_RESOURCES_TYPES_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") private java.util.List supportedDeploymentResourcesTypes_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType> supportedDeploymentResourcesTypes_converter_ = @@ -2655,9 +2704,8 @@ public com.google.protobuf.ByteString getArtifactUriBytes() { com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType>() { public com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType convert( java.lang.Integer from) { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType result = - com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType.valueOf(from); + com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType.forNumber(from); return result == null ? com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType.UNRECOGNIZED : result; @@ -2841,6 +2889,8 @@ public int getSupportedDeploymentResourcesTypesValue(int index) { private int supportedDeploymentResourcesTypesMemoizedSerializedSize; public static final int SUPPORTED_INPUT_STORAGE_FORMATS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList supportedInputStorageFormats_; /** * @@ -3058,6 +3108,8 @@ public com.google.protobuf.ByteString getSupportedInputStorageFormatsBytes(int i } public static final int SUPPORTED_OUTPUT_STORAGE_FORMATS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList supportedOutputStorageFormats_; /** * @@ -3292,7 +3344,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 14; @@ -3341,10 +3393,12 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int DEPLOYED_MODELS_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") private java.util.List deployedModels_; /** * @@ -3548,11 +3602,15 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationSpec getExplanationSpec() @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ExplanationSpecOrBuilder getExplanationSpecOrBuilder() { - return getExplanationSpec(); + return explanationSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.ExplanationSpec.getDefaultInstance() + : explanationSpec_; } public static final int ETAG_FIELD_NUMBER = 16; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -3615,6 +3673,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -3684,7 +3743,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 17; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3764,7 +3826,9 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } public static final int MODEL_SOURCE_INFO_FIELD_NUMBER = 38; @@ -3822,11 +3886,15 @@ public com.google.cloud.aiplatform.v1beta1.ModelSourceInfo getModelSourceInfo() @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelSourceInfoOrBuilder getModelSourceInfoOrBuilder() { - return getModelSourceInfo(); + return modelSourceInfo_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.getDefaultInstance() + : modelSourceInfo_; } public static final int METADATA_ARTIFACT_FIELD_NUMBER = 44; - private volatile java.lang.Object metadataArtifact_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metadataArtifact_ = ""; /** * * @@ -4440,42 +4508,33 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - versionId_ = ""; - versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (versionCreateTimeBuilder_ == null) { - versionCreateTime_ = null; - } else { - versionCreateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + versionCreateTime_ = null; + if (versionCreateTimeBuilder_ != null) { + versionCreateTimeBuilder_.dispose(); versionCreateTimeBuilder_ = null; } - if (versionUpdateTimeBuilder_ == null) { - versionUpdateTime_ = null; - } else { - versionUpdateTime_ = null; + versionUpdateTime_ = null; + if (versionUpdateTimeBuilder_ != null) { + versionUpdateTimeBuilder_.dispose(); versionUpdateTimeBuilder_ = null; } displayName_ = ""; - description_ = ""; - versionDescription_ = ""; - - if (predictSchemataBuilder_ == null) { - predictSchemata_ = null; - } else { - predictSchemata_ = null; + predictSchemata_ = null; + if (predictSchemataBuilder_ != null) { + predictSchemataBuilder_.dispose(); predictSchemataBuilder_ = null; } metadataSchemaUri_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } if (supportedExportFormatsBuilder_ == null) { @@ -4484,33 +4543,28 @@ public Builder clear() { supportedExportFormats_ = null; supportedExportFormatsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000800); trainingPipeline_ = ""; - - if (containerSpecBuilder_ == null) { - containerSpec_ = null; - } else { - containerSpec_ = null; + containerSpec_ = null; + if (containerSpecBuilder_ != null) { + containerSpecBuilder_.dispose(); containerSpecBuilder_ = null; } artifactUri_ = ""; - supportedDeploymentResourcesTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00008000); supportedInputStorageFormats_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00010000); supportedOutputStorageFormats_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00020000); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } if (deployedModelsBuilder_ == null) { @@ -4519,30 +4573,25 @@ public Builder clear() { deployedModels_ = null; deployedModelsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000020); - if (explanationSpecBuilder_ == null) { - explanationSpec_ = null; - } else { - explanationSpec_ = null; + bitField0_ = (bitField0_ & ~0x00100000); + explanationSpec_ = null; + if (explanationSpecBuilder_ != null) { + explanationSpecBuilder_.dispose(); explanationSpecBuilder_ = null; } etag_ = ""; - internalGetMutableLabels().clear(); - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - if (modelSourceInfoBuilder_ == null) { - modelSourceInfo_ = null; - } else { - modelSourceInfo_ = null; + modelSourceInfo_ = null; + if (modelSourceInfoBuilder_ != null) { + modelSourceInfoBuilder_.dispose(); modelSourceInfoBuilder_ = null; } metadataArtifact_ = ""; - return this; } @@ -4570,110 +4619,133 @@ public com.google.cloud.aiplatform.v1beta1.Model build() { public com.google.cloud.aiplatform.v1beta1.Model buildPartial() { com.google.cloud.aiplatform.v1beta1.Model result = new com.google.cloud.aiplatform.v1beta1.Model(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.versionId_ = versionId_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.Model result) { + if (((bitField0_ & 0x00000004) != 0)) { versionAliases_ = versionAliases_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.versionAliases_ = versionAliases_; - if (versionCreateTimeBuilder_ == null) { - result.versionCreateTime_ = versionCreateTime_; - } else { - result.versionCreateTime_ = versionCreateTimeBuilder_.build(); - } - if (versionUpdateTimeBuilder_ == null) { - result.versionUpdateTime_ = versionUpdateTime_; - } else { - result.versionUpdateTime_ = versionUpdateTimeBuilder_.build(); - } - result.displayName_ = displayName_; - result.description_ = description_; - result.versionDescription_ = versionDescription_; - if (predictSchemataBuilder_ == null) { - result.predictSchemata_ = predictSchemata_; - } else { - result.predictSchemata_ = predictSchemataBuilder_.build(); - } - result.metadataSchemaUri_ = metadataSchemaUri_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } if (supportedExportFormatsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { supportedExportFormats_ = java.util.Collections.unmodifiableList(supportedExportFormats_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000800); } result.supportedExportFormats_ = supportedExportFormats_; } else { result.supportedExportFormats_ = supportedExportFormatsBuilder_.build(); } - result.trainingPipeline_ = trainingPipeline_; - if (containerSpecBuilder_ == null) { - result.containerSpec_ = containerSpec_; - } else { - result.containerSpec_ = containerSpecBuilder_.build(); - } - result.artifactUri_ = artifactUri_; - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { supportedDeploymentResourcesTypes_ = java.util.Collections.unmodifiableList(supportedDeploymentResourcesTypes_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00008000); } result.supportedDeploymentResourcesTypes_ = supportedDeploymentResourcesTypes_; - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { supportedInputStorageFormats_ = supportedInputStorageFormats_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00010000); } result.supportedInputStorageFormats_ = supportedInputStorageFormats_; - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { supportedOutputStorageFormats_ = supportedOutputStorageFormats_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00020000); } result.supportedOutputStorageFormats_ = supportedOutputStorageFormats_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } if (deployedModelsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { deployedModels_ = java.util.Collections.unmodifiableList(deployedModels_); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00100000); } result.deployedModels_ = deployedModels_; } else { result.deployedModels_ = deployedModelsBuilder_.build(); } - if (explanationSpecBuilder_ == null) { - result.explanationSpec_ = explanationSpec_; - } else { - result.explanationSpec_ = explanationSpecBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Model result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - result.etag_ = etag_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.versionId_ = versionId_; } - if (modelSourceInfoBuilder_ == null) { - result.modelSourceInfo_ = modelSourceInfo_; - } else { - result.modelSourceInfo_ = modelSourceInfoBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.versionCreateTime_ = + versionCreateTimeBuilder_ == null + ? versionCreateTime_ + : versionCreateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.versionUpdateTime_ = + versionUpdateTimeBuilder_ == null + ? versionUpdateTime_ + : versionUpdateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.versionDescription_ = versionDescription_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.predictSchemata_ = + predictSchemataBuilder_ == null ? predictSchemata_ : predictSchemataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.metadataSchemaUri_ = metadataSchemaUri_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.trainingPipeline_ = trainingPipeline_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.containerSpec_ = + containerSpecBuilder_ == null ? containerSpec_ : containerSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.artifactUri_ = artifactUri_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.explanationSpec_ = + explanationSpecBuilder_ == null ? explanationSpec_ : explanationSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.modelSourceInfo_ = + modelSourceInfoBuilder_ == null ? modelSourceInfo_ : modelSourceInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.metadataArtifact_ = metadataArtifact_; } - result.metadataArtifact_ = metadataArtifact_; - onBuilt(); - return result; } @java.lang.Override @@ -4723,16 +4795,18 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { if (other == com.google.cloud.aiplatform.v1beta1.Model.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getVersionId().isEmpty()) { versionId_ = other.versionId_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.versionAliases_.isEmpty()) { if (versionAliases_.isEmpty()) { versionAliases_ = other.versionAliases_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureVersionAliasesIsMutable(); versionAliases_.addAll(other.versionAliases_); @@ -4747,14 +4821,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000040; onChanged(); } if (!other.getVersionDescription().isEmpty()) { versionDescription_ = other.versionDescription_; + bitField0_ |= 0x00000080; onChanged(); } if (other.hasPredictSchemata()) { @@ -4762,6 +4839,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { } if (!other.getMetadataSchemaUri().isEmpty()) { metadataSchemaUri_ = other.metadataSchemaUri_; + bitField0_ |= 0x00000200; onChanged(); } if (other.hasMetadata()) { @@ -4771,7 +4849,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { if (!other.supportedExportFormats_.isEmpty()) { if (supportedExportFormats_.isEmpty()) { supportedExportFormats_ = other.supportedExportFormats_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000800); } else { ensureSupportedExportFormatsIsMutable(); supportedExportFormats_.addAll(other.supportedExportFormats_); @@ -4784,7 +4862,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { supportedExportFormatsBuilder_.dispose(); supportedExportFormatsBuilder_ = null; supportedExportFormats_ = other.supportedExportFormats_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000800); supportedExportFormatsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSupportedExportFormatsFieldBuilder() @@ -4796,6 +4874,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { } if (!other.getTrainingPipeline().isEmpty()) { trainingPipeline_ = other.trainingPipeline_; + bitField0_ |= 0x00001000; onChanged(); } if (other.hasContainerSpec()) { @@ -4803,12 +4882,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { } if (!other.getArtifactUri().isEmpty()) { artifactUri_ = other.artifactUri_; + bitField0_ |= 0x00004000; onChanged(); } if (!other.supportedDeploymentResourcesTypes_.isEmpty()) { if (supportedDeploymentResourcesTypes_.isEmpty()) { supportedDeploymentResourcesTypes_ = other.supportedDeploymentResourcesTypes_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00008000); } else { ensureSupportedDeploymentResourcesTypesIsMutable(); supportedDeploymentResourcesTypes_.addAll(other.supportedDeploymentResourcesTypes_); @@ -4818,7 +4898,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { if (!other.supportedInputStorageFormats_.isEmpty()) { if (supportedInputStorageFormats_.isEmpty()) { supportedInputStorageFormats_ = other.supportedInputStorageFormats_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00010000); } else { ensureSupportedInputStorageFormatsIsMutable(); supportedInputStorageFormats_.addAll(other.supportedInputStorageFormats_); @@ -4828,7 +4908,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { if (!other.supportedOutputStorageFormats_.isEmpty()) { if (supportedOutputStorageFormats_.isEmpty()) { supportedOutputStorageFormats_ = other.supportedOutputStorageFormats_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00020000); } else { ensureSupportedOutputStorageFormatsIsMutable(); supportedOutputStorageFormats_.addAll(other.supportedOutputStorageFormats_); @@ -4845,7 +4925,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { if (!other.deployedModels_.isEmpty()) { if (deployedModels_.isEmpty()) { deployedModels_ = other.deployedModels_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00100000); } else { ensureDeployedModelsIsMutable(); deployedModels_.addAll(other.deployedModels_); @@ -4858,7 +4938,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { deployedModelsBuilder_.dispose(); deployedModelsBuilder_ = null; deployedModels_ = other.deployedModels_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00100000); deployedModelsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDeployedModelsFieldBuilder() @@ -4873,9 +4953,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00400000; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00800000; if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } @@ -4884,6 +4966,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { } if (!other.getMetadataArtifact().isEmpty()) { metadataArtifact_ = other.metadataArtifact_; + bitField0_ |= 0x04000000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -4915,49 +4998,49 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 26 case 34: { input.readMessage(getPredictSchemataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 34 case 42: { metadataSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000200; break; } // case 42 case 50: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 50 case 58: { trainingPipeline_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00001000; break; } // case 58 case 74: { input.readMessage(getContainerSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00002000; break; } // case 74 case 80: @@ -4996,13 +5079,13 @@ public Builder mergeFrom( case 106: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00040000; break; } // case 106 case 114: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00080000; break; } // case 114 case 122: @@ -5022,7 +5105,7 @@ public Builder mergeFrom( case 130: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00400000; break; } // case 130 case 138: @@ -5034,6 +5117,7 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00800000; break; } // case 138 case 162: @@ -5053,25 +5137,25 @@ public Builder mergeFrom( case 186: { input.readMessage(getExplanationSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00200000; break; } // case 186 case 194: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x01000000; break; } // case 194 case 210: { artifactUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00004000; break; } // case 210 case 226: { versionId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 226 case 234: @@ -5084,33 +5168,33 @@ public Builder mergeFrom( case 242: { versionDescription_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 242 case 250: { input.readMessage( getVersionCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 250 case 258: { input.readMessage( getVersionUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 258 case 306: { input.readMessage(getModelSourceInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x02000000; break; } // case 306 case 354: { metadataArtifact_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x04000000; break; } // case 354 default: @@ -5193,8 +5277,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5210,8 +5294,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -5232,8 +5316,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5314,8 +5398,8 @@ public Builder setVersionId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - versionId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -5336,8 +5420,8 @@ public Builder setVersionId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearVersionId() { - versionId_ = getDefaultInstance().getVersionId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -5363,8 +5447,8 @@ public Builder setVersionIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - versionId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -5373,9 +5457,9 @@ public Builder setVersionIdBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureVersionAliasesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { versionAliases_ = new com.google.protobuf.LazyStringArrayList(versionAliases_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } /** @@ -5574,7 +5658,7 @@ public Builder addAllVersionAliases(java.lang.Iterable values) */ public Builder clearVersionAliases() { versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -5629,7 +5713,7 @@ public Builder addVersionAliasesBytes(com.google.protobuf.ByteString value) { * @return Whether the versionCreateTime field is set. */ public boolean hasVersionCreateTime() { - return versionCreateTimeBuilder_ != null || versionCreateTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -5670,11 +5754,11 @@ public Builder setVersionCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } versionCreateTime_ = value; - onChanged(); } else { versionCreateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -5691,11 +5775,11 @@ public Builder setVersionCreateTime(com.google.protobuf.Timestamp value) { public Builder setVersionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (versionCreateTimeBuilder_ == null) { versionCreateTime_ = builderForValue.build(); - onChanged(); } else { versionCreateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -5711,19 +5795,18 @@ public Builder setVersionCreateTime(com.google.protobuf.Timestamp.Builder builde */ public Builder mergeVersionCreateTime(com.google.protobuf.Timestamp value) { if (versionCreateTimeBuilder_ == null) { - if (versionCreateTime_ != null) { - versionCreateTime_ = - com.google.protobuf.Timestamp.newBuilder(versionCreateTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && versionCreateTime_ != null + && versionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getVersionCreateTimeBuilder().mergeFrom(value); } else { versionCreateTime_ = value; } - onChanged(); } else { versionCreateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -5738,14 +5821,13 @@ public Builder mergeVersionCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearVersionCreateTime() { - if (versionCreateTimeBuilder_ == null) { - versionCreateTime_ = null; - onChanged(); - } else { - versionCreateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + versionCreateTime_ = null; + if (versionCreateTimeBuilder_ != null) { + versionCreateTimeBuilder_.dispose(); versionCreateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -5760,7 +5842,7 @@ public Builder clearVersionCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getVersionCreateTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getVersionCreateTimeFieldBuilder().getBuilder(); } @@ -5832,7 +5914,7 @@ public com.google.protobuf.TimestampOrBuilder getVersionCreateTimeOrBuilder() { * @return Whether the versionUpdateTime field is set. */ public boolean hasVersionUpdateTime() { - return versionUpdateTimeBuilder_ != null || versionUpdateTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -5873,11 +5955,11 @@ public Builder setVersionUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } versionUpdateTime_ = value; - onChanged(); } else { versionUpdateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -5894,11 +5976,11 @@ public Builder setVersionUpdateTime(com.google.protobuf.Timestamp value) { public Builder setVersionUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (versionUpdateTimeBuilder_ == null) { versionUpdateTime_ = builderForValue.build(); - onChanged(); } else { versionUpdateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -5914,19 +5996,18 @@ public Builder setVersionUpdateTime(com.google.protobuf.Timestamp.Builder builde */ public Builder mergeVersionUpdateTime(com.google.protobuf.Timestamp value) { if (versionUpdateTimeBuilder_ == null) { - if (versionUpdateTime_ != null) { - versionUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(versionUpdateTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && versionUpdateTime_ != null + && versionUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getVersionUpdateTimeBuilder().mergeFrom(value); } else { versionUpdateTime_ = value; } - onChanged(); } else { versionUpdateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -5941,14 +6022,13 @@ public Builder mergeVersionUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearVersionUpdateTime() { - if (versionUpdateTimeBuilder_ == null) { - versionUpdateTime_ = null; - onChanged(); - } else { - versionUpdateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + versionUpdateTime_ = null; + if (versionUpdateTimeBuilder_ != null) { + versionUpdateTimeBuilder_.dispose(); versionUpdateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -5963,7 +6043,7 @@ public Builder clearVersionUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getVersionUpdateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getVersionUpdateTimeFieldBuilder().getBuilder(); } @@ -6082,8 +6162,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -6101,8 +6181,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -6125,8 +6205,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -6192,8 +6272,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -6209,8 +6289,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -6231,8 +6311,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -6298,8 +6378,8 @@ public Builder setVersionDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - versionDescription_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6315,8 +6395,8 @@ public Builder setVersionDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearVersionDescription() { - versionDescription_ = getDefaultInstance().getVersionDescription(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -6337,8 +6417,8 @@ public Builder setVersionDescriptionBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - versionDescription_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6365,7 +6445,7 @@ public Builder setVersionDescriptionBytes(com.google.protobuf.ByteString value) * @return Whether the predictSchemata field is set. */ public boolean hasPredictSchemata() { - return predictSchemataBuilder_ != null || predictSchemata_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -6410,11 +6490,11 @@ public Builder setPredictSchemata(com.google.cloud.aiplatform.v1beta1.PredictSch throw new NullPointerException(); } predictSchemata_ = value; - onChanged(); } else { predictSchemataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -6434,11 +6514,11 @@ public Builder setPredictSchemata( com.google.cloud.aiplatform.v1beta1.PredictSchemata.Builder builderForValue) { if (predictSchemataBuilder_ == null) { predictSchemata_ = builderForValue.build(); - onChanged(); } else { predictSchemataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -6456,19 +6536,19 @@ public Builder setPredictSchemata( */ public Builder mergePredictSchemata(com.google.cloud.aiplatform.v1beta1.PredictSchemata value) { if (predictSchemataBuilder_ == null) { - if (predictSchemata_ != null) { - predictSchemata_ = - com.google.cloud.aiplatform.v1beta1.PredictSchemata.newBuilder(predictSchemata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && predictSchemata_ != null + && predictSchemata_ + != com.google.cloud.aiplatform.v1beta1.PredictSchemata.getDefaultInstance()) { + getPredictSchemataBuilder().mergeFrom(value); } else { predictSchemata_ = value; } - onChanged(); } else { predictSchemataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -6485,14 +6565,13 @@ public Builder mergePredictSchemata(com.google.cloud.aiplatform.v1beta1.PredictS * .google.cloud.aiplatform.v1beta1.PredictSchemata predict_schemata = 4; */ public Builder clearPredictSchemata() { - if (predictSchemataBuilder_ == null) { - predictSchemata_ = null; - onChanged(); - } else { - predictSchemata_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + predictSchemata_ = null; + if (predictSchemataBuilder_ != null) { + predictSchemataBuilder_.dispose(); predictSchemataBuilder_ = null; } - + onChanged(); return this; } /** @@ -6509,7 +6588,7 @@ public Builder clearPredictSchemata() { * .google.cloud.aiplatform.v1beta1.PredictSchemata predict_schemata = 4; */ public com.google.cloud.aiplatform.v1beta1.PredictSchemata.Builder getPredictSchemataBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getPredictSchemataFieldBuilder().getBuilder(); } @@ -6654,8 +6733,8 @@ public Builder setMetadataSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metadataSchemaUri_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6680,8 +6759,8 @@ public Builder setMetadataSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetadataSchemaUri() { - metadataSchemaUri_ = getDefaultInstance().getMetadataSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -6711,8 +6790,8 @@ public Builder setMetadataSchemaUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metadataSchemaUri_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6738,7 +6817,7 @@ public Builder setMetadataSchemaUriBytes(com.google.protobuf.ByteString value) { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -6779,11 +6858,11 @@ public Builder setMetadata(com.google.protobuf.Value value) { throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -6801,11 +6880,11 @@ public Builder setMetadata(com.google.protobuf.Value value) { public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -6822,17 +6901,18 @@ public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Value value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Value.newBuilder(metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Value.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -6848,14 +6928,13 @@ public Builder mergeMetadata(com.google.protobuf.Value value) { * .google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -6871,7 +6950,7 @@ public Builder clearMetadata() { * .google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.Value.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -6927,11 +7006,11 @@ public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { supportedExportFormats_ = java.util.Collections.emptyList(); private void ensureSupportedExportFormatsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000800) != 0)) { supportedExportFormats_ = new java.util.ArrayList( supportedExportFormats_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000800; } } @@ -7186,7 +7265,7 @@ public Builder addAllSupportedExportFormats( public Builder clearSupportedExportFormats() { if (supportedExportFormatsBuilder_ == null) { supportedExportFormats_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { supportedExportFormatsBuilder_.clear(); @@ -7335,7 +7414,7 @@ public Builder removeSupportedExportFormats(int index) { com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.Builder, com.google.cloud.aiplatform.v1beta1.Model.ExportFormatOrBuilder>( supportedExportFormats_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); supportedExportFormats_ = null; @@ -7413,8 +7492,8 @@ public Builder setTrainingPipeline(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - trainingPipeline_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -7433,8 +7512,8 @@ public Builder setTrainingPipeline(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTrainingPipeline() { - trainingPipeline_ = getDefaultInstance().getTrainingPipeline(); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -7458,8 +7537,8 @@ public Builder setTrainingPipelineBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - trainingPipeline_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -7488,7 +7567,7 @@ public Builder setTrainingPipelineBytes(com.google.protobuf.ByteString value) { * @return Whether the containerSpec field is set. */ public boolean hasContainerSpec() { - return containerSpecBuilder_ != null || containerSpec_ != null; + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -7537,11 +7616,11 @@ public Builder setContainerSpec(com.google.cloud.aiplatform.v1beta1.ModelContain throw new NullPointerException(); } containerSpec_ = value; - onChanged(); } else { containerSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -7563,11 +7642,11 @@ public Builder setContainerSpec( com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.Builder builderForValue) { if (containerSpecBuilder_ == null) { containerSpec_ = builderForValue.build(); - onChanged(); } else { containerSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -7588,19 +7667,19 @@ public Builder setContainerSpec( public Builder mergeContainerSpec( com.google.cloud.aiplatform.v1beta1.ModelContainerSpec value) { if (containerSpecBuilder_ == null) { - if (containerSpec_ != null) { - containerSpec_ = - com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.newBuilder(containerSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00002000) != 0) + && containerSpec_ != null + && containerSpec_ + != com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.getDefaultInstance()) { + getContainerSpecBuilder().mergeFrom(value); } else { containerSpec_ = value; } - onChanged(); } else { containerSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -7619,14 +7698,13 @@ public Builder mergeContainerSpec( * */ public Builder clearContainerSpec() { - if (containerSpecBuilder_ == null) { - containerSpec_ = null; - onChanged(); - } else { - containerSpec_ = null; + bitField0_ = (bitField0_ & ~0x00002000); + containerSpec_ = null; + if (containerSpecBuilder_ != null) { + containerSpecBuilder_.dispose(); containerSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -7646,7 +7724,7 @@ public Builder clearContainerSpec() { */ public com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.Builder getContainerSpecBuilder() { - + bitField0_ |= 0x00002000; onChanged(); return getContainerSpecFieldBuilder().getBuilder(); } @@ -7771,8 +7849,8 @@ public Builder setArtifactUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - artifactUri_ = value; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -7789,8 +7867,8 @@ public Builder setArtifactUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearArtifactUri() { - artifactUri_ = getDefaultInstance().getArtifactUri(); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -7812,8 +7890,8 @@ public Builder setArtifactUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - artifactUri_ = value; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -7822,10 +7900,10 @@ public Builder setArtifactUriBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureSupportedDeploymentResourcesTypesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00008000) != 0)) { supportedDeploymentResourcesTypes_ = new java.util.ArrayList(supportedDeploymentResourcesTypes_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00008000; } } /** @@ -8083,7 +8161,7 @@ public Builder addAllSupportedDeploymentResourcesTypes( */ public Builder clearSupportedDeploymentResourcesTypes() { supportedDeploymentResourcesTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -8272,10 +8350,10 @@ public Builder addAllSupportedDeploymentResourcesTypesValue( com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSupportedInputStorageFormatsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00010000) != 0)) { supportedInputStorageFormats_ = new com.google.protobuf.LazyStringArrayList(supportedInputStorageFormats_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00010000; } } /** @@ -8722,7 +8800,7 @@ public Builder addAllSupportedInputStorageFormats(java.lang.Iterable */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00040000); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -9396,7 +9474,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00040000; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -9468,7 +9546,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00080000) != 0); } /** * @@ -9509,11 +9587,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -9530,11 +9608,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -9550,17 +9628,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00080000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -9575,14 +9654,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00080000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -9597,7 +9675,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00080000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -9653,11 +9731,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { java.util.Collections.emptyList(); private void ensureDeployedModelsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!((bitField0_ & 0x00100000) != 0)) { deployedModels_ = new java.util.ArrayList( deployedModels_); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00100000; } } @@ -9909,7 +9987,7 @@ public Builder addAllDeployedModels( public Builder clearDeployedModels() { if (deployedModelsBuilder_ == null) { deployedModels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); } else { deployedModelsBuilder_.clear(); @@ -10057,7 +10135,7 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder addDeployedM com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder, com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder>( deployedModels_, - ((bitField0_ & 0x00000020) != 0), + ((bitField0_ & 0x00100000) != 0), getParentForChildren(), isClean()); deployedModels_ = null; @@ -10107,7 +10185,7 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder addDeployedM * @return Whether the explanationSpec field is set. */ public boolean hasExplanationSpec() { - return explanationSpecBuilder_ != null || explanationSpec_ != null; + return ((bitField0_ & 0x00200000) != 0); } /** * @@ -10192,11 +10270,11 @@ public Builder setExplanationSpec(com.google.cloud.aiplatform.v1beta1.Explanatio throw new NullPointerException(); } explanationSpec_ = value; - onChanged(); } else { explanationSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00200000; + onChanged(); return this; } /** @@ -10236,11 +10314,11 @@ public Builder setExplanationSpec( com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder builderForValue) { if (explanationSpecBuilder_ == null) { explanationSpec_ = builderForValue.build(); - onChanged(); } else { explanationSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00200000; + onChanged(); return this; } /** @@ -10278,19 +10356,19 @@ public Builder setExplanationSpec( */ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1beta1.ExplanationSpec value) { if (explanationSpecBuilder_ == null) { - if (explanationSpec_ != null) { - explanationSpec_ = - com.google.cloud.aiplatform.v1beta1.ExplanationSpec.newBuilder(explanationSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00200000) != 0) + && explanationSpec_ != null + && explanationSpec_ + != com.google.cloud.aiplatform.v1beta1.ExplanationSpec.getDefaultInstance()) { + getExplanationSpecBuilder().mergeFrom(value); } else { explanationSpec_ = value; } - onChanged(); } else { explanationSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00200000; + onChanged(); return this; } /** @@ -10327,14 +10405,13 @@ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1beta1.Explanat * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23; */ public Builder clearExplanationSpec() { - if (explanationSpecBuilder_ == null) { - explanationSpec_ = null; - onChanged(); - } else { - explanationSpec_ = null; + bitField0_ = (bitField0_ & ~0x00200000); + explanationSpec_ = null; + if (explanationSpecBuilder_ != null) { + explanationSpecBuilder_.dispose(); explanationSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -10371,7 +10448,7 @@ public Builder clearExplanationSpec() { * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23; */ public com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder getExplanationSpecBuilder() { - + bitField0_ |= 0x00200000; onChanged(); return getExplanationSpecFieldBuilder().getBuilder(); } @@ -10532,8 +10609,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -10550,8 +10627,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } @@ -10573,8 +10650,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -10590,14 +10667,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00800000; + onChanged(); return labels_; } @@ -10661,8 +10738,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 17; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -10695,6 +10774,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00800000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -10721,6 +10801,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00800000; return internalGetMutableLabels().getMutableMap(); } /** @@ -10743,8 +10824,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00800000; return this; } /** @@ -10762,6 +10843,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00800000; return this; } @@ -10784,7 +10866,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x01000000) != 0); } /** * @@ -10823,11 +10905,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x01000000; + onChanged(); return this; } /** @@ -10844,11 +10926,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x01000000; + onChanged(); return this; } /** @@ -10863,19 +10945,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1beta1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x01000000) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x01000000; + onChanged(); return this; } /** @@ -10889,14 +10971,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 24; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x01000000); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -10910,7 +10991,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 24; */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x01000000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -10982,7 +11063,7 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionS * @return Whether the modelSourceInfo field is set. */ public boolean hasModelSourceInfo() { - return modelSourceInfoBuilder_ != null || modelSourceInfo_ != null; + return ((bitField0_ & 0x02000000) != 0); } /** * @@ -11025,11 +11106,11 @@ public Builder setModelSourceInfo(com.google.cloud.aiplatform.v1beta1.ModelSourc throw new NullPointerException(); } modelSourceInfo_ = value; - onChanged(); } else { modelSourceInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x02000000; + onChanged(); return this; } /** @@ -11048,11 +11129,11 @@ public Builder setModelSourceInfo( com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.Builder builderForValue) { if (modelSourceInfoBuilder_ == null) { modelSourceInfo_ = builderForValue.build(); - onChanged(); } else { modelSourceInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x02000000; + onChanged(); return this; } /** @@ -11069,19 +11150,19 @@ public Builder setModelSourceInfo( */ public Builder mergeModelSourceInfo(com.google.cloud.aiplatform.v1beta1.ModelSourceInfo value) { if (modelSourceInfoBuilder_ == null) { - if (modelSourceInfo_ != null) { - modelSourceInfo_ = - com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.newBuilder(modelSourceInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x02000000) != 0) + && modelSourceInfo_ != null + && modelSourceInfo_ + != com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.getDefaultInstance()) { + getModelSourceInfoBuilder().mergeFrom(value); } else { modelSourceInfo_ = value; } - onChanged(); } else { modelSourceInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x02000000; + onChanged(); return this; } /** @@ -11097,14 +11178,13 @@ public Builder mergeModelSourceInfo(com.google.cloud.aiplatform.v1beta1.ModelSou * */ public Builder clearModelSourceInfo() { - if (modelSourceInfoBuilder_ == null) { - modelSourceInfo_ = null; - onChanged(); - } else { - modelSourceInfo_ = null; + bitField0_ = (bitField0_ & ~0x02000000); + modelSourceInfo_ = null; + if (modelSourceInfoBuilder_ != null) { + modelSourceInfoBuilder_.dispose(); modelSourceInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -11120,7 +11200,7 @@ public Builder clearModelSourceInfo() { * */ public com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.Builder getModelSourceInfoBuilder() { - + bitField0_ |= 0x02000000; onChanged(); return getModelSourceInfoFieldBuilder().getBuilder(); } @@ -11245,8 +11325,8 @@ public Builder setMetadataArtifact(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metadataArtifact_ = value; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -11265,8 +11345,8 @@ public Builder setMetadataArtifact(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetadataArtifact() { - metadataArtifact_ = getDefaultInstance().getMetadataArtifact(); + bitField0_ = (bitField0_ & ~0x04000000); onChanged(); return this; } @@ -11290,8 +11370,8 @@ public Builder setMetadataArtifactBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metadataArtifact_ = value; + bitField0_ |= 0x04000000; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelContainerSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelContainerSpec.java index 64daf1a8e425..5e4d8fef70b9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelContainerSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelContainerSpec.java @@ -76,7 +76,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int IMAGE_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object imageUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object imageUri_ = ""; /** * * @@ -157,6 +159,8 @@ public com.google.protobuf.ByteString getImageUriBytes() { } public static final int COMMAND_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList command_; /** * @@ -358,6 +362,8 @@ public com.google.protobuf.ByteString getCommandBytes(int index) { } public static final int ARGS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList args_; /** * @@ -551,6 +557,8 @@ public com.google.protobuf.ByteString getArgsBytes(int index) { } public static final int ENV_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List env_; /** * @@ -755,6 +763,8 @@ public com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder getEnvOrBuilder(int i } public static final int PORTS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private java.util.List ports_; /** * @@ -919,7 +929,9 @@ public com.google.cloud.aiplatform.v1beta1.PortOrBuilder getPortsOrBuilder(int i } public static final int PREDICT_ROUTE_FIELD_NUMBER = 6; - private volatile java.lang.Object predictRoute_; + + @SuppressWarnings("serial") + private volatile java.lang.Object predictRoute_ = ""; /** * * @@ -1018,7 +1030,9 @@ public com.google.protobuf.ByteString getPredictRouteBytes() { } public static final int HEALTH_ROUTE_FIELD_NUMBER = 7; - private volatile java.lang.Object healthRoute_; + + @SuppressWarnings("serial") + private volatile java.lang.Object healthRoute_ = ""; /** * * @@ -1386,30 +1400,28 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; imageUri_ = ""; - command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); if (envBuilder_ == null) { env_ = java.util.Collections.emptyList(); } else { env_ = null; envBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); if (portsBuilder_ == null) { ports_ = java.util.Collections.emptyList(); } else { ports_ = null; portsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); predictRoute_ = ""; - healthRoute_ = ""; - return this; } @@ -1437,40 +1449,57 @@ public com.google.cloud.aiplatform.v1beta1.ModelContainerSpec build() { public com.google.cloud.aiplatform.v1beta1.ModelContainerSpec buildPartial() { com.google.cloud.aiplatform.v1beta1.ModelContainerSpec result = new com.google.cloud.aiplatform.v1beta1.ModelContainerSpec(this); - int from_bitField0_ = bitField0_; - result.imageUri_ = imageUri_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ModelContainerSpec result) { + if (((bitField0_ & 0x00000002) != 0)) { command_ = command_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.command_ = command_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { args_ = args_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.args_ = args_; if (envBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { env_ = java.util.Collections.unmodifiableList(env_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } result.env_ = env_; } else { result.env_ = envBuilder_.build(); } if (portsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { ports_ = java.util.Collections.unmodifiableList(ports_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } result.ports_ = ports_; } else { result.ports_ = portsBuilder_.build(); } - result.predictRoute_ = predictRoute_; - result.healthRoute_ = healthRoute_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ModelContainerSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.imageUri_ = imageUri_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.predictRoute_ = predictRoute_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.healthRoute_ = healthRoute_; + } } @java.lang.Override @@ -1521,12 +1550,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModelContainerSpec return this; if (!other.getImageUri().isEmpty()) { imageUri_ = other.imageUri_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.command_.isEmpty()) { if (command_.isEmpty()) { command_ = other.command_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCommandIsMutable(); command_.addAll(other.command_); @@ -1536,7 +1566,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModelContainerSpec if (!other.args_.isEmpty()) { if (args_.isEmpty()) { args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureArgsIsMutable(); args_.addAll(other.args_); @@ -1547,7 +1577,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModelContainerSpec if (!other.env_.isEmpty()) { if (env_.isEmpty()) { env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureEnvIsMutable(); env_.addAll(other.env_); @@ -1560,7 +1590,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModelContainerSpec envBuilder_.dispose(); envBuilder_ = null; env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); envBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEnvFieldBuilder() @@ -1574,7 +1604,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModelContainerSpec if (!other.ports_.isEmpty()) { if (ports_.isEmpty()) { ports_ = other.ports_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensurePortsIsMutable(); ports_.addAll(other.ports_); @@ -1587,7 +1617,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModelContainerSpec portsBuilder_.dispose(); portsBuilder_ = null; ports_ = other.ports_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); portsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPortsFieldBuilder() @@ -1599,10 +1629,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModelContainerSpec } if (!other.getPredictRoute().isEmpty()) { predictRoute_ = other.predictRoute_; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getHealthRoute().isEmpty()) { healthRoute_ = other.healthRoute_; + bitField0_ |= 0x00000040; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1634,7 +1666,7 @@ public Builder mergeFrom( case 10: { imageUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -1680,13 +1712,13 @@ public Builder mergeFrom( case 50: { predictRoute_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 case 58: { healthRoute_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 58 default: @@ -1817,8 +1849,8 @@ public Builder setImageUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - imageUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1850,8 +1882,8 @@ public Builder setImageUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearImageUri() { - imageUri_ = getDefaultInstance().getImageUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1888,8 +1920,8 @@ public Builder setImageUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - imageUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1898,9 +1930,9 @@ public Builder setImageUriBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCommandIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { command_ = new com.google.protobuf.LazyStringArrayList(command_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -2315,7 +2347,7 @@ public Builder addAllCommand(java.lang.Iterable values) { */ public Builder clearCommand() { command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2381,9 +2413,9 @@ public Builder addCommandBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } /** @@ -2782,7 +2814,7 @@ public Builder addAllArgs(java.lang.Iterable values) { */ public Builder clearArgs() { args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2846,9 +2878,9 @@ public Builder addArgsBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureEnvIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { env_ = new java.util.ArrayList(env_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } @@ -3360,7 +3392,7 @@ public Builder addAllEnv( public Builder clearEnv() { if (envBuilder_ == null) { env_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { envBuilder_.clear(); @@ -3670,7 +3702,7 @@ public java.util.List getEnv com.google.cloud.aiplatform.v1beta1.EnvVar, com.google.cloud.aiplatform.v1beta1.EnvVar.Builder, com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder>( - env_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + env_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); env_ = null; } return envBuilder_; @@ -3680,9 +3712,9 @@ public java.util.List getEnv java.util.Collections.emptyList(); private void ensurePortsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { ports_ = new java.util.ArrayList(ports_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } @@ -4106,7 +4138,7 @@ public Builder addAllPorts( public Builder clearPorts() { if (portsBuilder_ == null) { ports_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { portsBuilder_.clear(); @@ -4360,7 +4392,7 @@ public java.util.List getPorts com.google.cloud.aiplatform.v1beta1.Port, com.google.cloud.aiplatform.v1beta1.Port.Builder, com.google.cloud.aiplatform.v1beta1.PortOrBuilder>( - ports_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + ports_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); ports_ = null; } return portsBuilder_; @@ -4502,8 +4534,8 @@ public Builder setPredictRoute(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - predictRoute_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4544,8 +4576,8 @@ public Builder setPredictRoute(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPredictRoute() { - predictRoute_ = getDefaultInstance().getPredictRoute(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -4591,8 +4623,8 @@ public Builder setPredictRouteBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - predictRoute_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4730,8 +4762,8 @@ public Builder setHealthRoute(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - healthRoute_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4771,8 +4803,8 @@ public Builder setHealthRoute(java.lang.String value) { * @return This builder for chaining. */ public Builder clearHealthRoute() { - healthRoute_ = getDefaultInstance().getHealthRoute(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -4817,8 +4849,8 @@ public Builder setHealthRouteBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - healthRoute_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringBigQueryTable.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringBigQueryTable.java index 5c33a92f345b..5e8268636887 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringBigQueryTable.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringBigQueryTable.java @@ -396,7 +396,7 @@ private LogType(int value) { } public static final int LOG_SOURCE_FIELD_NUMBER = 1; - private int logSource_; + private int logSource_ = 0; /** * * @@ -430,10 +430,9 @@ public int getLogSourceValue() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource getLogSource() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource result = com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource - .valueOf(logSource_); + .forNumber(logSource_); return result == null ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource .UNRECOGNIZED @@ -441,7 +440,7 @@ public int getLogSourceValue() { } public static final int LOG_TYPE_FIELD_NUMBER = 2; - private int logType_; + private int logType_ = 0; /** * * @@ -475,10 +474,9 @@ public int getLogTypeValue() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType getLogType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType result = - com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType.valueOf( - logType_); + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType + .forNumber(logType_); return result == null ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType .UNRECOGNIZED @@ -486,7 +484,9 @@ public int getLogTypeValue() { } public static final int BIGQUERY_TABLE_PATH_FIELD_NUMBER = 3; - private volatile java.lang.Object bigqueryTablePath_; + + @SuppressWarnings("serial") + private volatile java.lang.Object bigqueryTablePath_ = ""; /** * * @@ -776,12 +776,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; logSource_ = 0; - logType_ = 0; - bigqueryTablePath_ = ""; - return this; } @@ -813,13 +811,27 @@ public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTabl buildPartial() { com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable result = new com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable(this); - result.logSource_ = logSource_; - result.logType_ = logType_; - result.bigqueryTablePath_ = bigqueryTablePath_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.logSource_ = logSource_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.logType_ = logType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.bigqueryTablePath_ = bigqueryTablePath_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -878,6 +890,7 @@ public Builder mergeFrom( } if (!other.getBigqueryTablePath().isEmpty()) { bigqueryTablePath_ = other.bigqueryTablePath_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -909,19 +922,19 @@ public Builder mergeFrom( case 8: { logSource_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { logType_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { bigqueryTablePath_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -941,6 +954,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int logSource_ = 0; /** * @@ -974,8 +989,8 @@ public int getLogSourceValue() { * @return This builder for chaining. */ public Builder setLogSourceValue(int value) { - logSource_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -995,10 +1010,9 @@ public Builder setLogSourceValue(int value) { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource getLogSource() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource result = com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource - .valueOf(logSource_); + .forNumber(logSource_); return result == null ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource .UNRECOGNIZED @@ -1024,7 +1038,7 @@ public Builder setLogSource( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; logSource_ = value.getNumber(); onChanged(); return this; @@ -1043,7 +1057,7 @@ public Builder setLogSource( * @return This builder for chaining. */ public Builder clearLogSource() { - + bitField0_ = (bitField0_ & ~0x00000001); logSource_ = 0; onChanged(); return this; @@ -1082,8 +1096,8 @@ public int getLogTypeValue() { * @return This builder for chaining. */ public Builder setLogTypeValue(int value) { - logType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1103,10 +1117,9 @@ public Builder setLogTypeValue(int value) { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType getLogType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType result = com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType - .valueOf(logType_); + .forNumber(logType_); return result == null ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType .UNRECOGNIZED @@ -1131,7 +1144,7 @@ public Builder setLogType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; logType_ = value.getNumber(); onChanged(); return this; @@ -1150,7 +1163,7 @@ public Builder setLogType( * @return This builder for chaining. */ public Builder clearLogType() { - + bitField0_ = (bitField0_ & ~0x00000002); logType_ = 0; onChanged(); return this; @@ -1223,8 +1236,8 @@ public Builder setBigqueryTablePath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bigqueryTablePath_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1242,8 +1255,8 @@ public Builder setBigqueryTablePath(java.lang.String value) { * @return This builder for chaining. */ public Builder clearBigqueryTablePath() { - bigqueryTablePath_ = getDefaultInstance().getBigqueryTablePath(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1266,8 +1279,8 @@ public Builder setBigqueryTablePathBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - bigqueryTablePath_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJob.java index 169445bee0aa..2d2d42061148 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJob.java @@ -449,7 +449,7 @@ public com.google.protobuf.Timestamp getRunTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() { - return getRunTime(); + return runTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : runTime_; } public static final int STATUS_FIELD_NUMBER = 2; @@ -495,7 +495,7 @@ public com.google.rpc.Status getStatus() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - return getStatus(); + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } private byte memoizedIsInitialized = -1; @@ -749,16 +749,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (runTimeBuilder_ == null) { - runTime_ = null; - } else { - runTime_ = null; + bitField0_ = 0; + runTime_ = null; + if (runTimeBuilder_ != null) { + runTimeBuilder_.dispose(); runTimeBuilder_ = null; } - if (statusBuilder_ == null) { - status_ = null; - } else { - status_ = null; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); statusBuilder_ = null; } return this; @@ -800,20 +799,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob .LatestMonitoringPipelineMetadata(this); - if (runTimeBuilder_ == null) { - result.runTime_ = runTime_; - } else { - result.runTime_ = runTimeBuilder_.build(); - } - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.runTime_ = runTimeBuilder_ == null ? runTime_ : runTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -907,13 +912,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getRunTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -933,6 +938,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Timestamp runTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -952,7 +959,7 @@ public Builder mergeFrom( * @return Whether the runTime field is set. */ public boolean hasRunTime() { - return runTimeBuilder_ != null || runTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -989,11 +996,11 @@ public Builder setRunTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } runTime_ = value; - onChanged(); } else { runTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1009,11 +1016,11 @@ public Builder setRunTime(com.google.protobuf.Timestamp value) { public Builder setRunTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (runTimeBuilder_ == null) { runTime_ = builderForValue.build(); - onChanged(); } else { runTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1028,17 +1035,18 @@ public Builder setRunTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeRunTime(com.google.protobuf.Timestamp value) { if (runTimeBuilder_ == null) { - if (runTime_ != null) { - runTime_ = - com.google.protobuf.Timestamp.newBuilder(runTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && runTime_ != null + && runTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getRunTimeBuilder().mergeFrom(value); } else { runTime_ = value; } - onChanged(); } else { runTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1052,14 +1060,13 @@ public Builder mergeRunTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp run_time = 1; */ public Builder clearRunTime() { - if (runTimeBuilder_ == null) { - runTime_ = null; - onChanged(); - } else { - runTime_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + runTime_ = null; + if (runTimeBuilder_ != null) { + runTimeBuilder_.dispose(); runTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1073,7 +1080,7 @@ public Builder clearRunTime() { * .google.protobuf.Timestamp run_time = 1; */ public com.google.protobuf.Timestamp.Builder getRunTimeBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getRunTimeFieldBuilder().getBuilder(); } @@ -1137,7 +1144,7 @@ public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() { * @return Whether the status field is set. */ public boolean hasStatus() { - return statusBuilder_ != null || status_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1172,11 +1179,11 @@ public Builder setStatus(com.google.rpc.Status value) { throw new NullPointerException(); } status_ = value; - onChanged(); } else { statusBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1191,11 +1198,11 @@ public Builder setStatus(com.google.rpc.Status value) { public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); - onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1209,16 +1216,18 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { - if (status_ != null) { - status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && status_ != null + && status_ != com.google.rpc.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); } else { status_ = value; } - onChanged(); } else { statusBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1231,14 +1240,13 @@ public Builder mergeStatus(com.google.rpc.Status value) { * .google.rpc.Status status = 2; */ public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; - onChanged(); - } else { - status_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); statusBuilder_ = null; } - + onChanged(); return this; } /** @@ -1251,7 +1259,7 @@ public Builder clearStatus() { * .google.rpc.Status status = 2; */ public com.google.rpc.Status.Builder getStatusBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getStatusFieldBuilder().getBuilder(); } @@ -1367,7 +1375,9 @@ public com.google.protobuf.Parser getParserFor } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -1416,7 +1426,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -1471,7 +1483,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int ENDPOINT_FIELD_NUMBER = 3; - private volatile java.lang.Object endpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; /** * * @@ -1526,7 +1540,7 @@ public com.google.protobuf.ByteString getEndpointBytes() { } public static final int STATE_FIELD_NUMBER = 4; - private int state_; + private int state_ = 0; /** * * @@ -1567,14 +1581,13 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.JobState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.JobState result = - com.google.cloud.aiplatform.v1beta1.JobState.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.JobState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.JobState.UNRECOGNIZED : result; } public static final int SCHEDULE_STATE_FIELD_NUMBER = 5; - private int scheduleState_; + private int scheduleState_ = 0; /** * * @@ -1608,11 +1621,10 @@ public int getScheduleStateValue() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState getScheduleState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState result = com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState - .valueOf(scheduleState_); + .forNumber(scheduleState_); return result == null ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState .UNRECOGNIZED @@ -1677,10 +1689,15 @@ public boolean hasLatestMonitoringPipelineMetadata() { public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob .LatestMonitoringPipelineMetadataOrBuilder getLatestMonitoringPipelineMetadataOrBuilder() { - return getLatestMonitoringPipelineMetadata(); + return latestMonitoringPipelineMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.getDefaultInstance() + : latestMonitoringPipelineMetadata_; } public static final int MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_CONFIGS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig> modelDeploymentMonitoringObjectiveConfigs_; @@ -1827,7 +1844,10 @@ public boolean hasModelDeploymentMonitoringScheduleConfig() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfigOrBuilder getModelDeploymentMonitoringScheduleConfigOrBuilder() { - return getModelDeploymentMonitoringScheduleConfig(); + return modelDeploymentMonitoringScheduleConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + .getDefaultInstance() + : modelDeploymentMonitoringScheduleConfig_; } public static final int LOGGING_SAMPLING_STRATEGY_FIELD_NUMBER = 8; @@ -1882,7 +1902,9 @@ public com.google.cloud.aiplatform.v1beta1.SamplingStrategy getLoggingSamplingSt @java.lang.Override public com.google.cloud.aiplatform.v1beta1.SamplingStrategyOrBuilder getLoggingSamplingStrategyOrBuilder() { - return getLoggingSamplingStrategy(); + return loggingSamplingStrategy_ == null + ? com.google.cloud.aiplatform.v1beta1.SamplingStrategy.getDefaultInstance() + : loggingSamplingStrategy_; } public static final int MODEL_MONITORING_ALERT_CONFIG_FIELD_NUMBER = 15; @@ -1939,11 +1961,15 @@ public boolean hasModelMonitoringAlertConfig() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfigOrBuilder getModelMonitoringAlertConfigOrBuilder() { - return getModelMonitoringAlertConfig(); + return modelMonitoringAlertConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.getDefaultInstance() + : modelMonitoringAlertConfig_; } public static final int PREDICT_INSTANCE_SCHEMA_URI_FIELD_NUMBER = 9; - private volatile java.lang.Object predictInstanceSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object predictInstanceSchemaUri_ = ""; /** * * @@ -2057,11 +2083,15 @@ public com.google.protobuf.Value getSamplePredictInstance() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getSamplePredictInstanceOrBuilder() { - return getSamplePredictInstance(); + return samplePredictInstance_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : samplePredictInstance_; } public static final int ANALYSIS_INSTANCE_SCHEMA_URI_FIELD_NUMBER = 16; - private volatile java.lang.Object analysisInstanceSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object analysisInstanceSchemaUri_ = ""; /** * * @@ -2128,6 +2158,8 @@ public com.google.protobuf.ByteString getAnalysisInstanceSchemaUriBytes() { } public static final int BIGQUERY_TABLES_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") private java.util.List bigqueryTables_; /** @@ -2281,7 +2313,7 @@ public com.google.protobuf.Duration getLogTtl() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getLogTtlOrBuilder() { - return getLogTtl(); + return logTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : logTtl_; } public static final int LABELS_FIELD_NUMBER = 11; @@ -2297,6 +2329,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -2369,7 +2402,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2448,7 +2484,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 13; @@ -2500,7 +2536,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int NEXT_SCHEDULE_TIME_FIELD_NUMBER = 14; @@ -2557,7 +2593,9 @@ public com.google.protobuf.Timestamp getNextScheduleTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getNextScheduleTimeOrBuilder() { - return getNextScheduleTime(); + return nextScheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : nextScheduleTime_; } public static final int STATS_ANOMALIES_BASE_DIRECTORY_FIELD_NUMBER = 20; @@ -2609,7 +2647,9 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination getStatsAnomaliesBaseD @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder getStatsAnomaliesBaseDirectoryOrBuilder() { - return getStatsAnomaliesBaseDirectory(); + return statsAnomaliesBaseDirectory_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance() + : statsAnomaliesBaseDirectory_; } public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 21; @@ -2663,11 +2703,13 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } public static final int ENABLE_MONITORING_PIPELINE_LOGS_FIELD_NUMBER = 22; - private boolean enableMonitoringPipelineLogs_; + private boolean enableMonitoringPipelineLogs_ = false; /** * * @@ -2733,7 +2775,7 @@ public com.google.rpc.Status getError() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return getError(); + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } private byte memoizedIsInitialized = -1; @@ -3255,20 +3297,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - endpoint_ = ""; - state_ = 0; - scheduleState_ = 0; - - if (latestMonitoringPipelineMetadataBuilder_ == null) { - latestMonitoringPipelineMetadata_ = null; - } else { - latestMonitoringPipelineMetadata_ = null; + latestMonitoringPipelineMetadata_ = null; + if (latestMonitoringPipelineMetadataBuilder_ != null) { + latestMonitoringPipelineMetadataBuilder_.dispose(); latestMonitoringPipelineMetadataBuilder_ = null; } if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { @@ -3277,85 +3314,71 @@ public Builder clear() { modelDeploymentMonitoringObjectiveConfigs_ = null; modelDeploymentMonitoringObjectiveConfigsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (modelDeploymentMonitoringScheduleConfigBuilder_ == null) { - modelDeploymentMonitoringScheduleConfig_ = null; - } else { - modelDeploymentMonitoringScheduleConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + modelDeploymentMonitoringScheduleConfig_ = null; + if (modelDeploymentMonitoringScheduleConfigBuilder_ != null) { + modelDeploymentMonitoringScheduleConfigBuilder_.dispose(); modelDeploymentMonitoringScheduleConfigBuilder_ = null; } - if (loggingSamplingStrategyBuilder_ == null) { - loggingSamplingStrategy_ = null; - } else { - loggingSamplingStrategy_ = null; + loggingSamplingStrategy_ = null; + if (loggingSamplingStrategyBuilder_ != null) { + loggingSamplingStrategyBuilder_.dispose(); loggingSamplingStrategyBuilder_ = null; } - if (modelMonitoringAlertConfigBuilder_ == null) { - modelMonitoringAlertConfig_ = null; - } else { - modelMonitoringAlertConfig_ = null; + modelMonitoringAlertConfig_ = null; + if (modelMonitoringAlertConfigBuilder_ != null) { + modelMonitoringAlertConfigBuilder_.dispose(); modelMonitoringAlertConfigBuilder_ = null; } predictInstanceSchemaUri_ = ""; - - if (samplePredictInstanceBuilder_ == null) { - samplePredictInstance_ = null; - } else { - samplePredictInstance_ = null; + samplePredictInstance_ = null; + if (samplePredictInstanceBuilder_ != null) { + samplePredictInstanceBuilder_.dispose(); samplePredictInstanceBuilder_ = null; } analysisInstanceSchemaUri_ = ""; - if (bigqueryTablesBuilder_ == null) { bigqueryTables_ = java.util.Collections.emptyList(); } else { bigqueryTables_ = null; bigqueryTablesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); - if (logTtlBuilder_ == null) { - logTtl_ = null; - } else { - logTtl_ = null; + bitField0_ = (bitField0_ & ~0x00002000); + logTtl_ = null; + if (logTtlBuilder_ != null) { + logTtlBuilder_.dispose(); logTtlBuilder_ = null; } internalGetMutableLabels().clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - if (nextScheduleTimeBuilder_ == null) { - nextScheduleTime_ = null; - } else { - nextScheduleTime_ = null; + nextScheduleTime_ = null; + if (nextScheduleTimeBuilder_ != null) { + nextScheduleTimeBuilder_.dispose(); nextScheduleTimeBuilder_ = null; } - if (statsAnomaliesBaseDirectoryBuilder_ == null) { - statsAnomaliesBaseDirectory_ = null; - } else { - statsAnomaliesBaseDirectory_ = null; + statsAnomaliesBaseDirectory_ = null; + if (statsAnomaliesBaseDirectoryBuilder_ != null) { + statsAnomaliesBaseDirectoryBuilder_.dispose(); statsAnomaliesBaseDirectoryBuilder_ = null; } - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } enableMonitoringPipelineLogs_ = false; - - if (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } return this; @@ -3386,22 +3409,21 @@ public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob build() public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob buildPartial() { com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob result = new com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.endpoint_ = endpoint_; - result.state_ = state_; - result.scheduleState_ = scheduleState_; - if (latestMonitoringPipelineMetadataBuilder_ == null) { - result.latestMonitoringPipelineMetadata_ = latestMonitoringPipelineMetadata_; - } else { - result.latestMonitoringPipelineMetadata_ = latestMonitoringPipelineMetadataBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob result) { if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { modelDeploymentMonitoringObjectiveConfigs_ = java.util.Collections.unmodifiableList(modelDeploymentMonitoringObjectiveConfigs_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000040); } result.modelDeploymentMonitoringObjectiveConfigs_ = modelDeploymentMonitoringObjectiveConfigs_; @@ -3409,78 +3431,104 @@ public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob buildPar result.modelDeploymentMonitoringObjectiveConfigs_ = modelDeploymentMonitoringObjectiveConfigsBuilder_.build(); } - if (modelDeploymentMonitoringScheduleConfigBuilder_ == null) { - result.modelDeploymentMonitoringScheduleConfig_ = modelDeploymentMonitoringScheduleConfig_; - } else { - result.modelDeploymentMonitoringScheduleConfig_ = - modelDeploymentMonitoringScheduleConfigBuilder_.build(); - } - if (loggingSamplingStrategyBuilder_ == null) { - result.loggingSamplingStrategy_ = loggingSamplingStrategy_; - } else { - result.loggingSamplingStrategy_ = loggingSamplingStrategyBuilder_.build(); - } - if (modelMonitoringAlertConfigBuilder_ == null) { - result.modelMonitoringAlertConfig_ = modelMonitoringAlertConfig_; - } else { - result.modelMonitoringAlertConfig_ = modelMonitoringAlertConfigBuilder_.build(); - } - result.predictInstanceSchemaUri_ = predictInstanceSchemaUri_; - if (samplePredictInstanceBuilder_ == null) { - result.samplePredictInstance_ = samplePredictInstance_; - } else { - result.samplePredictInstance_ = samplePredictInstanceBuilder_.build(); - } - result.analysisInstanceSchemaUri_ = analysisInstanceSchemaUri_; if (bigqueryTablesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { bigqueryTables_ = java.util.Collections.unmodifiableList(bigqueryTables_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00002000); } result.bigqueryTables_ = bigqueryTables_; } else { result.bigqueryTables_ = bigqueryTablesBuilder_.build(); } - if (logTtlBuilder_ == null) { - result.logTtl_ = logTtl_; - } else { - result.logTtl_ = logTtlBuilder_.build(); + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endpoint_ = endpoint_; } - if (nextScheduleTimeBuilder_ == null) { - result.nextScheduleTime_ = nextScheduleTime_; - } else { - result.nextScheduleTime_ = nextScheduleTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; } - if (statsAnomaliesBaseDirectoryBuilder_ == null) { - result.statsAnomaliesBaseDirectory_ = statsAnomaliesBaseDirectory_; - } else { - result.statsAnomaliesBaseDirectory_ = statsAnomaliesBaseDirectoryBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.scheduleState_ = scheduleState_; } - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.latestMonitoringPipelineMetadata_ = + latestMonitoringPipelineMetadataBuilder_ == null + ? latestMonitoringPipelineMetadata_ + : latestMonitoringPipelineMetadataBuilder_.build(); } - result.enableMonitoringPipelineLogs_ = enableMonitoringPipelineLogs_; - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.build(); + if (((from_bitField0_ & 0x00000080) != 0)) { + result.modelDeploymentMonitoringScheduleConfig_ = + modelDeploymentMonitoringScheduleConfigBuilder_ == null + ? modelDeploymentMonitoringScheduleConfig_ + : modelDeploymentMonitoringScheduleConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.loggingSamplingStrategy_ = + loggingSamplingStrategyBuilder_ == null + ? loggingSamplingStrategy_ + : loggingSamplingStrategyBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.modelMonitoringAlertConfig_ = + modelMonitoringAlertConfigBuilder_ == null + ? modelMonitoringAlertConfig_ + : modelMonitoringAlertConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.predictInstanceSchemaUri_ = predictInstanceSchemaUri_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.samplePredictInstance_ = + samplePredictInstanceBuilder_ == null + ? samplePredictInstance_ + : samplePredictInstanceBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.analysisInstanceSchemaUri_ = analysisInstanceSchemaUri_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.logTtl_ = logTtlBuilder_ == null ? logTtl_ : logTtlBuilder_.build(); + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.nextScheduleTime_ = + nextScheduleTimeBuilder_ == null ? nextScheduleTime_ : nextScheduleTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.statsAnomaliesBaseDirectory_ = + statsAnomaliesBaseDirectoryBuilder_ == null + ? statsAnomaliesBaseDirectory_ + : statsAnomaliesBaseDirectoryBuilder_.build(); + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.enableMonitoringPipelineLogs_ = enableMonitoringPipelineLogs_; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -3533,14 +3581,17 @@ public Builder mergeFrom( return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; + bitField0_ |= 0x00000004; onChanged(); } if (other.state_ != 0) { @@ -3557,7 +3608,7 @@ public Builder mergeFrom( if (modelDeploymentMonitoringObjectiveConfigs_.isEmpty()) { modelDeploymentMonitoringObjectiveConfigs_ = other.modelDeploymentMonitoringObjectiveConfigs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000040); } else { ensureModelDeploymentMonitoringObjectiveConfigsIsMutable(); modelDeploymentMonitoringObjectiveConfigs_.addAll( @@ -3572,7 +3623,7 @@ public Builder mergeFrom( modelDeploymentMonitoringObjectiveConfigsBuilder_ = null; modelDeploymentMonitoringObjectiveConfigs_ = other.modelDeploymentMonitoringObjectiveConfigs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000040); modelDeploymentMonitoringObjectiveConfigsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getModelDeploymentMonitoringObjectiveConfigsFieldBuilder() @@ -3595,6 +3646,7 @@ public Builder mergeFrom( } if (!other.getPredictInstanceSchemaUri().isEmpty()) { predictInstanceSchemaUri_ = other.predictInstanceSchemaUri_; + bitField0_ |= 0x00000400; onChanged(); } if (other.hasSamplePredictInstance()) { @@ -3602,13 +3654,14 @@ public Builder mergeFrom( } if (!other.getAnalysisInstanceSchemaUri().isEmpty()) { analysisInstanceSchemaUri_ = other.analysisInstanceSchemaUri_; + bitField0_ |= 0x00001000; onChanged(); } if (bigqueryTablesBuilder_ == null) { if (!other.bigqueryTables_.isEmpty()) { if (bigqueryTables_.isEmpty()) { bigqueryTables_ = other.bigqueryTables_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00002000); } else { ensureBigqueryTablesIsMutable(); bigqueryTables_.addAll(other.bigqueryTables_); @@ -3621,7 +3674,7 @@ public Builder mergeFrom( bigqueryTablesBuilder_.dispose(); bigqueryTablesBuilder_ = null; bigqueryTables_ = other.bigqueryTables_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00002000); bigqueryTablesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBigqueryTablesFieldBuilder() @@ -3635,6 +3688,7 @@ public Builder mergeFrom( mergeLogTtl(other.getLogTtl()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00008000; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -3685,31 +3739,31 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { endpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 32: { state_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 case 40: { scheduleState_ = input.readEnum(); - + bitField0_ |= 0x00000010; break; } // case 40 case 50: @@ -3732,20 +3786,20 @@ public Builder mergeFrom( input.readMessage( getModelDeploymentMonitoringScheduleConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 58 case 66: { input.readMessage( getLoggingSamplingStrategyFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 66 case 74: { predictInstanceSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000400; break; } // case 74 case 82: @@ -3772,76 +3826,77 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00008000; break; } // case 90 case 98: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00010000; break; } // case 98 case 106: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00020000; break; } // case 106 case 114: { input.readMessage( getNextScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00040000; break; } // case 114 case 122: { input.readMessage( getModelMonitoringAlertConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 122 case 130: { analysisInstanceSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00001000; break; } // case 130 case 138: { input.readMessage(getLogTtlFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00004000; break; } // case 138 case 154: { input.readMessage( getSamplePredictInstanceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000800; break; } // case 154 case 162: { input.readMessage( getStatsAnomaliesBaseDirectoryFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00080000; break; } // case 162 case 170: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00100000; break; } // case 170 case 176: { enableMonitoringPipelineLogs_ = input.readBool(); - + bitField0_ |= 0x00200000; break; } // case 176 case 186: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00400000; break; } // case 186 case 202: @@ -3849,7 +3904,7 @@ public Builder mergeFrom( input.readMessage( getLatestMonitoringPipelineMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 202 default: @@ -3932,8 +3987,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3949,8 +4004,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3971,8 +4026,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4047,8 +4102,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4067,8 +4122,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -4092,8 +4147,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4168,8 +4223,8 @@ public Builder setEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - endpoint_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4188,8 +4243,8 @@ public Builder setEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEndpoint() { - endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -4213,8 +4268,8 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - endpoint_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4260,8 +4315,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -4284,9 +4339,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.JobState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.JobState result = - com.google.cloud.aiplatform.v1beta1.JobState.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.JobState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.JobState.UNRECOGNIZED : result; } /** @@ -4311,7 +4365,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; state_ = value.getNumber(); onChanged(); return this; @@ -4334,7 +4388,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000008); state_ = 0; onChanged(); return this; @@ -4373,8 +4427,8 @@ public int getScheduleStateValue() { * @return This builder for chaining. */ public Builder setScheduleStateValue(int value) { - scheduleState_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -4394,11 +4448,10 @@ public Builder setScheduleStateValue(int value) { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState getScheduleState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState result = com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - .MonitoringScheduleState.valueOf(scheduleState_); + .MonitoringScheduleState.forNumber(scheduleState_); return result == null ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState .UNRECOGNIZED @@ -4424,7 +4477,7 @@ public Builder setScheduleState( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000010; scheduleState_ = value.getNumber(); onChanged(); return this; @@ -4443,7 +4496,7 @@ public Builder setScheduleState( * @return This builder for chaining. */ public Builder clearScheduleState() { - + bitField0_ = (bitField0_ & ~0x00000010); scheduleState_ = 0; onChanged(); return this; @@ -4474,8 +4527,7 @@ public Builder clearScheduleState() { * @return Whether the latestMonitoringPipelineMetadata field is set. */ public boolean hasLatestMonitoringPipelineMetadata() { - return latestMonitoringPipelineMetadataBuilder_ != null - || latestMonitoringPipelineMetadata_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -4522,11 +4574,11 @@ public Builder setLatestMonitoringPipelineMetadata( throw new NullPointerException(); } latestMonitoringPipelineMetadata_ = value; - onChanged(); } else { latestMonitoringPipelineMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -4546,11 +4598,11 @@ public Builder setLatestMonitoringPipelineMetadata( builderForValue) { if (latestMonitoringPipelineMetadataBuilder_ == null) { latestMonitoringPipelineMetadata_ = builderForValue.build(); - onChanged(); } else { latestMonitoringPipelineMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -4569,20 +4621,20 @@ public Builder mergeLatestMonitoringPipelineMetadata( .LatestMonitoringPipelineMetadata value) { if (latestMonitoringPipelineMetadataBuilder_ == null) { - if (latestMonitoringPipelineMetadata_ != null) { - latestMonitoringPipelineMetadata_ = - com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - .LatestMonitoringPipelineMetadata.newBuilder(latestMonitoringPipelineMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && latestMonitoringPipelineMetadata_ != null + && latestMonitoringPipelineMetadata_ + != com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .LatestMonitoringPipelineMetadata.getDefaultInstance()) { + getLatestMonitoringPipelineMetadataBuilder().mergeFrom(value); } else { latestMonitoringPipelineMetadata_ = value; } - onChanged(); } else { latestMonitoringPipelineMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -4597,14 +4649,13 @@ public Builder mergeLatestMonitoringPipelineMetadata( * */ public Builder clearLatestMonitoringPipelineMetadata() { - if (latestMonitoringPipelineMetadataBuilder_ == null) { - latestMonitoringPipelineMetadata_ = null; - onChanged(); - } else { - latestMonitoringPipelineMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + latestMonitoringPipelineMetadata_ = null; + if (latestMonitoringPipelineMetadataBuilder_ != null) { + latestMonitoringPipelineMetadataBuilder_.dispose(); latestMonitoringPipelineMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -4621,7 +4672,7 @@ public Builder clearLatestMonitoringPipelineMetadata() { public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob .LatestMonitoringPipelineMetadata.Builder getLatestMonitoringPipelineMetadataBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getLatestMonitoringPipelineMetadataFieldBuilder().getBuilder(); } @@ -4687,12 +4738,12 @@ public Builder clearLatestMonitoringPipelineMetadata() { modelDeploymentMonitoringObjectiveConfigs_ = java.util.Collections.emptyList(); private void ensureModelDeploymentMonitoringObjectiveConfigsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000040) != 0)) { modelDeploymentMonitoringObjectiveConfigs_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig>( modelDeploymentMonitoringObjectiveConfigs_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000040; } } @@ -4960,7 +5011,7 @@ public Builder addAllModelDeploymentMonitoringObjectiveConfigs( public Builder clearModelDeploymentMonitoringObjectiveConfigs() { if (modelDeploymentMonitoringObjectiveConfigsBuilder_ == null) { modelDeploymentMonitoringObjectiveConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { modelDeploymentMonitoringObjectiveConfigsBuilder_.clear(); @@ -5119,7 +5170,7 @@ public Builder removeModelDeploymentMonitoringObjectiveConfigs(int index) { com.google.cloud.aiplatform.v1beta1 .ModelDeploymentMonitoringObjectiveConfigOrBuilder>( modelDeploymentMonitoringObjectiveConfigs_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); modelDeploymentMonitoringObjectiveConfigs_ = null; @@ -5148,8 +5199,7 @@ public Builder removeModelDeploymentMonitoringObjectiveConfigs(int index) { * @return Whether the modelDeploymentMonitoringScheduleConfig field is set. */ public boolean hasModelDeploymentMonitoringScheduleConfig() { - return modelDeploymentMonitoringScheduleConfigBuilder_ != null - || modelDeploymentMonitoringScheduleConfig_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -5193,11 +5243,11 @@ public Builder setModelDeploymentMonitoringScheduleConfig( throw new NullPointerException(); } modelDeploymentMonitoringScheduleConfig_ = value; - onChanged(); } else { modelDeploymentMonitoringScheduleConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -5216,11 +5266,11 @@ public Builder setModelDeploymentMonitoringScheduleConfig( builderForValue) { if (modelDeploymentMonitoringScheduleConfigBuilder_ == null) { modelDeploymentMonitoringScheduleConfig_ = builderForValue.build(); - onChanged(); } else { modelDeploymentMonitoringScheduleConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -5237,20 +5287,20 @@ public Builder setModelDeploymentMonitoringScheduleConfig( public Builder mergeModelDeploymentMonitoringScheduleConfig( com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig value) { if (modelDeploymentMonitoringScheduleConfigBuilder_ == null) { - if (modelDeploymentMonitoringScheduleConfig_ != null) { - modelDeploymentMonitoringScheduleConfig_ = - com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig - .newBuilder(modelDeploymentMonitoringScheduleConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && modelDeploymentMonitoringScheduleConfig_ != null + && modelDeploymentMonitoringScheduleConfig_ + != com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + .getDefaultInstance()) { + getModelDeploymentMonitoringScheduleConfigBuilder().mergeFrom(value); } else { modelDeploymentMonitoringScheduleConfig_ = value; } - onChanged(); } else { modelDeploymentMonitoringScheduleConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -5265,14 +5315,13 @@ public Builder mergeModelDeploymentMonitoringScheduleConfig( * */ public Builder clearModelDeploymentMonitoringScheduleConfig() { - if (modelDeploymentMonitoringScheduleConfigBuilder_ == null) { - modelDeploymentMonitoringScheduleConfig_ = null; - onChanged(); - } else { - modelDeploymentMonitoringScheduleConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + modelDeploymentMonitoringScheduleConfig_ = null; + if (modelDeploymentMonitoringScheduleConfigBuilder_ != null) { + modelDeploymentMonitoringScheduleConfigBuilder_.dispose(); modelDeploymentMonitoringScheduleConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -5288,7 +5337,7 @@ public Builder clearModelDeploymentMonitoringScheduleConfig() { */ public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.Builder getModelDeploymentMonitoringScheduleConfigBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getModelDeploymentMonitoringScheduleConfigFieldBuilder().getBuilder(); } @@ -5363,7 +5412,7 @@ public Builder clearModelDeploymentMonitoringScheduleConfig() { * @return Whether the loggingSamplingStrategy field is set. */ public boolean hasLoggingSamplingStrategy() { - return loggingSamplingStrategyBuilder_ != null || loggingSamplingStrategy_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -5405,11 +5454,11 @@ public Builder setLoggingSamplingStrategy( throw new NullPointerException(); } loggingSamplingStrategy_ = value; - onChanged(); } else { loggingSamplingStrategyBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -5427,11 +5476,11 @@ public Builder setLoggingSamplingStrategy( com.google.cloud.aiplatform.v1beta1.SamplingStrategy.Builder builderForValue) { if (loggingSamplingStrategyBuilder_ == null) { loggingSamplingStrategy_ = builderForValue.build(); - onChanged(); } else { loggingSamplingStrategyBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -5448,20 +5497,19 @@ public Builder setLoggingSamplingStrategy( public Builder mergeLoggingSamplingStrategy( com.google.cloud.aiplatform.v1beta1.SamplingStrategy value) { if (loggingSamplingStrategyBuilder_ == null) { - if (loggingSamplingStrategy_ != null) { - loggingSamplingStrategy_ = - com.google.cloud.aiplatform.v1beta1.SamplingStrategy.newBuilder( - loggingSamplingStrategy_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && loggingSamplingStrategy_ != null + && loggingSamplingStrategy_ + != com.google.cloud.aiplatform.v1beta1.SamplingStrategy.getDefaultInstance()) { + getLoggingSamplingStrategyBuilder().mergeFrom(value); } else { loggingSamplingStrategy_ = value; } - onChanged(); } else { loggingSamplingStrategyBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -5476,14 +5524,13 @@ public Builder mergeLoggingSamplingStrategy( * */ public Builder clearLoggingSamplingStrategy() { - if (loggingSamplingStrategyBuilder_ == null) { - loggingSamplingStrategy_ = null; - onChanged(); - } else { - loggingSamplingStrategy_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + loggingSamplingStrategy_ = null; + if (loggingSamplingStrategyBuilder_ != null) { + loggingSamplingStrategyBuilder_.dispose(); loggingSamplingStrategyBuilder_ = null; } - + onChanged(); return this; } /** @@ -5499,7 +5546,7 @@ public Builder clearLoggingSamplingStrategy() { */ public com.google.cloud.aiplatform.v1beta1.SamplingStrategy.Builder getLoggingSamplingStrategyBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getLoggingSamplingStrategyFieldBuilder().getBuilder(); } @@ -5573,7 +5620,7 @@ public Builder clearLoggingSamplingStrategy() { * @return Whether the modelMonitoringAlertConfig field is set. */ public boolean hasModelMonitoringAlertConfig() { - return modelMonitoringAlertConfigBuilder_ != null || modelMonitoringAlertConfig_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -5616,11 +5663,11 @@ public Builder setModelMonitoringAlertConfig( throw new NullPointerException(); } modelMonitoringAlertConfig_ = value; - onChanged(); } else { modelMonitoringAlertConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -5638,11 +5685,11 @@ public Builder setModelMonitoringAlertConfig( com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.Builder builderForValue) { if (modelMonitoringAlertConfigBuilder_ == null) { modelMonitoringAlertConfig_ = builderForValue.build(); - onChanged(); } else { modelMonitoringAlertConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -5659,20 +5706,20 @@ public Builder setModelMonitoringAlertConfig( public Builder mergeModelMonitoringAlertConfig( com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig value) { if (modelMonitoringAlertConfigBuilder_ == null) { - if (modelMonitoringAlertConfig_ != null) { - modelMonitoringAlertConfig_ = - com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.newBuilder( - modelMonitoringAlertConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && modelMonitoringAlertConfig_ != null + && modelMonitoringAlertConfig_ + != com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + .getDefaultInstance()) { + getModelMonitoringAlertConfigBuilder().mergeFrom(value); } else { modelMonitoringAlertConfig_ = value; } - onChanged(); } else { modelMonitoringAlertConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -5687,14 +5734,13 @@ public Builder mergeModelMonitoringAlertConfig( * */ public Builder clearModelMonitoringAlertConfig() { - if (modelMonitoringAlertConfigBuilder_ == null) { - modelMonitoringAlertConfig_ = null; - onChanged(); - } else { - modelMonitoringAlertConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + modelMonitoringAlertConfig_ = null; + if (modelMonitoringAlertConfigBuilder_ != null) { + modelMonitoringAlertConfigBuilder_.dispose(); modelMonitoringAlertConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -5710,7 +5756,7 @@ public Builder clearModelMonitoringAlertConfig() { */ public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.Builder getModelMonitoringAlertConfigBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getModelMonitoringAlertConfigFieldBuilder().getBuilder(); } @@ -5833,8 +5879,8 @@ public Builder setPredictInstanceSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - predictInstanceSchemaUri_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5853,8 +5899,8 @@ public Builder setPredictInstanceSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPredictInstanceSchemaUri() { - predictInstanceSchemaUri_ = getDefaultInstance().getPredictInstanceSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -5878,8 +5924,8 @@ public Builder setPredictInstanceSchemaUriBytes(com.google.protobuf.ByteString v throw new NullPointerException(); } checkByteStringIsUtf8(value); - predictInstanceSchemaUri_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5907,7 +5953,7 @@ public Builder setPredictInstanceSchemaUriBytes(com.google.protobuf.ByteString v * @return Whether the samplePredictInstance field is set. */ public boolean hasSamplePredictInstance() { - return samplePredictInstanceBuilder_ != null || samplePredictInstance_ != null; + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -5954,11 +6000,11 @@ public Builder setSamplePredictInstance(com.google.protobuf.Value value) { throw new NullPointerException(); } samplePredictInstance_ = value; - onChanged(); } else { samplePredictInstanceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -5978,11 +6024,11 @@ public Builder setSamplePredictInstance(com.google.protobuf.Value value) { public Builder setSamplePredictInstance(com.google.protobuf.Value.Builder builderForValue) { if (samplePredictInstanceBuilder_ == null) { samplePredictInstance_ = builderForValue.build(); - onChanged(); } else { samplePredictInstanceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -6001,19 +6047,18 @@ public Builder setSamplePredictInstance(com.google.protobuf.Value.Builder builde */ public Builder mergeSamplePredictInstance(com.google.protobuf.Value value) { if (samplePredictInstanceBuilder_ == null) { - if (samplePredictInstance_ != null) { - samplePredictInstance_ = - com.google.protobuf.Value.newBuilder(samplePredictInstance_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000800) != 0) + && samplePredictInstance_ != null + && samplePredictInstance_ != com.google.protobuf.Value.getDefaultInstance()) { + getSamplePredictInstanceBuilder().mergeFrom(value); } else { samplePredictInstance_ = value; } - onChanged(); } else { samplePredictInstanceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -6031,14 +6076,13 @@ public Builder mergeSamplePredictInstance(com.google.protobuf.Value value) { * .google.protobuf.Value sample_predict_instance = 19; */ public Builder clearSamplePredictInstance() { - if (samplePredictInstanceBuilder_ == null) { - samplePredictInstance_ = null; - onChanged(); - } else { - samplePredictInstance_ = null; + bitField0_ = (bitField0_ & ~0x00000800); + samplePredictInstance_ = null; + if (samplePredictInstanceBuilder_ != null) { + samplePredictInstanceBuilder_.dispose(); samplePredictInstanceBuilder_ = null; } - + onChanged(); return this; } /** @@ -6056,7 +6100,7 @@ public Builder clearSamplePredictInstance() { * .google.protobuf.Value sample_predict_instance = 19; */ public com.google.protobuf.Value.Builder getSamplePredictInstanceBuilder() { - + bitField0_ |= 0x00000800; onChanged(); return getSamplePredictInstanceFieldBuilder().getBuilder(); } @@ -6202,8 +6246,8 @@ public Builder setAnalysisInstanceSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - analysisInstanceSchemaUri_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -6228,8 +6272,8 @@ public Builder setAnalysisInstanceSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAnalysisInstanceSchemaUri() { - analysisInstanceSchemaUri_ = getDefaultInstance().getAnalysisInstanceSchemaUri(); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -6259,8 +6303,8 @@ public Builder setAnalysisInstanceSchemaUriBytes(com.google.protobuf.ByteString throw new NullPointerException(); } checkByteStringIsUtf8(value); - analysisInstanceSchemaUri_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -6270,12 +6314,12 @@ public Builder setAnalysisInstanceSchemaUriBytes(com.google.protobuf.ByteString bigqueryTables_ = java.util.Collections.emptyList(); private void ensureBigqueryTablesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00002000) != 0)) { bigqueryTables_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable>( bigqueryTables_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00002000; } } @@ -6573,7 +6617,7 @@ public Builder addAllBigqueryTables( public Builder clearBigqueryTables() { if (bigqueryTablesBuilder_ == null) { bigqueryTables_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); } else { bigqueryTablesBuilder_.clear(); @@ -6751,7 +6795,7 @@ public Builder removeBigqueryTables(int index) { com.google.cloud.aiplatform.v1beta1 .ModelDeploymentMonitoringBigQueryTableOrBuilder>( bigqueryTables_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); bigqueryTables_ = null; @@ -6779,7 +6823,7 @@ public Builder removeBigqueryTables(int index) { * @return Whether the logTtl field is set. */ public boolean hasLogTtl() { - return logTtlBuilder_ != null || logTtl_ != null; + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -6818,11 +6862,11 @@ public Builder setLogTtl(com.google.protobuf.Duration value) { throw new NullPointerException(); } logTtl_ = value; - onChanged(); } else { logTtlBuilder_.setMessage(value); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -6839,11 +6883,11 @@ public Builder setLogTtl(com.google.protobuf.Duration value) { public Builder setLogTtl(com.google.protobuf.Duration.Builder builderForValue) { if (logTtlBuilder_ == null) { logTtl_ = builderForValue.build(); - onChanged(); } else { logTtlBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -6859,17 +6903,18 @@ public Builder setLogTtl(com.google.protobuf.Duration.Builder builderForValue) { */ public Builder mergeLogTtl(com.google.protobuf.Duration value) { if (logTtlBuilder_ == null) { - if (logTtl_ != null) { - logTtl_ = - com.google.protobuf.Duration.newBuilder(logTtl_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00004000) != 0) + && logTtl_ != null + && logTtl_ != com.google.protobuf.Duration.getDefaultInstance()) { + getLogTtlBuilder().mergeFrom(value); } else { logTtl_ = value; } - onChanged(); } else { logTtlBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -6884,14 +6929,13 @@ public Builder mergeLogTtl(com.google.protobuf.Duration value) { * .google.protobuf.Duration log_ttl = 17; */ public Builder clearLogTtl() { - if (logTtlBuilder_ == null) { - logTtl_ = null; - onChanged(); - } else { - logTtl_ = null; + bitField0_ = (bitField0_ & ~0x00004000); + logTtl_ = null; + if (logTtlBuilder_ != null) { + logTtlBuilder_.dispose(); logTtlBuilder_ = null; } - + onChanged(); return this; } /** @@ -6906,7 +6950,7 @@ public Builder clearLogTtl() { * .google.protobuf.Duration log_ttl = 17; */ public com.google.protobuf.Duration.Builder getLogTtlBuilder() { - + bitField0_ |= 0x00004000; onChanged(); return getLogTtlFieldBuilder().getBuilder(); } @@ -6967,14 +7011,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00008000; + onChanged(); return labels_; } @@ -7041,8 +7085,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -7076,6 +7122,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00008000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -7103,6 +7150,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00008000; return internalGetMutableLabels().getMutableMap(); } /** @@ -7126,8 +7174,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00008000; return this; } /** @@ -7146,6 +7194,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00008000; return this; } @@ -7169,7 +7218,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -7210,11 +7259,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -7231,11 +7280,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -7251,17 +7300,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00010000) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -7276,14 +7326,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00010000); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -7298,7 +7347,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00010000; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -7371,7 +7420,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00020000) != 0); } /** * @@ -7414,11 +7463,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00020000; + onChanged(); return this; } /** @@ -7436,11 +7485,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00020000; + onChanged(); return this; } /** @@ -7457,17 +7506,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00020000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00020000; + onChanged(); return this; } /** @@ -7483,14 +7533,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00020000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -7506,7 +7555,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00020000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -7581,7 +7630,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the nextScheduleTime field is set. */ public boolean hasNextScheduleTime() { - return nextScheduleTimeBuilder_ != null || nextScheduleTime_ != null; + return ((bitField0_ & 0x00040000) != 0); } /** * @@ -7624,11 +7673,11 @@ public Builder setNextScheduleTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } nextScheduleTime_ = value; - onChanged(); } else { nextScheduleTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00040000; + onChanged(); return this; } /** @@ -7646,11 +7695,11 @@ public Builder setNextScheduleTime(com.google.protobuf.Timestamp value) { public Builder setNextScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (nextScheduleTimeBuilder_ == null) { nextScheduleTime_ = builderForValue.build(); - onChanged(); } else { nextScheduleTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00040000; + onChanged(); return this; } /** @@ -7667,19 +7716,18 @@ public Builder setNextScheduleTime(com.google.protobuf.Timestamp.Builder builder */ public Builder mergeNextScheduleTime(com.google.protobuf.Timestamp value) { if (nextScheduleTimeBuilder_ == null) { - if (nextScheduleTime_ != null) { - nextScheduleTime_ = - com.google.protobuf.Timestamp.newBuilder(nextScheduleTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00040000) != 0) + && nextScheduleTime_ != null + && nextScheduleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getNextScheduleTimeBuilder().mergeFrom(value); } else { nextScheduleTime_ = value; } - onChanged(); } else { nextScheduleTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00040000; + onChanged(); return this; } /** @@ -7695,14 +7743,13 @@ public Builder mergeNextScheduleTime(com.google.protobuf.Timestamp value) { * */ public Builder clearNextScheduleTime() { - if (nextScheduleTimeBuilder_ == null) { - nextScheduleTime_ = null; - onChanged(); - } else { - nextScheduleTime_ = null; + bitField0_ = (bitField0_ & ~0x00040000); + nextScheduleTime_ = null; + if (nextScheduleTimeBuilder_ != null) { + nextScheduleTimeBuilder_.dispose(); nextScheduleTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -7718,7 +7765,7 @@ public Builder clearNextScheduleTime() { * */ public com.google.protobuf.Timestamp.Builder getNextScheduleTimeBuilder() { - + bitField0_ |= 0x00040000; onChanged(); return getNextScheduleTimeFieldBuilder().getBuilder(); } @@ -7791,7 +7838,7 @@ public com.google.protobuf.TimestampOrBuilder getNextScheduleTimeOrBuilder() { * @return Whether the statsAnomaliesBaseDirectory field is set. */ public boolean hasStatsAnomaliesBaseDirectory() { - return statsAnomaliesBaseDirectoryBuilder_ != null || statsAnomaliesBaseDirectory_ != null; + return ((bitField0_ & 0x00080000) != 0); } /** * @@ -7831,11 +7878,11 @@ public Builder setStatsAnomaliesBaseDirectory( throw new NullPointerException(); } statsAnomaliesBaseDirectory_ = value; - onChanged(); } else { statsAnomaliesBaseDirectoryBuilder_.setMessage(value); } - + bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -7852,11 +7899,11 @@ public Builder setStatsAnomaliesBaseDirectory( com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder builderForValue) { if (statsAnomaliesBaseDirectoryBuilder_ == null) { statsAnomaliesBaseDirectory_ = builderForValue.build(); - onChanged(); } else { statsAnomaliesBaseDirectoryBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -7872,20 +7919,19 @@ public Builder setStatsAnomaliesBaseDirectory( public Builder mergeStatsAnomaliesBaseDirectory( com.google.cloud.aiplatform.v1beta1.GcsDestination value) { if (statsAnomaliesBaseDirectoryBuilder_ == null) { - if (statsAnomaliesBaseDirectory_ != null) { - statsAnomaliesBaseDirectory_ = - com.google.cloud.aiplatform.v1beta1.GcsDestination.newBuilder( - statsAnomaliesBaseDirectory_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00080000) != 0) + && statsAnomaliesBaseDirectory_ != null + && statsAnomaliesBaseDirectory_ + != com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance()) { + getStatsAnomaliesBaseDirectoryBuilder().mergeFrom(value); } else { statsAnomaliesBaseDirectory_ = value; } - onChanged(); } else { statsAnomaliesBaseDirectoryBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00080000; + onChanged(); return this; } /** @@ -7899,14 +7945,13 @@ public Builder mergeStatsAnomaliesBaseDirectory( * */ public Builder clearStatsAnomaliesBaseDirectory() { - if (statsAnomaliesBaseDirectoryBuilder_ == null) { - statsAnomaliesBaseDirectory_ = null; - onChanged(); - } else { - statsAnomaliesBaseDirectory_ = null; + bitField0_ = (bitField0_ & ~0x00080000); + statsAnomaliesBaseDirectory_ = null; + if (statsAnomaliesBaseDirectoryBuilder_ != null) { + statsAnomaliesBaseDirectoryBuilder_.dispose(); statsAnomaliesBaseDirectoryBuilder_ = null; } - + onChanged(); return this; } /** @@ -7921,7 +7966,7 @@ public Builder clearStatsAnomaliesBaseDirectory() { */ public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder getStatsAnomaliesBaseDirectoryBuilder() { - + bitField0_ |= 0x00080000; onChanged(); return getStatsAnomaliesBaseDirectoryFieldBuilder().getBuilder(); } @@ -7992,7 +8037,7 @@ public Builder clearStatsAnomaliesBaseDirectory() { * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00100000) != 0); } /** * @@ -8033,11 +8078,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00100000; + onChanged(); return this; } /** @@ -8055,11 +8100,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00100000; + onChanged(); return this; } /** @@ -8075,19 +8120,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1beta1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00100000) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00100000; + onChanged(); return this; } /** @@ -8102,14 +8147,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 21; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00100000); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -8124,7 +8168,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 21; */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00100000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -8214,6 +8258,7 @@ public boolean getEnableMonitoringPipelineLogs() { public Builder setEnableMonitoringPipelineLogs(boolean value) { enableMonitoringPipelineLogs_ = value; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -8232,7 +8277,7 @@ public Builder setEnableMonitoringPipelineLogs(boolean value) { * @return This builder for chaining. */ public Builder clearEnableMonitoringPipelineLogs() { - + bitField0_ = (bitField0_ & ~0x00200000); enableMonitoringPipelineLogs_ = false; onChanged(); return this; @@ -8255,7 +8300,7 @@ public Builder clearEnableMonitoringPipelineLogs() { * @return Whether the error field is set. */ public boolean hasError() { - return errorBuilder_ != null || error_ != null; + return ((bitField0_ & 0x00400000) != 0); } /** * @@ -8292,11 +8337,11 @@ public Builder setError(com.google.rpc.Status value) { throw new NullPointerException(); } error_ = value; - onChanged(); } else { errorBuilder_.setMessage(value); } - + bitField0_ |= 0x00400000; + onChanged(); return this; } /** @@ -8312,11 +8357,11 @@ public Builder setError(com.google.rpc.Status value) { public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); - onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00400000; + onChanged(); return this; } /** @@ -8331,16 +8376,18 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (error_ != null) { - error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00400000) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); } else { error_ = value; } - onChanged(); } else { errorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00400000; + onChanged(); return this; } /** @@ -8354,14 +8401,13 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; + bitField0_ = (bitField0_ & ~0x00400000); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } - + onChanged(); return this; } /** @@ -8375,7 +8421,7 @@ public Builder clearError() { * .google.rpc.Status error = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + bitField0_ |= 0x00400000; onChanged(); return getErrorFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobOrBuilder.java index de3194e0cc33..8e401c526e29 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobOrBuilder.java @@ -734,7 +734,6 @@ com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable getBi * * map<string, string> labels = 11; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringObjectiveConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringObjectiveConfig.java index b7fc92d6e8a6..0b3631076827 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringObjectiveConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringObjectiveConfig.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DEPLOYED_MODEL_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object deployedModelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedModelId_ = ""; /** * * @@ -169,7 +171,9 @@ public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig getObj @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfigOrBuilder getObjectiveConfigOrBuilder() { - return getObjectiveConfig(); + return objectiveConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.getDefaultInstance() + : objectiveConfig_; } private byte memoizedIsInitialized = -1; @@ -394,12 +398,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; deployedModelId_ = ""; - - if (objectiveConfigBuilder_ == null) { - objectiveConfig_ = null; - } else { - objectiveConfig_ = null; + objectiveConfig_ = null; + if (objectiveConfigBuilder_ != null) { + objectiveConfigBuilder_.dispose(); objectiveConfigBuilder_ = null; } return this; @@ -433,16 +436,25 @@ public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveCon buildPartial() { com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig result = new com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig(this); - result.deployedModelId_ = deployedModelId_; - if (objectiveConfigBuilder_ == null) { - result.objectiveConfig_ = objectiveConfig_; - } else { - result.objectiveConfig_ = objectiveConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deployedModelId_ = deployedModelId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.objectiveConfig_ = + objectiveConfigBuilder_ == null ? objectiveConfig_ : objectiveConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -495,6 +507,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getDeployedModelId().isEmpty()) { deployedModelId_ = other.deployedModelId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasObjectiveConfig()) { @@ -529,13 +542,13 @@ public Builder mergeFrom( case 10: { deployedModelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getObjectiveConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -555,6 +568,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object deployedModelId_ = ""; /** * @@ -616,8 +631,8 @@ public Builder setDeployedModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedModelId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -633,8 +648,8 @@ public Builder setDeployedModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedModelId() { - deployedModelId_ = getDefaultInstance().getDeployedModelId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -655,8 +670,8 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedModelId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -680,7 +695,7 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { * @return Whether the objectiveConfig field is set. */ public boolean hasObjectiveConfig() { - return objectiveConfigBuilder_ != null || objectiveConfig_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -721,11 +736,11 @@ public Builder setObjectiveConfig( throw new NullPointerException(); } objectiveConfig_ = value; - onChanged(); } else { objectiveConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -743,11 +758,11 @@ public Builder setObjectiveConfig( builderForValue) { if (objectiveConfigBuilder_ == null) { objectiveConfig_ = builderForValue.build(); - onChanged(); } else { objectiveConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -763,20 +778,20 @@ public Builder setObjectiveConfig( public Builder mergeObjectiveConfig( com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig value) { if (objectiveConfigBuilder_ == null) { - if (objectiveConfig_ != null) { - objectiveConfig_ = - com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.newBuilder( - objectiveConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && objectiveConfig_ != null + && objectiveConfig_ + != com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .getDefaultInstance()) { + getObjectiveConfigBuilder().mergeFrom(value); } else { objectiveConfig_ = value; } - onChanged(); } else { objectiveConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -790,14 +805,13 @@ public Builder mergeObjectiveConfig( * */ public Builder clearObjectiveConfig() { - if (objectiveConfigBuilder_ == null) { - objectiveConfig_ = null; - onChanged(); - } else { - objectiveConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + objectiveConfig_ = null; + if (objectiveConfigBuilder_ != null) { + objectiveConfigBuilder_.dispose(); objectiveConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -812,7 +826,7 @@ public Builder clearObjectiveConfig() { */ public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.Builder getObjectiveConfigBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getObjectiveConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfig.java index ab91152d555f..92c2e160fad1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfig.java @@ -122,7 +122,9 @@ public com.google.protobuf.Duration getMonitorInterval() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMonitorIntervalOrBuilder() { - return getMonitorInterval(); + return monitorInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : monitorInterval_; } public static final int MONITOR_WINDOW_FIELD_NUMBER = 2; @@ -191,7 +193,9 @@ public com.google.protobuf.Duration getMonitorWindow() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMonitorWindowOrBuilder() { - return getMonitorWindow(); + return monitorWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : monitorWindow_; } private byte memoizedIsInitialized = -1; @@ -420,16 +424,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (monitorIntervalBuilder_ == null) { - monitorInterval_ = null; - } else { - monitorInterval_ = null; + bitField0_ = 0; + monitorInterval_ = null; + if (monitorIntervalBuilder_ != null) { + monitorIntervalBuilder_.dispose(); monitorIntervalBuilder_ = null; } - if (monitorWindowBuilder_ == null) { - monitorWindow_ = null; - } else { - monitorWindow_ = null; + monitorWindow_ = null; + if (monitorWindowBuilder_ != null) { + monitorWindowBuilder_.dispose(); monitorWindowBuilder_ = null; } return this; @@ -463,20 +466,26 @@ public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConf buildPartial() { com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig result = new com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig(this); - if (monitorIntervalBuilder_ == null) { - result.monitorInterval_ = monitorInterval_; - } else { - result.monitorInterval_ = monitorIntervalBuilder_.build(); - } - if (monitorWindowBuilder_ == null) { - result.monitorWindow_ = monitorWindow_; - } else { - result.monitorWindow_ = monitorWindowBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.monitorInterval_ = + monitorIntervalBuilder_ == null ? monitorInterval_ : monitorIntervalBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.monitorWindow_ = + monitorWindowBuilder_ == null ? monitorWindow_ : monitorWindowBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -562,13 +571,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getMonitorIntervalFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMonitorWindowFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -588,6 +597,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Duration monitorInterval_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -610,7 +621,7 @@ public Builder mergeFrom( * @return Whether the monitorInterval field is set. */ public boolean hasMonitorInterval() { - return monitorIntervalBuilder_ != null || monitorInterval_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -655,11 +666,11 @@ public Builder setMonitorInterval(com.google.protobuf.Duration value) { throw new NullPointerException(); } monitorInterval_ = value; - onChanged(); } else { monitorIntervalBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -678,11 +689,11 @@ public Builder setMonitorInterval(com.google.protobuf.Duration value) { public Builder setMonitorInterval(com.google.protobuf.Duration.Builder builderForValue) { if (monitorIntervalBuilder_ == null) { monitorInterval_ = builderForValue.build(); - onChanged(); } else { monitorIntervalBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -700,19 +711,18 @@ public Builder setMonitorInterval(com.google.protobuf.Duration.Builder builderFo */ public Builder mergeMonitorInterval(com.google.protobuf.Duration value) { if (monitorIntervalBuilder_ == null) { - if (monitorInterval_ != null) { - monitorInterval_ = - com.google.protobuf.Duration.newBuilder(monitorInterval_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && monitorInterval_ != null + && monitorInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMonitorIntervalBuilder().mergeFrom(value); } else { monitorInterval_ = value; } - onChanged(); } else { monitorIntervalBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -729,14 +739,13 @@ public Builder mergeMonitorInterval(com.google.protobuf.Duration value) { * */ public Builder clearMonitorInterval() { - if (monitorIntervalBuilder_ == null) { - monitorInterval_ = null; - onChanged(); - } else { - monitorInterval_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + monitorInterval_ = null; + if (monitorIntervalBuilder_ != null) { + monitorIntervalBuilder_.dispose(); monitorIntervalBuilder_ = null; } - + onChanged(); return this; } /** @@ -753,7 +762,7 @@ public Builder clearMonitorInterval() { * */ public com.google.protobuf.Duration.Builder getMonitorIntervalBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getMonitorIntervalFieldBuilder().getBuilder(); } @@ -834,7 +843,7 @@ public com.google.protobuf.DurationOrBuilder getMonitorIntervalOrBuilder() { * @return Whether the monitorWindow field is set. */ public boolean hasMonitorWindow() { - return monitorWindowBuilder_ != null || monitorWindow_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -885,11 +894,11 @@ public Builder setMonitorWindow(com.google.protobuf.Duration value) { throw new NullPointerException(); } monitorWindow_ = value; - onChanged(); } else { monitorWindowBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -911,11 +920,11 @@ public Builder setMonitorWindow(com.google.protobuf.Duration value) { public Builder setMonitorWindow(com.google.protobuf.Duration.Builder builderForValue) { if (monitorWindowBuilder_ == null) { monitorWindow_ = builderForValue.build(); - onChanged(); } else { monitorWindowBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -936,19 +945,18 @@ public Builder setMonitorWindow(com.google.protobuf.Duration.Builder builderForV */ public Builder mergeMonitorWindow(com.google.protobuf.Duration value) { if (monitorWindowBuilder_ == null) { - if (monitorWindow_ != null) { - monitorWindow_ = - com.google.protobuf.Duration.newBuilder(monitorWindow_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && monitorWindow_ != null + && monitorWindow_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMonitorWindowBuilder().mergeFrom(value); } else { monitorWindow_ = value; } - onChanged(); } else { monitorWindowBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -968,14 +976,13 @@ public Builder mergeMonitorWindow(com.google.protobuf.Duration value) { * .google.protobuf.Duration monitor_window = 2; */ public Builder clearMonitorWindow() { - if (monitorWindowBuilder_ == null) { - monitorWindow_ = null; - onChanged(); - } else { - monitorWindow_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + monitorWindow_ = null; + if (monitorWindowBuilder_ != null) { + monitorWindowBuilder_.dispose(); monitorWindowBuilder_ = null; } - + onChanged(); return this; } /** @@ -995,7 +1002,7 @@ public Builder clearMonitorWindow() { * .google.protobuf.Duration monitor_window = 2; */ public com.google.protobuf.Duration.Builder getMonitorWindowBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMonitorWindowFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluation.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluation.java index a214ab7b013a..8d0a9f41f1be 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluation.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluation.java @@ -192,7 +192,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int EXPLANATION_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object explanationType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object explanationType_ = ""; /** * * @@ -292,7 +294,9 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationSpec getExplanationSpec() @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ExplanationSpecOrBuilder getExplanationSpecOrBuilder() { - return getExplanationSpec(); + return explanationSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.ExplanationSpec.getDefaultInstance() + : explanationSpec_; } private byte memoizedIsInitialized = -1; @@ -517,12 +521,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; explanationType_ = ""; - - if (explanationSpecBuilder_ == null) { - explanationSpec_ = null; - } else { - explanationSpec_ = null; + explanationSpec_ = null; + if (explanationSpecBuilder_ != null) { + explanationSpecBuilder_.dispose(); explanationSpecBuilder_ = null; } return this; @@ -558,16 +561,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec result = new com.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec( this); - result.explanationType_ = explanationType_; - if (explanationSpecBuilder_ == null) { - result.explanationSpec_ = explanationSpec_; - } else { - result.explanationSpec_ = explanationSpecBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.explanationType_ = explanationType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.explanationSpec_ = + explanationSpecBuilder_ == null ? explanationSpec_ : explanationSpecBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -625,6 +638,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getExplanationType().isEmpty()) { explanationType_ = other.explanationType_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasExplanationSpec()) { @@ -659,14 +673,14 @@ public Builder mergeFrom( case 10: { explanationType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getExplanationSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -686,6 +700,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object explanationType_ = ""; /** * @@ -756,8 +772,8 @@ public Builder setExplanationType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - explanationType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -776,8 +792,8 @@ public Builder setExplanationType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearExplanationType() { - explanationType_ = getDefaultInstance().getExplanationType(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -801,8 +817,8 @@ public Builder setExplanationTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - explanationType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -825,7 +841,7 @@ public Builder setExplanationTypeBytes(com.google.protobuf.ByteString value) { * @return Whether the explanationSpec field is set. */ public boolean hasExplanationSpec() { - return explanationSpecBuilder_ != null || explanationSpec_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -862,11 +878,11 @@ public Builder setExplanationSpec(com.google.cloud.aiplatform.v1beta1.Explanatio throw new NullPointerException(); } explanationSpec_ = value; - onChanged(); } else { explanationSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -882,11 +898,11 @@ public Builder setExplanationSpec( com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder builderForValue) { if (explanationSpecBuilder_ == null) { explanationSpec_ = builderForValue.build(); - onChanged(); } else { explanationSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -901,19 +917,19 @@ public Builder setExplanationSpec( public Builder mergeExplanationSpec( com.google.cloud.aiplatform.v1beta1.ExplanationSpec value) { if (explanationSpecBuilder_ == null) { - if (explanationSpec_ != null) { - explanationSpec_ = - com.google.cloud.aiplatform.v1beta1.ExplanationSpec.newBuilder(explanationSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && explanationSpec_ != null + && explanationSpec_ + != com.google.cloud.aiplatform.v1beta1.ExplanationSpec.getDefaultInstance()) { + getExplanationSpecBuilder().mergeFrom(value); } else { explanationSpec_ = value; } - onChanged(); } else { explanationSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -926,14 +942,13 @@ public Builder mergeExplanationSpec( * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 2; */ public Builder clearExplanationSpec() { - if (explanationSpecBuilder_ == null) { - explanationSpec_ = null; - onChanged(); - } else { - explanationSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + explanationSpec_ = null; + if (explanationSpecBuilder_ != null) { + explanationSpecBuilder_.dispose(); explanationSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -947,7 +962,7 @@ public Builder clearExplanationSpec() { */ public com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder getExplanationSpecBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getExplanationSpecFieldBuilder().getBuilder(); } @@ -1066,7 +1081,9 @@ public com.google.protobuf.Parser getParserForTy } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -1115,7 +1132,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 10; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -1164,7 +1183,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int METRICS_SCHEMA_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object metricsSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metricsSchemaUri_ = ""; /** * * @@ -1264,7 +1285,7 @@ public com.google.protobuf.Value getMetrics() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getMetricsOrBuilder() { - return getMetrics(); + return metrics_ == null ? com.google.protobuf.Value.getDefaultInstance() : metrics_; } public static final int CREATE_TIME_FIELD_NUMBER = 4; @@ -1313,10 +1334,12 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int SLICE_DIMENSIONS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList sliceDimensions_; /** * @@ -1441,10 +1464,14 @@ public com.google.cloud.aiplatform.v1beta1.ModelExplanation getModelExplanation( @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelExplanationOrBuilder getModelExplanationOrBuilder() { - return getModelExplanation(); + return modelExplanation_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelExplanation.getDefaultInstance() + : modelExplanation_; } public static final int EXPLANATION_SPECS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec> explanationSpecs_; @@ -1594,7 +1621,7 @@ public com.google.protobuf.Value getMetadata() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; } private byte memoizedIsInitialized = -1; @@ -1896,30 +1923,25 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - metricsSchemaUri_ = ""; - - if (metricsBuilder_ == null) { - metrics_ = null; - } else { - metrics_ = null; + metrics_ = null; + if (metricsBuilder_ != null) { + metricsBuilder_.dispose(); metricsBuilder_ = null; } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } sliceDimensions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (modelExplanationBuilder_ == null) { - modelExplanation_ = null; - } else { - modelExplanation_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + modelExplanation_ = null; + if (modelExplanationBuilder_ != null) { + modelExplanationBuilder_.dispose(); modelExplanationBuilder_ = null; } if (explanationSpecsBuilder_ == null) { @@ -1928,11 +1950,10 @@ public Builder clear() { explanationSpecs_ = null; explanationSpecsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; @@ -1962,46 +1983,56 @@ public com.google.cloud.aiplatform.v1beta1.ModelEvaluation build() { public com.google.cloud.aiplatform.v1beta1.ModelEvaluation buildPartial() { com.google.cloud.aiplatform.v1beta1.ModelEvaluation result = new com.google.cloud.aiplatform.v1beta1.ModelEvaluation(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.metricsSchemaUri_ = metricsSchemaUri_; - if (metricsBuilder_ == null) { - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.build(); - } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - if (((bitField0_ & 0x00000001) != 0)) { + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ModelEvaluation result) { + if (((bitField0_ & 0x00000020) != 0)) { sliceDimensions_ = sliceDimensions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); } result.sliceDimensions_ = sliceDimensions_; - if (modelExplanationBuilder_ == null) { - result.modelExplanation_ = modelExplanation_; - } else { - result.modelExplanation_ = modelExplanationBuilder_.build(); - } if (explanationSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { explanationSpecs_ = java.util.Collections.unmodifiableList(explanationSpecs_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000080); } result.explanationSpecs_ = explanationSpecs_; } else { result.explanationSpecs_ = explanationSpecsBuilder_.build(); } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ModelEvaluation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metricsSchemaUri_ = metricsSchemaUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.metrics_ = metricsBuilder_ == null ? metrics_ : metricsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.modelExplanation_ = + modelExplanationBuilder_ == null ? modelExplanation_ : modelExplanationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -2052,14 +2083,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModelEvaluation oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getMetricsSchemaUri().isEmpty()) { metricsSchemaUri_ = other.metricsSchemaUri_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasMetrics()) { @@ -2071,7 +2105,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModelEvaluation oth if (!other.sliceDimensions_.isEmpty()) { if (sliceDimensions_.isEmpty()) { sliceDimensions_ = other.sliceDimensions_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureSliceDimensionsIsMutable(); sliceDimensions_.addAll(other.sliceDimensions_); @@ -2085,7 +2119,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModelEvaluation oth if (!other.explanationSpecs_.isEmpty()) { if (explanationSpecs_.isEmpty()) { explanationSpecs_ = other.explanationSpecs_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureExplanationSpecsIsMutable(); explanationSpecs_.addAll(other.explanationSpecs_); @@ -2098,7 +2132,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModelEvaluation oth explanationSpecsBuilder_.dispose(); explanationSpecsBuilder_ = null; explanationSpecs_ = other.explanationSpecs_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000080); explanationSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExplanationSpecsFieldBuilder() @@ -2140,25 +2174,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { metricsSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 18 case 26: { input.readMessage(getMetricsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 34 case 42: @@ -2172,7 +2206,7 @@ public Builder mergeFrom( { input.readMessage( getModelExplanationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 66 case 74: @@ -2194,13 +2228,13 @@ public Builder mergeFrom( case 82: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 82 case 90: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 90 default: @@ -2283,8 +2317,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2300,8 +2334,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2322,8 +2356,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2389,8 +2423,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2406,8 +2440,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2428,8 +2462,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2504,8 +2538,8 @@ public Builder setMetricsSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metricsSchemaUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2524,8 +2558,8 @@ public Builder setMetricsSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetricsSchemaUri() { - metricsSchemaUri_ = getDefaultInstance().getMetricsSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2549,8 +2583,8 @@ public Builder setMetricsSchemaUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metricsSchemaUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2574,7 +2608,7 @@ public Builder setMetricsSchemaUriBytes(com.google.protobuf.ByteString value) { * @return Whether the metrics field is set. */ public boolean hasMetrics() { - return metricsBuilder_ != null || metrics_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -2611,11 +2645,11 @@ public Builder setMetrics(com.google.protobuf.Value value) { throw new NullPointerException(); } metrics_ = value; - onChanged(); } else { metricsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2631,11 +2665,11 @@ public Builder setMetrics(com.google.protobuf.Value value) { public Builder setMetrics(com.google.protobuf.Value.Builder builderForValue) { if (metricsBuilder_ == null) { metrics_ = builderForValue.build(); - onChanged(); } else { metricsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2650,16 +2684,18 @@ public Builder setMetrics(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeMetrics(com.google.protobuf.Value value) { if (metricsBuilder_ == null) { - if (metrics_ != null) { - metrics_ = com.google.protobuf.Value.newBuilder(metrics_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && metrics_ != null + && metrics_ != com.google.protobuf.Value.getDefaultInstance()) { + getMetricsBuilder().mergeFrom(value); } else { metrics_ = value; } - onChanged(); } else { metricsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2673,14 +2709,13 @@ public Builder mergeMetrics(com.google.protobuf.Value value) { * .google.protobuf.Value metrics = 3; */ public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = null; - onChanged(); - } else { - metrics_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + metrics_ = null; + if (metricsBuilder_ != null) { + metricsBuilder_.dispose(); metricsBuilder_ = null; } - + onChanged(); return this; } /** @@ -2694,7 +2729,7 @@ public Builder clearMetrics() { * .google.protobuf.Value metrics = 3; */ public com.google.protobuf.Value.Builder getMetricsBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getMetricsFieldBuilder().getBuilder(); } @@ -2762,7 +2797,7 @@ public com.google.protobuf.ValueOrBuilder getMetricsOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2803,11 +2838,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2824,11 +2859,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2844,17 +2879,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2869,14 +2905,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2891,7 +2926,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2947,9 +2982,9 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSliceDimensionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { sliceDimensions_ = new com.google.protobuf.LazyStringArrayList(sliceDimensions_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000020; } } /** @@ -3108,7 +3143,7 @@ public Builder addAllSliceDimensions(java.lang.Iterable values */ public Builder clearSliceDimensions() { sliceDimensions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -3158,7 +3193,7 @@ public Builder addSliceDimensionsBytes(com.google.protobuf.ByteString value) { * @return Whether the modelExplanation field is set. */ public boolean hasModelExplanation() { - return modelExplanationBuilder_ != null || modelExplanation_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -3199,11 +3234,11 @@ public Builder setModelExplanation(com.google.cloud.aiplatform.v1beta1.ModelExpl throw new NullPointerException(); } modelExplanation_ = value; - onChanged(); } else { modelExplanationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -3221,11 +3256,11 @@ public Builder setModelExplanation( com.google.cloud.aiplatform.v1beta1.ModelExplanation.Builder builderForValue) { if (modelExplanationBuilder_ == null) { modelExplanation_ = builderForValue.build(); - onChanged(); } else { modelExplanationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -3242,19 +3277,19 @@ public Builder setModelExplanation( public Builder mergeModelExplanation( com.google.cloud.aiplatform.v1beta1.ModelExplanation value) { if (modelExplanationBuilder_ == null) { - if (modelExplanation_ != null) { - modelExplanation_ = - com.google.cloud.aiplatform.v1beta1.ModelExplanation.newBuilder(modelExplanation_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && modelExplanation_ != null + && modelExplanation_ + != com.google.cloud.aiplatform.v1beta1.ModelExplanation.getDefaultInstance()) { + getModelExplanationBuilder().mergeFrom(value); } else { modelExplanation_ = value; } - onChanged(); } else { modelExplanationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -3269,14 +3304,13 @@ public Builder mergeModelExplanation( * .google.cloud.aiplatform.v1beta1.ModelExplanation model_explanation = 8; */ public Builder clearModelExplanation() { - if (modelExplanationBuilder_ == null) { - modelExplanation_ = null; - onChanged(); - } else { - modelExplanation_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + modelExplanation_ = null; + if (modelExplanationBuilder_ != null) { + modelExplanationBuilder_.dispose(); modelExplanationBuilder_ = null; } - + onChanged(); return this; } /** @@ -3292,7 +3326,7 @@ public Builder clearModelExplanation() { */ public com.google.cloud.aiplatform.v1beta1.ModelExplanation.Builder getModelExplanationBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getModelExplanationFieldBuilder().getBuilder(); } @@ -3350,12 +3384,12 @@ public Builder clearModelExplanation() { explanationSpecs_ = java.util.Collections.emptyList(); private void ensureExplanationSpecsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { explanationSpecs_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpec>( explanationSpecs_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000080; } } @@ -3634,7 +3668,7 @@ public Builder addAllExplanationSpecs( public Builder clearExplanationSpecs() { if (explanationSpecsBuilder_ == null) { explanationSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { explanationSpecsBuilder_.clear(); @@ -3807,7 +3841,7 @@ public Builder removeExplanationSpecs(int index) { com.google.cloud.aiplatform.v1beta1.ModelEvaluation .ModelEvaluationExplanationSpecOrBuilder>( explanationSpecs_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); explanationSpecs_ = null; @@ -3836,7 +3870,7 @@ public Builder removeExplanationSpecs(int index) { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -3877,11 +3911,11 @@ public Builder setMetadata(com.google.protobuf.Value value) { throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3899,11 +3933,11 @@ public Builder setMetadata(com.google.protobuf.Value value) { public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3920,17 +3954,18 @@ public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Value value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Value.newBuilder(metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Value.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3946,14 +3981,13 @@ public Builder mergeMetadata(com.google.protobuf.Value value) { * .google.protobuf.Value metadata = 11; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -3969,7 +4003,7 @@ public Builder clearMetadata() { * .google.protobuf.Value metadata = 11; */ public com.google.protobuf.Value.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSlice.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSlice.java index f9d70e7bd1b0..947ebac2aa56 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSlice.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSlice.java @@ -187,7 +187,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DIMENSION_FIELD_NUMBER = 1; - private volatile java.lang.Object dimension_; + + @SuppressWarnings("serial") + private volatile java.lang.Object dimension_ = ""; /** * * @@ -248,7 +250,9 @@ public com.google.protobuf.ByteString getDimensionBytes() { } public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; /** * * @@ -505,10 +509,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; dimension_ = ""; - value_ = ""; - return this; } @@ -537,12 +540,24 @@ public com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice build() { public com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice buildPartial() { com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice result = new com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice(this); - result.dimension_ = dimension_; - result.value_ = value_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dimension_ = dimension_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -595,10 +610,12 @@ public Builder mergeFrom( return this; if (!other.getDimension().isEmpty()) { dimension_ = other.dimension_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getValue().isEmpty()) { value_ = other.value_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -630,13 +647,13 @@ public Builder mergeFrom( case 10: { dimension_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { value_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -656,6 +673,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object dimension_ = ""; /** * @@ -735,8 +754,8 @@ public Builder setDimension(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - dimension_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -758,8 +777,8 @@ public Builder setDimension(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDimension() { - dimension_ = getDefaultInstance().getDimension(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -786,8 +805,8 @@ public Builder setDimensionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - dimension_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -853,8 +872,8 @@ public Builder setValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - value_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -870,8 +889,8 @@ public Builder setValue(java.lang.String value) { * @return This builder for chaining. */ public Builder clearValue() { - value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -892,8 +911,8 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - value_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -966,7 +985,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -1066,11 +1087,15 @@ public com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice getSlice() @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.SliceOrBuilder getSliceOrBuilder() { - return getSlice(); + return slice_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.getDefaultInstance() + : slice_; } public static final int METRICS_SCHEMA_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object metricsSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metricsSchemaUri_ = ""; /** * * @@ -1177,7 +1202,7 @@ public com.google.protobuf.Value getMetrics() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getMetricsOrBuilder() { - return getMetrics(); + return metrics_ == null ? com.google.protobuf.Value.getDefaultInstance() : metrics_; } public static final int CREATE_TIME_FIELD_NUMBER = 5; @@ -1226,7 +1251,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } private byte memoizedIsInitialized = -1; @@ -1479,26 +1504,22 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - - if (sliceBuilder_ == null) { - slice_ = null; - } else { - slice_ = null; + slice_ = null; + if (sliceBuilder_ != null) { + sliceBuilder_.dispose(); sliceBuilder_ = null; } metricsSchemaUri_ = ""; - - if (metricsBuilder_ == null) { - metrics_ = null; - } else { - metrics_ = null; + metrics_ = null; + if (metricsBuilder_ != null) { + metricsBuilder_.dispose(); metricsBuilder_ = null; } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } return this; @@ -1528,27 +1549,32 @@ public com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice build() { public com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice buildPartial() { com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice result = new com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice(this); - result.name_ = name_; - if (sliceBuilder_ == null) { - result.slice_ = slice_; - } else { - result.slice_ = sliceBuilder_.build(); - } - result.metricsSchemaUri_ = metricsSchemaUri_; - if (metricsBuilder_ == null) { - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.build(); - } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.slice_ = sliceBuilder_ == null ? slice_ : sliceBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metricsSchemaUri_ = metricsSchemaUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.metrics_ = metricsBuilder_ == null ? metrics_ : metricsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1597,6 +1623,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlic return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasSlice()) { @@ -1604,6 +1631,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlic } if (!other.getMetricsSchemaUri().isEmpty()) { metricsSchemaUri_ = other.metricsSchemaUri_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasMetrics()) { @@ -1641,31 +1669,31 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getSliceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { metricsSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getMetricsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -1685,6 +1713,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -1746,8 +1776,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1763,8 +1793,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1785,8 +1815,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1811,7 +1841,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the slice field is set. */ public boolean hasSlice() { - return sliceBuilder_ != null || slice_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1852,11 +1882,11 @@ public Builder setSlice(com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice throw new NullPointerException(); } slice_ = value; - onChanged(); } else { sliceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1874,11 +1904,11 @@ public Builder setSlice( com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.Builder builderForValue) { if (sliceBuilder_ == null) { slice_ = builderForValue.build(); - onChanged(); } else { sliceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1895,19 +1925,20 @@ public Builder setSlice( public Builder mergeSlice( com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice value) { if (sliceBuilder_ == null) { - if (slice_ != null) { - slice_ = - com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.newBuilder(slice_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && slice_ != null + && slice_ + != com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice + .getDefaultInstance()) { + getSliceBuilder().mergeFrom(value); } else { slice_ = value; } - onChanged(); } else { sliceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1922,14 +1953,13 @@ public Builder mergeSlice( * */ public Builder clearSlice() { - if (sliceBuilder_ == null) { - slice_ = null; - onChanged(); - } else { - slice_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + slice_ = null; + if (sliceBuilder_ != null) { + sliceBuilder_.dispose(); sliceBuilder_ = null; } - + onChanged(); return this; } /** @@ -1945,7 +1975,7 @@ public Builder clearSlice() { */ public com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.Builder getSliceBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getSliceFieldBuilder().getBuilder(); } @@ -2074,8 +2104,8 @@ public Builder setMetricsSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metricsSchemaUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2096,8 +2126,8 @@ public Builder setMetricsSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetricsSchemaUri() { - metricsSchemaUri_ = getDefaultInstance().getMetricsSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2123,8 +2153,8 @@ public Builder setMetricsSchemaUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metricsSchemaUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2149,7 +2179,7 @@ public Builder setMetricsSchemaUriBytes(com.google.protobuf.ByteString value) { * @return Whether the metrics field is set. */ public boolean hasMetrics() { - return metricsBuilder_ != null || metrics_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -2188,11 +2218,11 @@ public Builder setMetrics(com.google.protobuf.Value value) { throw new NullPointerException(); } metrics_ = value; - onChanged(); } else { metricsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2209,11 +2239,11 @@ public Builder setMetrics(com.google.protobuf.Value value) { public Builder setMetrics(com.google.protobuf.Value.Builder builderForValue) { if (metricsBuilder_ == null) { metrics_ = builderForValue.build(); - onChanged(); } else { metricsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2229,16 +2259,18 @@ public Builder setMetrics(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeMetrics(com.google.protobuf.Value value) { if (metricsBuilder_ == null) { - if (metrics_ != null) { - metrics_ = com.google.protobuf.Value.newBuilder(metrics_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && metrics_ != null + && metrics_ != com.google.protobuf.Value.getDefaultInstance()) { + getMetricsBuilder().mergeFrom(value); } else { metrics_ = value; } - onChanged(); } else { metricsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2253,14 +2285,13 @@ public Builder mergeMetrics(com.google.protobuf.Value value) { * .google.protobuf.Value metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = null; - onChanged(); - } else { - metrics_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + metrics_ = null; + if (metricsBuilder_ != null) { + metricsBuilder_.dispose(); metricsBuilder_ = null; } - + onChanged(); return this; } /** @@ -2275,7 +2306,7 @@ public Builder clearMetrics() { * .google.protobuf.Value metrics = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Value.Builder getMetricsBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getMetricsFieldBuilder().getBuilder(); } @@ -2345,7 +2376,7 @@ public com.google.protobuf.ValueOrBuilder getMetricsOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2386,11 +2417,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2407,11 +2438,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2427,17 +2458,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2452,14 +2484,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2474,7 +2505,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelExplanation.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelExplanation.java index 9e737ea76db5..20efd2b9cafb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelExplanation.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelExplanation.java @@ -68,6 +68,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MEAN_ATTRIBUTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List meanAttributions_; /** * @@ -436,6 +438,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (meanAttributionsBuilder_ == null) { meanAttributions_ = java.util.Collections.emptyList(); } else { @@ -470,7 +473,16 @@ public com.google.cloud.aiplatform.v1beta1.ModelExplanation build() { public com.google.cloud.aiplatform.v1beta1.ModelExplanation buildPartial() { com.google.cloud.aiplatform.v1beta1.ModelExplanation result = new com.google.cloud.aiplatform.v1beta1.ModelExplanation(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ModelExplanation result) { if (meanAttributionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { meanAttributions_ = java.util.Collections.unmodifiableList(meanAttributions_); @@ -480,8 +492,10 @@ public com.google.cloud.aiplatform.v1beta1.ModelExplanation buildPartial() { } else { result.meanAttributions_ = meanAttributionsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ModelExplanation result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringAlertConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringAlertConfig.java index 29b5b8ace80e..2c58be5e71ea 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringAlertConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringAlertConfig.java @@ -165,6 +165,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int USER_EMAILS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList userEmails_; /** * @@ -444,6 +446,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; userEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; @@ -479,14 +482,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig result = new com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig( this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig result) { if (((bitField0_ & 0x00000001) != 0)) { userEmails_ = userEmails_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.userEmails_ = userEmails_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -950,7 +965,7 @@ public boolean hasEmailAlertConfig() { } public static final int ENABLE_LOGGING_FIELD_NUMBER = 2; - private boolean enableLogging_; + private boolean enableLogging_ = false; /** * * @@ -1189,11 +1204,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (emailAlertConfigBuilder_ != null) { emailAlertConfigBuilder_.clear(); } enableLogging_ = false; - alertCase_ = 0; alert_ = null; return this; @@ -1224,19 +1239,31 @@ public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig build() { public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig result = new com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig(this); - if (alertCase_ == 1) { - if (emailAlertConfigBuilder_ == null) { - result.alert_ = alert_; - } else { - result.alert_ = emailAlertConfigBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - result.enableLogging_ = enableLogging_; - result.alertCase_ = alertCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableLogging_ = enableLogging_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig result) { + result.alertCase_ = alertCase_; + result.alert_ = this.alert_; + if (alertCase_ == 1 && emailAlertConfigBuilder_ != null) { + result.alert_ = emailAlertConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1334,7 +1361,7 @@ public Builder mergeFrom( case 16: { enableLogging_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -1368,6 +1395,8 @@ public Builder clearAlert() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig, com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.Builder, @@ -1615,7 +1644,6 @@ public Builder clearEmailAlertConfig() { } alertCase_ = 1; onChanged(); - ; return emailAlertConfigBuilder_; } @@ -1658,6 +1686,7 @@ public boolean getEnableLogging() { public Builder setEnableLogging(boolean value) { enableLogging_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1677,7 +1706,7 @@ public Builder setEnableLogging(boolean value) { * @return This builder for chaining. */ public Builder clearEnableLogging() { - + bitField0_ = (bitField0_ & ~0x00000002); enableLogging_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringConfig.java index ddd0a90ba11f..ebb9be5547ec 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringConfig.java @@ -69,6 +69,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int OBJECTIVE_CONFIGS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List objectiveConfigs_; /** @@ -198,11 +200,15 @@ public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig getAlertCo @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfigOrBuilder getAlertConfigOrBuilder() { - return getAlertConfig(); + return alertConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.getDefaultInstance() + : alertConfig_; } public static final int ANALYSIS_INSTANCE_SCHEMA_URI_FIELD_NUMBER = 4; - private volatile java.lang.Object analysisInstanceSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object analysisInstanceSchemaUri_ = ""; /** * * @@ -318,7 +324,9 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination getStatsAnomaliesBaseD @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder getStatsAnomaliesBaseDirectoryOrBuilder() { - return getStatsAnomaliesBaseDirectory(); + return statsAnomaliesBaseDirectory_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance() + : statsAnomaliesBaseDirectory_; } private byte memoizedIsInitialized = -1; @@ -562,6 +570,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (objectiveConfigsBuilder_ == null) { objectiveConfigs_ = java.util.Collections.emptyList(); } else { @@ -569,18 +578,15 @@ public Builder clear() { objectiveConfigsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); - if (alertConfigBuilder_ == null) { - alertConfig_ = null; - } else { - alertConfig_ = null; + alertConfig_ = null; + if (alertConfigBuilder_ != null) { + alertConfigBuilder_.dispose(); alertConfigBuilder_ = null; } analysisInstanceSchemaUri_ = ""; - - if (statsAnomaliesBaseDirectoryBuilder_ == null) { - statsAnomaliesBaseDirectory_ = null; - } else { - statsAnomaliesBaseDirectory_ = null; + statsAnomaliesBaseDirectory_ = null; + if (statsAnomaliesBaseDirectoryBuilder_ != null) { + statsAnomaliesBaseDirectoryBuilder_.dispose(); statsAnomaliesBaseDirectoryBuilder_ = null; } return this; @@ -610,7 +616,16 @@ public com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig build() { public com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig result = new com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig result) { if (objectiveConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { objectiveConfigs_ = java.util.Collections.unmodifiableList(objectiveConfigs_); @@ -620,19 +635,23 @@ public com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig buildPartial() } else { result.objectiveConfigs_ = objectiveConfigsBuilder_.build(); } - if (alertConfigBuilder_ == null) { - result.alertConfig_ = alertConfig_; - } else { - result.alertConfig_ = alertConfigBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.alertConfig_ = + alertConfigBuilder_ == null ? alertConfig_ : alertConfigBuilder_.build(); } - result.analysisInstanceSchemaUri_ = analysisInstanceSchemaUri_; - if (statsAnomaliesBaseDirectoryBuilder_ == null) { - result.statsAnomaliesBaseDirectory_ = statsAnomaliesBaseDirectory_; - } else { - result.statsAnomaliesBaseDirectory_ = statsAnomaliesBaseDirectoryBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.analysisInstanceSchemaUri_ = analysisInstanceSchemaUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.statsAnomaliesBaseDirectory_ = + statsAnomaliesBaseDirectoryBuilder_ == null + ? statsAnomaliesBaseDirectory_ + : statsAnomaliesBaseDirectoryBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -713,6 +732,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModelMonitoringConf } if (!other.getAnalysisInstanceSchemaUri().isEmpty()) { analysisInstanceSchemaUri_ = other.analysisInstanceSchemaUri_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasStatsAnomaliesBaseDirectory()) { @@ -747,7 +767,7 @@ public Builder mergeFrom( case 18: { input.readMessage(getAlertConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -767,14 +787,14 @@ public Builder mergeFrom( case 34: { analysisInstanceSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 34 case 42: { input.readMessage( getStatsAnomaliesBaseDirectoryFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 42 default: @@ -1229,7 +1249,7 @@ public Builder removeObjectiveConfigs(int index) { * @return Whether the alertConfig field is set. */ public boolean hasAlertConfig() { - return alertConfigBuilder_ != null || alertConfig_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1267,11 +1287,11 @@ public Builder setAlertConfig( throw new NullPointerException(); } alertConfig_ = value; - onChanged(); } else { alertConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1287,11 +1307,11 @@ public Builder setAlertConfig( com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.Builder builderForValue) { if (alertConfigBuilder_ == null) { alertConfig_ = builderForValue.build(); - onChanged(); } else { alertConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1306,20 +1326,20 @@ public Builder setAlertConfig( public Builder mergeAlertConfig( com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig value) { if (alertConfigBuilder_ == null) { - if (alertConfig_ != null) { - alertConfig_ = - com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.newBuilder( - alertConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && alertConfig_ != null + && alertConfig_ + != com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + .getDefaultInstance()) { + getAlertConfigBuilder().mergeFrom(value); } else { alertConfig_ = value; } - onChanged(); } else { alertConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1332,14 +1352,13 @@ public Builder mergeAlertConfig( * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2; */ public Builder clearAlertConfig() { - if (alertConfigBuilder_ == null) { - alertConfig_ = null; - onChanged(); - } else { - alertConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + alertConfig_ = null; + if (alertConfigBuilder_ != null) { + alertConfigBuilder_.dispose(); alertConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1353,7 +1372,7 @@ public Builder clearAlertConfig() { */ public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.Builder getAlertConfigBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getAlertConfigFieldBuilder().getBuilder(); } @@ -1478,8 +1497,8 @@ public Builder setAnalysisInstanceSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - analysisInstanceSchemaUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1500,8 +1519,8 @@ public Builder setAnalysisInstanceSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAnalysisInstanceSchemaUri() { - analysisInstanceSchemaUri_ = getDefaultInstance().getAnalysisInstanceSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1527,8 +1546,8 @@ public Builder setAnalysisInstanceSchemaUriBytes(com.google.protobuf.ByteString throw new NullPointerException(); } checkByteStringIsUtf8(value); - analysisInstanceSchemaUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1555,7 +1574,7 @@ public Builder setAnalysisInstanceSchemaUriBytes(com.google.protobuf.ByteString * @return Whether the statsAnomaliesBaseDirectory field is set. */ public boolean hasStatsAnomaliesBaseDirectory() { - return statsAnomaliesBaseDirectoryBuilder_ != null || statsAnomaliesBaseDirectory_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1601,11 +1620,11 @@ public Builder setStatsAnomaliesBaseDirectory( throw new NullPointerException(); } statsAnomaliesBaseDirectory_ = value; - onChanged(); } else { statsAnomaliesBaseDirectoryBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1625,11 +1644,11 @@ public Builder setStatsAnomaliesBaseDirectory( com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder builderForValue) { if (statsAnomaliesBaseDirectoryBuilder_ == null) { statsAnomaliesBaseDirectory_ = builderForValue.build(); - onChanged(); } else { statsAnomaliesBaseDirectoryBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1648,20 +1667,19 @@ public Builder setStatsAnomaliesBaseDirectory( public Builder mergeStatsAnomaliesBaseDirectory( com.google.cloud.aiplatform.v1beta1.GcsDestination value) { if (statsAnomaliesBaseDirectoryBuilder_ == null) { - if (statsAnomaliesBaseDirectory_ != null) { - statsAnomaliesBaseDirectory_ = - com.google.cloud.aiplatform.v1beta1.GcsDestination.newBuilder( - statsAnomaliesBaseDirectory_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && statsAnomaliesBaseDirectory_ != null + && statsAnomaliesBaseDirectory_ + != com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance()) { + getStatsAnomaliesBaseDirectoryBuilder().mergeFrom(value); } else { statsAnomaliesBaseDirectory_ = value; } - onChanged(); } else { statsAnomaliesBaseDirectoryBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1678,14 +1696,13 @@ public Builder mergeStatsAnomaliesBaseDirectory( * */ public Builder clearStatsAnomaliesBaseDirectory() { - if (statsAnomaliesBaseDirectoryBuilder_ == null) { - statsAnomaliesBaseDirectory_ = null; - onChanged(); - } else { - statsAnomaliesBaseDirectory_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + statsAnomaliesBaseDirectory_ = null; + if (statsAnomaliesBaseDirectoryBuilder_ != null) { + statsAnomaliesBaseDirectoryBuilder_.dispose(); statsAnomaliesBaseDirectoryBuilder_ = null; } - + onChanged(); return this; } /** @@ -1703,7 +1720,7 @@ public Builder clearStatsAnomaliesBaseDirectory() { */ public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder getStatsAnomaliesBaseDirectoryBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getStatsAnomaliesBaseDirectoryFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringObjectiveConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringObjectiveConfig.java index 05263cc52117..105617a26db1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringObjectiveConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringObjectiveConfig.java @@ -581,7 +581,9 @@ public com.google.cloud.aiplatform.v1beta1.BigQuerySource getBigquerySource() { } public static final int DATA_FORMAT_FIELD_NUMBER = 2; - private volatile java.lang.Object dataFormat_; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataFormat_ = ""; /** * * @@ -646,7 +648,9 @@ public com.google.protobuf.ByteString getDataFormatBytes() { } public static final int TARGET_FIELD_FIELD_NUMBER = 6; - private volatile java.lang.Object targetField_; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetField_ = ""; /** * * @@ -747,7 +751,9 @@ public com.google.cloud.aiplatform.v1beta1.SamplingStrategy getLoggingSamplingSt @java.lang.Override public com.google.cloud.aiplatform.v1beta1.SamplingStrategyOrBuilder getLoggingSamplingStrategyOrBuilder() { - return getLoggingSamplingStrategy(); + return loggingSamplingStrategy_ == null + ? com.google.cloud.aiplatform.v1beta1.SamplingStrategy.getDefaultInstance() + : loggingSamplingStrategy_; } private byte memoizedIsInitialized = -1; @@ -1041,6 +1047,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (gcsSourceBuilder_ != null) { gcsSourceBuilder_.clear(); } @@ -1048,13 +1055,10 @@ public Builder clear() { bigquerySourceBuilder_.clear(); } dataFormat_ = ""; - targetField_ = ""; - - if (loggingSamplingStrategyBuilder_ == null) { - loggingSamplingStrategy_ = null; - } else { - loggingSamplingStrategy_ = null; + loggingSamplingStrategy_ = null; + if (loggingSamplingStrategyBuilder_ != null) { + loggingSamplingStrategyBuilder_.dispose(); loggingSamplingStrategyBuilder_ = null; } dataSourceCase_ = 0; @@ -1092,33 +1096,43 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset result = new com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset( this); - if (dataSourceCase_ == 3) { - result.dataSource_ = dataSource_; + if (bitField0_ != 0) { + buildPartial0(result); } - if (dataSourceCase_ == 4) { - if (gcsSourceBuilder_ == null) { - result.dataSource_ = dataSource_; - } else { - result.dataSource_ = gcsSourceBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.dataFormat_ = dataFormat_; } - if (dataSourceCase_ == 5) { - if (bigquerySourceBuilder_ == null) { - result.dataSource_ = dataSource_; - } else { - result.dataSource_ = bigquerySourceBuilder_.build(); - } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.targetField_ = targetField_; } - result.dataFormat_ = dataFormat_; - result.targetField_ = targetField_; - if (loggingSamplingStrategyBuilder_ == null) { - result.loggingSamplingStrategy_ = loggingSamplingStrategy_; - } else { - result.loggingSamplingStrategy_ = loggingSamplingStrategyBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.loggingSamplingStrategy_ = + loggingSamplingStrategyBuilder_ == null + ? loggingSamplingStrategy_ + : loggingSamplingStrategyBuilder_.build(); } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + result) { result.dataSourceCase_ = dataSourceCase_; - onBuilt(); - return result; + result.dataSource_ = this.dataSource_; + if (dataSourceCase_ == 4 && gcsSourceBuilder_ != null) { + result.dataSource_ = gcsSourceBuilder_.build(); + } + if (dataSourceCase_ == 5 && bigquerySourceBuilder_ != null) { + result.dataSource_ = bigquerySourceBuilder_.build(); + } } @java.lang.Override @@ -1178,10 +1192,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getDataFormat().isEmpty()) { dataFormat_ = other.dataFormat_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getTargetField().isEmpty()) { targetField_ = other.targetField_; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasLoggingSamplingStrategy()) { @@ -1239,7 +1255,7 @@ public Builder mergeFrom( case 18: { dataFormat_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 18 case 26: @@ -1265,14 +1281,14 @@ public Builder mergeFrom( case 50: { targetField_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 50 case 58: { input.readMessage( getLoggingSamplingStrategyFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 58 default: @@ -1306,6 +1322,8 @@ public Builder clearDataSource() { return this; } + private int bitField0_; + /** * * @@ -1656,7 +1674,6 @@ public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuil } dataSourceCase_ = 4; onChanged(); - ; return gcsSourceBuilder_; } @@ -1877,7 +1894,6 @@ public com.google.cloud.aiplatform.v1beta1.BigQuerySource.Builder getBigquerySou } dataSourceCase_ = 5; onChanged(); - ; return bigquerySourceBuilder_; } @@ -1966,8 +1982,8 @@ public Builder setDataFormat(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - dataFormat_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1991,8 +2007,8 @@ public Builder setDataFormat(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDataFormat() { - dataFormat_ = getDefaultInstance().getDataFormat(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2021,8 +2037,8 @@ public Builder setDataFormatBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - dataFormat_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2094,8 +2110,8 @@ public Builder setTargetField(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - targetField_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2113,8 +2129,8 @@ public Builder setTargetField(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTargetField() { - targetField_ = getDefaultInstance().getTargetField(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2137,8 +2153,8 @@ public Builder setTargetFieldBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - targetField_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2163,7 +2179,7 @@ public Builder setTargetFieldBytes(com.google.protobuf.ByteString value) { * @return Whether the loggingSamplingStrategy field is set. */ public boolean hasLoggingSamplingStrategy() { - return loggingSamplingStrategyBuilder_ != null || loggingSamplingStrategy_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2205,11 +2221,11 @@ public Builder setLoggingSamplingStrategy( throw new NullPointerException(); } loggingSamplingStrategy_ = value; - onChanged(); } else { loggingSamplingStrategyBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2227,11 +2243,11 @@ public Builder setLoggingSamplingStrategy( com.google.cloud.aiplatform.v1beta1.SamplingStrategy.Builder builderForValue) { if (loggingSamplingStrategyBuilder_ == null) { loggingSamplingStrategy_ = builderForValue.build(); - onChanged(); } else { loggingSamplingStrategyBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2248,20 +2264,19 @@ public Builder setLoggingSamplingStrategy( public Builder mergeLoggingSamplingStrategy( com.google.cloud.aiplatform.v1beta1.SamplingStrategy value) { if (loggingSamplingStrategyBuilder_ == null) { - if (loggingSamplingStrategy_ != null) { - loggingSamplingStrategy_ = - com.google.cloud.aiplatform.v1beta1.SamplingStrategy.newBuilder( - loggingSamplingStrategy_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && loggingSamplingStrategy_ != null + && loggingSamplingStrategy_ + != com.google.cloud.aiplatform.v1beta1.SamplingStrategy.getDefaultInstance()) { + getLoggingSamplingStrategyBuilder().mergeFrom(value); } else { loggingSamplingStrategy_ = value; } - onChanged(); } else { loggingSamplingStrategyBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2276,14 +2291,13 @@ public Builder mergeLoggingSamplingStrategy( * */ public Builder clearLoggingSamplingStrategy() { - if (loggingSamplingStrategyBuilder_ == null) { - loggingSamplingStrategy_ = null; - onChanged(); - } else { - loggingSamplingStrategy_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + loggingSamplingStrategy_ = null; + if (loggingSamplingStrategyBuilder_ != null) { + loggingSamplingStrategyBuilder_.dispose(); loggingSamplingStrategyBuilder_ = null; } - + onChanged(); return this; } /** @@ -2299,7 +2313,7 @@ public Builder clearLoggingSamplingStrategy() { */ public com.google.cloud.aiplatform.v1beta1.SamplingStrategy.Builder getLoggingSamplingStrategyBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getLoggingSamplingStrategyFieldBuilder().getBuilder(); } @@ -2490,7 +2504,6 @@ public interface TrainingPredictionSkewDetectionConfigOrBuilder * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> skew_thresholds = 1; * */ - /* nullable */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrDefault( java.lang.String key, @@ -2573,7 +2586,6 @@ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrThrow( * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_skew_thresholds = 2; * */ - /* nullable */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getAttributionScoreSkewThresholdsOrDefault( java.lang.String key, @@ -2719,6 +2731,7 @@ private static final class SkewThresholdsDefaultEntryHolder { com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> skewThresholds_; @@ -2798,8 +2811,11 @@ public boolean containsSkewThresholds(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig + getSkewThresholdsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2852,6 +2868,7 @@ private static final class AttributionScoreSkewThresholdsDefaultEntryHolder { com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> attributionScoreSkewThresholds_; @@ -2928,9 +2945,10 @@ public boolean containsAttributionScoreSkewThresholds(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ThresholdConfig + public /* nullable */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getAttributionScoreSkewThresholdsOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { if (key == null) { throw new NullPointerException("map key"); @@ -3018,7 +3036,9 @@ public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDefaultSkewThresho @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder getDefaultSkewThresholdOrBuilder() { - return getDefaultSkewThreshold(); + return defaultSkewThreshold_ == null + ? com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance() + : defaultSkewThreshold_; } private byte memoizedIsInitialized = -1; @@ -3330,12 +3350,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; internalGetMutableSkewThresholds().clear(); internalGetMutableAttributionScoreSkewThresholds().clear(); - if (defaultSkewThresholdBuilder_ == null) { - defaultSkewThreshold_ = null; - } else { - defaultSkewThreshold_ = null; + defaultSkewThreshold_ = null; + if (defaultSkewThresholdBuilder_ != null) { + defaultSkewThresholdBuilder_.dispose(); defaultSkewThresholdBuilder_ = null; } return this; @@ -3377,20 +3397,34 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig .TrainingPredictionSkewDetectionConfig(this); - int from_bitField0_ = bitField0_; - result.skewThresholds_ = internalGetSkewThresholds(); - result.skewThresholds_.makeImmutable(); - result.attributionScoreSkewThresholds_ = internalGetAttributionScoreSkewThresholds(); - result.attributionScoreSkewThresholds_.makeImmutable(); - if (defaultSkewThresholdBuilder_ == null) { - result.defaultSkewThreshold_ = defaultSkewThreshold_; - } else { - result.defaultSkewThreshold_ = defaultSkewThresholdBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.skewThresholds_ = internalGetSkewThresholds(); + result.skewThresholds_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.attributionScoreSkewThresholds_ = internalGetAttributionScoreSkewThresholds(); + result.attributionScoreSkewThresholds_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.defaultSkewThreshold_ = + defaultSkewThresholdBuilder_ == null + ? defaultSkewThreshold_ + : defaultSkewThresholdBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3450,8 +3484,10 @@ public Builder mergeFrom( == com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig .TrainingPredictionSkewDetectionConfig.getDefaultInstance()) return this; internalGetMutableSkewThresholds().mergeFrom(other.internalGetSkewThresholds()); + bitField0_ |= 0x00000001; internalGetMutableAttributionScoreSkewThresholds() .mergeFrom(other.internalGetAttributionScoreSkewThresholds()); + bitField0_ |= 0x00000002; if (other.hasDefaultSkewThreshold()) { mergeDefaultSkewThreshold(other.getDefaultSkewThreshold()); } @@ -3492,6 +3528,7 @@ public Builder mergeFrom( internalGetMutableSkewThresholds() .getMutableMap() .put(skewThresholds__.getKey(), skewThresholds__.getValue()); + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -3508,13 +3545,14 @@ public Builder mergeFrom( .put( attributionScoreSkewThresholds__.getKey(), attributionScoreSkewThresholds__.getValue()); + bitField0_ |= 0x00000002; break; } // case 18 case 50: { input.readMessage( getDefaultSkewThresholdFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 50 default: @@ -3553,8 +3591,6 @@ public Builder mergeFrom( private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> internalGetMutableSkewThresholds() { - onChanged(); - ; if (skewThresholds_ == null) { skewThresholds_ = com.google.protobuf.MapField.newMapField( @@ -3563,6 +3599,8 @@ public Builder mergeFrom( if (!skewThresholds_.isMutable()) { skewThresholds_ = skewThresholds_.copy(); } + bitField0_ |= 0x00000001; + onChanged(); return skewThresholds_; } @@ -3631,8 +3669,11 @@ public boolean containsSkewThresholds(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig + getSkewThresholdsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3669,6 +3710,7 @@ public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrTh } public Builder clearSkewThresholds() { + bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableSkewThresholds().getMutableMap().clear(); return this; } @@ -3697,6 +3739,7 @@ public Builder removeSkewThresholds(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableSkewThresholds() { + bitField0_ |= 0x00000001; return internalGetMutableSkewThresholds().getMutableMap(); } /** @@ -3721,8 +3764,8 @@ public Builder putSkewThresholds( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableSkewThresholds().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; return this; } /** @@ -3743,6 +3786,7 @@ public Builder putAllSkewThresholds( java.util.Map values) { internalGetMutableSkewThresholds().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; return this; } @@ -3763,8 +3807,6 @@ public Builder putAllSkewThresholds( private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> internalGetMutableAttributionScoreSkewThresholds() { - onChanged(); - ; if (attributionScoreSkewThresholds_ == null) { attributionScoreSkewThresholds_ = com.google.protobuf.MapField.newMapField( @@ -3773,6 +3815,8 @@ public Builder putAllSkewThresholds( if (!attributionScoreSkewThresholds_.isMutable()) { attributionScoreSkewThresholds_ = attributionScoreSkewThresholds_.copy(); } + bitField0_ |= 0x00000002; + onChanged(); return attributionScoreSkewThresholds_; } @@ -3838,9 +3882,10 @@ public boolean containsAttributionScoreSkewThresholds(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ThresholdConfig + public /* nullable */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getAttributionScoreSkewThresholdsOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { if (key == null) { throw new NullPointerException("map key"); @@ -3877,6 +3922,7 @@ public boolean containsAttributionScoreSkewThresholds(java.lang.String key) { } public Builder clearAttributionScoreSkewThresholds() { + bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableAttributionScoreSkewThresholds().getMutableMap().clear(); return this; } @@ -3904,6 +3950,7 @@ public Builder removeAttributionScoreSkewThresholds(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableAttributionScoreSkewThresholds() { + bitField0_ |= 0x00000002; return internalGetMutableAttributionScoreSkewThresholds().getMutableMap(); } /** @@ -3927,8 +3974,8 @@ public Builder putAttributionScoreSkewThresholds( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAttributionScoreSkewThresholds().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; return this; } /** @@ -3948,6 +3995,7 @@ public Builder putAllAttributionScoreSkewThresholds( java.util.Map values) { internalGetMutableAttributionScoreSkewThresholds().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; return this; } @@ -3971,7 +4019,7 @@ public Builder putAllAttributionScoreSkewThresholds( * @return Whether the defaultSkewThreshold field is set. */ public boolean hasDefaultSkewThreshold() { - return defaultSkewThresholdBuilder_ != null || defaultSkewThreshold_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -4013,11 +4061,11 @@ public Builder setDefaultSkewThreshold( throw new NullPointerException(); } defaultSkewThreshold_ = value; - onChanged(); } else { defaultSkewThresholdBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4035,11 +4083,11 @@ public Builder setDefaultSkewThreshold( com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder builderForValue) { if (defaultSkewThresholdBuilder_ == null) { defaultSkewThreshold_ = builderForValue.build(); - onChanged(); } else { defaultSkewThresholdBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4056,20 +4104,19 @@ public Builder setDefaultSkewThreshold( public Builder mergeDefaultSkewThreshold( com.google.cloud.aiplatform.v1beta1.ThresholdConfig value) { if (defaultSkewThresholdBuilder_ == null) { - if (defaultSkewThreshold_ != null) { - defaultSkewThreshold_ = - com.google.cloud.aiplatform.v1beta1.ThresholdConfig.newBuilder( - defaultSkewThreshold_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && defaultSkewThreshold_ != null + && defaultSkewThreshold_ + != com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance()) { + getDefaultSkewThresholdBuilder().mergeFrom(value); } else { defaultSkewThreshold_ = value; } - onChanged(); } else { defaultSkewThresholdBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4084,14 +4131,13 @@ public Builder mergeDefaultSkewThreshold( * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_skew_threshold = 6; */ public Builder clearDefaultSkewThreshold() { - if (defaultSkewThresholdBuilder_ == null) { - defaultSkewThreshold_ = null; - onChanged(); - } else { - defaultSkewThreshold_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + defaultSkewThreshold_ = null; + if (defaultSkewThresholdBuilder_ != null) { + defaultSkewThresholdBuilder_.dispose(); defaultSkewThresholdBuilder_ = null; } - + onChanged(); return this; } /** @@ -4107,7 +4153,7 @@ public Builder clearDefaultSkewThreshold() { */ public com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder getDefaultSkewThresholdBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getDefaultSkewThresholdFieldBuilder().getBuilder(); } @@ -4301,7 +4347,6 @@ public interface PredictionDriftDetectionConfigOrBuilder * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> drift_thresholds = 1; * */ - /* nullable */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrDefault( java.lang.String key, @@ -4380,7 +4425,6 @@ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrThrow( * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_drift_thresholds = 2; * */ - /* nullable */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getAttributionScoreDriftThresholdsOrDefault( java.lang.String key, @@ -4525,6 +4569,7 @@ private static final class DriftThresholdsDefaultEntryHolder { com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> driftThresholds_; @@ -4604,8 +4649,11 @@ public boolean containsDriftThresholds(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig + getDriftThresholdsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -4658,6 +4706,7 @@ private static final class AttributionScoreDriftThresholdsDefaultEntryHolder { com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> attributionScoreDriftThresholds_; @@ -4731,9 +4780,10 @@ public boolean containsAttributionScoreDriftThresholds(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ThresholdConfig + public /* nullable */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getAttributionScoreDriftThresholdsOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { if (key == null) { throw new NullPointerException("map key"); @@ -4820,7 +4870,9 @@ public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDefaultDriftThresh @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder getDefaultDriftThresholdOrBuilder() { - return getDefaultDriftThreshold(); + return defaultDriftThreshold_ == null + ? com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance() + : defaultDriftThreshold_; } private byte memoizedIsInitialized = -1; @@ -5131,12 +5183,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; internalGetMutableDriftThresholds().clear(); internalGetMutableAttributionScoreDriftThresholds().clear(); - if (defaultDriftThresholdBuilder_ == null) { - defaultDriftThreshold_ = null; - } else { - defaultDriftThreshold_ = null; + defaultDriftThreshold_ = null; + if (defaultDriftThresholdBuilder_ != null) { + defaultDriftThresholdBuilder_.dispose(); defaultDriftThresholdBuilder_ = null; } return this; @@ -5178,20 +5230,34 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig .PredictionDriftDetectionConfig(this); - int from_bitField0_ = bitField0_; - result.driftThresholds_ = internalGetDriftThresholds(); - result.driftThresholds_.makeImmutable(); - result.attributionScoreDriftThresholds_ = internalGetAttributionScoreDriftThresholds(); - result.attributionScoreDriftThresholds_.makeImmutable(); - if (defaultDriftThresholdBuilder_ == null) { - result.defaultDriftThreshold_ = defaultDriftThreshold_; - } else { - result.defaultDriftThreshold_ = defaultDriftThresholdBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.driftThresholds_ = internalGetDriftThresholds(); + result.driftThresholds_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.attributionScoreDriftThresholds_ = internalGetAttributionScoreDriftThresholds(); + result.attributionScoreDriftThresholds_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.defaultDriftThreshold_ = + defaultDriftThresholdBuilder_ == null + ? defaultDriftThreshold_ + : defaultDriftThresholdBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -5251,8 +5317,10 @@ public Builder mergeFrom( == com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig .PredictionDriftDetectionConfig.getDefaultInstance()) return this; internalGetMutableDriftThresholds().mergeFrom(other.internalGetDriftThresholds()); + bitField0_ |= 0x00000001; internalGetMutableAttributionScoreDriftThresholds() .mergeFrom(other.internalGetAttributionScoreDriftThresholds()); + bitField0_ |= 0x00000002; if (other.hasDefaultDriftThreshold()) { mergeDefaultDriftThreshold(other.getDefaultDriftThreshold()); } @@ -5293,6 +5361,7 @@ public Builder mergeFrom( internalGetMutableDriftThresholds() .getMutableMap() .put(driftThresholds__.getKey(), driftThresholds__.getValue()); + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -5309,13 +5378,14 @@ public Builder mergeFrom( .put( attributionScoreDriftThresholds__.getKey(), attributionScoreDriftThresholds__.getValue()); + bitField0_ |= 0x00000002; break; } // case 18 case 42: { input.readMessage( getDefaultDriftThresholdFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 42 default: @@ -5354,8 +5424,6 @@ public Builder mergeFrom( private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> internalGetMutableDriftThresholds() { - onChanged(); - ; if (driftThresholds_ == null) { driftThresholds_ = com.google.protobuf.MapField.newMapField( @@ -5364,6 +5432,8 @@ public Builder mergeFrom( if (!driftThresholds_.isMutable()) { driftThresholds_ = driftThresholds_.copy(); } + bitField0_ |= 0x00000001; + onChanged(); return driftThresholds_; } @@ -5432,8 +5502,11 @@ public boolean containsDriftThresholds(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig + getDriftThresholdsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -5470,6 +5543,7 @@ public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrT } public Builder clearDriftThresholds() { + bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableDriftThresholds().getMutableMap().clear(); return this; } @@ -5498,6 +5572,7 @@ public Builder removeDriftThresholds(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableDriftThresholds() { + bitField0_ |= 0x00000001; return internalGetMutableDriftThresholds().getMutableMap(); } /** @@ -5522,8 +5597,8 @@ public Builder putDriftThresholds( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableDriftThresholds().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; return this; } /** @@ -5544,6 +5619,7 @@ public Builder putAllDriftThresholds( java.util.Map values) { internalGetMutableDriftThresholds().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; return this; } @@ -5564,8 +5640,6 @@ public Builder putAllDriftThresholds( private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> internalGetMutableAttributionScoreDriftThresholds() { - onChanged(); - ; if (attributionScoreDriftThresholds_ == null) { attributionScoreDriftThresholds_ = com.google.protobuf.MapField.newMapField( @@ -5574,6 +5648,8 @@ public Builder putAllDriftThresholds( if (!attributionScoreDriftThresholds_.isMutable()) { attributionScoreDriftThresholds_ = attributionScoreDriftThresholds_.copy(); } + bitField0_ |= 0x00000002; + onChanged(); return attributionScoreDriftThresholds_; } @@ -5636,9 +5712,10 @@ public boolean containsAttributionScoreDriftThresholds(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ThresholdConfig + public /* nullable */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getAttributionScoreDriftThresholdsOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { if (key == null) { throw new NullPointerException("map key"); @@ -5674,6 +5751,7 @@ public boolean containsAttributionScoreDriftThresholds(java.lang.String key) { } public Builder clearAttributionScoreDriftThresholds() { + bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableAttributionScoreDriftThresholds().getMutableMap().clear(); return this; } @@ -5700,6 +5778,7 @@ public Builder removeAttributionScoreDriftThresholds(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableAttributionScoreDriftThresholds() { + bitField0_ |= 0x00000002; return internalGetMutableAttributionScoreDriftThresholds().getMutableMap(); } /** @@ -5722,8 +5801,8 @@ public Builder putAttributionScoreDriftThresholds( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAttributionScoreDriftThresholds().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; return this; } /** @@ -5742,6 +5821,7 @@ public Builder putAllAttributionScoreDriftThresholds( java.util.Map values) { internalGetMutableAttributionScoreDriftThresholds().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; return this; } @@ -5765,7 +5845,7 @@ public Builder putAllAttributionScoreDriftThresholds( * @return Whether the defaultDriftThreshold field is set. */ public boolean hasDefaultDriftThreshold() { - return defaultDriftThresholdBuilder_ != null || defaultDriftThreshold_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -5807,11 +5887,11 @@ public Builder setDefaultDriftThreshold( throw new NullPointerException(); } defaultDriftThreshold_ = value; - onChanged(); } else { defaultDriftThresholdBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -5829,11 +5909,11 @@ public Builder setDefaultDriftThreshold( com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder builderForValue) { if (defaultDriftThresholdBuilder_ == null) { defaultDriftThreshold_ = builderForValue.build(); - onChanged(); } else { defaultDriftThresholdBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -5850,20 +5930,19 @@ public Builder setDefaultDriftThreshold( public Builder mergeDefaultDriftThreshold( com.google.cloud.aiplatform.v1beta1.ThresholdConfig value) { if (defaultDriftThresholdBuilder_ == null) { - if (defaultDriftThreshold_ != null) { - defaultDriftThreshold_ = - com.google.cloud.aiplatform.v1beta1.ThresholdConfig.newBuilder( - defaultDriftThreshold_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && defaultDriftThreshold_ != null + && defaultDriftThreshold_ + != com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance()) { + getDefaultDriftThresholdBuilder().mergeFrom(value); } else { defaultDriftThreshold_ = value; } - onChanged(); } else { defaultDriftThresholdBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -5878,14 +5957,13 @@ public Builder mergeDefaultDriftThreshold( * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_drift_threshold = 5; */ public Builder clearDefaultDriftThreshold() { - if (defaultDriftThresholdBuilder_ == null) { - defaultDriftThreshold_ = null; - onChanged(); - } else { - defaultDriftThreshold_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + defaultDriftThreshold_ = null; + if (defaultDriftThresholdBuilder_ != null) { + defaultDriftThresholdBuilder_.dispose(); defaultDriftThresholdBuilder_ = null; } - + onChanged(); return this; } /** @@ -5901,7 +5979,7 @@ public Builder clearDefaultDriftThreshold() { */ public com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder getDefaultDriftThresholdBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getDefaultDriftThresholdFieldBuilder().getBuilder(); } @@ -6623,7 +6701,7 @@ public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigquery() { } public static final int PREDICTION_FORMAT_FIELD_NUMBER = 1; - private int predictionFormat_; + private int predictionFormat_ = 0; /** * * @@ -6658,12 +6736,11 @@ public int getPredictionFormatValue() { public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig .ExplanationBaseline.PredictionFormat getPredictionFormat() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig .ExplanationBaseline.PredictionFormat result = com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig - .ExplanationBaseline.PredictionFormat.valueOf(predictionFormat_); + .ExplanationBaseline.PredictionFormat.forNumber(predictionFormat_); return result == null ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig .ExplanationBaseline.PredictionFormat.UNRECOGNIZED @@ -6953,6 +7030,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (gcsBuilder_ != null) { gcsBuilder_.clear(); } @@ -6960,7 +7038,6 @@ public Builder clear() { bigqueryBuilder_.clear(); } predictionFormat_ = 0; - destinationCase_ = 0; destination_ = null; return this; @@ -7002,26 +7079,38 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig .ExplanationConfig.ExplanationBaseline(this); - if (destinationCase_ == 2) { - if (gcsBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = gcsBuilder_.build(); - } - } - if (destinationCase_ == 3) { - if (bigqueryBuilder_ == null) { - result.destination_ = destination_; - } else { - result.destination_ = bigqueryBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - result.predictionFormat_ = predictionFormat_; - result.destinationCase_ = destinationCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.predictionFormat_ = predictionFormat_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline + result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + if (destinationCase_ == 2 && gcsBuilder_ != null) { + result.destination_ = gcsBuilder_.build(); + } + if (destinationCase_ == 3 && bigqueryBuilder_ != null) { + result.destination_ = bigqueryBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -7128,7 +7217,7 @@ public Builder mergeFrom( case 8: { predictionFormat_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 8 case 18: @@ -7174,6 +7263,8 @@ public Builder clearDestination() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GcsDestination, com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder, @@ -7382,7 +7473,6 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder getGcsOrBuild } destinationCase_ = 2; onChanged(); - ; return gcsBuilder_; } @@ -7598,7 +7688,6 @@ public Builder clearBigquery() { } destinationCase_ = 3; onChanged(); - ; return bigqueryBuilder_; } @@ -7635,8 +7724,8 @@ public int getPredictionFormatValue() { * @return This builder for chaining. */ public Builder setPredictionFormatValue(int value) { - predictionFormat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -7657,12 +7746,11 @@ public Builder setPredictionFormatValue(int value) { public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig .ExplanationBaseline.PredictionFormat getPredictionFormat() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig .ExplanationBaseline.PredictionFormat result = com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .ExplanationConfig.ExplanationBaseline.PredictionFormat.valueOf( + .ExplanationConfig.ExplanationBaseline.PredictionFormat.forNumber( predictionFormat_); return result == null ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig @@ -7690,7 +7778,7 @@ public Builder setPredictionFormat( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; predictionFormat_ = value.getNumber(); onChanged(); return this; @@ -7709,7 +7797,7 @@ public Builder setPredictionFormat( * @return This builder for chaining. */ public Builder clearPredictionFormat() { - + bitField0_ = (bitField0_ & ~0x00000004); predictionFormat_ = 0; onChanged(); return this; @@ -7788,7 +7876,7 @@ public com.google.protobuf.Parser getParserForType() { } public static final int ENABLE_FEATURE_ATTRIBUTES_FIELD_NUMBER = 1; - private boolean enableFeatureAttributes_; + private boolean enableFeatureAttributes_ = false; /** * * @@ -7865,7 +7953,10 @@ public boolean hasExplanationBaseline() { public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig .ExplanationBaselineOrBuilder getExplanationBaselineOrBuilder() { - return getExplanationBaseline(); + return explanationBaseline_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.getDefaultInstance() + : explanationBaseline_; } private byte memoizedIsInitialized = -1; @@ -8111,12 +8202,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; enableFeatureAttributes_ = false; - - if (explanationBaselineBuilder_ == null) { - explanationBaseline_ = null; - } else { - explanationBaseline_ = null; + explanationBaseline_ = null; + if (explanationBaselineBuilder_ != null) { + explanationBaselineBuilder_.dispose(); explanationBaselineBuilder_ = null; } return this; @@ -8153,16 +8243,28 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig .ExplanationConfig(this); - result.enableFeatureAttributes_ = enableFeatureAttributes_; - if (explanationBaselineBuilder_ == null) { - result.explanationBaseline_ = explanationBaseline_; - } else { - result.explanationBaseline_ = explanationBaselineBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableFeatureAttributes_ = enableFeatureAttributes_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.explanationBaseline_ = + explanationBaselineBuilder_ == null + ? explanationBaseline_ + : explanationBaselineBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -8253,14 +8355,14 @@ public Builder mergeFrom( case 8: { enableFeatureAttributes_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getExplanationBaselineFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -8280,6 +8382,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean enableFeatureAttributes_; /** * @@ -8315,6 +8419,7 @@ public boolean getEnableFeatureAttributes() { public Builder setEnableFeatureAttributes(boolean value) { enableFeatureAttributes_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -8332,7 +8437,7 @@ public Builder setEnableFeatureAttributes(boolean value) { * @return This builder for chaining. */ public Builder clearEnableFeatureAttributes() { - + bitField0_ = (bitField0_ & ~0x00000001); enableFeatureAttributes_ = false; onChanged(); return this; @@ -8363,7 +8468,7 @@ public Builder clearEnableFeatureAttributes() { * @return Whether the explanationBaseline field is set. */ public boolean hasExplanationBaseline() { - return explanationBaselineBuilder_ != null || explanationBaseline_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -8410,11 +8515,11 @@ public Builder setExplanationBaseline( throw new NullPointerException(); } explanationBaseline_ = value; - onChanged(); } else { explanationBaselineBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -8434,11 +8539,11 @@ public Builder setExplanationBaseline( builderForValue) { if (explanationBaselineBuilder_ == null) { explanationBaseline_ = builderForValue.build(); - onChanged(); } else { explanationBaselineBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -8457,20 +8562,20 @@ public Builder mergeExplanationBaseline( .ExplanationBaseline value) { if (explanationBaselineBuilder_ == null) { - if (explanationBaseline_ != null) { - explanationBaseline_ = - com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig - .ExplanationBaseline.newBuilder(explanationBaseline_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && explanationBaseline_ != null + && explanationBaseline_ + != com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline.getDefaultInstance()) { + getExplanationBaselineBuilder().mergeFrom(value); } else { explanationBaseline_ = value; } - onChanged(); } else { explanationBaselineBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -8485,14 +8590,13 @@ public Builder mergeExplanationBaseline( * */ public Builder clearExplanationBaseline() { - if (explanationBaselineBuilder_ == null) { - explanationBaseline_ = null; - onChanged(); - } else { - explanationBaseline_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + explanationBaseline_ = null; + if (explanationBaselineBuilder_ != null) { + explanationBaselineBuilder_.dispose(); explanationBaselineBuilder_ = null; } - + onChanged(); return this; } /** @@ -8509,7 +8613,7 @@ public Builder clearExplanationBaseline() { public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig .ExplanationBaseline.Builder getExplanationBaselineBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getExplanationBaselineFieldBuilder().getBuilder(); } @@ -8699,7 +8803,10 @@ public boolean hasTrainingDataset() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDatasetOrBuilder getTrainingDatasetOrBuilder() { - return getTrainingDataset(); + return trainingDataset_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + .getDefaultInstance() + : trainingDataset_; } public static final int TRAINING_PREDICTION_SKEW_DETECTION_CONFIG_FIELD_NUMBER = 2; @@ -8760,7 +8867,10 @@ public boolean hasTrainingPredictionSkewDetectionConfig() { public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig .TrainingPredictionSkewDetectionConfigOrBuilder getTrainingPredictionSkewDetectionConfigOrBuilder() { - return getTrainingPredictionSkewDetectionConfig(); + return trainingPredictionSkewDetectionConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig.getDefaultInstance() + : trainingPredictionSkewDetectionConfig_; } public static final int PREDICTION_DRIFT_DETECTION_CONFIG_FIELD_NUMBER = 3; @@ -8821,7 +8931,10 @@ public boolean hasPredictionDriftDetectionConfig() { public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig .PredictionDriftDetectionConfigOrBuilder getPredictionDriftDetectionConfigOrBuilder() { - return getPredictionDriftDetectionConfig(); + return predictionDriftDetectionConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig.getDefaultInstance() + : predictionDriftDetectionConfig_; } public static final int EXPLANATION_CONFIG_FIELD_NUMBER = 5; @@ -8880,7 +8993,10 @@ public boolean hasExplanationConfig() { public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig .ExplanationConfigOrBuilder getExplanationConfigOrBuilder() { - return getExplanationConfig(); + return explanationConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .getDefaultInstance() + : explanationConfig_; } private byte memoizedIsInitialized = -1; @@ -9139,28 +9255,25 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (trainingDatasetBuilder_ == null) { - trainingDataset_ = null; - } else { - trainingDataset_ = null; + bitField0_ = 0; + trainingDataset_ = null; + if (trainingDatasetBuilder_ != null) { + trainingDatasetBuilder_.dispose(); trainingDatasetBuilder_ = null; } - if (trainingPredictionSkewDetectionConfigBuilder_ == null) { - trainingPredictionSkewDetectionConfig_ = null; - } else { - trainingPredictionSkewDetectionConfig_ = null; + trainingPredictionSkewDetectionConfig_ = null; + if (trainingPredictionSkewDetectionConfigBuilder_ != null) { + trainingPredictionSkewDetectionConfigBuilder_.dispose(); trainingPredictionSkewDetectionConfigBuilder_ = null; } - if (predictionDriftDetectionConfigBuilder_ == null) { - predictionDriftDetectionConfig_ = null; - } else { - predictionDriftDetectionConfig_ = null; + predictionDriftDetectionConfig_ = null; + if (predictionDriftDetectionConfigBuilder_ != null) { + predictionDriftDetectionConfigBuilder_.dispose(); predictionDriftDetectionConfigBuilder_ = null; } - if (explanationConfigBuilder_ == null) { - explanationConfig_ = null; - } else { - explanationConfig_ = null; + explanationConfig_ = null; + if (explanationConfigBuilder_ != null) { + explanationConfigBuilder_.dispose(); explanationConfigBuilder_ = null; } return this; @@ -9192,29 +9305,38 @@ public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig build( public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig result = new com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig(this); - if (trainingDatasetBuilder_ == null) { - result.trainingDataset_ = trainingDataset_; - } else { - result.trainingDataset_ = trainingDatasetBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (trainingPredictionSkewDetectionConfigBuilder_ == null) { - result.trainingPredictionSkewDetectionConfig_ = trainingPredictionSkewDetectionConfig_; - } else { + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trainingDataset_ = + trainingDatasetBuilder_ == null ? trainingDataset_ : trainingDatasetBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { result.trainingPredictionSkewDetectionConfig_ = - trainingPredictionSkewDetectionConfigBuilder_.build(); + trainingPredictionSkewDetectionConfigBuilder_ == null + ? trainingPredictionSkewDetectionConfig_ + : trainingPredictionSkewDetectionConfigBuilder_.build(); } - if (predictionDriftDetectionConfigBuilder_ == null) { - result.predictionDriftDetectionConfig_ = predictionDriftDetectionConfig_; - } else { - result.predictionDriftDetectionConfig_ = predictionDriftDetectionConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.predictionDriftDetectionConfig_ = + predictionDriftDetectionConfigBuilder_ == null + ? predictionDriftDetectionConfig_ + : predictionDriftDetectionConfigBuilder_.build(); } - if (explanationConfigBuilder_ == null) { - result.explanationConfig_ = explanationConfig_; - } else { - result.explanationConfig_ = explanationConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.explanationConfig_ = + explanationConfigBuilder_ == null + ? explanationConfig_ + : explanationConfigBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -9308,7 +9430,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getTrainingDatasetFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -9316,7 +9438,7 @@ public Builder mergeFrom( input.readMessage( getTrainingPredictionSkewDetectionConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -9324,14 +9446,14 @@ public Builder mergeFrom( input.readMessage( getPredictionDriftDetectionConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 42: { input.readMessage( getExplanationConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 42 default: @@ -9351,6 +9473,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset trainingDataset_; private com.google.protobuf.SingleFieldBuilderV3< @@ -9375,7 +9499,7 @@ public Builder mergeFrom( * @return Whether the trainingDataset field is set. */ public boolean hasTrainingDataset() { - return trainingDatasetBuilder_ != null || trainingDataset_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -9421,11 +9545,11 @@ public Builder setTrainingDataset( throw new NullPointerException(); } trainingDataset_ = value; - onChanged(); } else { trainingDatasetBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -9445,11 +9569,11 @@ public Builder setTrainingDataset( builderForValue) { if (trainingDatasetBuilder_ == null) { trainingDataset_ = builderForValue.build(); - onChanged(); } else { trainingDatasetBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -9467,20 +9591,20 @@ public Builder setTrainingDataset( public Builder mergeTrainingDataset( com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset value) { if (trainingDatasetBuilder_ == null) { - if (trainingDataset_ != null) { - trainingDataset_ = - com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - .newBuilder(trainingDataset_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && trainingDataset_ != null + && trainingDataset_ + != com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingDataset.getDefaultInstance()) { + getTrainingDatasetBuilder().mergeFrom(value); } else { trainingDataset_ = value; } - onChanged(); } else { trainingDatasetBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -9496,14 +9620,13 @@ public Builder mergeTrainingDataset( * */ public Builder clearTrainingDataset() { - if (trainingDatasetBuilder_ == null) { - trainingDataset_ = null; - onChanged(); - } else { - trainingDataset_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + trainingDataset_ = null; + if (trainingDatasetBuilder_ != null) { + trainingDatasetBuilder_.dispose(); trainingDatasetBuilder_ = null; } - + onChanged(); return this; } /** @@ -9521,7 +9644,7 @@ public Builder clearTrainingDataset() { public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset .Builder getTrainingDatasetBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getTrainingDatasetFieldBuilder().getBuilder(); } @@ -9607,8 +9730,7 @@ public Builder clearTrainingDataset() { * @return Whether the trainingPredictionSkewDetectionConfig field is set. */ public boolean hasTrainingPredictionSkewDetectionConfig() { - return trainingPredictionSkewDetectionConfigBuilder_ != null - || trainingPredictionSkewDetectionConfig_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -9655,11 +9777,11 @@ public Builder setTrainingPredictionSkewDetectionConfig( throw new NullPointerException(); } trainingPredictionSkewDetectionConfig_ = value; - onChanged(); } else { trainingPredictionSkewDetectionConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -9679,11 +9801,11 @@ public Builder setTrainingPredictionSkewDetectionConfig( builderForValue) { if (trainingPredictionSkewDetectionConfigBuilder_ == null) { trainingPredictionSkewDetectionConfig_ = builderForValue.build(); - onChanged(); } else { trainingPredictionSkewDetectionConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -9702,21 +9824,20 @@ public Builder mergeTrainingPredictionSkewDetectionConfig( .TrainingPredictionSkewDetectionConfig value) { if (trainingPredictionSkewDetectionConfigBuilder_ == null) { - if (trainingPredictionSkewDetectionConfig_ != null) { - trainingPredictionSkewDetectionConfig_ = - com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .TrainingPredictionSkewDetectionConfig.newBuilder( - trainingPredictionSkewDetectionConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && trainingPredictionSkewDetectionConfig_ != null + && trainingPredictionSkewDetectionConfig_ + != com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig.getDefaultInstance()) { + getTrainingPredictionSkewDetectionConfigBuilder().mergeFrom(value); } else { trainingPredictionSkewDetectionConfig_ = value; } - onChanged(); } else { trainingPredictionSkewDetectionConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -9731,14 +9852,13 @@ public Builder mergeTrainingPredictionSkewDetectionConfig( * */ public Builder clearTrainingPredictionSkewDetectionConfig() { - if (trainingPredictionSkewDetectionConfigBuilder_ == null) { - trainingPredictionSkewDetectionConfig_ = null; - onChanged(); - } else { - trainingPredictionSkewDetectionConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + trainingPredictionSkewDetectionConfig_ = null; + if (trainingPredictionSkewDetectionConfigBuilder_ != null) { + trainingPredictionSkewDetectionConfigBuilder_.dispose(); trainingPredictionSkewDetectionConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -9755,7 +9875,7 @@ public Builder clearTrainingPredictionSkewDetectionConfig() { public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig .TrainingPredictionSkewDetectionConfig.Builder getTrainingPredictionSkewDetectionConfigBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTrainingPredictionSkewDetectionConfigFieldBuilder().getBuilder(); } @@ -9841,8 +9961,7 @@ public Builder clearTrainingPredictionSkewDetectionConfig() { * @return Whether the predictionDriftDetectionConfig field is set. */ public boolean hasPredictionDriftDetectionConfig() { - return predictionDriftDetectionConfigBuilder_ != null - || predictionDriftDetectionConfig_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -9889,11 +10008,11 @@ public Builder setPredictionDriftDetectionConfig( throw new NullPointerException(); } predictionDriftDetectionConfig_ = value; - onChanged(); } else { predictionDriftDetectionConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -9913,11 +10032,11 @@ public Builder setPredictionDriftDetectionConfig( builderForValue) { if (predictionDriftDetectionConfigBuilder_ == null) { predictionDriftDetectionConfig_ = builderForValue.build(); - onChanged(); } else { predictionDriftDetectionConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -9936,20 +10055,20 @@ public Builder mergePredictionDriftDetectionConfig( .PredictionDriftDetectionConfig value) { if (predictionDriftDetectionConfigBuilder_ == null) { - if (predictionDriftDetectionConfig_ != null) { - predictionDriftDetectionConfig_ = - com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig.newBuilder(predictionDriftDetectionConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && predictionDriftDetectionConfig_ != null + && predictionDriftDetectionConfig_ + != com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig.getDefaultInstance()) { + getPredictionDriftDetectionConfigBuilder().mergeFrom(value); } else { predictionDriftDetectionConfig_ = value; } - onChanged(); } else { predictionDriftDetectionConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -9964,14 +10083,13 @@ public Builder mergePredictionDriftDetectionConfig( * */ public Builder clearPredictionDriftDetectionConfig() { - if (predictionDriftDetectionConfigBuilder_ == null) { - predictionDriftDetectionConfig_ = null; - onChanged(); - } else { - predictionDriftDetectionConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + predictionDriftDetectionConfig_ = null; + if (predictionDriftDetectionConfigBuilder_ != null) { + predictionDriftDetectionConfigBuilder_.dispose(); predictionDriftDetectionConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -9988,7 +10106,7 @@ public Builder clearPredictionDriftDetectionConfig() { public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig .PredictionDriftDetectionConfig.Builder getPredictionDriftDetectionConfigBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getPredictionDriftDetectionConfigFieldBuilder().getBuilder(); } @@ -10072,7 +10190,7 @@ public Builder clearPredictionDriftDetectionConfig() { * @return Whether the explanationConfig field is set. */ public boolean hasExplanationConfig() { - return explanationConfigBuilder_ != null || explanationConfig_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -10117,11 +10235,11 @@ public Builder setExplanationConfig( throw new NullPointerException(); } explanationConfig_ = value; - onChanged(); } else { explanationConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -10140,11 +10258,11 @@ public Builder setExplanationConfig( builderForValue) { if (explanationConfigBuilder_ == null) { explanationConfig_ = builderForValue.build(); - onChanged(); } else { explanationConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -10162,20 +10280,20 @@ public Builder mergeExplanationConfig( com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig value) { if (explanationConfigBuilder_ == null) { - if (explanationConfig_ != null) { - explanationConfig_ = - com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig - .newBuilder(explanationConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && explanationConfig_ != null + && explanationConfig_ + != com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.getDefaultInstance()) { + getExplanationConfigBuilder().mergeFrom(value); } else { explanationConfig_ = value; } - onChanged(); } else { explanationConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -10190,14 +10308,13 @@ public Builder mergeExplanationConfig( * */ public Builder clearExplanationConfig() { - if (explanationConfigBuilder_ == null) { - explanationConfig_ = null; - onChanged(); - } else { - explanationConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + explanationConfig_ = null; + if (explanationConfigBuilder_ != null) { + explanationConfigBuilder_.dispose(); explanationConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -10214,7 +10331,7 @@ public Builder clearExplanationConfig() { public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig .Builder getExplanationConfigBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getExplanationConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringStatsAnomalies.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringStatsAnomalies.java index 3950b12fa0b9..381bd09c38fb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringStatsAnomalies.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringStatsAnomalies.java @@ -289,7 +289,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int FEATURE_DISPLAY_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object featureDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object featureDisplayName_ = ""; /** * * @@ -382,7 +384,9 @@ public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getThreshold() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder getThresholdOrBuilder() { - return getThreshold(); + return threshold_ == null + ? com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance() + : threshold_; } public static final int TRAINING_STATS_FIELD_NUMBER = 4; @@ -431,10 +435,14 @@ public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly getTrainingStats( @java.lang.Override public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder getTrainingStatsOrBuilder() { - return getTrainingStats(); + return trainingStats_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.getDefaultInstance() + : trainingStats_; } public static final int PREDICTION_STATS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private java.util.List predictionStats_; /** @@ -789,18 +797,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; featureDisplayName_ = ""; - - if (thresholdBuilder_ == null) { - threshold_ = null; - } else { - threshold_ = null; + threshold_ = null; + if (thresholdBuilder_ != null) { + thresholdBuilder_.dispose(); thresholdBuilder_ = null; } - if (trainingStatsBuilder_ == null) { - trainingStats_ = null; - } else { - trainingStats_ = null; + trainingStats_ = null; + if (trainingStatsBuilder_ != null) { + trainingStatsBuilder_.dispose(); trainingStatsBuilder_ = null; } if (predictionStatsBuilder_ == null) { @@ -809,7 +815,7 @@ public Builder clear() { predictionStats_ = null; predictionStatsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -849,29 +855,44 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies .FeatureHistoricStatsAnomalies(this); - int from_bitField0_ = bitField0_; - result.featureDisplayName_ = featureDisplayName_; - if (thresholdBuilder_ == null) { - result.threshold_ = threshold_; - } else { - result.threshold_ = thresholdBuilder_.build(); - } - if (trainingStatsBuilder_ == null) { - result.trainingStats_ = trainingStats_; - } else { - result.trainingStats_ = trainingStatsBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + result) { if (predictionStatsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { predictionStats_ = java.util.Collections.unmodifiableList(predictionStats_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.predictionStats_ = predictionStats_; } else { result.predictionStats_ = predictionStatsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + .FeatureHistoricStatsAnomalies + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.featureDisplayName_ = featureDisplayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.threshold_ = thresholdBuilder_ == null ? threshold_ : thresholdBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.trainingStats_ = + trainingStatsBuilder_ == null ? trainingStats_ : trainingStatsBuilder_.build(); + } } @java.lang.Override @@ -934,6 +955,7 @@ public Builder mergeFrom( .FeatureHistoricStatsAnomalies.getDefaultInstance()) return this; if (!other.getFeatureDisplayName().isEmpty()) { featureDisplayName_ = other.featureDisplayName_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasThreshold()) { @@ -946,7 +968,7 @@ public Builder mergeFrom( if (!other.predictionStats_.isEmpty()) { if (predictionStats_.isEmpty()) { predictionStats_ = other.predictionStats_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePredictionStatsIsMutable(); predictionStats_.addAll(other.predictionStats_); @@ -959,7 +981,7 @@ public Builder mergeFrom( predictionStatsBuilder_.dispose(); predictionStatsBuilder_ = null; predictionStats_ = other.predictionStats_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); predictionStatsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPredictionStatsFieldBuilder() @@ -998,19 +1020,19 @@ public Builder mergeFrom( case 10: { featureDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: { input.readMessage(getThresholdFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 26 case 34: { input.readMessage(getTrainingStatsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 34 case 42: @@ -1107,8 +1129,8 @@ public Builder setFeatureDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - featureDisplayName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1124,8 +1146,8 @@ public Builder setFeatureDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFeatureDisplayName() { - featureDisplayName_ = getDefaultInstance().getFeatureDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1146,8 +1168,8 @@ public Builder setFeatureDisplayNameBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - featureDisplayName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1170,7 +1192,7 @@ public Builder setFeatureDisplayNameBytes(com.google.protobuf.ByteString value) * @return Whether the threshold field is set. */ public boolean hasThreshold() { - return thresholdBuilder_ != null || threshold_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1207,11 +1229,11 @@ public Builder setThreshold(com.google.cloud.aiplatform.v1beta1.ThresholdConfig throw new NullPointerException(); } threshold_ = value; - onChanged(); } else { thresholdBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1227,11 +1249,11 @@ public Builder setThreshold( com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder builderForValue) { if (thresholdBuilder_ == null) { threshold_ = builderForValue.build(); - onChanged(); } else { thresholdBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1245,19 +1267,19 @@ public Builder setThreshold( */ public Builder mergeThreshold(com.google.cloud.aiplatform.v1beta1.ThresholdConfig value) { if (thresholdBuilder_ == null) { - if (threshold_ != null) { - threshold_ = - com.google.cloud.aiplatform.v1beta1.ThresholdConfig.newBuilder(threshold_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && threshold_ != null + && threshold_ + != com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance()) { + getThresholdBuilder().mergeFrom(value); } else { threshold_ = value; } - onChanged(); } else { thresholdBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1270,14 +1292,13 @@ public Builder mergeThreshold(com.google.cloud.aiplatform.v1beta1.ThresholdConfi * .google.cloud.aiplatform.v1beta1.ThresholdConfig threshold = 3; */ public Builder clearThreshold() { - if (thresholdBuilder_ == null) { - threshold_ = null; - onChanged(); - } else { - threshold_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + threshold_ = null; + if (thresholdBuilder_ != null) { + thresholdBuilder_.dispose(); thresholdBuilder_ = null; } - + onChanged(); return this; } /** @@ -1290,7 +1311,7 @@ public Builder clearThreshold() { * .google.cloud.aiplatform.v1beta1.ThresholdConfig threshold = 3; */ public com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder getThresholdBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getThresholdFieldBuilder().getBuilder(); } @@ -1356,7 +1377,7 @@ public com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder getThreshold * @return Whether the trainingStats field is set. */ public boolean hasTrainingStats() { - return trainingStatsBuilder_ != null || trainingStats_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1394,11 +1415,11 @@ public Builder setTrainingStats( throw new NullPointerException(); } trainingStats_ = value; - onChanged(); } else { trainingStatsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1414,11 +1435,11 @@ public Builder setTrainingStats( com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder builderForValue) { if (trainingStatsBuilder_ == null) { trainingStats_ = builderForValue.build(); - onChanged(); } else { trainingStatsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1433,19 +1454,19 @@ public Builder setTrainingStats( public Builder mergeTrainingStats( com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly value) { if (trainingStatsBuilder_ == null) { - if (trainingStats_ != null) { - trainingStats_ = - com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.newBuilder(trainingStats_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && trainingStats_ != null + && trainingStats_ + != com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.getDefaultInstance()) { + getTrainingStatsBuilder().mergeFrom(value); } else { trainingStats_ = value; } - onChanged(); } else { trainingStatsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1458,14 +1479,13 @@ public Builder mergeTrainingStats( * .google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly training_stats = 4; */ public Builder clearTrainingStats() { - if (trainingStatsBuilder_ == null) { - trainingStats_ = null; - onChanged(); - } else { - trainingStats_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + trainingStats_ = null; + if (trainingStatsBuilder_ != null) { + trainingStatsBuilder_.dispose(); trainingStatsBuilder_ = null; } - + onChanged(); return this; } /** @@ -1479,7 +1499,7 @@ public Builder clearTrainingStats() { */ public com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder getTrainingStatsBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getTrainingStatsFieldBuilder().getBuilder(); } @@ -1532,11 +1552,11 @@ public Builder clearTrainingStats() { predictionStats_ = java.util.Collections.emptyList(); private void ensurePredictionStatsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { predictionStats_ = new java.util.ArrayList( predictionStats_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -1781,7 +1801,7 @@ public Builder addAllPredictionStats( public Builder clearPredictionStats() { if (predictionStatsBuilder_ == null) { predictionStats_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { predictionStatsBuilder_.clear(); @@ -1926,7 +1946,7 @@ public Builder removePredictionStats(int index) { com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.Builder, com.google.cloud.aiplatform.v1beta1.FeatureStatsAnomalyOrBuilder>( predictionStats_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); predictionStats_ = null; @@ -2007,7 +2027,7 @@ public com.google.protobuf.Parser getParserForTyp } public static final int OBJECTIVE_FIELD_NUMBER = 1; - private int objective_; + private int objective_ = 0; /** * * @@ -2038,9 +2058,8 @@ public int getObjectiveValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType getObjective() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType result = - com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.valueOf( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.forNumber( objective_); return result == null ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.UNRECOGNIZED @@ -2048,7 +2067,9 @@ public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveTyp } public static final int DEPLOYED_MODEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deployedModelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedModelId_ = ""; /** * * @@ -2097,7 +2118,7 @@ public com.google.protobuf.ByteString getDeployedModelIdBytes() { } public static final int ANOMALY_COUNT_FIELD_NUMBER = 3; - private int anomalyCount_; + private int anomalyCount_ = 0; /** * * @@ -2115,6 +2136,8 @@ public int getAnomalyCount() { } public static final int FEATURE_STATS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies .FeatureHistoricStatsAnomalies> @@ -2441,19 +2464,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; objective_ = 0; - deployedModelId_ = ""; - anomalyCount_ = 0; - if (featureStatsBuilder_ == null) { featureStats_ = java.util.Collections.emptyList(); } else { featureStats_ = null; featureStatsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -2482,21 +2503,39 @@ public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies build() public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies buildPartial() { com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies result = new com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies(this); - int from_bitField0_ = bitField0_; - result.objective_ = objective_; - result.deployedModelId_ = deployedModelId_; - result.anomalyCount_ = anomalyCount_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies result) { if (featureStatsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { featureStats_ = java.util.Collections.unmodifiableList(featureStats_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.featureStats_ = featureStats_; } else { result.featureStats_ = featureStatsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.objective_ = objective_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedModelId_ = deployedModelId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.anomalyCount_ = anomalyCount_; + } } @java.lang.Override @@ -2552,6 +2591,7 @@ public Builder mergeFrom( } if (!other.getDeployedModelId().isEmpty()) { deployedModelId_ = other.deployedModelId_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getAnomalyCount() != 0) { @@ -2561,7 +2601,7 @@ public Builder mergeFrom( if (!other.featureStats_.isEmpty()) { if (featureStats_.isEmpty()) { featureStats_ = other.featureStats_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureFeatureStatsIsMutable(); featureStats_.addAll(other.featureStats_); @@ -2574,7 +2614,7 @@ public Builder mergeFrom( featureStatsBuilder_.dispose(); featureStatsBuilder_ = null; featureStats_ = other.featureStats_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); featureStatsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFeatureStatsFieldBuilder() @@ -2613,19 +2653,19 @@ public Builder mergeFrom( case 8: { objective_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { deployedModelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { anomalyCount_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: @@ -2695,8 +2735,8 @@ public int getObjectiveValue() { * @return This builder for chaining. */ public Builder setObjectiveValue(int value) { - objective_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2715,9 +2755,8 @@ public Builder setObjectiveValue(int value) { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType getObjective() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType result = - com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.valueOf( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.forNumber( objective_); return result == null ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.UNRECOGNIZED @@ -2741,7 +2780,7 @@ public Builder setObjective( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; objective_ = value.getNumber(); onChanged(); return this; @@ -2759,7 +2798,7 @@ public Builder setObjective( * @return This builder for chaining. */ public Builder clearObjective() { - + bitField0_ = (bitField0_ & ~0x00000001); objective_ = 0; onChanged(); return this; @@ -2826,8 +2865,8 @@ public Builder setDeployedModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2843,8 +2882,8 @@ public Builder setDeployedModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedModelId() { - deployedModelId_ = getDefaultInstance().getDeployedModelId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2865,8 +2904,8 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2902,6 +2941,7 @@ public int getAnomalyCount() { public Builder setAnomalyCount(int value) { anomalyCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2917,7 +2957,7 @@ public Builder setAnomalyCount(int value) { * @return This builder for chaining. */ public Builder clearAnomalyCount() { - + bitField0_ = (bitField0_ & ~0x00000004); anomalyCount_ = 0; onChanged(); return this; @@ -2929,12 +2969,12 @@ public Builder clearAnomalyCount() { featureStats_ = java.util.Collections.emptyList(); private void ensureFeatureStatsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { featureStats_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies .FeatureHistoricStatsAnomalies>(featureStats_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -3203,7 +3243,7 @@ public Builder addAllFeatureStats( public Builder clearFeatureStats() { if (featureStatsBuilder_ == null) { featureStats_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { featureStatsBuilder_.clear(); @@ -3363,7 +3403,7 @@ public Builder removeFeatureStats(int index) { .FeatureHistoricStatsAnomalies.Builder, com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies .FeatureHistoricStatsAnomaliesOrBuilder>( - featureStats_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + featureStats_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); featureStats_ = null; } return featureStatsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelOrBuilder.java index 6173a43a10c0..67d76e5bd9c6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelOrBuilder.java @@ -1520,7 +1520,6 @@ com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder getDeployedModelsO * * map<string, string> labels = 17; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelSourceInfo.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelSourceInfo.java index 440ca1daa396..bb8669b161e9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelSourceInfo.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelSourceInfo.java @@ -251,7 +251,7 @@ private ModelSourceType(int value) { } public static final int SOURCE_TYPE_FIELD_NUMBER = 1; - private int sourceType_; + private int sourceType_ = 0; /** * * @@ -280,9 +280,8 @@ public int getSourceTypeValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType getSourceType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType result = - com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType.valueOf(sourceType_); + com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType.forNumber(sourceType_); return result == null ? com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType.UNRECOGNIZED : result; @@ -491,8 +490,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; sourceType_ = 0; - return this; } @@ -520,11 +519,20 @@ public com.google.cloud.aiplatform.v1beta1.ModelSourceInfo build() { public com.google.cloud.aiplatform.v1beta1.ModelSourceInfo buildPartial() { com.google.cloud.aiplatform.v1beta1.ModelSourceInfo result = new com.google.cloud.aiplatform.v1beta1.ModelSourceInfo(this); - result.sourceType_ = sourceType_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ModelSourceInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceType_ = sourceType_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -603,7 +611,7 @@ public Builder mergeFrom( case 8: { sourceType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -623,6 +631,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int sourceType_ = 0; /** * @@ -654,8 +664,8 @@ public int getSourceTypeValue() { * @return This builder for chaining. */ public Builder setSourceTypeValue(int value) { - sourceType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -673,9 +683,9 @@ public Builder setSourceTypeValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType getSourceType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType result = - com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType.valueOf(sourceType_); + com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType.forNumber( + sourceType_); return result == null ? com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType.UNRECOGNIZED : result; @@ -698,7 +708,7 @@ public Builder setSourceType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; sourceType_ = value.getNumber(); onChanged(); return this; @@ -716,7 +726,7 @@ public Builder setSourceType( * @return This builder for chaining. */ public Builder clearSourceType() { - + bitField0_ = (bitField0_ & ~0x00000001); sourceType_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexOperationMetadata.java index 5f9316a4442e..6c20102ba804 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexOperationMetadata.java @@ -116,11 +116,15 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } public static final int DEPLOYED_INDEX_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deployedIndexId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedIndexId_ = ""; /** * * @@ -385,14 +389,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } deployedIndexId_ = ""; - return this; } @@ -423,16 +426,25 @@ public com.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata public com.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.deployedIndexId_ = deployedIndexId_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedIndexId_ = deployedIndexId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -488,6 +500,7 @@ public Builder mergeFrom( } if (!other.getDeployedIndexId().isEmpty()) { deployedIndexId_ = other.deployedIndexId_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -519,13 +532,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { deployedIndexId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -545,6 +558,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -563,7 +578,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -601,11 +616,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -621,11 +636,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -640,20 +655,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -666,14 +681,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -687,7 +701,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } @@ -797,8 +811,8 @@ public Builder setDeployedIndexId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedIndexId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -814,8 +828,8 @@ public Builder setDeployedIndexId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedIndexId() { - deployedIndexId_ = getDefaultInstance().getDeployedIndexId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -836,8 +850,8 @@ public Builder setDeployedIndexIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedIndexId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexRequest.java index 291e75d4e7b5..04758730b257 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INDEX_ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object indexEndpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object indexEndpoint_ = ""; /** * * @@ -182,7 +184,9 @@ public com.google.cloud.aiplatform.v1beta1.DeployedIndex getDeployedIndex() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder getDeployedIndexOrBuilder() { - return getDeployedIndex(); + return deployedIndex_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedIndex.getDefaultInstance() + : deployedIndex_; } private byte memoizedIsInitialized = -1; @@ -398,12 +402,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; indexEndpoint_ = ""; - - if (deployedIndexBuilder_ == null) { - deployedIndex_ = null; - } else { - deployedIndex_ = null; + deployedIndex_ = null; + if (deployedIndexBuilder_ != null) { + deployedIndexBuilder_.dispose(); deployedIndexBuilder_ = null; } return this; @@ -434,16 +437,25 @@ public com.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest build() { public com.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest result = new com.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest(this); - result.indexEndpoint_ = indexEndpoint_; - if (deployedIndexBuilder_ == null) { - result.deployedIndex_ = deployedIndex_; - } else { - result.deployedIndex_ = deployedIndexBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.indexEndpoint_ = indexEndpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedIndex_ = + deployedIndexBuilder_ == null ? deployedIndex_ : deployedIndexBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -493,6 +505,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MutateDeployedIndex return this; if (!other.getIndexEndpoint().isEmpty()) { indexEndpoint_ = other.indexEndpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasDeployedIndex()) { @@ -527,13 +540,13 @@ public Builder mergeFrom( case 10: { indexEndpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getDeployedIndexFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -553,6 +566,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object indexEndpoint_ = ""; /** * @@ -626,8 +641,8 @@ public Builder setIndexEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - indexEndpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -647,8 +662,8 @@ public Builder setIndexEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearIndexEndpoint() { - indexEndpoint_ = getDefaultInstance().getIndexEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -673,8 +688,8 @@ public Builder setIndexEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - indexEndpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -701,7 +716,7 @@ public Builder setIndexEndpointBytes(com.google.protobuf.ByteString value) { * @return Whether the deployedIndex field is set. */ public boolean hasDeployedIndex() { - return deployedIndexBuilder_ != null || deployedIndex_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -746,11 +761,11 @@ public Builder setDeployedIndex(com.google.cloud.aiplatform.v1beta1.DeployedInde throw new NullPointerException(); } deployedIndex_ = value; - onChanged(); } else { deployedIndexBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -770,11 +785,11 @@ public Builder setDeployedIndex( com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder builderForValue) { if (deployedIndexBuilder_ == null) { deployedIndex_ = builderForValue.build(); - onChanged(); } else { deployedIndexBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -792,19 +807,19 @@ public Builder setDeployedIndex( */ public Builder mergeDeployedIndex(com.google.cloud.aiplatform.v1beta1.DeployedIndex value) { if (deployedIndexBuilder_ == null) { - if (deployedIndex_ != null) { - deployedIndex_ = - com.google.cloud.aiplatform.v1beta1.DeployedIndex.newBuilder(deployedIndex_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && deployedIndex_ != null + && deployedIndex_ + != com.google.cloud.aiplatform.v1beta1.DeployedIndex.getDefaultInstance()) { + getDeployedIndexBuilder().mergeFrom(value); } else { deployedIndex_ = value; } - onChanged(); } else { deployedIndexBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -821,14 +836,13 @@ public Builder mergeDeployedIndex(com.google.cloud.aiplatform.v1beta1.DeployedIn * */ public Builder clearDeployedIndex() { - if (deployedIndexBuilder_ == null) { - deployedIndex_ = null; - onChanged(); - } else { - deployedIndex_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + deployedIndex_ = null; + if (deployedIndexBuilder_ != null) { + deployedIndexBuilder_.dispose(); deployedIndexBuilder_ = null; } - + onChanged(); return this; } /** @@ -845,7 +859,7 @@ public Builder clearDeployedIndex() { * */ public com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder getDeployedIndexBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getDeployedIndexFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexResponse.java index 4cecb3cb1ed3..a41089443a4f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MutateDeployedIndexResponse.java @@ -111,7 +111,9 @@ public com.google.cloud.aiplatform.v1beta1.DeployedIndex getDeployedIndex() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.DeployedIndexOrBuilder getDeployedIndexOrBuilder() { - return getDeployedIndex(); + return deployedIndex_ == null + ? com.google.cloud.aiplatform.v1beta1.DeployedIndex.getDefaultInstance() + : deployedIndex_; } private byte memoizedIsInitialized = -1; @@ -318,10 +320,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (deployedIndexBuilder_ == null) { - deployedIndex_ = null; - } else { - deployedIndex_ = null; + bitField0_ = 0; + deployedIndex_ = null; + if (deployedIndexBuilder_ != null) { + deployedIndexBuilder_.dispose(); deployedIndexBuilder_ = null; } return this; @@ -352,15 +354,22 @@ public com.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse build() { public com.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse result = new com.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse(this); - if (deployedIndexBuilder_ == null) { - result.deployedIndex_ = deployedIndex_; - } else { - result.deployedIndex_ = deployedIndexBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deployedIndex_ = + deployedIndexBuilder_ == null ? deployedIndex_ : deployedIndexBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -441,7 +450,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getDeployedIndexFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -461,6 +470,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.DeployedIndex deployedIndex_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.DeployedIndex, @@ -479,7 +490,7 @@ public Builder mergeFrom( * @return Whether the deployedIndex field is set. */ public boolean hasDeployedIndex() { - return deployedIndexBuilder_ != null || deployedIndex_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -516,11 +527,11 @@ public Builder setDeployedIndex(com.google.cloud.aiplatform.v1beta1.DeployedInde throw new NullPointerException(); } deployedIndex_ = value; - onChanged(); } else { deployedIndexBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -536,11 +547,11 @@ public Builder setDeployedIndex( com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder builderForValue) { if (deployedIndexBuilder_ == null) { deployedIndex_ = builderForValue.build(); - onChanged(); } else { deployedIndexBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -554,19 +565,19 @@ public Builder setDeployedIndex( */ public Builder mergeDeployedIndex(com.google.cloud.aiplatform.v1beta1.DeployedIndex value) { if (deployedIndexBuilder_ == null) { - if (deployedIndex_ != null) { - deployedIndex_ = - com.google.cloud.aiplatform.v1beta1.DeployedIndex.newBuilder(deployedIndex_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && deployedIndex_ != null + && deployedIndex_ + != com.google.cloud.aiplatform.v1beta1.DeployedIndex.getDefaultInstance()) { + getDeployedIndexBuilder().mergeFrom(value); } else { deployedIndex_ = value; } - onChanged(); } else { deployedIndexBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -579,14 +590,13 @@ public Builder mergeDeployedIndex(com.google.cloud.aiplatform.v1beta1.DeployedIn * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 1; */ public Builder clearDeployedIndex() { - if (deployedIndexBuilder_ == null) { - deployedIndex_ = null; - onChanged(); - } else { - deployedIndex_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + deployedIndex_ = null; + if (deployedIndexBuilder_ != null) { + deployedIndexBuilder_.dispose(); deployedIndexBuilder_ = null; } - + onChanged(); return this; } /** @@ -599,7 +609,7 @@ public Builder clearDeployedIndex() { * .google.cloud.aiplatform.v1beta1.DeployedIndex deployed_index = 1; */ public com.google.cloud.aiplatform.v1beta1.DeployedIndex.Builder getDeployedIndexBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getDeployedIndexFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborSearchOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborSearchOperationMetadata.java index db680441cede..775cb0ba1a6b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborSearchOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NearestNeighborSearchOperationMetadata.java @@ -531,7 +531,7 @@ private RecordErrorType(int value) { } public static final int ERROR_TYPE_FIELD_NUMBER = 1; - private int errorType_; + private int errorType_ = 0; /** * * @@ -566,12 +566,11 @@ public int getErrorTypeValue() { public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError .RecordErrorType getErrorType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError .RecordErrorType result = com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - .RecordErrorType.valueOf(errorType_); + .RecordErrorType.forNumber(errorType_); return result == null ? com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError .RecordErrorType.UNRECOGNIZED @@ -579,7 +578,9 @@ public int getErrorTypeValue() { } public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object errorMessage_; + + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; /** * * @@ -632,7 +633,9 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } public static final int SOURCE_GCS_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object sourceGcsUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceGcsUri_ = ""; /** * * @@ -681,7 +684,9 @@ public com.google.protobuf.ByteString getSourceGcsUriBytes() { } public static final int EMBEDDING_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object embeddingId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object embeddingId_ = ""; /** * * @@ -730,7 +735,9 @@ public com.google.protobuf.ByteString getEmbeddingIdBytes() { } public static final int RAW_RECORD_FIELD_NUMBER = 5; - private volatile java.lang.Object rawRecord_; + + @SuppressWarnings("serial") + private volatile java.lang.Object rawRecord_ = ""; /** * * @@ -1041,16 +1048,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; errorType_ = 0; - errorMessage_ = ""; - sourceGcsUri_ = ""; - embeddingId_ = ""; - rawRecord_ = ""; - return this; } @@ -1085,15 +1088,34 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata .RecordError(this); - result.errorType_ = errorType_; - result.errorMessage_ = errorMessage_; - result.sourceGcsUri_ = sourceGcsUri_; - result.embeddingId_ = embeddingId_; - result.rawRecord_ = rawRecord_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.errorType_ = errorType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorMessage_ = errorMessage_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sourceGcsUri_ = sourceGcsUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.embeddingId_ = embeddingId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.rawRecord_ = rawRecord_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1156,18 +1178,22 @@ public Builder mergeFrom( } if (!other.getErrorMessage().isEmpty()) { errorMessage_ = other.errorMessage_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getSourceGcsUri().isEmpty()) { sourceGcsUri_ = other.sourceGcsUri_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getEmbeddingId().isEmpty()) { embeddingId_ = other.embeddingId_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getRawRecord().isEmpty()) { rawRecord_ = other.rawRecord_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1199,31 +1225,31 @@ public Builder mergeFrom( case 8: { errorType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { errorMessage_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { sourceGcsUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { embeddingId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { rawRecord_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -1243,6 +1269,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int errorType_ = 0; /** * @@ -1276,8 +1304,8 @@ public int getErrorTypeValue() { * @return This builder for chaining. */ public Builder setErrorTypeValue(int value) { - errorType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1298,12 +1326,11 @@ public Builder setErrorTypeValue(int value) { public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError .RecordErrorType getErrorType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError .RecordErrorType result = com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata - .RecordError.RecordErrorType.valueOf(errorType_); + .RecordError.RecordErrorType.forNumber(errorType_); return result == null ? com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError .RecordErrorType.UNRECOGNIZED @@ -1330,7 +1357,7 @@ public Builder setErrorType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; errorType_ = value.getNumber(); onChanged(); return this; @@ -1349,7 +1376,7 @@ public Builder setErrorType( * @return This builder for chaining. */ public Builder clearErrorType() { - + bitField0_ = (bitField0_ & ~0x00000001); errorType_ = 0; onChanged(); return this; @@ -1422,8 +1449,8 @@ public Builder setErrorMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - errorMessage_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1441,8 +1468,8 @@ public Builder setErrorMessage(java.lang.String value) { * @return This builder for chaining. */ public Builder clearErrorMessage() { - errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1465,8 +1492,8 @@ public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - errorMessage_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1532,8 +1559,8 @@ public Builder setSourceGcsUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - sourceGcsUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1549,8 +1576,8 @@ public Builder setSourceGcsUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSourceGcsUri() { - sourceGcsUri_ = getDefaultInstance().getSourceGcsUri(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1571,8 +1598,8 @@ public Builder setSourceGcsUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - sourceGcsUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1638,8 +1665,8 @@ public Builder setEmbeddingId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - embeddingId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1655,8 +1682,8 @@ public Builder setEmbeddingId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEmbeddingId() { - embeddingId_ = getDefaultInstance().getEmbeddingId(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1677,8 +1704,8 @@ public Builder setEmbeddingIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - embeddingId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1744,8 +1771,8 @@ public Builder setRawRecord(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - rawRecord_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1761,8 +1788,8 @@ public Builder setRawRecord(java.lang.String value) { * @return This builder for chaining. */ public Builder clearRawRecord() { - rawRecord_ = getDefaultInstance().getRawRecord(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1783,8 +1810,8 @@ public Builder setRawRecordBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - rawRecord_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2043,7 +2070,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SOURCE_GCS_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object sourceGcsUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceGcsUri_ = ""; /** * * @@ -2092,7 +2121,7 @@ public com.google.protobuf.ByteString getSourceGcsUriBytes() { } public static final int VALID_RECORD_COUNT_FIELD_NUMBER = 2; - private long validRecordCount_; + private long validRecordCount_ = 0L; /** * * @@ -2110,7 +2139,7 @@ public long getValidRecordCount() { } public static final int INVALID_RECORD_COUNT_FIELD_NUMBER = 3; - private long invalidRecordCount_; + private long invalidRecordCount_ = 0L; /** * * @@ -2128,6 +2157,8 @@ public long getInvalidRecordCount() { } public static final int PARTIAL_ERRORS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError> partialErrors_; @@ -2481,19 +2512,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; sourceGcsUri_ = ""; - validRecordCount_ = 0L; - invalidRecordCount_ = 0L; - if (partialErrorsBuilder_ == null) { partialErrors_ = java.util.Collections.emptyList(); } else { partialErrors_ = null; partialErrorsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -2533,21 +2562,43 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata .ContentValidationStats(this); - int from_bitField0_ = bitField0_; - result.sourceGcsUri_ = sourceGcsUri_; - result.validRecordCount_ = validRecordCount_; - result.invalidRecordCount_ = invalidRecordCount_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + result) { if (partialErrorsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { partialErrors_ = java.util.Collections.unmodifiableList(partialErrors_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.partialErrors_ = partialErrors_; } else { result.partialErrors_ = partialErrorsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .ContentValidationStats + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceGcsUri_ = sourceGcsUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validRecordCount_ = validRecordCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.invalidRecordCount_ = invalidRecordCount_; + } } @java.lang.Override @@ -2610,6 +2661,7 @@ public Builder mergeFrom( .ContentValidationStats.getDefaultInstance()) return this; if (!other.getSourceGcsUri().isEmpty()) { sourceGcsUri_ = other.sourceGcsUri_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getValidRecordCount() != 0L) { @@ -2622,7 +2674,7 @@ public Builder mergeFrom( if (!other.partialErrors_.isEmpty()) { if (partialErrors_.isEmpty()) { partialErrors_ = other.partialErrors_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePartialErrorsIsMutable(); partialErrors_.addAll(other.partialErrors_); @@ -2635,7 +2687,7 @@ public Builder mergeFrom( partialErrorsBuilder_.dispose(); partialErrorsBuilder_ = null; partialErrors_ = other.partialErrors_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); partialErrorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPartialErrorsFieldBuilder() @@ -2674,19 +2726,19 @@ public Builder mergeFrom( case 10: { sourceGcsUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { validRecordCount_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { invalidRecordCount_ = input.readInt64(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: @@ -2786,8 +2838,8 @@ public Builder setSourceGcsUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - sourceGcsUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2803,8 +2855,8 @@ public Builder setSourceGcsUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSourceGcsUri() { - sourceGcsUri_ = getDefaultInstance().getSourceGcsUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2825,8 +2877,8 @@ public Builder setSourceGcsUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - sourceGcsUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2862,6 +2914,7 @@ public long getValidRecordCount() { public Builder setValidRecordCount(long value) { validRecordCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2877,7 +2930,7 @@ public Builder setValidRecordCount(long value) { * @return This builder for chaining. */ public Builder clearValidRecordCount() { - + bitField0_ = (bitField0_ & ~0x00000002); validRecordCount_ = 0L; onChanged(); return this; @@ -2914,6 +2967,7 @@ public long getInvalidRecordCount() { public Builder setInvalidRecordCount(long value) { invalidRecordCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2929,7 +2983,7 @@ public Builder setInvalidRecordCount(long value) { * @return This builder for chaining. */ public Builder clearInvalidRecordCount() { - + bitField0_ = (bitField0_ & ~0x00000004); invalidRecordCount_ = 0L; onChanged(); return this; @@ -2941,12 +2995,12 @@ public Builder clearInvalidRecordCount() { partialErrors_ = java.util.Collections.emptyList(); private void ensurePartialErrorsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { partialErrors_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata .RecordError>(partialErrors_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -3233,7 +3287,7 @@ public Builder addAllPartialErrors( public Builder clearPartialErrors() { if (partialErrorsBuilder_ == null) { partialErrors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { partialErrorsBuilder_.clear(); @@ -3408,7 +3462,7 @@ public Builder removePartialErrors(int index) { com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata .RecordErrorOrBuilder>( partialErrors_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); partialErrors_ = null; @@ -3489,6 +3543,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int CONTENT_VALIDATION_STATS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata .ContentValidationStats> @@ -3606,7 +3662,7 @@ public int getContentValidationStatsCount() { } public static final int DATA_BYTES_COUNT_FIELD_NUMBER = 2; - private long dataBytesCount_; + private long dataBytesCount_ = 0L; /** * * @@ -3844,6 +3900,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (contentValidationStatsBuilder_ == null) { contentValidationStats_ = java.util.Collections.emptyList(); } else { @@ -3852,7 +3909,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); dataBytesCount_ = 0L; - return this; } @@ -3884,7 +3940,16 @@ public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadat buildPartial() { com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata result) { if (contentValidationStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { contentValidationStats_ = java.util.Collections.unmodifiableList(contentValidationStats_); @@ -3894,9 +3959,14 @@ public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadat } else { result.contentValidationStats_ = contentValidationStatsBuilder_.build(); } - result.dataBytesCount_ = dataBytesCount_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataBytesCount_ = dataBytesCount_; + } } @java.lang.Override @@ -4026,7 +4096,7 @@ public Builder mergeFrom( case 16: { dataBytesCount_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -4618,6 +4688,7 @@ public long getDataBytesCount() { public Builder setDataBytesCount(long value) { dataBytesCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4633,7 +4704,7 @@ public Builder setDataBytesCount(long value) { * @return This builder for chaining. */ public Builder clearDataBytesCount() { - + bitField0_ = (bitField0_ & ~0x00000002); dataBytesCount_ = 0L; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Neighbor.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Neighbor.java index 2d3737e6c6a0..4fade9446a38 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Neighbor.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Neighbor.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NEIGHBOR_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object neighborId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object neighborId_ = ""; /** * * @@ -117,7 +119,7 @@ public com.google.protobuf.ByteString getNeighborIdBytes() { } public static final int NEIGHBOR_DISTANCE_FIELD_NUMBER = 2; - private double neighborDistance_; + private double neighborDistance_ = 0D; /** * * @@ -344,10 +346,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; neighborId_ = ""; - neighborDistance_ = 0D; - return this; } @@ -375,12 +376,23 @@ public com.google.cloud.aiplatform.v1beta1.Neighbor build() { public com.google.cloud.aiplatform.v1beta1.Neighbor buildPartial() { com.google.cloud.aiplatform.v1beta1.Neighbor result = new com.google.cloud.aiplatform.v1beta1.Neighbor(this); - result.neighborId_ = neighborId_; - result.neighborDistance_ = neighborDistance_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Neighbor result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.neighborId_ = neighborId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.neighborDistance_ = neighborDistance_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -428,6 +440,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Neighbor other) { if (other == com.google.cloud.aiplatform.v1beta1.Neighbor.getDefaultInstance()) return this; if (!other.getNeighborId().isEmpty()) { neighborId_ = other.neighborId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getNeighborDistance() != 0D) { @@ -462,13 +475,13 @@ public Builder mergeFrom( case 10: { neighborId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 17: { neighborDistance_ = input.readDouble(); - + bitField0_ |= 0x00000002; break; } // case 17 default: @@ -488,6 +501,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object neighborId_ = ""; /** * @@ -549,8 +564,8 @@ public Builder setNeighborId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - neighborId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -566,8 +581,8 @@ public Builder setNeighborId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNeighborId() { - neighborId_ = getDefaultInstance().getNeighborId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -588,8 +603,8 @@ public Builder setNeighborIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - neighborId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -625,6 +640,7 @@ public double getNeighborDistance() { public Builder setNeighborDistance(double value) { neighborDistance_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -640,7 +656,7 @@ public Builder setNeighborDistance(double value) { * @return This builder for chaining. */ public Builder clearNeighborDistance() { - + bitField0_ = (bitField0_ & ~0x00000002); neighborDistance_ = 0D; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NfsMount.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NfsMount.java index a2e5f6c2f521..8a26fd3ef943 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NfsMount.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NfsMount.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SERVER_FIELD_NUMBER = 1; - private volatile java.lang.Object server_; + + @SuppressWarnings("serial") + private volatile java.lang.Object server_ = ""; /** * * @@ -119,7 +121,9 @@ public com.google.protobuf.ByteString getServerBytes() { } public static final int PATH_FIELD_NUMBER = 2; - private volatile java.lang.Object path_; + + @SuppressWarnings("serial") + private volatile java.lang.Object path_ = ""; /** * * @@ -172,7 +176,9 @@ public com.google.protobuf.ByteString getPathBytes() { } public static final int MOUNT_POINT_FIELD_NUMBER = 3; - private volatile java.lang.Object mountPoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mountPoint_ = ""; /** * * @@ -437,12 +443,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; server_ = ""; - path_ = ""; - mountPoint_ = ""; - return this; } @@ -470,13 +474,26 @@ public com.google.cloud.aiplatform.v1beta1.NfsMount build() { public com.google.cloud.aiplatform.v1beta1.NfsMount buildPartial() { com.google.cloud.aiplatform.v1beta1.NfsMount result = new com.google.cloud.aiplatform.v1beta1.NfsMount(this); - result.server_ = server_; - result.path_ = path_; - result.mountPoint_ = mountPoint_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.NfsMount result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.server_ = server_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.path_ = path_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.mountPoint_ = mountPoint_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -524,14 +541,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.NfsMount other) { if (other == com.google.cloud.aiplatform.v1beta1.NfsMount.getDefaultInstance()) return this; if (!other.getServer().isEmpty()) { server_ = other.server_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getPath().isEmpty()) { path_ = other.path_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getMountPoint().isEmpty()) { mountPoint_ = other.mountPoint_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -563,19 +583,19 @@ public Builder mergeFrom( case 10: { server_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { path_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { mountPoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -595,6 +615,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object server_ = ""; /** * @@ -656,8 +678,8 @@ public Builder setServer(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - server_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -673,8 +695,8 @@ public Builder setServer(java.lang.String value) { * @return This builder for chaining. */ public Builder clearServer() { - server_ = getDefaultInstance().getServer(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -695,8 +717,8 @@ public Builder setServerBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - server_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -768,8 +790,8 @@ public Builder setPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - path_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -787,8 +809,8 @@ public Builder setPath(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPath() { - path_ = getDefaultInstance().getPath(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -811,8 +833,8 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - path_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -881,8 +903,8 @@ public Builder setMountPoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mountPoint_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -899,8 +921,8 @@ public Builder setMountPoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMountPoint() { - mountPoint_ = getDefaultInstance().getMountPoint(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -922,8 +944,8 @@ public Builder setMountPointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mountPoint_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PauseModelDeploymentMonitoringJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PauseModelDeploymentMonitoringJobRequest.java index 72a60b898a5f..c34ac09f9054 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PauseModelDeploymentMonitoringJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PauseModelDeploymentMonitoringJobRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -336,8 +338,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -369,11 +371,21 @@ public com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequ buildPartial() { com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest result = new com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -426,6 +438,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -457,7 +470,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -477,6 +490,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -550,8 +565,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -571,8 +586,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -597,8 +612,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java index 7cf8bdab122c..ee1082934443 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java @@ -169,8 +169,7 @@ public interface RuntimeConfigOrBuilder * map<string, .google.cloud.aiplatform.v1beta1.Value> parameters = 1 [deprecated = true]; * */ - @java.lang.Deprecated - /* nullable */ + @java.lang.Deprecated /* nullable */ com.google.cloud.aiplatform.v1beta1.Value getParametersOrDefault( java.lang.String key, /* nullable */ @@ -299,7 +298,6 @@ com.google.cloud.aiplatform.v1beta1.Value getParametersOrDefault( * * map<string, .google.protobuf.Value> parameter_values = 3; */ - /* nullable */ com.google.protobuf.Value getParameterValuesOrDefault( java.lang.String key, @@ -417,7 +415,6 @@ com.google.protobuf.Value getParameterValuesOrDefault( * map<string, .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact> input_artifacts = 5; * */ - /* nullable */ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact getInputArtifactsOrDefault( @@ -962,6 +959,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; kindCase_ = 0; kind_ = null; return this; @@ -995,14 +993,25 @@ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifa buildPartial() { com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact result = new com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact(this); - if (kindCase_ == 1) { - result.kind_ = kind_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.kindCase_ = kindCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact result) { + result.kindCase_ = kindCase_; + result.kind_ = this.kind_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1134,6 +1143,8 @@ public Builder clearKind() { return this; } + private int bitField0_; + /** * * @@ -1377,6 +1388,7 @@ private static final class ParametersDefaultEntryHolder { com.google.cloud.aiplatform.v1beta1.Value.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.Value> parameters_; @@ -1413,8 +1425,8 @@ public int getParametersCount() { * map<string, .google.cloud.aiplatform.v1beta1.Value> parameters = 1 [deprecated = true]; * */ - @java.lang.Deprecated @java.lang.Override + @java.lang.Deprecated public boolean containsParameters(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); @@ -1472,8 +1484,10 @@ public boolean containsParameters(java.lang.String key) { */ @java.lang.Override @java.lang.Deprecated - public com.google.cloud.aiplatform.v1beta1.Value getParametersOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1beta1.Value defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1beta1.Value getParametersOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1514,7 +1528,9 @@ public com.google.cloud.aiplatform.v1beta1.Value getParametersOrThrow(java.lang. } public static final int GCS_OUTPUT_DIRECTORY_FIELD_NUMBER = 2; - private volatile java.lang.Object gcsOutputDirectory_; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsOutputDirectory_ = ""; /** * * @@ -1589,6 +1605,7 @@ private static final class ParameterValuesDefaultEntryHolder { com.google.protobuf.Value.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField parameterValues_; @@ -1667,8 +1684,10 @@ public java.util.Map getParameterVa * map<string, .google.protobuf.Value> parameter_values = 3; */ @java.lang.Override - public com.google.protobuf.Value getParameterValuesOrDefault( - java.lang.String key, com.google.protobuf.Value defaultValue) { + public /* nullable */ com.google.protobuf.Value getParameterValuesOrDefault( + java.lang.String key, + /* nullable */ + com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1705,7 +1724,7 @@ public com.google.protobuf.Value getParameterValuesOrThrow(java.lang.String key) } public static final int FAILURE_POLICY_FIELD_NUMBER = 4; - private int failurePolicy_; + private int failurePolicy_ = 0; /** * * @@ -1744,9 +1763,8 @@ public int getFailurePolicyValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy getFailurePolicy() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy result = - com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy.valueOf(failurePolicy_); + com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy.forNumber(failurePolicy_); return result == null ? com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy.UNRECOGNIZED : result; @@ -1772,6 +1790,7 @@ private static final class InputArtifactsDefaultEntryHolder { .InputArtifact.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact> @@ -1851,9 +1870,11 @@ public boolean containsInputArtifacts(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + public /* nullable */ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .InputArtifact getInputArtifactsOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact defaultValue) { if (key == null) { @@ -2194,12 +2215,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; internalGetMutableParameters().clear(); gcsOutputDirectory_ = ""; - internalGetMutableParameterValues().clear(); failurePolicy_ = 0; - internalGetMutableInputArtifacts().clear(); return this; } @@ -2229,19 +2249,36 @@ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig build() { public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig result = new com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig(this); - int from_bitField0_ = bitField0_; - result.parameters_ = internalGetParameters(); - result.parameters_.makeImmutable(); - result.gcsOutputDirectory_ = gcsOutputDirectory_; - result.parameterValues_ = internalGetParameterValues(); - result.parameterValues_.makeImmutable(); - result.failurePolicy_ = failurePolicy_; - result.inputArtifacts_ = internalGetInputArtifacts(); - result.inputArtifacts_.makeImmutable(); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parameters_ = internalGetParameters(); + result.parameters_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gcsOutputDirectory_ = gcsOutputDirectory_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parameterValues_ = internalGetParameterValues(); + result.parameterValues_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.failurePolicy_ = failurePolicy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.inputArtifacts_ = internalGetInputArtifacts(); + result.inputArtifacts_.makeImmutable(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2293,15 +2330,19 @@ public Builder mergeFrom( == com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.getDefaultInstance()) return this; internalGetMutableParameters().mergeFrom(other.internalGetParameters()); + bitField0_ |= 0x00000001; if (!other.getGcsOutputDirectory().isEmpty()) { gcsOutputDirectory_ = other.gcsOutputDirectory_; + bitField0_ |= 0x00000002; onChanged(); } internalGetMutableParameterValues().mergeFrom(other.internalGetParameterValues()); + bitField0_ |= 0x00000004; if (other.failurePolicy_ != 0) { setFailurePolicyValue(other.getFailurePolicyValue()); } internalGetMutableInputArtifacts().mergeFrom(other.internalGetInputArtifacts()); + bitField0_ |= 0x00000010; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2339,12 +2380,13 @@ public Builder mergeFrom( internalGetMutableParameters() .getMutableMap() .put(parameters__.getKey(), parameters__.getValue()); + bitField0_ |= 0x00000001; break; } // case 10 case 18: { gcsOutputDirectory_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -2357,12 +2399,13 @@ public Builder mergeFrom( internalGetMutableParameterValues() .getMutableMap() .put(parameterValues__.getKey(), parameterValues__.getValue()); + bitField0_ |= 0x00000004; break; } // case 26 case 32: { failurePolicy_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 case 42: @@ -2378,6 +2421,7 @@ public Builder mergeFrom( internalGetMutableInputArtifacts() .getMutableMap() .put(inputArtifacts__.getKey(), inputArtifacts__.getValue()); + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -2403,6 +2447,7 @@ public Builder mergeFrom( java.lang.String, com.google.cloud.aiplatform.v1beta1.Value> parameters_; + @java.lang.Deprecated private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.Value> internalGetParameters() { @@ -2413,11 +2458,10 @@ public Builder mergeFrom( return parameters_; } + @java.lang.Deprecated private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.Value> internalGetMutableParameters() { - onChanged(); - ; if (parameters_ == null) { parameters_ = com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry); @@ -2425,6 +2469,8 @@ public Builder mergeFrom( if (!parameters_.isMutable()) { parameters_ = parameters_.copy(); } + bitField0_ |= 0x00000001; + onChanged(); return parameters_; } @@ -2450,8 +2496,8 @@ public int getParametersCount() { * map<string, .google.cloud.aiplatform.v1beta1.Value> parameters = 1 [deprecated = true]; * */ - @java.lang.Deprecated @java.lang.Override + @java.lang.Deprecated public boolean containsParameters(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); @@ -2509,8 +2555,10 @@ public boolean containsParameters(java.lang.String key) { */ @java.lang.Override @java.lang.Deprecated - public com.google.cloud.aiplatform.v1beta1.Value getParametersOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1beta1.Value defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1beta1.Value getParametersOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2552,6 +2600,7 @@ public com.google.cloud.aiplatform.v1beta1.Value getParametersOrThrow(java.lang. @java.lang.Deprecated public Builder clearParameters() { + bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableParameters().getMutableMap().clear(); return this; } @@ -2585,6 +2634,7 @@ public Builder removeParameters(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableParameters() { + bitField0_ |= 0x00000001; return internalGetMutableParameters().getMutableMap(); } /** @@ -2614,8 +2664,8 @@ public Builder putParameters( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableParameters().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; return this; } /** @@ -2640,6 +2690,7 @@ public Builder putParameters( public Builder putAllParameters( java.util.Map values) { internalGetMutableParameters().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; return this; } @@ -2722,8 +2773,8 @@ public Builder setGcsOutputDirectory(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - gcsOutputDirectory_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2745,8 +2796,8 @@ public Builder setGcsOutputDirectory(java.lang.String value) { * @return This builder for chaining. */ public Builder clearGcsOutputDirectory() { - gcsOutputDirectory_ = getDefaultInstance().getGcsOutputDirectory(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2773,8 +2824,8 @@ public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - gcsOutputDirectory_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2793,8 +2844,6 @@ public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) private com.google.protobuf.MapField internalGetMutableParameterValues() { - onChanged(); - ; if (parameterValues_ == null) { parameterValues_ = com.google.protobuf.MapField.newMapField( @@ -2803,6 +2852,8 @@ public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) if (!parameterValues_.isMutable()) { parameterValues_ = parameterValues_.copy(); } + bitField0_ |= 0x00000004; + onChanged(); return parameterValues_; } @@ -2872,8 +2923,10 @@ public java.util.Map getParameterVa * map<string, .google.protobuf.Value> parameter_values = 3; */ @java.lang.Override - public com.google.protobuf.Value getParameterValuesOrDefault( - java.lang.String key, com.google.protobuf.Value defaultValue) { + public /* nullable */ com.google.protobuf.Value getParameterValuesOrDefault( + java.lang.String key, + /* nullable */ + com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2910,6 +2963,7 @@ public com.google.protobuf.Value getParameterValuesOrThrow(java.lang.String key) } public Builder clearParameterValues() { + bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableParameterValues().getMutableMap().clear(); return this; } @@ -2939,6 +2993,7 @@ public Builder removeParameterValues(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableParameterValues() { + bitField0_ |= 0x00000004; return internalGetMutableParameterValues().getMutableMap(); } /** @@ -2963,8 +3018,8 @@ public Builder putParameterValues(java.lang.String key, com.google.protobuf.Valu if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableParameterValues().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; return this; } /** @@ -2985,6 +3040,7 @@ public Builder putParameterValues(java.lang.String key, com.google.protobuf.Valu public Builder putAllParameterValues( java.util.Map values) { internalGetMutableParameterValues().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; return this; } @@ -3027,8 +3083,8 @@ public int getFailurePolicyValue() { * @return This builder for chaining. */ public Builder setFailurePolicyValue(int value) { - failurePolicy_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3050,9 +3106,8 @@ public Builder setFailurePolicyValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy getFailurePolicy() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy result = - com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy.valueOf(failurePolicy_); + com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy.forNumber(failurePolicy_); return result == null ? com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy.UNRECOGNIZED : result; @@ -3079,7 +3134,7 @@ public Builder setFailurePolicy( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; failurePolicy_ = value.getNumber(); onChanged(); return this; @@ -3101,7 +3156,7 @@ public Builder setFailurePolicy( * @return This builder for chaining. */ public Builder clearFailurePolicy() { - + bitField0_ = (bitField0_ & ~0x00000008); failurePolicy_ = 0; onChanged(); return this; @@ -3127,8 +3182,6 @@ public Builder clearFailurePolicy() { java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact> internalGetMutableInputArtifacts() { - onChanged(); - ; if (inputArtifacts_ == null) { inputArtifacts_ = com.google.protobuf.MapField.newMapField( @@ -3137,6 +3190,8 @@ public Builder clearFailurePolicy() { if (!inputArtifacts_.isMutable()) { inputArtifacts_ = inputArtifacts_.copy(); } + bitField0_ |= 0x00000010; + onChanged(); return inputArtifacts_; } @@ -3203,9 +3258,11 @@ public boolean containsInputArtifacts(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact + public /* nullable */ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .InputArtifact getInputArtifactsOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact defaultValue) { if (key == null) { @@ -3246,6 +3303,7 @@ public boolean containsInputArtifacts(java.lang.String key) { } public Builder clearInputArtifacts() { + bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableInputArtifacts().getMutableMap().clear(); return this; } @@ -3274,6 +3332,7 @@ public Builder removeInputArtifacts(java.lang.String key) { java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact> getMutableInputArtifacts() { + bitField0_ |= 0x00000010; return internalGetMutableInputArtifacts().getMutableMap(); } /** @@ -3297,8 +3356,8 @@ public Builder putInputArtifacts( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableInputArtifacts().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; return this; } /** @@ -3319,6 +3378,7 @@ public Builder putAllInputArtifacts( com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.InputArtifact> values) { internalGetMutableInputArtifacts().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; return this; } @@ -3390,7 +3450,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -3439,7 +3501,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -3537,7 +3601,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int START_TIME_FIELD_NUMBER = 4; @@ -3586,7 +3650,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 5; @@ -3635,7 +3699,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 6; @@ -3684,7 +3748,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int PIPELINE_SPEC_FIELD_NUMBER = 7; @@ -3730,11 +3794,11 @@ public com.google.protobuf.Struct getPipelineSpec() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getPipelineSpecOrBuilder() { - return getPipelineSpec(); + return pipelineSpec_ == null ? com.google.protobuf.Struct.getDefaultInstance() : pipelineSpec_; } public static final int STATE_FIELD_NUMBER = 8; - private int state_; + private int state_ = 0; /** * * @@ -3767,9 +3831,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.PipelineState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.PipelineState result = - com.google.cloud.aiplatform.v1beta1.PipelineState.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.PipelineState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.PipelineState.UNRECOGNIZED : result; } @@ -3824,7 +3887,9 @@ public com.google.cloud.aiplatform.v1beta1.PipelineJobDetail getJobDetail() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.PipelineJobDetailOrBuilder getJobDetailOrBuilder() { - return getJobDetail(); + return jobDetail_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.getDefaultInstance() + : jobDetail_; } public static final int ERROR_FIELD_NUMBER = 10; @@ -3873,7 +3938,7 @@ public com.google.rpc.Status getError() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return getError(); + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } public static final int LABELS_FIELD_NUMBER = 11; @@ -3889,6 +3954,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -3958,7 +4024,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -4036,7 +4105,9 @@ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig getRuntimeC @java.lang.Override public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfigOrBuilder getRuntimeConfigOrBuilder() { - return getRuntimeConfig(); + return runtimeConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.getDefaultInstance() + : runtimeConfig_; } public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 16; @@ -4087,11 +4158,15 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 17; - private volatile java.lang.Object serviceAccount_; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; /** * * @@ -4152,7 +4227,9 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } public static final int NETWORK_FIELD_NUMBER = 18; - private volatile java.lang.Object network_; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; /** * * @@ -4225,7 +4302,9 @@ public com.google.protobuf.ByteString getNetworkBytes() { } public static final int TEMPLATE_URI_FIELD_NUMBER = 19; - private volatile java.lang.Object templateUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object templateUri_ = ""; /** * * @@ -4335,7 +4414,9 @@ public com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata getTemplateM @java.lang.Override public com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadataOrBuilder getTemplateMetadataOrBuilder() { - return getTemplateMetadata(); + return templateMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.getDefaultInstance() + : templateMetadata_; } private byte memoizedIsInitialized = -1; @@ -4761,77 +4842,62 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - if (pipelineSpecBuilder_ == null) { - pipelineSpec_ = null; - } else { - pipelineSpec_ = null; + pipelineSpec_ = null; + if (pipelineSpecBuilder_ != null) { + pipelineSpecBuilder_.dispose(); pipelineSpecBuilder_ = null; } state_ = 0; - - if (jobDetailBuilder_ == null) { - jobDetail_ = null; - } else { - jobDetail_ = null; + jobDetail_ = null; + if (jobDetailBuilder_ != null) { + jobDetailBuilder_.dispose(); jobDetailBuilder_ = null; } - if (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } internalGetMutableLabels().clear(); - if (runtimeConfigBuilder_ == null) { - runtimeConfig_ = null; - } else { - runtimeConfig_ = null; + runtimeConfig_ = null; + if (runtimeConfigBuilder_ != null) { + runtimeConfigBuilder_.dispose(); runtimeConfigBuilder_ = null; } - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } serviceAccount_ = ""; - network_ = ""; - templateUri_ = ""; - - if (templateMetadataBuilder_ == null) { - templateMetadata_ = null; - } else { - templateMetadata_ = null; + templateMetadata_ = null; + if (templateMetadataBuilder_ != null) { + templateMetadataBuilder_.dispose(); templateMetadataBuilder_ = null; } return this; @@ -4861,67 +4927,71 @@ public com.google.cloud.aiplatform.v1beta1.PipelineJob build() { public com.google.cloud.aiplatform.v1beta1.PipelineJob buildPartial() { com.google.cloud.aiplatform.v1beta1.PipelineJob result = new com.google.cloud.aiplatform.v1beta1.PipelineJob(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PipelineJob result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } - if (pipelineSpecBuilder_ == null) { - result.pipelineSpec_ = pipelineSpec_; - } else { - result.pipelineSpec_ = pipelineSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } - result.state_ = state_; - if (jobDetailBuilder_ == null) { - result.jobDetail_ = jobDetail_; - } else { - result.jobDetail_ = jobDetailBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.build(); + if (((from_bitField0_ & 0x00000040) != 0)) { + result.pipelineSpec_ = + pipelineSpecBuilder_ == null ? pipelineSpec_ : pipelineSpecBuilder_.build(); } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (runtimeConfigBuilder_ == null) { - result.runtimeConfig_ = runtimeConfig_; - } else { - result.runtimeConfig_ = runtimeConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = state_; } - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000100) != 0)) { + result.jobDetail_ = jobDetailBuilder_ == null ? jobDetail_ : jobDetailBuilder_.build(); } - result.serviceAccount_ = serviceAccount_; - result.network_ = network_; - result.templateUri_ = templateUri_; - if (templateMetadataBuilder_ == null) { - result.templateMetadata_ = templateMetadata_; - } else { - result.templateMetadata_ = templateMetadataBuilder_.build(); + if (((from_bitField0_ & 0x00000200) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.runtimeConfig_ = + runtimeConfigBuilder_ == null ? runtimeConfig_ : runtimeConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.templateUri_ = templateUri_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.templateMetadata_ = + templateMetadataBuilder_ == null ? templateMetadata_ : templateMetadataBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -4972,10 +5042,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PipelineJob other) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasCreateTime()) { @@ -5003,6 +5075,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PipelineJob other) mergeError(other.getError()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000400; if (other.hasRuntimeConfig()) { mergeRuntimeConfig(other.getRuntimeConfig()); } @@ -5011,14 +5084,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PipelineJob other) } if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00002000; onChanged(); } if (!other.getNetwork().isEmpty()) { network_ = other.network_; + bitField0_ |= 0x00004000; onChanged(); } if (!other.getTemplateUri().isEmpty()) { templateUri_ = other.templateUri_; + bitField0_ |= 0x00008000; onChanged(); } if (other.hasTemplateMetadata()) { @@ -5053,61 +5129,61 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage(getPipelineSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 58 case 64: { state_ = input.readEnum(); - + bitField0_ |= 0x00000080; break; } // case 64 case 74: { input.readMessage(getJobDetailFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 74 case 82: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 82 case 90: @@ -5119,43 +5195,44 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000400; break; } // case 90 case 98: { input.readMessage(getRuntimeConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000800; break; } // case 98 case 130: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00001000; break; } // case 130 case 138: { serviceAccount_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00002000; break; } // case 138 case 146: { network_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00004000; break; } // case 146 case 154: { templateUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00008000; break; } // case 154 case 162: { input.readMessage( getTemplateMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00010000; break; } // case 162 default: @@ -5238,8 +5315,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5255,8 +5332,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -5277,8 +5354,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5350,8 +5427,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -5369,8 +5446,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -5393,8 +5470,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -5419,7 +5496,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -5460,11 +5537,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -5481,11 +5558,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -5501,17 +5578,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -5526,14 +5604,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -5548,7 +5625,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -5619,7 +5696,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -5656,11 +5733,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -5676,11 +5753,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -5695,17 +5772,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -5719,14 +5797,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -5740,7 +5817,7 @@ public Builder clearStartTime() { * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -5807,7 +5884,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -5844,11 +5921,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -5864,11 +5941,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -5883,17 +5960,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -5907,14 +5985,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -5928,7 +6005,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -5996,7 +6073,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -6037,11 +6114,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -6058,11 +6135,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -6078,17 +6155,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -6103,14 +6181,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -6125,7 +6202,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -6195,7 +6272,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the pipelineSpec field is set. */ public boolean hasPipelineSpec() { - return pipelineSpecBuilder_ != null || pipelineSpec_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -6232,11 +6309,11 @@ public Builder setPipelineSpec(com.google.protobuf.Struct value) { throw new NullPointerException(); } pipelineSpec_ = value; - onChanged(); } else { pipelineSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -6251,11 +6328,11 @@ public Builder setPipelineSpec(com.google.protobuf.Struct value) { public Builder setPipelineSpec(com.google.protobuf.Struct.Builder builderForValue) { if (pipelineSpecBuilder_ == null) { pipelineSpec_ = builderForValue.build(); - onChanged(); } else { pipelineSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -6269,17 +6346,18 @@ public Builder setPipelineSpec(com.google.protobuf.Struct.Builder builderForValu */ public Builder mergePipelineSpec(com.google.protobuf.Struct value) { if (pipelineSpecBuilder_ == null) { - if (pipelineSpec_ != null) { - pipelineSpec_ = - com.google.protobuf.Struct.newBuilder(pipelineSpec_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && pipelineSpec_ != null + && pipelineSpec_ != com.google.protobuf.Struct.getDefaultInstance()) { + getPipelineSpecBuilder().mergeFrom(value); } else { pipelineSpec_ = value; } - onChanged(); } else { pipelineSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -6292,14 +6370,13 @@ public Builder mergePipelineSpec(com.google.protobuf.Struct value) { * .google.protobuf.Struct pipeline_spec = 7; */ public Builder clearPipelineSpec() { - if (pipelineSpecBuilder_ == null) { - pipelineSpec_ = null; - onChanged(); - } else { - pipelineSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + pipelineSpec_ = null; + if (pipelineSpecBuilder_ != null) { + pipelineSpecBuilder_.dispose(); pipelineSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -6312,7 +6389,7 @@ public Builder clearPipelineSpec() { * .google.protobuf.Struct pipeline_spec = 7; */ public com.google.protobuf.Struct.Builder getPipelineSpecBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getPipelineSpecFieldBuilder().getBuilder(); } @@ -6393,8 +6470,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6413,9 +6490,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.PipelineState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.PipelineState result = - com.google.cloud.aiplatform.v1beta1.PipelineState.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.PipelineState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.PipelineState.UNRECOGNIZED : result; @@ -6438,7 +6514,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.PipelineState value) if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000080; state_ = value.getNumber(); onChanged(); return this; @@ -6457,7 +6533,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.PipelineState value) * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000080); state_ = 0; onChanged(); return this; @@ -6483,7 +6559,7 @@ public Builder clearState() { * @return Whether the jobDetail field is set. */ public boolean hasJobDetail() { - return jobDetailBuilder_ != null || jobDetail_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -6524,11 +6600,11 @@ public Builder setJobDetail(com.google.cloud.aiplatform.v1beta1.PipelineJobDetai throw new NullPointerException(); } jobDetail_ = value; - onChanged(); } else { jobDetailBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -6546,11 +6622,11 @@ public Builder setJobDetail( com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.Builder builderForValue) { if (jobDetailBuilder_ == null) { jobDetail_ = builderForValue.build(); - onChanged(); } else { jobDetailBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -6566,19 +6642,19 @@ public Builder setJobDetail( */ public Builder mergeJobDetail(com.google.cloud.aiplatform.v1beta1.PipelineJobDetail value) { if (jobDetailBuilder_ == null) { - if (jobDetail_ != null) { - jobDetail_ = - com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.newBuilder(jobDetail_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && jobDetail_ != null + && jobDetail_ + != com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.getDefaultInstance()) { + getJobDetailBuilder().mergeFrom(value); } else { jobDetail_ = value; } - onChanged(); } else { jobDetailBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -6593,14 +6669,13 @@ public Builder mergeJobDetail(com.google.cloud.aiplatform.v1beta1.PipelineJobDet * */ public Builder clearJobDetail() { - if (jobDetailBuilder_ == null) { - jobDetail_ = null; - onChanged(); - } else { - jobDetail_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + jobDetail_ = null; + if (jobDetailBuilder_ != null) { + jobDetailBuilder_.dispose(); jobDetailBuilder_ = null; } - + onChanged(); return this; } /** @@ -6615,7 +6690,7 @@ public Builder clearJobDetail() { * */ public com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.Builder getJobDetailBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getJobDetailFieldBuilder().getBuilder(); } @@ -6684,7 +6759,7 @@ public com.google.cloud.aiplatform.v1beta1.PipelineJobDetailOrBuilder getJobDeta * @return Whether the error field is set. */ public boolean hasError() { - return errorBuilder_ != null || error_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -6721,11 +6796,11 @@ public Builder setError(com.google.rpc.Status value) { throw new NullPointerException(); } error_ = value; - onChanged(); } else { errorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -6741,11 +6816,11 @@ public Builder setError(com.google.rpc.Status value) { public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); - onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -6760,16 +6835,18 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (error_ != null) { - error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); } else { error_ = value; } - onChanged(); } else { errorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -6783,14 +6860,13 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } - + onChanged(); return this; } /** @@ -6804,7 +6880,7 @@ public Builder clearError() { * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getErrorFieldBuilder().getBuilder(); } @@ -6860,14 +6936,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000400; + onChanged(); return labels_; } @@ -6931,8 +7007,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 11; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -6965,6 +7043,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000400); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -6991,6 +7070,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000400; return internalGetMutableLabels().getMutableMap(); } /** @@ -7013,8 +7093,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000400; return this; } /** @@ -7032,6 +7112,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000400; return this; } @@ -7053,7 +7134,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the runtimeConfig field is set. */ public boolean hasRuntimeConfig() { - return runtimeConfigBuilder_ != null || runtimeConfig_ != null; + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -7091,11 +7172,11 @@ public Builder setRuntimeConfig( throw new NullPointerException(); } runtimeConfig_ = value; - onChanged(); } else { runtimeConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -7111,11 +7192,11 @@ public Builder setRuntimeConfig( com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.Builder builderForValue) { if (runtimeConfigBuilder_ == null) { runtimeConfig_ = builderForValue.build(); - onChanged(); } else { runtimeConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -7130,20 +7211,20 @@ public Builder setRuntimeConfig( public Builder mergeRuntimeConfig( com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig value) { if (runtimeConfigBuilder_ == null) { - if (runtimeConfig_ != null) { - runtimeConfig_ = - com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.newBuilder( - runtimeConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000800) != 0) + && runtimeConfig_ != null + && runtimeConfig_ + != com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig + .getDefaultInstance()) { + getRuntimeConfigBuilder().mergeFrom(value); } else { runtimeConfig_ = value; } - onChanged(); } else { runtimeConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -7156,14 +7237,13 @@ public Builder mergeRuntimeConfig( * .google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig runtime_config = 12; */ public Builder clearRuntimeConfig() { - if (runtimeConfigBuilder_ == null) { - runtimeConfig_ = null; - onChanged(); - } else { - runtimeConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000800); + runtimeConfig_ = null; + if (runtimeConfigBuilder_ != null) { + runtimeConfigBuilder_.dispose(); runtimeConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -7177,7 +7257,7 @@ public Builder clearRuntimeConfig() { */ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.Builder getRuntimeConfigBuilder() { - + bitField0_ |= 0x00000800; onChanged(); return getRuntimeConfigFieldBuilder().getBuilder(); } @@ -7245,7 +7325,7 @@ public Builder clearRuntimeConfig() { * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -7284,11 +7364,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -7305,11 +7385,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -7324,19 +7404,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1beta1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00001000) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -7350,14 +7430,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 16; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00001000); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -7371,7 +7450,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 16; */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00001000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -7501,8 +7580,8 @@ public Builder setServiceAccount(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - serviceAccount_ = value; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -7524,8 +7603,8 @@ public Builder setServiceAccount(java.lang.String value) { * @return This builder for chaining. */ public Builder clearServiceAccount() { - serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -7552,8 +7631,8 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - serviceAccount_ = value; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -7655,8 +7734,8 @@ public Builder setNetwork(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - network_ = value; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -7684,8 +7763,8 @@ public Builder setNetwork(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNetwork() { - network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -7718,8 +7797,8 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - network_ = value; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -7791,8 +7870,8 @@ public Builder setTemplateUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - templateUri_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -7810,8 +7889,8 @@ public Builder setTemplateUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTemplateUri() { - templateUri_ = getDefaultInstance().getTemplateUri(); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -7834,8 +7913,8 @@ public Builder setTemplateUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - templateUri_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -7862,7 +7941,7 @@ public Builder setTemplateUriBytes(com.google.protobuf.ByteString value) { * @return Whether the templateMetadata field is set. */ public boolean hasTemplateMetadata() { - return templateMetadataBuilder_ != null || templateMetadata_ != null; + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -7908,11 +7987,11 @@ public Builder setTemplateMetadata( throw new NullPointerException(); } templateMetadata_ = value; - onChanged(); } else { templateMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -7932,11 +8011,11 @@ public Builder setTemplateMetadata( com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.Builder builderForValue) { if (templateMetadataBuilder_ == null) { templateMetadata_ = builderForValue.build(); - onChanged(); } else { templateMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -7955,20 +8034,20 @@ public Builder setTemplateMetadata( public Builder mergeTemplateMetadata( com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata value) { if (templateMetadataBuilder_ == null) { - if (templateMetadata_ != null) { - templateMetadata_ = - com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.newBuilder( - templateMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00010000) != 0) + && templateMetadata_ != null + && templateMetadata_ + != com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata + .getDefaultInstance()) { + getTemplateMetadataBuilder().mergeFrom(value); } else { templateMetadata_ = value; } - onChanged(); } else { templateMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -7985,14 +8064,13 @@ public Builder mergeTemplateMetadata( * */ public Builder clearTemplateMetadata() { - if (templateMetadataBuilder_ == null) { - templateMetadata_ = null; - onChanged(); - } else { - templateMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00010000); + templateMetadata_ = null; + if (templateMetadataBuilder_ != null) { + templateMetadataBuilder_.dispose(); templateMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -8010,7 +8088,7 @@ public Builder clearTemplateMetadata() { */ public com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.Builder getTemplateMetadataBuilder() { - + bitField0_ |= 0x00010000; onChanged(); return getTemplateMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobDetail.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobDetail.java index ec7acec4967b..9151a657c8e9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobDetail.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobDetail.java @@ -118,7 +118,9 @@ public com.google.cloud.aiplatform.v1beta1.Context getPipelineContext() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getPipelineContextOrBuilder() { - return getPipelineContext(); + return pipelineContext_ == null + ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance() + : pipelineContext_; } public static final int PIPELINE_RUN_CONTEXT_FIELD_NUMBER = 2; @@ -172,10 +174,14 @@ public com.google.cloud.aiplatform.v1beta1.Context getPipelineRunContext() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getPipelineRunContextOrBuilder() { - return getPipelineRunContext(); + return pipelineRunContext_ == null + ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance() + : pipelineRunContext_; } public static final int TASK_DETAILS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List taskDetails_; /** * @@ -484,16 +490,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (pipelineContextBuilder_ == null) { - pipelineContext_ = null; - } else { - pipelineContext_ = null; + bitField0_ = 0; + pipelineContext_ = null; + if (pipelineContextBuilder_ != null) { + pipelineContextBuilder_.dispose(); pipelineContextBuilder_ = null; } - if (pipelineRunContextBuilder_ == null) { - pipelineRunContext_ = null; - } else { - pipelineRunContext_ = null; + pipelineRunContext_ = null; + if (pipelineRunContextBuilder_ != null) { + pipelineRunContextBuilder_.dispose(); pipelineRunContextBuilder_ = null; } if (taskDetailsBuilder_ == null) { @@ -502,7 +507,7 @@ public Builder clear() { taskDetails_ = null; taskDetailsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -530,28 +535,39 @@ public com.google.cloud.aiplatform.v1beta1.PipelineJobDetail build() { public com.google.cloud.aiplatform.v1beta1.PipelineJobDetail buildPartial() { com.google.cloud.aiplatform.v1beta1.PipelineJobDetail result = new com.google.cloud.aiplatform.v1beta1.PipelineJobDetail(this); - int from_bitField0_ = bitField0_; - if (pipelineContextBuilder_ == null) { - result.pipelineContext_ = pipelineContext_; - } else { - result.pipelineContext_ = pipelineContextBuilder_.build(); - } - if (pipelineRunContextBuilder_ == null) { - result.pipelineRunContext_ = pipelineRunContext_; - } else { - result.pipelineRunContext_ = pipelineRunContextBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.PipelineJobDetail result) { if (taskDetailsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { taskDetails_ = java.util.Collections.unmodifiableList(taskDetails_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.taskDetails_ = taskDetails_; } else { result.taskDetails_ = taskDetailsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PipelineJobDetail result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pipelineContext_ = + pipelineContextBuilder_ == null ? pipelineContext_ : pipelineContextBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pipelineRunContext_ = + pipelineRunContextBuilder_ == null + ? pipelineRunContext_ + : pipelineRunContextBuilder_.build(); + } } @java.lang.Override @@ -610,7 +626,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PipelineJobDetail o if (!other.taskDetails_.isEmpty()) { if (taskDetails_.isEmpty()) { taskDetails_ = other.taskDetails_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTaskDetailsIsMutable(); taskDetails_.addAll(other.taskDetails_); @@ -623,7 +639,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PipelineJobDetail o taskDetailsBuilder_.dispose(); taskDetailsBuilder_ = null; taskDetails_ = other.taskDetails_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); taskDetailsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTaskDetailsFieldBuilder() @@ -662,14 +678,14 @@ public Builder mergeFrom( case 10: { input.readMessage(getPipelineContextFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getPipelineRunContextFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -725,7 +741,7 @@ public Builder mergeFrom( * @return Whether the pipelineContext field is set. */ public boolean hasPipelineContext() { - return pipelineContextBuilder_ != null || pipelineContext_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -766,11 +782,11 @@ public Builder setPipelineContext(com.google.cloud.aiplatform.v1beta1.Context va throw new NullPointerException(); } pipelineContext_ = value; - onChanged(); } else { pipelineContextBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -788,11 +804,11 @@ public Builder setPipelineContext( com.google.cloud.aiplatform.v1beta1.Context.Builder builderForValue) { if (pipelineContextBuilder_ == null) { pipelineContext_ = builderForValue.build(); - onChanged(); } else { pipelineContextBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -808,19 +824,19 @@ public Builder setPipelineContext( */ public Builder mergePipelineContext(com.google.cloud.aiplatform.v1beta1.Context value) { if (pipelineContextBuilder_ == null) { - if (pipelineContext_ != null) { - pipelineContext_ = - com.google.cloud.aiplatform.v1beta1.Context.newBuilder(pipelineContext_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && pipelineContext_ != null + && pipelineContext_ + != com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance()) { + getPipelineContextBuilder().mergeFrom(value); } else { pipelineContext_ = value; } - onChanged(); } else { pipelineContextBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -835,14 +851,13 @@ public Builder mergePipelineContext(com.google.cloud.aiplatform.v1beta1.Context * */ public Builder clearPipelineContext() { - if (pipelineContextBuilder_ == null) { - pipelineContext_ = null; - onChanged(); - } else { - pipelineContext_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + pipelineContext_ = null; + if (pipelineContextBuilder_ != null) { + pipelineContextBuilder_.dispose(); pipelineContextBuilder_ = null; } - + onChanged(); return this; } /** @@ -857,7 +872,7 @@ public Builder clearPipelineContext() { * */ public com.google.cloud.aiplatform.v1beta1.Context.Builder getPipelineContextBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getPipelineContextFieldBuilder().getBuilder(); } @@ -929,7 +944,7 @@ public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getPipelineContextOr * @return Whether the pipelineRunContext field is set. */ public boolean hasPipelineRunContext() { - return pipelineRunContextBuilder_ != null || pipelineRunContext_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -970,11 +985,11 @@ public Builder setPipelineRunContext(com.google.cloud.aiplatform.v1beta1.Context throw new NullPointerException(); } pipelineRunContext_ = value; - onChanged(); } else { pipelineRunContextBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -992,11 +1007,11 @@ public Builder setPipelineRunContext( com.google.cloud.aiplatform.v1beta1.Context.Builder builderForValue) { if (pipelineRunContextBuilder_ == null) { pipelineRunContext_ = builderForValue.build(); - onChanged(); } else { pipelineRunContextBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1012,19 +1027,19 @@ public Builder setPipelineRunContext( */ public Builder mergePipelineRunContext(com.google.cloud.aiplatform.v1beta1.Context value) { if (pipelineRunContextBuilder_ == null) { - if (pipelineRunContext_ != null) { - pipelineRunContext_ = - com.google.cloud.aiplatform.v1beta1.Context.newBuilder(pipelineRunContext_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && pipelineRunContext_ != null + && pipelineRunContext_ + != com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance()) { + getPipelineRunContextBuilder().mergeFrom(value); } else { pipelineRunContext_ = value; } - onChanged(); } else { pipelineRunContextBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1039,14 +1054,13 @@ public Builder mergePipelineRunContext(com.google.cloud.aiplatform.v1beta1.Conte * */ public Builder clearPipelineRunContext() { - if (pipelineRunContextBuilder_ == null) { - pipelineRunContext_ = null; - onChanged(); - } else { - pipelineRunContext_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + pipelineRunContext_ = null; + if (pipelineRunContextBuilder_ != null) { + pipelineRunContextBuilder_.dispose(); pipelineRunContextBuilder_ = null; } - + onChanged(); return this; } /** @@ -1061,7 +1075,7 @@ public Builder clearPipelineRunContext() { * */ public com.google.cloud.aiplatform.v1beta1.Context.Builder getPipelineRunContextBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getPipelineRunContextFieldBuilder().getBuilder(); } @@ -1117,11 +1131,11 @@ public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getPipelineRunContex java.util.Collections.emptyList(); private void ensureTaskDetailsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { taskDetails_ = new java.util.ArrayList( taskDetails_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -1363,7 +1377,7 @@ public Builder addAllTaskDetails( public Builder clearTaskDetails() { if (taskDetailsBuilder_ == null) { taskDetails_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { taskDetailsBuilder_.clear(); @@ -1503,7 +1517,7 @@ public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.Builder addTaskDet com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.Builder, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetailOrBuilder>( - taskDetails_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + taskDetails_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); taskDetails_ = null; } return taskDetailsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java index fe5103594f0e..334253792e22 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java @@ -430,7 +430,6 @@ public interface PipelineJobOrBuilder * * map<string, string> labels = 11; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetail.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetail.java index 2b427ce7679b..9f09c8078452 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetail.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetail.java @@ -622,11 +622,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int STATE_FIELD_NUMBER = 2; - private int state_; + private int state_ = 0; /** * * @@ -659,9 +659,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State result = - com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State.UNRECOGNIZED : result; @@ -722,7 +721,7 @@ public com.google.rpc.Status getError() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return getError(); + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } private byte memoizedIsInitialized = -1; @@ -966,18 +965,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + bitField0_ = 0; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } state_ = 0; - - if (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } return this; @@ -1011,21 +1008,28 @@ public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus buildPartial() { com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus result = new com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus(this); - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.state_ = state_; - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateTime_ = + updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1116,19 +1120,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { state_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -1148,6 +1152,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1168,7 +1174,7 @@ public Builder mergeFrom( * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1209,11 +1215,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1230,11 +1236,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1250,19 +1256,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1277,14 +1282,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1299,7 +1303,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -1384,8 +1388,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1404,9 +1408,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State result = - com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State.UNRECOGNIZED : result; @@ -1429,7 +1432,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.S if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; state_ = value.getNumber(); onChanged(); return this; @@ -1448,7 +1451,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.S * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000002); state_ = 0; onChanged(); return this; @@ -1474,7 +1477,7 @@ public Builder clearState() { * @return Whether the error field is set. */ public boolean hasError() { - return errorBuilder_ != null || error_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1517,11 +1520,11 @@ public Builder setError(com.google.rpc.Status value) { throw new NullPointerException(); } error_ = value; - onChanged(); } else { errorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1540,11 +1543,11 @@ public Builder setError(com.google.rpc.Status value) { public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); - onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1562,16 +1565,18 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (error_ != null) { - error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); } else { error_ = value; } - onChanged(); } else { errorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1588,14 +1593,13 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } - + onChanged(); return this; } /** @@ -1612,7 +1616,7 @@ public Builder clearError() { * .google.rpc.Status error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getErrorFieldBuilder().getBuilder(); } @@ -1848,6 +1852,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ARTIFACTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List artifacts_; /** * @@ -2130,6 +2136,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (artifactsBuilder_ == null) { artifacts_ = java.util.Collections.emptyList(); } else { @@ -2166,7 +2173,16 @@ public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList build public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList buildPartial() { com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList result = new com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList result) { if (artifactsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { artifacts_ = java.util.Collections.unmodifiableList(artifacts_); @@ -2176,8 +2192,11 @@ public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList build } else { result.artifacts_ = artifactsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -2772,7 +2791,7 @@ public com.google.protobuf.Parser getParserForType() { } public static final int TASK_ID_FIELD_NUMBER = 1; - private long taskId_; + private long taskId_ = 0L; /** * * @@ -2790,7 +2809,7 @@ public long getTaskId() { } public static final int PARENT_TASK_ID_FIELD_NUMBER = 12; - private long parentTaskId_; + private long parentTaskId_ = 0L; /** * * @@ -2809,7 +2828,9 @@ public long getParentTaskId() { } public static final int TASK_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object taskName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object taskName_ = ""; /** * * @@ -2905,7 +2926,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int START_TIME_FIELD_NUMBER = 4; @@ -2954,7 +2975,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 5; @@ -3003,7 +3024,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } public static final int EXECUTOR_DETAIL_FIELD_NUMBER = 6; @@ -3058,11 +3079,13 @@ public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail getExecuto @java.lang.Override public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetailOrBuilder getExecutorDetailOrBuilder() { - return getExecutorDetail(); + return executorDetail_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.getDefaultInstance() + : executorDetail_; } public static final int STATE_FIELD_NUMBER = 7; - private int state_; + private int state_ = 0; /** * * @@ -3095,9 +3118,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State result = - com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State.UNRECOGNIZED : result; @@ -3154,7 +3176,9 @@ public com.google.cloud.aiplatform.v1beta1.Execution getExecution() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionOrBuilder() { - return getExecution(); + return execution_ == null + ? com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance() + : execution_; } public static final int ERROR_FIELD_NUMBER = 9; @@ -3203,10 +3227,12 @@ public com.google.rpc.Status getError() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return getError(); + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } public static final int PIPELINE_TASK_STATUS_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") private java.util.List pipelineTaskStatus_; /** @@ -3315,6 +3341,7 @@ private static final class InputsDefaultEntryHolder { .getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> inputs_; @@ -3386,9 +3413,11 @@ public boolean containsInputs(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getInputsOrDefault( - java.lang.String key, - com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + getInputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3442,6 +3471,7 @@ private static final class OutputsDefaultEntryHolder { .getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> outputs_; @@ -3513,9 +3543,11 @@ public boolean containsOutputs(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getOutputsOrDefault( - java.lang.String key, - com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + getOutputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3939,48 +3971,39 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; taskId_ = 0L; - parentTaskId_ = 0L; - taskName_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - if (executorDetailBuilder_ == null) { - executorDetail_ = null; - } else { - executorDetail_ = null; + executorDetail_ = null; + if (executorDetailBuilder_ != null) { + executorDetailBuilder_.dispose(); executorDetailBuilder_ = null; } state_ = 0; - - if (executionBuilder_ == null) { - execution_ = null; - } else { - execution_ = null; + execution_ = null; + if (executionBuilder_ != null) { + executionBuilder_.dispose(); executionBuilder_ = null; } - if (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } if (pipelineTaskStatusBuilder_ == null) { @@ -3989,7 +4012,7 @@ public Builder clear() { pipelineTaskStatus_ = null; pipelineTaskStatusBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); internalGetMutableInputs().clear(); internalGetMutableOutputs().clear(); return this; @@ -4019,56 +4042,68 @@ public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail build() { public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail buildPartial() { com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail result = new com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail(this); - int from_bitField0_ = bitField0_; - result.taskId_ = taskId_; - result.parentTaskId_ = parentTaskId_; - result.taskName_ = taskName_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); - } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); - } - if (executorDetailBuilder_ == null) { - result.executorDetail_ = executorDetail_; - } else { - result.executorDetail_ = executorDetailBuilder_.build(); - } - result.state_ = state_; - if (executionBuilder_ == null) { - result.execution_ = execution_; - } else { - result.execution_ = executionBuilder_.build(); - } - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail result) { if (pipelineTaskStatusBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { pipelineTaskStatus_ = java.util.Collections.unmodifiableList(pipelineTaskStatus_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); } result.pipelineTaskStatus_ = pipelineTaskStatus_; } else { result.pipelineTaskStatus_ = pipelineTaskStatusBuilder_.build(); } - result.inputs_ = internalGetInputs(); - result.inputs_.makeImmutable(); - result.outputs_ = internalGetOutputs(); - result.outputs_.makeImmutable(); - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.taskId_ = taskId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parentTaskId_ = parentTaskId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.taskName_ = taskName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.executorDetail_ = + executorDetailBuilder_ == null ? executorDetail_ : executorDetailBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.execution_ = executionBuilder_ == null ? execution_ : executionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.inputs_ = internalGetInputs(); + result.inputs_.makeImmutable(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.outputs_ = internalGetOutputs(); + result.outputs_.makeImmutable(); + } } @java.lang.Override @@ -4125,6 +4160,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail } if (!other.getTaskName().isEmpty()) { taskName_ = other.taskName_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasCreateTime()) { @@ -4152,7 +4188,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail if (!other.pipelineTaskStatus_.isEmpty()) { if (pipelineTaskStatus_.isEmpty()) { pipelineTaskStatus_ = other.pipelineTaskStatus_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); } else { ensurePipelineTaskStatusIsMutable(); pipelineTaskStatus_.addAll(other.pipelineTaskStatus_); @@ -4165,7 +4201,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail pipelineTaskStatusBuilder_.dispose(); pipelineTaskStatusBuilder_ = null; pipelineTaskStatus_ = other.pipelineTaskStatus_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); pipelineTaskStatusBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPipelineTaskStatusFieldBuilder() @@ -4176,7 +4212,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail } } internalGetMutableInputs().mergeFrom(other.internalGetInputs()); + bitField0_ |= 0x00000800; internalGetMutableOutputs().mergeFrom(other.internalGetOutputs()); + bitField0_ |= 0x00001000; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4206,55 +4244,55 @@ public Builder mergeFrom( case 8: { taskId_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { taskName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 18 case 26: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 34 case 42: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 42 case 50: { input.readMessage(getExecutorDetailFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 50 case 56: { state_ = input.readEnum(); - + bitField0_ |= 0x00000080; break; } // case 56 case 66: { input.readMessage(getExecutionFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 66 case 74: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 74 case 82: @@ -4269,6 +4307,7 @@ public Builder mergeFrom( internalGetMutableInputs() .getMutableMap() .put(inputs__.getKey(), inputs__.getValue()); + bitField0_ |= 0x00000800; break; } // case 82 case 90: @@ -4283,12 +4322,13 @@ public Builder mergeFrom( internalGetMutableOutputs() .getMutableMap() .put(outputs__.getKey(), outputs__.getValue()); + bitField0_ |= 0x00001000; break; } // case 90 case 96: { parentTaskId_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 96 case 106: @@ -4356,6 +4396,7 @@ public long getTaskId() { public Builder setTaskId(long value) { taskId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4371,7 +4412,7 @@ public Builder setTaskId(long value) { * @return This builder for chaining. */ public Builder clearTaskId() { - + bitField0_ = (bitField0_ & ~0x00000001); taskId_ = 0L; onChanged(); return this; @@ -4410,6 +4451,7 @@ public long getParentTaskId() { public Builder setParentTaskId(long value) { parentTaskId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4426,7 +4468,7 @@ public Builder setParentTaskId(long value) { * @return This builder for chaining. */ public Builder clearParentTaskId() { - + bitField0_ = (bitField0_ & ~0x00000002); parentTaskId_ = 0L; onChanged(); return this; @@ -4496,8 +4538,8 @@ public Builder setTaskName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - taskName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4514,8 +4556,8 @@ public Builder setTaskName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTaskName() { - taskName_ = getDefaultInstance().getTaskName(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -4537,8 +4579,8 @@ public Builder setTaskNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - taskName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4563,7 +4605,7 @@ public Builder setTaskNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -4604,11 +4646,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4625,11 +4667,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4645,17 +4687,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4670,14 +4713,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -4692,7 +4734,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -4763,7 +4805,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -4800,11 +4842,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4820,11 +4862,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4839,17 +4881,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4863,14 +4906,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -4884,7 +4926,7 @@ public Builder clearStartTime() { * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -4951,7 +4993,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -4988,11 +5030,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -5008,11 +5050,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -5027,17 +5069,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -5051,14 +5094,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -5072,7 +5114,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -5140,7 +5182,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * @return Whether the executorDetail field is set. */ public boolean hasExecutorDetail() { - return executorDetailBuilder_ != null || executorDetail_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -5182,11 +5224,11 @@ public Builder setExecutorDetail( throw new NullPointerException(); } executorDetail_ = value; - onChanged(); } else { executorDetailBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -5204,11 +5246,11 @@ public Builder setExecutorDetail( com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.Builder builderForValue) { if (executorDetailBuilder_ == null) { executorDetail_ = builderForValue.build(); - onChanged(); } else { executorDetailBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -5225,20 +5267,20 @@ public Builder setExecutorDetail( public Builder mergeExecutorDetail( com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail value) { if (executorDetailBuilder_ == null) { - if (executorDetail_ != null) { - executorDetail_ = - com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.newBuilder( - executorDetail_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && executorDetail_ != null + && executorDetail_ + != com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail + .getDefaultInstance()) { + getExecutorDetailBuilder().mergeFrom(value); } else { executorDetail_ = value; } - onChanged(); } else { executorDetailBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -5253,14 +5295,13 @@ public Builder mergeExecutorDetail( * */ public Builder clearExecutorDetail() { - if (executorDetailBuilder_ == null) { - executorDetail_ = null; - onChanged(); - } else { - executorDetail_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + executorDetail_ = null; + if (executorDetailBuilder_ != null) { + executorDetailBuilder_.dispose(); executorDetailBuilder_ = null; } - + onChanged(); return this; } /** @@ -5276,7 +5317,7 @@ public Builder clearExecutorDetail() { */ public com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.Builder getExecutorDetailBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getExecutorDetailFieldBuilder().getBuilder(); } @@ -5362,8 +5403,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -5382,9 +5423,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State result = - com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.State.UNRECOGNIZED : result; @@ -5407,7 +5447,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.S if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000080; state_ = value.getNumber(); onChanged(); return this; @@ -5426,7 +5466,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.S * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000080); state_ = 0; onChanged(); return this; @@ -5452,7 +5492,7 @@ public Builder clearState() { * @return Whether the execution field is set. */ public boolean hasExecution() { - return executionBuilder_ != null || execution_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -5493,11 +5533,11 @@ public Builder setExecution(com.google.cloud.aiplatform.v1beta1.Execution value) throw new NullPointerException(); } execution_ = value; - onChanged(); } else { executionBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -5515,11 +5555,11 @@ public Builder setExecution( com.google.cloud.aiplatform.v1beta1.Execution.Builder builderForValue) { if (executionBuilder_ == null) { execution_ = builderForValue.build(); - onChanged(); } else { executionBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -5535,19 +5575,18 @@ public Builder setExecution( */ public Builder mergeExecution(com.google.cloud.aiplatform.v1beta1.Execution value) { if (executionBuilder_ == null) { - if (execution_ != null) { - execution_ = - com.google.cloud.aiplatform.v1beta1.Execution.newBuilder(execution_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && execution_ != null + && execution_ != com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance()) { + getExecutionBuilder().mergeFrom(value); } else { execution_ = value; } - onChanged(); } else { executionBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -5562,14 +5601,13 @@ public Builder mergeExecution(com.google.cloud.aiplatform.v1beta1.Execution valu * */ public Builder clearExecution() { - if (executionBuilder_ == null) { - execution_ = null; - onChanged(); - } else { - execution_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + execution_ = null; + if (executionBuilder_ != null) { + executionBuilder_.dispose(); executionBuilder_ = null; } - + onChanged(); return this; } /** @@ -5584,7 +5622,7 @@ public Builder clearExecution() { * */ public com.google.cloud.aiplatform.v1beta1.Execution.Builder getExecutionBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getExecutionFieldBuilder().getBuilder(); } @@ -5653,7 +5691,7 @@ public com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionOrBuil * @return Whether the error field is set. */ public boolean hasError() { - return errorBuilder_ != null || error_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -5690,11 +5728,11 @@ public Builder setError(com.google.rpc.Status value) { throw new NullPointerException(); } error_ = value; - onChanged(); } else { errorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -5710,11 +5748,11 @@ public Builder setError(com.google.rpc.Status value) { public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); - onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -5729,16 +5767,18 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (error_ != null) { - error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); } else { error_ = value; } - onChanged(); } else { errorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -5752,14 +5792,13 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } - + onChanged(); return this; } /** @@ -5773,7 +5812,7 @@ public Builder clearError() { * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getErrorFieldBuilder().getBuilder(); } @@ -5823,12 +5862,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { pipelineTaskStatus_ = java.util.Collections.emptyList(); private void ensurePipelineTaskStatusIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000400) != 0)) { pipelineTaskStatus_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus>( pipelineTaskStatus_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000400; } } @@ -6091,7 +6130,7 @@ public Builder addAllPipelineTaskStatus( public Builder clearPipelineTaskStatus() { if (pipelineTaskStatusBuilder_ == null) { pipelineTaskStatus_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { pipelineTaskStatusBuilder_.clear(); @@ -6247,7 +6286,7 @@ public Builder removePipelineTaskStatus(int index) { com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus.Builder, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatusOrBuilder>( pipelineTaskStatus_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); pipelineTaskStatus_ = null; @@ -6271,14 +6310,14 @@ public Builder removePipelineTaskStatus(int index) { private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> internalGetMutableInputs() { - onChanged(); - ; if (inputs_ == null) { inputs_ = com.google.protobuf.MapField.newMapField(InputsDefaultEntryHolder.defaultEntry); } if (!inputs_.isMutable()) { inputs_ = inputs_.copy(); } + bitField0_ |= 0x00000800; + onChanged(); return inputs_; } @@ -6340,9 +6379,11 @@ public boolean containsInputs(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getInputsOrDefault( - java.lang.String key, - com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + getInputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -6378,6 +6419,7 @@ public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getIn } public Builder clearInputs() { + bitField0_ = (bitField0_ & ~0x00000800); internalGetMutableInputs().getMutableMap().clear(); return this; } @@ -6404,6 +6446,7 @@ public Builder removeInputs(java.lang.String key) { public java.util.Map< java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> getMutableInputs() { + bitField0_ |= 0x00000800; return internalGetMutableInputs().getMutableMap(); } /** @@ -6426,8 +6469,8 @@ public Builder putInputs( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableInputs().getMutableMap().put(key, value); + bitField0_ |= 0x00000800; return this; } /** @@ -6447,6 +6490,7 @@ public Builder putAllInputs( com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> values) { internalGetMutableInputs().getMutableMap().putAll(values); + bitField0_ |= 0x00000800; return this; } @@ -6466,14 +6510,14 @@ public Builder putAllInputs( private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> internalGetMutableOutputs() { - onChanged(); - ; if (outputs_ == null) { outputs_ = com.google.protobuf.MapField.newMapField(OutputsDefaultEntryHolder.defaultEntry); } if (!outputs_.isMutable()) { outputs_ = outputs_.copy(); } + bitField0_ |= 0x00001000; + onChanged(); return outputs_; } @@ -6535,9 +6579,11 @@ public boolean containsOutputs(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getOutputsOrDefault( - java.lang.String key, - com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList + getOutputsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -6573,6 +6619,7 @@ public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getOu } public Builder clearOutputs() { + bitField0_ = (bitField0_ & ~0x00001000); internalGetMutableOutputs().getMutableMap().clear(); return this; } @@ -6599,6 +6646,7 @@ public Builder removeOutputs(java.lang.String key) { public java.util.Map< java.lang.String, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> getMutableOutputs() { + bitField0_ |= 0x00001000; return internalGetMutableOutputs().getMutableMap(); } /** @@ -6621,8 +6669,8 @@ public Builder putOutputs( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableOutputs().getMutableMap().put(key, value); + bitField0_ |= 0x00001000; return this; } /** @@ -6642,6 +6690,7 @@ public Builder putAllOutputs( com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> values) { internalGetMutableOutputs().getMutableMap().putAll(values); + bitField0_ |= 0x00001000; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetailOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetailOrBuilder.java index 3338c48fcb47..3a112907320a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetailOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskDetailOrBuilder.java @@ -467,7 +467,6 @@ com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.PipelineTaskStatus getPip * map<string, .google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - /* nullable */ com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getInputsOrDefault( java.lang.String key, @@ -541,7 +540,6 @@ com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getInputsOrT * map<string, .google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - /* nullable */ com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.ArtifactList getOutputsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetail.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetail.java index ab6510f98b17..98e73217d6e7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetail.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetail.java @@ -342,7 +342,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MAIN_JOB_FIELD_NUMBER = 1; - private volatile java.lang.Object mainJob_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mainJob_ = ""; /** * * @@ -399,7 +401,9 @@ public com.google.protobuf.ByteString getMainJobBytes() { } public static final int PRE_CACHING_CHECK_JOB_FIELD_NUMBER = 2; - private volatile java.lang.Object preCachingCheckJob_; + + @SuppressWarnings("serial") + private volatile java.lang.Object preCachingCheckJob_ = ""; /** * * @@ -460,6 +464,8 @@ public com.google.protobuf.ByteString getPreCachingCheckJobBytes() { } public static final int FAILED_MAIN_JOBS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList failedMainJobs_; /** * @@ -537,6 +543,8 @@ public com.google.protobuf.ByteString getFailedMainJobsBytes(int index) { } public static final int FAILED_PRE_CACHING_CHECK_JOBS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList failedPreCachingCheckJobs_; /** * @@ -881,14 +889,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; mainJob_ = ""; - preCachingCheckJob_ = ""; - failedMainJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); failedPreCachingCheckJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -922,21 +929,37 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail result = new com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail( this); - int from_bitField0_ = bitField0_; - result.mainJob_ = mainJob_; - result.preCachingCheckJob_ = preCachingCheckJob_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail result) { + if (((bitField0_ & 0x00000004) != 0)) { failedMainJobs_ = failedMainJobs_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.failedMainJobs_ = failedMainJobs_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { failedPreCachingCheckJobs_ = failedPreCachingCheckJobs_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); } result.failedPreCachingCheckJobs_ = failedPreCachingCheckJobs_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ContainerDetail result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mainJob_ = mainJob_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.preCachingCheckJob_ = preCachingCheckJob_; + } } @java.lang.Override @@ -995,16 +1018,18 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getMainJob().isEmpty()) { mainJob_ = other.mainJob_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getPreCachingCheckJob().isEmpty()) { preCachingCheckJob_ = other.preCachingCheckJob_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.failedMainJobs_.isEmpty()) { if (failedMainJobs_.isEmpty()) { failedMainJobs_ = other.failedMainJobs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFailedMainJobsIsMutable(); failedMainJobs_.addAll(other.failedMainJobs_); @@ -1014,7 +1039,7 @@ public Builder mergeFrom( if (!other.failedPreCachingCheckJobs_.isEmpty()) { if (failedPreCachingCheckJobs_.isEmpty()) { failedPreCachingCheckJobs_ = other.failedPreCachingCheckJobs_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureFailedPreCachingCheckJobsIsMutable(); failedPreCachingCheckJobs_.addAll(other.failedPreCachingCheckJobs_); @@ -1050,13 +1075,13 @@ public Builder mergeFrom( case 10: { mainJob_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { preCachingCheckJob_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -1165,8 +1190,8 @@ public Builder setMainJob(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mainJob_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1186,8 +1211,8 @@ public Builder setMainJob(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMainJob() { - mainJob_ = getDefaultInstance().getMainJob(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1212,8 +1237,8 @@ public Builder setMainJobBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mainJob_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1297,8 +1322,8 @@ public Builder setPreCachingCheckJob(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - preCachingCheckJob_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1320,8 +1345,8 @@ public Builder setPreCachingCheckJob(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPreCachingCheckJob() { - preCachingCheckJob_ = getDefaultInstance().getPreCachingCheckJob(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1348,8 +1373,8 @@ public Builder setPreCachingCheckJobBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - preCachingCheckJob_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1358,9 +1383,9 @@ public Builder setPreCachingCheckJobBytes(com.google.protobuf.ByteString value) com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFailedMainJobsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { failedMainJobs_ = new com.google.protobuf.LazyStringArrayList(failedMainJobs_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } /** @@ -1527,7 +1552,7 @@ public Builder addAllFailedMainJobs(java.lang.Iterable values) */ public Builder clearFailedMainJobs() { failedMainJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1562,10 +1587,10 @@ public Builder addFailedMainJobsBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFailedPreCachingCheckJobsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { failedPreCachingCheckJobs_ = new com.google.protobuf.LazyStringArrayList(failedPreCachingCheckJobs_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; } } /** @@ -1756,7 +1781,7 @@ public Builder addAllFailedPreCachingCheckJobs(java.lang.Iterable instances_; /** * @@ -299,7 +303,7 @@ public com.google.protobuf.Value getParameters() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getParametersOrBuilder() { - return getParameters(); + return parameters_ == null ? com.google.protobuf.Value.getDefaultInstance() : parameters_; } private byte memoizedIsInitialized = -1; @@ -525,19 +529,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; endpoint_ = ""; - if (instancesBuilder_ == null) { instances_ = java.util.Collections.emptyList(); } else { instances_ = null; instancesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (parametersBuilder_ == null) { - parameters_ = null; - } else { - parameters_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } return this; @@ -567,24 +570,35 @@ public com.google.cloud.aiplatform.v1beta1.PredictRequest build() { public com.google.cloud.aiplatform.v1beta1.PredictRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.PredictRequest result = new com.google.cloud.aiplatform.v1beta1.PredictRequest(this); - int from_bitField0_ = bitField0_; - result.endpoint_ = endpoint_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.PredictRequest result) { if (instancesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { instances_ = java.util.Collections.unmodifiableList(instances_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.instances_ = instances_; } else { result.instances_ = instancesBuilder_.build(); } - if (parametersBuilder_ == null) { - result.parameters_ = parameters_; - } else { - result.parameters_ = parametersBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PredictRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpoint_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -635,13 +649,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PredictRequest othe return this; if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { instances_ = other.instances_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureInstancesIsMutable(); instances_.addAll(other.instances_); @@ -654,7 +669,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PredictRequest othe instancesBuilder_.dispose(); instancesBuilder_ = null; instances_ = other.instances_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); instancesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInstancesFieldBuilder() @@ -696,7 +711,7 @@ public Builder mergeFrom( case 10: { endpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -714,7 +729,7 @@ public Builder mergeFrom( case 26: { input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -809,8 +824,8 @@ public Builder setEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -830,8 +845,8 @@ public Builder setEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEndpoint() { - endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -856,8 +871,8 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -866,9 +881,9 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureInstancesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { instances_ = new java.util.ArrayList(instances_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1201,7 +1216,7 @@ public Builder addAllInstances(java.lang.Iterable getInstancesBuilderList com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( - instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + instances_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); instances_ = null; } return instancesBuilder_; @@ -1426,7 +1441,7 @@ public java.util.List getInstancesBuilderList * @return Whether the parameters field is set. */ public boolean hasParameters() { - return parametersBuilder_ != null || parameters_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1469,11 +1484,11 @@ public Builder setParameters(com.google.protobuf.Value value) { throw new NullPointerException(); } parameters_ = value; - onChanged(); } else { parametersBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1492,11 +1507,11 @@ public Builder setParameters(com.google.protobuf.Value value) { public Builder setParameters(com.google.protobuf.Value.Builder builderForValue) { if (parametersBuilder_ == null) { parameters_ = builderForValue.build(); - onChanged(); } else { parametersBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1514,17 +1529,18 @@ public Builder setParameters(com.google.protobuf.Value.Builder builderForValue) */ public Builder mergeParameters(com.google.protobuf.Value value) { if (parametersBuilder_ == null) { - if (parameters_ != null) { - parameters_ = - com.google.protobuf.Value.newBuilder(parameters_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && parameters_ != null + && parameters_ != com.google.protobuf.Value.getDefaultInstance()) { + getParametersBuilder().mergeFrom(value); } else { parameters_ = value; } - onChanged(); } else { parametersBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1541,14 +1557,13 @@ public Builder mergeParameters(com.google.protobuf.Value value) { * .google.protobuf.Value parameters = 3; */ public Builder clearParameters() { - if (parametersBuilder_ == null) { - parameters_ = null; - onChanged(); - } else { - parameters_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } - + onChanged(); return this; } /** @@ -1565,7 +1580,7 @@ public Builder clearParameters() { * .google.protobuf.Value parameters = 3; */ public com.google.protobuf.Value.Builder getParametersBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getParametersFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictRequestResponseLoggingConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictRequestResponseLoggingConfig.java index 5b48a41a3100..a96360898ff8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictRequestResponseLoggingConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictRequestResponseLoggingConfig.java @@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; + private boolean enabled_ = false; /** * * @@ -86,7 +86,7 @@ public boolean getEnabled() { } public static final int SAMPLING_RATE_FIELD_NUMBER = 2; - private double samplingRate_; + private double samplingRate_ = 0D; /** * * @@ -165,7 +165,9 @@ public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestin @java.lang.Override public com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { - return getBigqueryDestination(); + return bigqueryDestination_ == null + ? com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance() + : bigqueryDestination_; } private byte memoizedIsInitialized = -1; @@ -396,14 +398,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; enabled_ = false; - samplingRate_ = 0D; - - if (bigqueryDestinationBuilder_ == null) { - bigqueryDestination_ = null; - } else { - bigqueryDestination_ = null; + bigqueryDestination_ = null; + if (bigqueryDestinationBuilder_ != null) { + bigqueryDestinationBuilder_.dispose(); bigqueryDestinationBuilder_ = null; } return this; @@ -436,17 +436,30 @@ public com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig b public com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig result = new com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig(this); - result.enabled_ = enabled_; - result.samplingRate_ = samplingRate_; - if (bigqueryDestinationBuilder_ == null) { - result.bigqueryDestination_ = bigqueryDestination_; - } else { - result.bigqueryDestination_ = bigqueryDestinationBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.samplingRate_ = samplingRate_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.bigqueryDestination_ = + bigqueryDestinationBuilder_ == null + ? bigqueryDestination_ + : bigqueryDestinationBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -535,20 +548,20 @@ public Builder mergeFrom( case 8: { enabled_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 case 17: { samplingRate_ = input.readDouble(); - + bitField0_ |= 0x00000002; break; } // case 17 case 26: { input.readMessage( getBigqueryDestinationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -568,6 +581,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean enabled_; /** * @@ -599,6 +614,7 @@ public boolean getEnabled() { public Builder setEnabled(boolean value) { enabled_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -614,7 +630,7 @@ public Builder setEnabled(boolean value) { * @return This builder for chaining. */ public Builder clearEnabled() { - + bitField0_ = (bitField0_ & ~0x00000001); enabled_ = false; onChanged(); return this; @@ -653,6 +669,7 @@ public double getSamplingRate() { public Builder setSamplingRate(double value) { samplingRate_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -669,7 +686,7 @@ public Builder setSamplingRate(double value) { * @return This builder for chaining. */ public Builder clearSamplingRate() { - + bitField0_ = (bitField0_ & ~0x00000002); samplingRate_ = 0D; onChanged(); return this; @@ -698,7 +715,7 @@ public Builder clearSamplingRate() { * @return Whether the bigqueryDestination field is set. */ public boolean hasBigqueryDestination() { - return bigqueryDestinationBuilder_ != null || bigqueryDestination_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -746,11 +763,11 @@ public Builder setBigqueryDestination( throw new NullPointerException(); } bigqueryDestination_ = value; - onChanged(); } else { bigqueryDestinationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -771,11 +788,11 @@ public Builder setBigqueryDestination( com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder builderForValue) { if (bigqueryDestinationBuilder_ == null) { bigqueryDestination_ = builderForValue.build(); - onChanged(); } else { bigqueryDestinationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -795,20 +812,19 @@ public Builder setBigqueryDestination( public Builder mergeBigqueryDestination( com.google.cloud.aiplatform.v1beta1.BigQueryDestination value) { if (bigqueryDestinationBuilder_ == null) { - if (bigqueryDestination_ != null) { - bigqueryDestination_ = - com.google.cloud.aiplatform.v1beta1.BigQueryDestination.newBuilder( - bigqueryDestination_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && bigqueryDestination_ != null + && bigqueryDestination_ + != com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance()) { + getBigqueryDestinationBuilder().mergeFrom(value); } else { bigqueryDestination_ = value; } - onChanged(); } else { bigqueryDestinationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -826,14 +842,13 @@ public Builder mergeBigqueryDestination( * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3; */ public Builder clearBigqueryDestination() { - if (bigqueryDestinationBuilder_ == null) { - bigqueryDestination_ = null; - onChanged(); - } else { - bigqueryDestination_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + bigqueryDestination_ = null; + if (bigqueryDestinationBuilder_ != null) { + bigqueryDestinationBuilder_.dispose(); bigqueryDestinationBuilder_ = null; } - + onChanged(); return this; } /** @@ -852,7 +867,7 @@ public Builder clearBigqueryDestination() { */ public com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder getBigqueryDestinationBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getBigqueryDestinationFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictResponse.java index 7ace177beb1c..d42abc61fd2a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictResponse.java @@ -73,6 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PREDICTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List predictions_; /** * @@ -167,7 +169,9 @@ public com.google.protobuf.ValueOrBuilder getPredictionsOrBuilder(int index) { } public static final int DEPLOYED_MODEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deployedModelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedModelId_ = ""; /** * * @@ -216,7 +220,9 @@ public com.google.protobuf.ByteString getDeployedModelIdBytes() { } public static final int MODEL_FIELD_NUMBER = 3; - private volatile java.lang.Object model_; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; /** * * @@ -271,7 +277,9 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int MODEL_VERSION_ID_FIELD_NUMBER = 5; - private volatile java.lang.Object modelVersionId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelVersionId_ = ""; /** * * @@ -322,7 +330,9 @@ public com.google.protobuf.ByteString getModelVersionIdBytes() { } public static final int MODEL_DISPLAY_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object modelDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelDisplayName_ = ""; /** * * @@ -610,6 +620,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (predictionsBuilder_ == null) { predictions_ = java.util.Collections.emptyList(); } else { @@ -618,13 +629,9 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); deployedModelId_ = ""; - model_ = ""; - modelVersionId_ = ""; - modelDisplayName_ = ""; - return this; } @@ -652,7 +659,16 @@ public com.google.cloud.aiplatform.v1beta1.PredictResponse build() { public com.google.cloud.aiplatform.v1beta1.PredictResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.PredictResponse result = new com.google.cloud.aiplatform.v1beta1.PredictResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.PredictResponse result) { if (predictionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { predictions_ = java.util.Collections.unmodifiableList(predictions_); @@ -662,12 +678,22 @@ public com.google.cloud.aiplatform.v1beta1.PredictResponse buildPartial() { } else { result.predictions_ = predictionsBuilder_.build(); } - result.deployedModelId_ = deployedModelId_; - result.model_ = model_; - result.modelVersionId_ = modelVersionId_; - result.modelDisplayName_ = modelDisplayName_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PredictResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedModelId_ = deployedModelId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.model_ = model_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.modelVersionId_ = modelVersionId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.modelDisplayName_ = modelDisplayName_; + } } @java.lang.Override @@ -745,18 +771,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PredictResponse oth } if (!other.getDeployedModelId().isEmpty()) { deployedModelId_ = other.deployedModelId_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getModel().isEmpty()) { model_ = other.model_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getModelVersionId().isEmpty()) { modelVersionId_ = other.modelVersionId_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getModelDisplayName().isEmpty()) { modelDisplayName_ = other.modelDisplayName_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -800,25 +830,25 @@ public Builder mergeFrom( case 18: { deployedModelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { model_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { modelDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 34 case 42: { modelVersionId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 42 default: @@ -1337,8 +1367,8 @@ public Builder setDeployedModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1354,8 +1384,8 @@ public Builder setDeployedModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedModelId() { - deployedModelId_ = getDefaultInstance().getDeployedModelId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1376,8 +1406,8 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1452,8 +1482,8 @@ public Builder setModel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - model_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1472,8 +1502,8 @@ public Builder setModel(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModel() { - model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1497,8 +1527,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - model_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1567,8 +1597,8 @@ public Builder setModelVersionId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelVersionId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1585,8 +1615,8 @@ public Builder setModelVersionId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelVersionId() { - modelVersionId_ = getDefaultInstance().getModelVersionId(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1608,8 +1638,8 @@ public Builder setModelVersionIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelVersionId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1681,8 +1711,8 @@ public Builder setModelDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelDisplayName_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1700,8 +1730,8 @@ public Builder setModelDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelDisplayName() { - modelDisplayName_ = getDefaultInstance().getModelDisplayName(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1724,8 +1754,8 @@ public Builder setModelDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelDisplayName_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictSchemata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictSchemata.java index d64b8df8e88b..6691bd0c0bb8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictSchemata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictSchemata.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INSTANCE_SCHEMA_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object instanceSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceSchemaUri_ = ""; /** * * @@ -144,7 +146,9 @@ public com.google.protobuf.ByteString getInstanceSchemaUriBytes() { } public static final int PARAMETERS_SCHEMA_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object parametersSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parametersSchemaUri_ = ""; /** * * @@ -217,7 +221,9 @@ public com.google.protobuf.ByteString getParametersSchemaUriBytes() { } public static final int PREDICTION_SCHEMA_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object predictionSchemaUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object predictionSchemaUri_ = ""; /** * * @@ -507,12 +513,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; instanceSchemaUri_ = ""; - parametersSchemaUri_ = ""; - predictionSchemaUri_ = ""; - return this; } @@ -540,13 +544,26 @@ public com.google.cloud.aiplatform.v1beta1.PredictSchemata build() { public com.google.cloud.aiplatform.v1beta1.PredictSchemata buildPartial() { com.google.cloud.aiplatform.v1beta1.PredictSchemata result = new com.google.cloud.aiplatform.v1beta1.PredictSchemata(this); - result.instanceSchemaUri_ = instanceSchemaUri_; - result.parametersSchemaUri_ = parametersSchemaUri_; - result.predictionSchemaUri_ = predictionSchemaUri_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PredictSchemata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instanceSchemaUri_ = instanceSchemaUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parametersSchemaUri_ = parametersSchemaUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.predictionSchemaUri_ = predictionSchemaUri_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -595,14 +612,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PredictSchemata oth return this; if (!other.getInstanceSchemaUri().isEmpty()) { instanceSchemaUri_ = other.instanceSchemaUri_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getParametersSchemaUri().isEmpty()) { parametersSchemaUri_ = other.parametersSchemaUri_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getPredictionSchemaUri().isEmpty()) { predictionSchemaUri_ = other.predictionSchemaUri_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -634,19 +654,19 @@ public Builder mergeFrom( case 10: { instanceSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { parametersSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { predictionSchemaUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -666,6 +686,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object instanceSchemaUri_ = ""; /** * @@ -760,8 +782,8 @@ public Builder setInstanceSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - instanceSchemaUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -788,8 +810,8 @@ public Builder setInstanceSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInstanceSchemaUri() { - instanceSchemaUri_ = getDefaultInstance().getInstanceSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -821,8 +843,8 @@ public Builder setInstanceSchemaUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - instanceSchemaUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -924,8 +946,8 @@ public Builder setParametersSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parametersSchemaUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -953,8 +975,8 @@ public Builder setParametersSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParametersSchemaUri() { - parametersSchemaUri_ = getDefaultInstance().getParametersSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -987,8 +1009,8 @@ public Builder setParametersSchemaUriBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - parametersSchemaUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1090,8 +1112,8 @@ public Builder setPredictionSchemaUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - predictionSchemaUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1119,8 +1141,8 @@ public Builder setPredictionSchemaUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPredictionSchemaUri() { - predictionSchemaUri_ = getDefaultInstance().getPredictionSchemaUri(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1153,8 +1175,8 @@ public Builder setPredictionSchemaUriBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - predictionSchemaUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Presets.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Presets.java index 87c078265fe6..05d81d67f168 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Presets.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Presets.java @@ -386,7 +386,7 @@ private Modality(int value) { private int bitField0_; public static final int QUERY_FIELD_NUMBER = 1; - private int query_; + private int query_ = 0; /** * * @@ -430,14 +430,13 @@ public int getQueryValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Presets.Query getQuery() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Presets.Query result = - com.google.cloud.aiplatform.v1beta1.Presets.Query.valueOf(query_); + com.google.cloud.aiplatform.v1beta1.Presets.Query.forNumber(query_); return result == null ? com.google.cloud.aiplatform.v1beta1.Presets.Query.UNRECOGNIZED : result; } public static final int MODALITY_FIELD_NUMBER = 2; - private int modality_; + private int modality_ = 0; /** * * @@ -466,9 +465,8 @@ public int getModalityValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Presets.Modality getModality() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Presets.Modality result = - com.google.cloud.aiplatform.v1beta1.Presets.Modality.valueOf(modality_); + com.google.cloud.aiplatform.v1beta1.Presets.Modality.forNumber(modality_); return result == null ? com.google.cloud.aiplatform.v1beta1.Presets.Modality.UNRECOGNIZED : result; @@ -687,10 +685,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; query_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); modality_ = 0; - return this; } @@ -718,16 +715,24 @@ public com.google.cloud.aiplatform.v1beta1.Presets build() { public com.google.cloud.aiplatform.v1beta1.Presets buildPartial() { com.google.cloud.aiplatform.v1beta1.Presets result = new com.google.cloud.aiplatform.v1beta1.Presets(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Presets result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { + result.query_ = query_; to_bitField0_ |= 0x00000001; } - result.query_ = query_; - result.modality_ = modality_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modality_ = modality_; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -816,7 +821,7 @@ public Builder mergeFrom( case 16: { modality_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -882,8 +887,8 @@ public int getQueryValue() { * @return This builder for chaining. */ public Builder setQueryValue(int value) { - bitField0_ |= 0x00000001; query_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -900,9 +905,8 @@ public Builder setQueryValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Presets.Query getQuery() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Presets.Query result = - com.google.cloud.aiplatform.v1beta1.Presets.Query.valueOf(query_); + com.google.cloud.aiplatform.v1beta1.Presets.Query.forNumber(query_); return result == null ? com.google.cloud.aiplatform.v1beta1.Presets.Query.UNRECOGNIZED : result; @@ -975,8 +979,8 @@ public int getModalityValue() { * @return This builder for chaining. */ public Builder setModalityValue(int value) { - modality_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -993,9 +997,8 @@ public Builder setModalityValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Presets.Modality getModality() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Presets.Modality result = - com.google.cloud.aiplatform.v1beta1.Presets.Modality.valueOf(modality_); + com.google.cloud.aiplatform.v1beta1.Presets.Modality.forNumber(modality_); return result == null ? com.google.cloud.aiplatform.v1beta1.Presets.Modality.UNRECOGNIZED : result; @@ -1016,7 +1019,7 @@ public Builder setModality(com.google.cloud.aiplatform.v1beta1.Presets.Modality if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; modality_ = value.getNumber(); onChanged(); return this; @@ -1033,7 +1036,7 @@ public Builder setModality(com.google.cloud.aiplatform.v1beta1.Presets.Modality * @return This builder for chaining. */ public Builder clearModality() { - + bitField0_ = (bitField0_ & ~0x00000002); modality_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PrivateEndpoints.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PrivateEndpoints.java index f7befb28d8a1..e35398f3e8c9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PrivateEndpoints.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PrivateEndpoints.java @@ -75,7 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PREDICT_HTTP_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object predictHttpUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object predictHttpUri_ = ""; /** * * @@ -124,7 +126,9 @@ public com.google.protobuf.ByteString getPredictHttpUriBytes() { } public static final int EXPLAIN_HTTP_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object explainHttpUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object explainHttpUri_ = ""; /** * * @@ -173,7 +177,9 @@ public com.google.protobuf.ByteString getExplainHttpUriBytes() { } public static final int HEALTH_HTTP_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object healthHttpUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object healthHttpUri_ = ""; /** * * @@ -222,7 +228,9 @@ public com.google.protobuf.ByteString getHealthHttpUriBytes() { } public static final int SERVICE_ATTACHMENT_FIELD_NUMBER = 4; - private volatile java.lang.Object serviceAttachment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAttachment_ = ""; /** * * @@ -500,14 +508,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; predictHttpUri_ = ""; - explainHttpUri_ = ""; - healthHttpUri_ = ""; - serviceAttachment_ = ""; - return this; } @@ -535,14 +540,29 @@ public com.google.cloud.aiplatform.v1beta1.PrivateEndpoints build() { public com.google.cloud.aiplatform.v1beta1.PrivateEndpoints buildPartial() { com.google.cloud.aiplatform.v1beta1.PrivateEndpoints result = new com.google.cloud.aiplatform.v1beta1.PrivateEndpoints(this); - result.predictHttpUri_ = predictHttpUri_; - result.explainHttpUri_ = explainHttpUri_; - result.healthHttpUri_ = healthHttpUri_; - result.serviceAttachment_ = serviceAttachment_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PrivateEndpoints result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.predictHttpUri_ = predictHttpUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.explainHttpUri_ = explainHttpUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.healthHttpUri_ = healthHttpUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceAttachment_ = serviceAttachment_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -591,18 +611,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PrivateEndpoints ot return this; if (!other.getPredictHttpUri().isEmpty()) { predictHttpUri_ = other.predictHttpUri_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getExplainHttpUri().isEmpty()) { explainHttpUri_ = other.explainHttpUri_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getHealthHttpUri().isEmpty()) { healthHttpUri_ = other.healthHttpUri_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getServiceAttachment().isEmpty()) { serviceAttachment_ = other.serviceAttachment_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -634,25 +658,25 @@ public Builder mergeFrom( case 10: { predictHttpUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { explainHttpUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { healthHttpUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { serviceAttachment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -672,6 +696,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object predictHttpUri_ = ""; /** * @@ -733,8 +759,8 @@ public Builder setPredictHttpUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - predictHttpUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -750,8 +776,8 @@ public Builder setPredictHttpUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPredictHttpUri() { - predictHttpUri_ = getDefaultInstance().getPredictHttpUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -772,8 +798,8 @@ public Builder setPredictHttpUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - predictHttpUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -839,8 +865,8 @@ public Builder setExplainHttpUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - explainHttpUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -856,8 +882,8 @@ public Builder setExplainHttpUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearExplainHttpUri() { - explainHttpUri_ = getDefaultInstance().getExplainHttpUri(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -878,8 +904,8 @@ public Builder setExplainHttpUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - explainHttpUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -945,8 +971,8 @@ public Builder setHealthHttpUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - healthHttpUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -962,8 +988,8 @@ public Builder setHealthHttpUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearHealthHttpUri() { - healthHttpUri_ = getDefaultInstance().getHealthHttpUri(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -984,8 +1010,8 @@ public Builder setHealthHttpUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - healthHttpUri_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1054,8 +1080,8 @@ public Builder setServiceAttachment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - serviceAttachment_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1072,8 +1098,8 @@ public Builder setServiceAttachment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearServiceAttachment() { - serviceAttachment_ = getDefaultInstance().getServiceAttachment(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1095,8 +1121,8 @@ public Builder setServiceAttachmentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - serviceAttachment_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsMetadata.java index b4a5ed68fb8a..0569911837a6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -319,10 +321,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -352,15 +354,21 @@ public com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata build() { public com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata result = new com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -439,7 +447,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +467,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -477,7 +487,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -515,11 +525,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -535,11 +545,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -554,20 +564,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -580,14 +590,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -601,7 +610,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsRequest.java index 67a535c5ff3c..a630e1997792 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -178,7 +182,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int FORCE_FIELD_NUMBER = 3; - private boolean force_; + private boolean force_ = false; /** * * @@ -414,12 +418,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - force_ = false; - return this; } @@ -447,13 +449,26 @@ public com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest build() { public com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest result = new com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -502,10 +517,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PurgeArtifactsReque return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getForce() != false) { @@ -540,19 +557,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { force_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -572,6 +589,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -645,8 +664,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -666,8 +685,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -692,8 +711,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -762,8 +781,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -780,8 +799,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -803,8 +822,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -844,6 +863,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -861,7 +881,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000004); force_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsResponse.java index 318d0803362d..d09c5521c618 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsResponse.java @@ -69,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PURGE_COUNT_FIELD_NUMBER = 1; - private long purgeCount_; + private long purgeCount_ = 0L; /** * * @@ -88,6 +88,8 @@ public long getPurgeCount() { } public static final int PURGE_SAMPLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList purgeSample_; /** * @@ -371,10 +373,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; purgeCount_ = 0L; - purgeSample_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -402,17 +404,30 @@ public com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse build() { public com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse result = new com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse(this); - int from_bitField0_ = bitField0_; - result.purgeCount_ = purgeCount_; - if (((bitField0_ & 0x00000001) != 0)) { - purgeSample_ = purgeSample_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.purgeSample_ = purgeSample_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse result) { + if (((bitField0_ & 0x00000002) != 0)) { + purgeSample_ = purgeSample_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.purgeSample_ = purgeSample_; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.purgeCount_ = purgeCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -465,7 +480,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRespo if (!other.purgeSample_.isEmpty()) { if (purgeSample_.isEmpty()) { purgeSample_ = other.purgeSample_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePurgeSampleIsMutable(); purgeSample_.addAll(other.purgeSample_); @@ -501,7 +516,7 @@ public Builder mergeFrom( case 8: { purgeCount_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: @@ -563,6 +578,7 @@ public long getPurgeCount() { public Builder setPurgeCount(long value) { purgeCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -579,7 +595,7 @@ public Builder setPurgeCount(long value) { * @return This builder for chaining. */ public Builder clearPurgeCount() { - + bitField0_ = (bitField0_ & ~0x00000001); purgeCount_ = 0L; onChanged(); return this; @@ -589,9 +605,9 @@ public Builder clearPurgeCount() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePurgeSampleIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { purgeSample_ = new com.google.protobuf.LazyStringArrayList(purgeSample_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -742,7 +758,7 @@ public Builder addAllPurgeSample(java.lang.Iterable values) { */ public Builder clearPurgeSample() { purgeSample_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsMetadata.java index f2cc8fb6def7..9fbf3b540efe 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -319,10 +321,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -352,15 +354,21 @@ public com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata build() { public com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata result = new com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -439,7 +447,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +467,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -477,7 +487,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -515,11 +525,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -535,11 +545,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -554,20 +564,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -580,14 +590,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -601,7 +610,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsRequest.java index 347b2ddfb0ad..8eba2bc12fb4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -178,7 +182,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int FORCE_FIELD_NUMBER = 3; - private boolean force_; + private boolean force_ = false; /** * * @@ -414,12 +418,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - force_ = false; - return this; } @@ -447,13 +449,26 @@ public com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest build() { public com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest result = new com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -502,10 +517,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PurgeContextsReques return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getForce() != false) { @@ -540,19 +557,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { force_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -572,6 +589,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -645,8 +664,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -666,8 +685,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -692,8 +711,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -762,8 +781,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -780,8 +799,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -803,8 +822,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -844,6 +863,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -861,7 +881,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000004); force_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsResponse.java index 42bb549f81d7..31e1a1cfb185 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsResponse.java @@ -69,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PURGE_COUNT_FIELD_NUMBER = 1; - private long purgeCount_; + private long purgeCount_ = 0L; /** * * @@ -88,6 +88,8 @@ public long getPurgeCount() { } public static final int PURGE_SAMPLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList purgeSample_; /** * @@ -371,10 +373,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; purgeCount_ = 0L; - purgeSample_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -402,17 +404,30 @@ public com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse build() { public com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse result = new com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse(this); - int from_bitField0_ = bitField0_; - result.purgeCount_ = purgeCount_; - if (((bitField0_ & 0x00000001) != 0)) { - purgeSample_ = purgeSample_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.purgeSample_ = purgeSample_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse result) { + if (((bitField0_ & 0x00000002) != 0)) { + purgeSample_ = purgeSample_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.purgeSample_ = purgeSample_; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.purgeCount_ = purgeCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -465,7 +480,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PurgeContextsRespon if (!other.purgeSample_.isEmpty()) { if (purgeSample_.isEmpty()) { purgeSample_ = other.purgeSample_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePurgeSampleIsMutable(); purgeSample_.addAll(other.purgeSample_); @@ -501,7 +516,7 @@ public Builder mergeFrom( case 8: { purgeCount_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: @@ -563,6 +578,7 @@ public long getPurgeCount() { public Builder setPurgeCount(long value) { purgeCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -579,7 +595,7 @@ public Builder setPurgeCount(long value) { * @return This builder for chaining. */ public Builder clearPurgeCount() { - + bitField0_ = (bitField0_ & ~0x00000001); purgeCount_ = 0L; onChanged(); return this; @@ -589,9 +605,9 @@ public Builder clearPurgeCount() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePurgeSampleIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { purgeSample_ = new com.google.protobuf.LazyStringArrayList(purgeSample_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -742,7 +758,7 @@ public Builder addAllPurgeSample(java.lang.Iterable values) { */ public Builder clearPurgeSample() { purgeSample_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsMetadata.java index 24bd17065cfd..c518f5533bd9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -319,10 +321,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -352,15 +354,21 @@ public com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata build() { public com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata result = new com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -439,7 +447,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +467,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -477,7 +487,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -515,11 +525,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -535,11 +545,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -554,20 +564,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -580,14 +590,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -601,7 +610,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsRequest.java index dc555a374396..794eb7d4ffa2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -178,7 +182,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int FORCE_FIELD_NUMBER = 3; - private boolean force_; + private boolean force_ = false; /** * * @@ -414,12 +418,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - force_ = false; - return this; } @@ -447,13 +449,26 @@ public com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest build() { public com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest result = new com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -502,10 +517,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequ return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getForce() != false) { @@ -540,19 +557,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { force_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -572,6 +589,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -645,8 +664,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -666,8 +685,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -692,8 +711,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -762,8 +781,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -780,8 +799,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -803,8 +822,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -844,6 +863,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -861,7 +881,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000004); force_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsResponse.java index 02630f2b692e..273817840e20 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsResponse.java @@ -69,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PURGE_COUNT_FIELD_NUMBER = 1; - private long purgeCount_; + private long purgeCount_ = 0L; /** * * @@ -89,6 +89,8 @@ public long getPurgeCount() { } public static final int PURGE_SAMPLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList purgeSample_; /** * @@ -372,10 +374,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; purgeCount_ = 0L; - purgeSample_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -403,17 +405,30 @@ public com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse build() { public com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse result = new com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse(this); - int from_bitField0_ = bitField0_; - result.purgeCount_ = purgeCount_; - if (((bitField0_ & 0x00000001) != 0)) { - purgeSample_ = purgeSample_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.purgeSample_ = purgeSample_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse result) { + if (((bitField0_ & 0x00000002) != 0)) { + purgeSample_ = purgeSample_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.purgeSample_ = purgeSample_; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.purgeCount_ = purgeCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -466,7 +481,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResp if (!other.purgeSample_.isEmpty()) { if (purgeSample_.isEmpty()) { purgeSample_ = other.purgeSample_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePurgeSampleIsMutable(); purgeSample_.addAll(other.purgeSample_); @@ -502,7 +517,7 @@ public Builder mergeFrom( case 8: { purgeCount_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: @@ -566,6 +581,7 @@ public long getPurgeCount() { public Builder setPurgeCount(long value) { purgeCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -583,7 +599,7 @@ public Builder setPurgeCount(long value) { * @return This builder for chaining. */ public Builder clearPurgeCount() { - + bitField0_ = (bitField0_ & ~0x00000001); purgeCount_ = 0L; onChanged(); return this; @@ -593,9 +609,9 @@ public Builder clearPurgeCount() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePurgeSampleIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { purgeSample_ = new com.google.protobuf.LazyStringArrayList(purgeSample_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -746,7 +762,7 @@ public Builder addAllPurgeSample(java.lang.Iterable values) { */ public Builder clearPurgeSample() { purgeSample_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PythonPackageSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PythonPackageSpec.java index 5d72d6195709..fe35f06697fb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PythonPackageSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PythonPackageSpec.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int EXECUTOR_IMAGE_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object executorImageUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object executorImageUri_ = ""; /** * * @@ -131,6 +133,8 @@ public com.google.protobuf.ByteString getExecutorImageUriBytes() { } public static final int PACKAGE_URIS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList packageUris_; /** * @@ -200,7 +204,9 @@ public com.google.protobuf.ByteString getPackageUrisBytes(int index) { } public static final int PYTHON_MODULE_FIELD_NUMBER = 3; - private volatile java.lang.Object pythonModule_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pythonModule_ = ""; /** * * @@ -249,6 +255,8 @@ public com.google.protobuf.ByteString getPythonModuleBytes() { } public static final int ARGS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList args_; /** * @@ -310,6 +318,8 @@ public com.google.protobuf.ByteString getArgsBytes(int index) { } public static final int ENV_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private java.util.List env_; /** * @@ -633,21 +643,20 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; executorImageUri_ = ""; - packageUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); pythonModule_ = ""; - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); if (envBuilder_ == null) { env_ = java.util.Collections.emptyList(); } else { env_ = null; envBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); return this; } @@ -675,30 +684,45 @@ public com.google.cloud.aiplatform.v1beta1.PythonPackageSpec build() { public com.google.cloud.aiplatform.v1beta1.PythonPackageSpec buildPartial() { com.google.cloud.aiplatform.v1beta1.PythonPackageSpec result = new com.google.cloud.aiplatform.v1beta1.PythonPackageSpec(this); - int from_bitField0_ = bitField0_; - result.executorImageUri_ = executorImageUri_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.PythonPackageSpec result) { + if (((bitField0_ & 0x00000002) != 0)) { packageUris_ = packageUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.packageUris_ = packageUris_; - result.pythonModule_ = pythonModule_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { args_ = args_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); } result.args_ = args_; if (envBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { env_ = java.util.Collections.unmodifiableList(env_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); } result.env_ = env_; } else { result.env_ = envBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PythonPackageSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.executorImageUri_ = executorImageUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pythonModule_ = pythonModule_; + } } @java.lang.Override @@ -749,12 +773,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PythonPackageSpec o return this; if (!other.getExecutorImageUri().isEmpty()) { executorImageUri_ = other.executorImageUri_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.packageUris_.isEmpty()) { if (packageUris_.isEmpty()) { packageUris_ = other.packageUris_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePackageUrisIsMutable(); packageUris_.addAll(other.packageUris_); @@ -763,12 +788,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PythonPackageSpec o } if (!other.getPythonModule().isEmpty()) { pythonModule_ = other.pythonModule_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.args_.isEmpty()) { if (args_.isEmpty()) { args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureArgsIsMutable(); args_.addAll(other.args_); @@ -779,7 +805,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PythonPackageSpec o if (!other.env_.isEmpty()) { if (env_.isEmpty()) { env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureEnvIsMutable(); env_.addAll(other.env_); @@ -792,7 +818,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PythonPackageSpec o envBuilder_.dispose(); envBuilder_ = null; env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); envBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEnvFieldBuilder() @@ -831,7 +857,7 @@ public Builder mergeFrom( case 10: { executorImageUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -844,7 +870,7 @@ public Builder mergeFrom( case 26: { pythonModule_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: @@ -962,8 +988,8 @@ public Builder setExecutorImageUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - executorImageUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -984,8 +1010,8 @@ public Builder setExecutorImageUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearExecutorImageUri() { - executorImageUri_ = getDefaultInstance().getExecutorImageUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1011,8 +1037,8 @@ public Builder setExecutorImageUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - executorImageUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1021,9 +1047,9 @@ public Builder setExecutorImageUriBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePackageUrisIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { packageUris_ = new com.google.protobuf.LazyStringArrayList(packageUris_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -1174,7 +1200,7 @@ public Builder addAllPackageUris(java.lang.Iterable values) { */ public Builder clearPackageUris() { packageUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1264,8 +1290,8 @@ public Builder setPythonModule(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pythonModule_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1281,8 +1307,8 @@ public Builder setPythonModule(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPythonModule() { - pythonModule_ = getDefaultInstance().getPythonModule(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1303,8 +1329,8 @@ public Builder setPythonModuleBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pythonModule_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1313,9 +1339,9 @@ public Builder setPythonModuleBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; } } /** @@ -1450,7 +1476,7 @@ public Builder addAllArgs(java.lang.Iterable values) { */ public Builder clearArgs() { args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1481,9 +1507,9 @@ public Builder addArgsBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureEnvIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { env_ = new java.util.ArrayList(env_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; } } @@ -1709,7 +1735,7 @@ public Builder addAllEnv( public Builder clearEnv() { if (envBuilder_ == null) { env_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { envBuilder_.clear(); @@ -1837,7 +1863,7 @@ public java.util.List getEnv com.google.cloud.aiplatform.v1beta1.EnvVar, com.google.cloud.aiplatform.v1beta1.EnvVar.Builder, com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder>( - env_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + env_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); env_ = null; } return envBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryArtifactLineageSubgraphRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryArtifactLineageSubgraphRequest.java index 261776da7731..069f8920d147 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryArtifactLineageSubgraphRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryArtifactLineageSubgraphRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ARTIFACT_FIELD_NUMBER = 1; - private volatile java.lang.Object artifact_; + + @SuppressWarnings("serial") + private volatile java.lang.Object artifact_ = ""; /** * * @@ -135,7 +137,7 @@ public com.google.protobuf.ByteString getArtifactBytes() { } public static final int MAX_HOPS_FIELD_NUMBER = 2; - private int maxHops_; + private int maxHops_ = 0; /** * * @@ -157,7 +159,9 @@ public int getMaxHops() { } public static final int FILTER_FIELD_NUMBER = 3; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -461,12 +465,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; artifact_ = ""; - maxHops_ = 0; - filter_ = ""; - return this; } @@ -497,13 +499,27 @@ public com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest b public com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest result = new com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest(this); - result.artifact_ = artifact_; - result.maxHops_ = maxHops_; - result.filter_ = filter_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.artifact_ = artifact_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxHops_ = maxHops_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.filter_ = filter_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -556,6 +572,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getArtifact().isEmpty()) { artifact_ = other.artifact_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getMaxHops() != 0) { @@ -563,6 +580,7 @@ public Builder mergeFrom( } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -594,19 +612,19 @@ public Builder mergeFrom( case 10: { artifact_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { maxHops_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -626,6 +644,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object artifact_ = ""; /** * @@ -708,8 +728,8 @@ public Builder setArtifact(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - artifact_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -732,8 +752,8 @@ public Builder setArtifact(java.lang.String value) { * @return This builder for chaining. */ public Builder clearArtifact() { - artifact_ = getDefaultInstance().getArtifact(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -761,8 +781,8 @@ public Builder setArtifactBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - artifact_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -806,6 +826,7 @@ public int getMaxHops() { public Builder setMaxHops(int value) { maxHops_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -825,7 +846,7 @@ public Builder setMaxHops(int value) { * @return This builder for chaining. */ public Builder clearMaxHops() { - + bitField0_ = (bitField0_ & ~0x00000002); maxHops_ = 0; onChanged(); return this; @@ -946,8 +967,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -981,8 +1002,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1021,8 +1042,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryContextLineageSubgraphRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryContextLineageSubgraphRequest.java index 0f0a5e2f5e80..41fd3b23001f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryContextLineageSubgraphRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryContextLineageSubgraphRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTEXT_FIELD_NUMBER = 1; - private volatile java.lang.Object context_; + + @SuppressWarnings("serial") + private volatile java.lang.Object context_ = ""; /** * * @@ -335,8 +337,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; context_ = ""; - return this; } @@ -367,11 +369,21 @@ public com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest bu public com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest result = new com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest(this); - result.context_ = context_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.context_ = context_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -423,6 +435,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getContext().isEmpty()) { context_ = other.context_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -454,7 +467,7 @@ public Builder mergeFrom( case 10: { context_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -474,6 +487,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object context_ = ""; /** * @@ -559,8 +574,8 @@ public Builder setContext(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - context_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -584,8 +599,8 @@ public Builder setContext(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContext() { - context_ = getDefaultInstance().getContext(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -614,8 +629,8 @@ public Builder setContextBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - context_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsRequest.java index f58ddc8bb675..5a7637a3e956 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DEPLOYMENT_RESOURCE_POOL_FIELD_NUMBER = 1; - private volatile java.lang.Object deploymentResourcePool_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentResourcePool_ = ""; /** * * @@ -122,7 +124,7 @@ public com.google.protobuf.ByteString getDeploymentResourcePoolBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -141,7 +143,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -413,12 +417,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; deploymentResourcePool_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -447,13 +449,27 @@ public com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest build() { public com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest result = new com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest(this); - result.deploymentResourcePool_ = deploymentResourcePool_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deploymentResourcePool_ = deploymentResourcePool_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -503,6 +519,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.QueryDeployedModels return this; if (!other.getDeploymentResourcePool().isEmpty()) { deploymentResourcePool_ = other.deploymentResourcePool_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -510,6 +527,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.QueryDeployedModels } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -541,19 +559,19 @@ public Builder mergeFrom( case 10: { deploymentResourcePool_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -573,6 +591,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object deploymentResourcePool_ = ""; /** * @@ -640,8 +660,8 @@ public Builder setDeploymentResourcePool(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deploymentResourcePool_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -659,8 +679,8 @@ public Builder setDeploymentResourcePool(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeploymentResourcePool() { - deploymentResourcePool_ = getDefaultInstance().getDeploymentResourcePool(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -683,8 +703,8 @@ public Builder setDeploymentResourcePoolBytes(com.google.protobuf.ByteString val throw new NullPointerException(); } checkByteStringIsUtf8(value); - deploymentResourcePool_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -722,6 +742,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -738,7 +759,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -817,8 +838,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -838,8 +859,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -864,8 +885,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsResponse.java index d9b4578f8e7e..fa05e28a29b1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DEPLOYED_MODELS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List deployedModels_; /** * @@ -155,7 +157,9 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModelOrBuilder getDeployedMod } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -206,6 +210,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int DEPLOYED_MODEL_REFS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List deployedModelRefs_; /** * @@ -287,7 +293,7 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModelRef getDeployedModelRefs } public static final int TOTAL_DEPLOYED_MODEL_COUNT_FIELD_NUMBER = 4; - private int totalDeployedModelCount_; + private int totalDeployedModelCount_ = 0; /** * * @@ -305,7 +311,7 @@ public int getTotalDeployedModelCount() { } public static final int TOTAL_ENDPOINT_COUNT_FIELD_NUMBER = 5; - private int totalEndpointCount_; + private int totalEndpointCount_ = 0; /** * * @@ -562,6 +568,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (deployedModelsBuilder_ == null) { deployedModels_ = java.util.Collections.emptyList(); } else { @@ -570,18 +577,15 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - if (deployedModelRefsBuilder_ == null) { deployedModelRefs_ = java.util.Collections.emptyList(); } else { deployedModelRefs_ = null; deployedModelRefsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); totalDeployedModelCount_ = 0; - totalEndpointCount_ = 0; - return this; } @@ -610,7 +614,16 @@ public com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse build() { public com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse result = new com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse result) { if (deployedModelsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { deployedModels_ = java.util.Collections.unmodifiableList(deployedModels_); @@ -620,20 +633,29 @@ public com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse buildPart } else { result.deployedModels_ = deployedModelsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; if (deployedModelRefsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { deployedModelRefs_ = java.util.Collections.unmodifiableList(deployedModelRefs_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.deployedModelRefs_ = deployedModelRefs_; } else { result.deployedModelRefs_ = deployedModelRefsBuilder_.build(); } - result.totalDeployedModelCount_ = totalDeployedModelCount_; - result.totalEndpointCount_ = totalEndpointCount_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.totalDeployedModelCount_ = totalDeployedModelCount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.totalEndpointCount_ = totalEndpointCount_; + } } @java.lang.Override @@ -713,13 +735,14 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } if (deployedModelRefsBuilder_ == null) { if (!other.deployedModelRefs_.isEmpty()) { if (deployedModelRefs_.isEmpty()) { deployedModelRefs_ = other.deployedModelRefs_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDeployedModelRefsIsMutable(); deployedModelRefs_.addAll(other.deployedModelRefs_); @@ -732,7 +755,7 @@ public Builder mergeFrom( deployedModelRefsBuilder_.dispose(); deployedModelRefsBuilder_ = null; deployedModelRefs_ = other.deployedModelRefs_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); deployedModelRefsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDeployedModelRefsFieldBuilder() @@ -791,7 +814,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -811,13 +834,13 @@ public Builder mergeFrom( case 32: { totalDeployedModelCount_ = input.readInt32(); - + bitField0_ |= 0x00000008; break; } // case 32 case 40: { totalEndpointCount_ = input.readInt32(); - + bitField0_ |= 0x00000010; break; } // case 40 default: @@ -1319,8 +1342,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1337,8 +1360,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1360,8 +1383,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1370,11 +1393,11 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { deployedModelRefs_ = java.util.Collections.emptyList(); private void ensureDeployedModelRefsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { deployedModelRefs_ = new java.util.ArrayList( deployedModelRefs_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } @@ -1616,7 +1639,7 @@ public Builder addAllDeployedModelRefs( public Builder clearDeployedModelRefs() { if (deployedModelRefsBuilder_ == null) { deployedModelRefs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { deployedModelRefsBuilder_.clear(); @@ -1758,7 +1781,7 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder addDeployedM com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder, com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder>( deployedModelRefs_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); deployedModelRefs_ = null; @@ -1797,6 +1820,7 @@ public int getTotalDeployedModelCount() { public Builder setTotalDeployedModelCount(int value) { totalDeployedModelCount_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1812,7 +1836,7 @@ public Builder setTotalDeployedModelCount(int value) { * @return This builder for chaining. */ public Builder clearTotalDeployedModelCount() { - + bitField0_ = (bitField0_ & ~0x00000008); totalDeployedModelCount_ = 0; onChanged(); return this; @@ -1851,6 +1875,7 @@ public int getTotalEndpointCount() { public Builder setTotalEndpointCount(int value) { totalEndpointCount_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1867,7 +1892,7 @@ public Builder setTotalEndpointCount(int value) { * @return This builder for chaining. */ public Builder clearTotalEndpointCount() { - + bitField0_ = (bitField0_ & ~0x00000010); totalEndpointCount_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryExecutionInputsAndOutputsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryExecutionInputsAndOutputsRequest.java index e0df8501cf5b..ef2b3ad0a581 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryExecutionInputsAndOutputsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryExecutionInputsAndOutputsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int EXECUTION_FIELD_NUMBER = 1; - private volatile java.lang.Object execution_; + + @SuppressWarnings("serial") + private volatile java.lang.Object execution_ = ""; /** * * @@ -331,8 +333,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; execution_ = ""; - return this; } @@ -364,11 +366,21 @@ public com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest result = new com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest(this); - result.execution_ = execution_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.execution_ = execution_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -421,6 +433,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getExecution().isEmpty()) { execution_ = other.execution_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -452,7 +465,7 @@ public Builder mergeFrom( case 10: { execution_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -472,6 +485,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object execution_ = ""; /** * @@ -545,8 +560,8 @@ public Builder setExecution(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - execution_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -566,8 +581,8 @@ public Builder setExecution(java.lang.String value) { * @return This builder for chaining. */ public Builder clearExecution() { - execution_ = getDefaultInstance().getExecution(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -592,8 +607,8 @@ public Builder setExecutionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - execution_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RawPredictRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RawPredictRequest.java index 587545f14d16..cb8a892fbd7d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RawPredictRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RawPredictRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object endpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; /** * * @@ -204,7 +206,7 @@ public com.google.api.HttpBody getHttpBody() { */ @java.lang.Override public com.google.api.HttpBodyOrBuilder getHttpBodyOrBuilder() { - return getHttpBody(); + return httpBody_ == null ? com.google.api.HttpBody.getDefaultInstance() : httpBody_; } private byte memoizedIsInitialized = -1; @@ -420,12 +422,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; endpoint_ = ""; - - if (httpBodyBuilder_ == null) { - httpBody_ = null; - } else { - httpBody_ = null; + httpBody_ = null; + if (httpBodyBuilder_ != null) { + httpBodyBuilder_.dispose(); httpBodyBuilder_ = null; } return this; @@ -455,16 +456,23 @@ public com.google.cloud.aiplatform.v1beta1.RawPredictRequest build() { public com.google.cloud.aiplatform.v1beta1.RawPredictRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.RawPredictRequest result = new com.google.cloud.aiplatform.v1beta1.RawPredictRequest(this); - result.endpoint_ = endpoint_; - if (httpBodyBuilder_ == null) { - result.httpBody_ = httpBody_; - } else { - result.httpBody_ = httpBodyBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RawPredictRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.httpBody_ = httpBodyBuilder_ == null ? httpBody_ : httpBodyBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -513,6 +521,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RawPredictRequest o return this; if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasHttpBody()) { @@ -547,13 +556,13 @@ public Builder mergeFrom( case 10: { endpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getHttpBodyFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -573,6 +582,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object endpoint_ = ""; /** * @@ -646,8 +657,8 @@ public Builder setEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -667,8 +678,8 @@ public Builder setEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEndpoint() { - endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -693,8 +704,8 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -729,7 +740,7 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { * @return Whether the httpBody field is set. */ public boolean hasHttpBody() { - return httpBodyBuilder_ != null || httpBody_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -788,11 +799,11 @@ public Builder setHttpBody(com.google.api.HttpBody value) { throw new NullPointerException(); } httpBody_ = value; - onChanged(); } else { httpBodyBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -819,11 +830,11 @@ public Builder setHttpBody(com.google.api.HttpBody value) { public Builder setHttpBody(com.google.api.HttpBody.Builder builderForValue) { if (httpBodyBuilder_ == null) { httpBody_ = builderForValue.build(); - onChanged(); } else { httpBodyBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -849,16 +860,18 @@ public Builder setHttpBody(com.google.api.HttpBody.Builder builderForValue) { */ public Builder mergeHttpBody(com.google.api.HttpBody value) { if (httpBodyBuilder_ == null) { - if (httpBody_ != null) { - httpBody_ = com.google.api.HttpBody.newBuilder(httpBody_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && httpBody_ != null + && httpBody_ != com.google.api.HttpBody.getDefaultInstance()) { + getHttpBodyBuilder().mergeFrom(value); } else { httpBody_ = value; } - onChanged(); } else { httpBodyBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -883,14 +896,13 @@ public Builder mergeHttpBody(com.google.api.HttpBody value) { * .google.api.HttpBody http_body = 2; */ public Builder clearHttpBody() { - if (httpBodyBuilder_ == null) { - httpBody_ = null; - onChanged(); - } else { - httpBody_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + httpBody_ = null; + if (httpBodyBuilder_ != null) { + httpBodyBuilder_.dispose(); httpBodyBuilder_ = null; } - + onChanged(); return this; } /** @@ -915,7 +927,7 @@ public Builder clearHttpBody() { * .google.api.HttpBody http_body = 2; */ public com.google.api.HttpBody.Builder getHttpBodyBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getHttpBodyFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesRequest.java index 50d2411b767a..24d76970d8cc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENTITY_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object entityType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityType_ = ""; /** * * @@ -131,7 +133,9 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { } public static final int ENTITY_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object entityId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityId_ = ""; /** * * @@ -235,7 +239,9 @@ public com.google.cloud.aiplatform.v1beta1.FeatureSelector getFeatureSelector() @java.lang.Override public com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder getFeatureSelectorOrBuilder() { - return getFeatureSelector(); + return featureSelector_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureSelector.getDefaultInstance() + : featureSelector_; } private byte memoizedIsInitialized = -1; @@ -460,14 +466,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; entityType_ = ""; - entityId_ = ""; - - if (featureSelectorBuilder_ == null) { - featureSelector_ = null; - } else { - featureSelector_ = null; + featureSelector_ = null; + if (featureSelectorBuilder_ != null) { + featureSelectorBuilder_.dispose(); featureSelectorBuilder_ = null; } return this; @@ -498,17 +502,28 @@ public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest build() { public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest result = new com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest(this); - result.entityType_ = entityType_; - result.entityId_ = entityId_; - if (featureSelectorBuilder_ == null) { - result.featureSelector_ = featureSelector_; - } else { - result.featureSelector_ = featureSelectorBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityType_ = entityType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.entityId_ = entityId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.featureSelector_ = + featureSelectorBuilder_ == null ? featureSelector_ : featureSelectorBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -558,10 +573,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRe return this; if (!other.getEntityType().isEmpty()) { entityType_ = other.entityType_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getEntityId().isEmpty()) { entityId_ = other.entityId_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasFeatureSelector()) { @@ -596,19 +613,19 @@ public Builder mergeFrom( case 10: { entityType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { entityId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getFeatureSelectorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -628,6 +645,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object entityType_ = ""; /** * @@ -707,8 +726,8 @@ public Builder setEntityType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -730,8 +749,8 @@ public Builder setEntityType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityType() { - entityType_ = getDefaultInstance().getEntityType(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -758,8 +777,8 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -831,8 +850,8 @@ public Builder setEntityId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -850,8 +869,8 @@ public Builder setEntityId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityId() { - entityId_ = getDefaultInstance().getEntityId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -874,8 +893,8 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -900,7 +919,7 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { * @return Whether the featureSelector field is set. */ public boolean hasFeatureSelector() { - return featureSelectorBuilder_ != null || featureSelector_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -941,11 +960,11 @@ public Builder setFeatureSelector(com.google.cloud.aiplatform.v1beta1.FeatureSel throw new NullPointerException(); } featureSelector_ = value; - onChanged(); } else { featureSelectorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -963,11 +982,11 @@ public Builder setFeatureSelector( com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder builderForValue) { if (featureSelectorBuilder_ == null) { featureSelector_ = builderForValue.build(); - onChanged(); } else { featureSelectorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -983,19 +1002,19 @@ public Builder setFeatureSelector( */ public Builder mergeFeatureSelector(com.google.cloud.aiplatform.v1beta1.FeatureSelector value) { if (featureSelectorBuilder_ == null) { - if (featureSelector_ != null) { - featureSelector_ = - com.google.cloud.aiplatform.v1beta1.FeatureSelector.newBuilder(featureSelector_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && featureSelector_ != null + && featureSelector_ + != com.google.cloud.aiplatform.v1beta1.FeatureSelector.getDefaultInstance()) { + getFeatureSelectorBuilder().mergeFrom(value); } else { featureSelector_ = value; } - onChanged(); } else { featureSelectorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1010,14 +1029,13 @@ public Builder mergeFeatureSelector(com.google.cloud.aiplatform.v1beta1.FeatureS * */ public Builder clearFeatureSelector() { - if (featureSelectorBuilder_ == null) { - featureSelector_ = null; - onChanged(); - } else { - featureSelector_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + featureSelector_ = null; + if (featureSelectorBuilder_ != null) { + featureSelectorBuilder_.dispose(); featureSelectorBuilder_ = null; } - + onChanged(); return this; } /** @@ -1032,7 +1050,7 @@ public Builder clearFeatureSelector() { * */ public com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder getFeatureSelectorBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getFeatureSelectorFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesResponse.java index 0f233f4b42a8..5135bb8a9a0a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadFeatureValuesResponse.java @@ -148,7 +148,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -408,8 +410,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - return this; } @@ -443,11 +445,21 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor result = new com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor( this); - result.id_ = id_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -504,6 +516,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -535,7 +548,7 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -555,6 +568,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object id_ = ""; /** * @@ -616,8 +631,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -633,8 +648,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -655,8 +670,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -892,7 +907,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENTITY_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object entityType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityType_ = ""; /** * * @@ -947,6 +964,8 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { } public static final int FEATURE_DESCRIPTORS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor> featureDescriptors_; @@ -1255,15 +1274,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; entityType_ = ""; - if (featureDescriptorsBuilder_ == null) { featureDescriptors_ = java.util.Collections.emptyList(); } else { featureDescriptors_ = null; featureDescriptorsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -1294,19 +1313,33 @@ public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header buil public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header buildPartial() { com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header result = new com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header(this); - int from_bitField0_ = bitField0_; - result.entityType_ = entityType_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header result) { if (featureDescriptorsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { featureDescriptors_ = java.util.Collections.unmodifiableList(featureDescriptors_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.featureDescriptors_ = featureDescriptors_; } else { result.featureDescriptors_ = featureDescriptorsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityType_ = entityType_; + } } @java.lang.Override @@ -1362,13 +1395,14 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getEntityType().isEmpty()) { entityType_ = other.entityType_; + bitField0_ |= 0x00000001; onChanged(); } if (featureDescriptorsBuilder_ == null) { if (!other.featureDescriptors_.isEmpty()) { if (featureDescriptors_.isEmpty()) { featureDescriptors_ = other.featureDescriptors_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFeatureDescriptorsIsMutable(); featureDescriptors_.addAll(other.featureDescriptors_); @@ -1381,7 +1415,7 @@ public Builder mergeFrom( featureDescriptorsBuilder_.dispose(); featureDescriptorsBuilder_ = null; featureDescriptors_ = other.featureDescriptors_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); featureDescriptorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFeatureDescriptorsFieldBuilder() @@ -1420,7 +1454,7 @@ public Builder mergeFrom( case 10: { entityType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -1528,8 +1562,8 @@ public Builder setEntityType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1548,8 +1582,8 @@ public Builder setEntityType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityType() { - entityType_ = getDefaultInstance().getEntityType(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1573,8 +1607,8 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1584,12 +1618,12 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { featureDescriptors_ = java.util.Collections.emptyList(); private void ensureFeatureDescriptorsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { featureDescriptors_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor>( featureDescriptors_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1857,7 +1891,7 @@ public Builder addAllFeatureDescriptors( public Builder clearFeatureDescriptors() { if (featureDescriptorsBuilder_ == null) { featureDescriptors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { featureDescriptorsBuilder_.clear(); @@ -2020,7 +2054,7 @@ public Builder removeFeatureDescriptors(int index) { com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse .FeatureDescriptorOrBuilder>( featureDescriptors_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); featureDescriptors_ = null; @@ -2809,6 +2843,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (valueBuilder_ != null) { valueBuilder_.clear(); } @@ -2850,25 +2885,31 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data result = new com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data( this); - if (dataCase_ == 1) { - if (valueBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = valueBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (dataCase_ == 2) { - if (valuesBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = valuesBuilder_.build(); - } - } - result.dataCase_ = dataCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data result) { + result.dataCase_ = dataCase_; + result.data_ = this.data_; + if (dataCase_ == 1 && valueBuilder_ != null) { + result.data_ = valueBuilder_.build(); + } + if (dataCase_ == 2 && valuesBuilder_ != null) { + result.data_ = valuesBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3008,6 +3049,8 @@ public Builder clearData() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.FeatureValue, com.google.cloud.aiplatform.v1beta1.FeatureValue.Builder, @@ -3214,7 +3257,6 @@ public com.google.cloud.aiplatform.v1beta1.FeatureValueOrBuilder getValueOrBuild } dataCase_ = 1; onChanged(); - ; return valueBuilder_; } @@ -3452,7 +3494,6 @@ public com.google.cloud.aiplatform.v1beta1.FeatureValueListOrBuilder getValuesOr } dataCase_ = 2; onChanged(); - ; return valuesBuilder_; } @@ -3526,7 +3567,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int ENTITY_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object entityId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityId_ = ""; /** * * @@ -3575,6 +3618,8 @@ public com.google.protobuf.ByteString getEntityIdBytes() { } public static final int DATA_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data> data_; @@ -3907,15 +3952,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; entityId_ = ""; - if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); } else { data_ = null; dataBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -3947,19 +3992,33 @@ public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView buildPartial() { com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView result = new com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView(this); - int from_bitField0_ = bitField0_; - result.entityId_ = entityId_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView result) { if (dataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { data_ = java.util.Collections.unmodifiableList(data_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.data_ = data_; } else { result.data_ = dataBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityId_ = entityId_; + } } @java.lang.Override @@ -4016,13 +4075,14 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getEntityId().isEmpty()) { entityId_ = other.entityId_; + bitField0_ |= 0x00000001; onChanged(); } if (dataBuilder_ == null) { if (!other.data_.isEmpty()) { if (data_.isEmpty()) { data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDataIsMutable(); data_.addAll(other.data_); @@ -4035,7 +4095,7 @@ public Builder mergeFrom( dataBuilder_.dispose(); dataBuilder_ = null; data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); dataBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataFieldBuilder() @@ -4074,7 +4134,7 @@ public Builder mergeFrom( case 10: { entityId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -4172,8 +4232,8 @@ public Builder setEntityId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4189,8 +4249,8 @@ public Builder setEntityId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityId() { - entityId_ = getDefaultInstance().getEntityId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -4211,8 +4271,8 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4222,12 +4282,12 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { data_ = java.util.Collections.emptyList(); private void ensureDataIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { data_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data>( data_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -4537,7 +4597,7 @@ public Builder addAllData( public Builder clearData() { if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { dataBuilder_.clear(); @@ -4724,7 +4784,7 @@ public Builder removeData(int index) { .Builder, com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView .DataOrBuilder>( - data_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + data_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); data_ = null; } return dataBuilder_; @@ -4844,7 +4904,9 @@ public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header getH @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.HeaderOrBuilder getHeaderOrBuilder() { - return getHeader(); + return header_ == null + ? com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.getDefaultInstance() + : header_; } public static final int ENTITY_VIEW_FIELD_NUMBER = 2; @@ -4906,7 +4968,10 @@ public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityViewOrBuilder getEntityViewOrBuilder() { - return getEntityView(); + return entityView_ == null + ? com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + .getDefaultInstance() + : entityView_; } private byte memoizedIsInitialized = -1; @@ -5127,16 +5192,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (headerBuilder_ == null) { - header_ = null; - } else { - header_ = null; + bitField0_ = 0; + header_ = null; + if (headerBuilder_ != null) { + headerBuilder_.dispose(); headerBuilder_ = null; } - if (entityViewBuilder_ == null) { - entityView_ = null; - } else { - entityView_ = null; + entityView_ = null; + if (entityViewBuilder_ != null) { + entityViewBuilder_.dispose(); entityViewBuilder_ = null; } return this; @@ -5167,20 +5231,24 @@ public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse build() { public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse result = new com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse(this); - if (headerBuilder_ == null) { - result.header_ = header_; - } else { - result.header_ = headerBuilder_.build(); - } - if (entityViewBuilder_ == null) { - result.entityView_ = entityView_; - } else { - result.entityView_ = entityViewBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.header_ = headerBuilder_ == null ? header_ : headerBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.entityView_ = entityViewBuilder_ == null ? entityView_ : entityViewBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -5263,13 +5331,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getHeaderFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getEntityViewFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -5289,6 +5357,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header header_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header, @@ -5307,7 +5377,7 @@ public Builder mergeFrom( * @return Whether the header field is set. */ public boolean hasHeader() { - return headerBuilder_ != null || header_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -5346,11 +5416,11 @@ public Builder setHeader( throw new NullPointerException(); } header_ = value; - onChanged(); } else { headerBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -5367,11 +5437,11 @@ public Builder setHeader( builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); - onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -5386,20 +5456,20 @@ public Builder setHeader( public Builder mergeHeader( com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header value) { if (headerBuilder_ == null) { - if (header_ != null) { - header_ = - com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.newBuilder( - header_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && header_ != null + && header_ + != com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + .getDefaultInstance()) { + getHeaderBuilder().mergeFrom(value); } else { header_ = value; } - onChanged(); } else { headerBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -5412,14 +5482,13 @@ public Builder mergeHeader( * .google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header header = 1; */ public Builder clearHeader() { - if (headerBuilder_ == null) { - header_ = null; - onChanged(); - } else { - header_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + header_ = null; + if (headerBuilder_ != null) { + headerBuilder_.dispose(); headerBuilder_ = null; } - + onChanged(); return this; } /** @@ -5433,7 +5502,7 @@ public Builder clearHeader() { */ public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.Builder getHeaderBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getHeaderFieldBuilder().getBuilder(); } @@ -5505,7 +5574,7 @@ public Builder clearHeader() { * @return Whether the entityView field is set. */ public boolean hasEntityView() { - return entityViewBuilder_ != null || entityView_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -5553,11 +5622,11 @@ public Builder setEntityView( throw new NullPointerException(); } entityView_ = value; - onChanged(); } else { entityViewBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -5578,11 +5647,11 @@ public Builder setEntityView( builderForValue) { if (entityViewBuilder_ == null) { entityView_ = builderForValue.build(); - onChanged(); } else { entityViewBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -5601,20 +5670,20 @@ public Builder setEntityView( public Builder mergeEntityView( com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView value) { if (entityViewBuilder_ == null) { - if (entityView_ != null) { - entityView_ = - com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.newBuilder( - entityView_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && entityView_ != null + && entityView_ + != com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + .getDefaultInstance()) { + getEntityViewBuilder().mergeFrom(value); } else { entityView_ = value; } - onChanged(); } else { entityViewBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -5631,14 +5700,13 @@ public Builder mergeEntityView( * */ public Builder clearEntityView() { - if (entityViewBuilder_ == null) { - entityView_ = null; - onChanged(); - } else { - entityView_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + entityView_ = null; + if (entityViewBuilder_ != null) { + entityViewBuilder_.dispose(); entityViewBuilder_ = null; } - + onChanged(); return this; } /** @@ -5656,7 +5724,7 @@ public Builder clearEntityView() { */ public com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Builder getEntityViewBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getEntityViewFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataRequest.java index 9c70977e9227..04aff2745510 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TIME_SERIES_FIELD_NUMBER = 1; - private volatile java.lang.Object timeSeries_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeSeries_ = ""; /** * * @@ -128,6 +130,8 @@ public com.google.protobuf.ByteString getTimeSeriesBytes() { } public static final int BLOB_IDS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList blobIds_; /** * @@ -405,10 +409,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; timeSeries_ = ""; - blobIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -438,17 +442,31 @@ public com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest build( public com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest result = new com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest(this); - int from_bitField0_ = bitField0_; - result.timeSeries_ = timeSeries_; - if (((bitField0_ & 0x00000001) != 0)) { - blobIds_ = blobIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.blobIds_ = blobIds_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest result) { + if (((bitField0_ & 0x00000002) != 0)) { + blobIds_ = blobIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.blobIds_ = blobIds_; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timeSeries_ = timeSeries_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -500,12 +518,13 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getTimeSeries().isEmpty()) { timeSeries_ = other.timeSeries_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.blobIds_.isEmpty()) { if (blobIds_.isEmpty()) { blobIds_ = other.blobIds_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureBlobIdsIsMutable(); blobIds_.addAll(other.blobIds_); @@ -541,7 +560,7 @@ public Builder mergeFrom( case 10: { timeSeries_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -643,8 +662,8 @@ public Builder setTimeSeries(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeSeries_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -664,8 +683,8 @@ public Builder setTimeSeries(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeSeries() { - timeSeries_ = getDefaultInstance().getTimeSeries(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -690,8 +709,8 @@ public Builder setTimeSeriesBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeSeries_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -700,9 +719,9 @@ public Builder setTimeSeriesBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureBlobIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { blobIds_ = new com.google.protobuf.LazyStringArrayList(blobIds_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -837,7 +856,7 @@ public Builder addAllBlobIds(java.lang.Iterable values) { */ public Builder clearBlobIds() { blobIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataResponse.java index 8e4e146f3c8a..8024a8a9f617 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardBlobDataResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int BLOBS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List blobs_; /** * @@ -341,6 +343,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (blobsBuilder_ == null) { blobs_ = java.util.Collections.emptyList(); } else { @@ -377,7 +380,16 @@ public com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse build public com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse result = new com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse result) { if (blobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { blobs_ = java.util.Collections.unmodifiableList(blobs_); @@ -387,8 +399,11 @@ public com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse build } else { result.blobs_ = blobsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataRequest.java index 56fd2fca516a..2581c02ea71c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_TIME_SERIES_FIELD_NUMBER = 1; - private volatile java.lang.Object tensorboardTimeSeries_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboardTimeSeries_ = ""; /** * * @@ -129,7 +131,7 @@ public com.google.protobuf.ByteString getTensorboardTimeSeriesBytes() { } public static final int MAX_DATA_POINTS_FIELD_NUMBER = 2; - private int maxDataPoints_; + private int maxDataPoints_ = 0; /** * * @@ -149,7 +151,9 @@ public int getMaxDataPoints() { } public static final int FILTER_FIELD_NUMBER = 3; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -418,12 +422,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; tensorboardTimeSeries_ = ""; - maxDataPoints_ = 0; - filter_ = ""; - return this; } @@ -454,13 +456,27 @@ public com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest public com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest result = new com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest(this); - result.tensorboardTimeSeries_ = tensorboardTimeSeries_; - result.maxDataPoints_ = maxDataPoints_; - result.filter_ = filter_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tensorboardTimeSeries_ = tensorboardTimeSeries_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxDataPoints_ = maxDataPoints_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.filter_ = filter_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -513,6 +529,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getTensorboardTimeSeries().isEmpty()) { tensorboardTimeSeries_ = other.tensorboardTimeSeries_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getMaxDataPoints() != 0) { @@ -520,6 +537,7 @@ public Builder mergeFrom( } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -551,19 +569,19 @@ public Builder mergeFrom( case 10: { tensorboardTimeSeries_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { maxDataPoints_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -583,6 +601,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object tensorboardTimeSeries_ = ""; /** * @@ -656,8 +676,8 @@ public Builder setTensorboardTimeSeries(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboardTimeSeries_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -677,8 +697,8 @@ public Builder setTensorboardTimeSeries(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboardTimeSeries() { - tensorboardTimeSeries_ = getDefaultInstance().getTensorboardTimeSeries(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -703,8 +723,8 @@ public Builder setTensorboardTimeSeriesBytes(com.google.protobuf.ByteString valu throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboardTimeSeries_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -744,6 +764,7 @@ public int getMaxDataPoints() { public Builder setMaxDataPoints(int value) { maxDataPoints_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -761,7 +782,7 @@ public Builder setMaxDataPoints(int value) { * @return This builder for chaining. */ public Builder clearMaxDataPoints() { - + bitField0_ = (bitField0_ & ~0x00000002); maxDataPoints_ = 0; onChanged(); return this; @@ -828,8 +849,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -845,8 +866,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -867,8 +888,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataResponse.java index de83645af075..e46edae30272 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardTimeSeriesDataResponse.java @@ -114,7 +114,9 @@ public com.google.cloud.aiplatform.v1beta1.TimeSeriesData getTimeSeriesData() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataOrBuilder getTimeSeriesDataOrBuilder() { - return getTimeSeriesData(); + return timeSeriesData_ == null + ? com.google.cloud.aiplatform.v1beta1.TimeSeriesData.getDefaultInstance() + : timeSeriesData_; } private byte memoizedIsInitialized = -1; @@ -325,10 +327,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (timeSeriesDataBuilder_ == null) { - timeSeriesData_ = null; - } else { - timeSeriesData_ = null; + bitField0_ = 0; + timeSeriesData_ = null; + if (timeSeriesDataBuilder_ != null) { + timeSeriesDataBuilder_.dispose(); timeSeriesDataBuilder_ = null; } return this; @@ -362,15 +364,22 @@ public com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse result = new com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse(this); - if (timeSeriesDataBuilder_ == null) { - result.timeSeriesData_ = timeSeriesData_; - } else { - result.timeSeriesData_ = timeSeriesDataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timeSeriesData_ = + timeSeriesDataBuilder_ == null ? timeSeriesData_ : timeSeriesDataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -453,7 +462,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getTimeSeriesDataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -473,6 +482,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.TimeSeriesData timeSeriesData_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.TimeSeriesData, @@ -491,7 +502,7 @@ public Builder mergeFrom( * @return Whether the timeSeriesData field is set. */ public boolean hasTimeSeriesData() { - return timeSeriesDataBuilder_ != null || timeSeriesData_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -528,11 +539,11 @@ public Builder setTimeSeriesData(com.google.cloud.aiplatform.v1beta1.TimeSeriesD throw new NullPointerException(); } timeSeriesData_ = value; - onChanged(); } else { timeSeriesDataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -548,11 +559,11 @@ public Builder setTimeSeriesData( com.google.cloud.aiplatform.v1beta1.TimeSeriesData.Builder builderForValue) { if (timeSeriesDataBuilder_ == null) { timeSeriesData_ = builderForValue.build(); - onChanged(); } else { timeSeriesDataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -566,19 +577,19 @@ public Builder setTimeSeriesData( */ public Builder mergeTimeSeriesData(com.google.cloud.aiplatform.v1beta1.TimeSeriesData value) { if (timeSeriesDataBuilder_ == null) { - if (timeSeriesData_ != null) { - timeSeriesData_ = - com.google.cloud.aiplatform.v1beta1.TimeSeriesData.newBuilder(timeSeriesData_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && timeSeriesData_ != null + && timeSeriesData_ + != com.google.cloud.aiplatform.v1beta1.TimeSeriesData.getDefaultInstance()) { + getTimeSeriesDataBuilder().mergeFrom(value); } else { timeSeriesData_ = value; } - onChanged(); } else { timeSeriesDataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -591,14 +602,13 @@ public Builder mergeTimeSeriesData(com.google.cloud.aiplatform.v1beta1.TimeSerie * .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 1; */ public Builder clearTimeSeriesData() { - if (timeSeriesDataBuilder_ == null) { - timeSeriesData_ = null; - onChanged(); - } else { - timeSeriesData_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + timeSeriesData_ = null; + if (timeSeriesDataBuilder_ != null) { + timeSeriesDataBuilder_.dispose(); timeSeriesDataBuilder_ = null; } - + onChanged(); return this; } /** @@ -611,7 +621,7 @@ public Builder clearTimeSeriesData() { * .google.cloud.aiplatform.v1beta1.TimeSeriesData time_series_data = 1; */ public com.google.cloud.aiplatform.v1beta1.TimeSeriesData.Builder getTimeSeriesDataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getTimeSeriesDataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardUsageRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardUsageRequest.java index 750c94235c3d..5cf0de7d6c68 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardUsageRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardUsageRequest.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_FIELD_NUMBER = 1; - private volatile java.lang.Object tensorboard_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboard_ = ""; /** * * @@ -322,8 +324,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; tensorboard_ = ""; - return this; } @@ -352,11 +354,21 @@ public com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageRequest build() { public com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageRequest result = new com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageRequest(this); - result.tensorboard_ = tensorboard_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tensorboard_ = tensorboard_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -407,6 +419,7 @@ public Builder mergeFrom( return this; if (!other.getTensorboard().isEmpty()) { tensorboard_ = other.tensorboard_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -438,7 +451,7 @@ public Builder mergeFrom( case 10: { tensorboard_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -458,6 +471,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object tensorboard_ = ""; /** * @@ -531,8 +546,8 @@ public Builder setTensorboard(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboard_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -552,8 +567,8 @@ public Builder setTensorboard(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboard() { - tensorboard_ = getDefaultInstance().getTensorboard(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -578,8 +593,8 @@ public Builder setTensorboardBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboard_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardUsageResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardUsageResponse.java index ee86a141e93e..387f6a7d8afd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardUsageResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardUsageResponse.java @@ -172,7 +172,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int USERNAME_FIELD_NUMBER = 1; - private volatile java.lang.Object username_; + + @SuppressWarnings("serial") + private volatile java.lang.Object username_ = ""; /** * * @@ -221,7 +223,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { } public static final int VIEW_COUNT_FIELD_NUMBER = 2; - private long viewCount_; + private long viewCount_ = 0L; /** * * @@ -460,10 +462,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; username_ = ""; - viewCount_ = 0L; - return this; } @@ -497,12 +498,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerUserUsageData result = new com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerUserUsageData( this); - result.username_ = username_; - result.viewCount_ = viewCount_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerUserUsageData + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.username_ = username_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.viewCount_ = viewCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -559,6 +573,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getViewCount() != 0L) { @@ -593,13 +608,13 @@ public Builder mergeFrom( case 10: { username_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { viewCount_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -619,6 +634,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object username_ = ""; /** * @@ -680,8 +697,8 @@ public Builder setUsername(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - username_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -697,8 +714,8 @@ public Builder setUsername(java.lang.String value) { * @return This builder for chaining. */ public Builder clearUsername() { - username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -719,8 +736,8 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - username_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -756,6 +773,7 @@ public long getViewCount() { public Builder setViewCount(long value) { viewCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -771,7 +789,7 @@ public Builder setViewCount(long value) { * @return This builder for chaining. */ public Builder clearViewCount() { - + bitField0_ = (bitField0_ & ~0x00000002); viewCount_ = 0L; onChanged(); return this; @@ -973,6 +991,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int USER_USAGE_DATA_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerUserUsageData> userUsageData_; @@ -1277,6 +1297,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (userUsageDataBuilder_ == null) { userUsageData_ = java.util.Collections.emptyList(); } else { @@ -1317,7 +1338,17 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerMonthUsageData result = new com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerMonthUsageData( this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerMonthUsageData + result) { if (userUsageDataBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { userUsageData_ = java.util.Collections.unmodifiableList(userUsageData_); @@ -1327,8 +1358,12 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } else { result.userUsageData_ = userUsageDataBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerMonthUsageData + result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -1998,6 +2033,7 @@ private static final class MonthlyUsageDataDefaultEntryHolder { .PerMonthUsageData.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerMonthUsageData> @@ -2074,9 +2110,11 @@ public boolean containsMonthlyUsageData(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerMonthUsageData + public /* nullable */ com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse + .PerMonthUsageData getMonthlyUsageDataOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerMonthUsageData defaultValue) { if (key == null) { @@ -2346,6 +2384,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; internalGetMutableMonthlyUsageData().clear(); return this; } @@ -2375,13 +2414,22 @@ public com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse build() public com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse result = new com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse(this); - int from_bitField0_ = bitField0_; - result.monthlyUsageData_ = internalGetMonthlyUsageData(); - result.monthlyUsageData_.makeImmutable(); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.monthlyUsageData_ = internalGetMonthlyUsageData(); + result.monthlyUsageData_.makeImmutable(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2431,6 +2479,7 @@ public Builder mergeFrom( == com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.getDefaultInstance()) return this; internalGetMutableMonthlyUsageData().mergeFrom(other.internalGetMonthlyUsageData()); + bitField0_ |= 0x00000001; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2470,6 +2519,7 @@ public Builder mergeFrom( internalGetMutableMonthlyUsageData() .getMutableMap() .put(monthlyUsageData__.getKey(), monthlyUsageData__.getValue()); + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -2511,8 +2561,6 @@ public Builder mergeFrom( java.lang.String, com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerMonthUsageData> internalGetMutableMonthlyUsageData() { - onChanged(); - ; if (monthlyUsageData_ == null) { monthlyUsageData_ = com.google.protobuf.MapField.newMapField( @@ -2521,6 +2569,8 @@ public Builder mergeFrom( if (!monthlyUsageData_.isMutable()) { monthlyUsageData_ = monthlyUsageData_.copy(); } + bitField0_ |= 0x00000001; + onChanged(); return monthlyUsageData_; } @@ -2584,9 +2634,11 @@ public boolean containsMonthlyUsageData(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerMonthUsageData + public /* nullable */ com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse + .PerMonthUsageData getMonthlyUsageDataOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerMonthUsageData defaultValue) { if (key == null) { @@ -2626,6 +2678,7 @@ public boolean containsMonthlyUsageData(java.lang.String key) { } public Builder clearMonthlyUsageData() { + bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableMonthlyUsageData().getMutableMap().clear(); return this; } @@ -2653,6 +2706,7 @@ public Builder removeMonthlyUsageData(java.lang.String key) { java.lang.String, com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerMonthUsageData> getMutableMonthlyUsageData() { + bitField0_ |= 0x00000001; return internalGetMutableMonthlyUsageData().getMutableMap(); } /** @@ -2675,8 +2729,8 @@ public Builder putMonthlyUsageData( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableMonthlyUsageData().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; return this; } /** @@ -2696,6 +2750,7 @@ public Builder putAllMonthlyUsageData( com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerMonthUsageData> values) { internalGetMutableMonthlyUsageData().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardUsageResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardUsageResponseOrBuilder.java index 5a63f52f4357..3d86cbc55691 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardUsageResponseOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReadTensorboardUsageResponseOrBuilder.java @@ -79,7 +79,6 @@ public interface ReadTensorboardUsageResponseOrBuilder * map<string, .google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerMonthUsageData> monthly_usage_data = 1; * */ - /* nullable */ com.google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerMonthUsageData getMonthlyUsageDataOrDefault( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RemoveContextChildrenRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RemoveContextChildrenRequest.java index d354cb9dcc9f..6d84d295ae27 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RemoveContextChildrenRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RemoveContextChildrenRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTEXT_FIELD_NUMBER = 1; - private volatile java.lang.Object context_; + + @SuppressWarnings("serial") + private volatile java.lang.Object context_ = ""; /** * * @@ -127,6 +129,8 @@ public com.google.protobuf.ByteString getContextBytes() { } public static final int CHILD_CONTEXTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList childContexts_; /** * @@ -402,10 +406,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; context_ = ""; - childContexts_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -434,17 +438,31 @@ public com.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest build() public com.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest result = new com.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest(this); - int from_bitField0_ = bitField0_; - result.context_ = context_; - if (((bitField0_ & 0x00000001) != 0)) { - childContexts_ = childContexts_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.childContexts_ = childContexts_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest result) { + if (((bitField0_ & 0x00000002) != 0)) { + childContexts_ = childContexts_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.childContexts_ = childContexts_; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.RemoveContextChildrenRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.context_ = context_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -495,12 +513,13 @@ public Builder mergeFrom( return this; if (!other.getContext().isEmpty()) { context_ = other.context_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.childContexts_.isEmpty()) { if (childContexts_.isEmpty()) { childContexts_ = other.childContexts_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureChildContextsIsMutable(); childContexts_.addAll(other.childContexts_); @@ -536,7 +555,7 @@ public Builder mergeFrom( case 10: { context_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -638,8 +657,8 @@ public Builder setContext(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - context_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -659,8 +678,8 @@ public Builder setContext(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContext() { - context_ = getDefaultInstance().getContext(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -685,8 +704,8 @@ public Builder setContextBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - context_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -695,9 +714,9 @@ public Builder setContextBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureChildContextsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { childContexts_ = new com.google.protobuf.LazyStringArrayList(childContexts_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -832,7 +851,7 @@ public Builder addAllChildContexts(java.lang.Iterable values) */ public Builder clearChildContexts() { childContexts_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RemoveDatapointsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RemoveDatapointsRequest.java index 7e17e1d63142..e2b19bfd5b57 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RemoveDatapointsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RemoveDatapointsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INDEX_FIELD_NUMBER = 1; - private volatile java.lang.Object index_; + + @SuppressWarnings("serial") + private volatile java.lang.Object index_ = ""; /** * * @@ -127,6 +129,8 @@ public com.google.protobuf.ByteString getIndexBytes() { } public static final int DATAPOINT_IDS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList datapointIds_; /** * @@ -402,10 +406,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; index_ = ""; - datapointIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -433,17 +437,30 @@ public com.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest build() { public com.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest result = new com.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest(this); - int from_bitField0_ = bitField0_; - result.index_ = index_; - if (((bitField0_ & 0x00000001) != 0)) { - datapointIds_ = datapointIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.datapointIds_ = datapointIds_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest result) { + if (((bitField0_ & 0x00000002) != 0)) { + datapointIds_ = datapointIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.datapointIds_ = datapointIds_; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.index_ = index_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -492,12 +509,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RemoveDatapointsReq return this; if (!other.getIndex().isEmpty()) { index_ = other.index_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.datapointIds_.isEmpty()) { if (datapointIds_.isEmpty()) { datapointIds_ = other.datapointIds_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDatapointIdsIsMutable(); datapointIds_.addAll(other.datapointIds_); @@ -533,7 +551,7 @@ public Builder mergeFrom( case 10: { index_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -635,8 +653,8 @@ public Builder setIndex(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - index_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -656,8 +674,8 @@ public Builder setIndex(java.lang.String value) { * @return This builder for chaining. */ public Builder clearIndex() { - index_ = getDefaultInstance().getIndex(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -682,8 +700,8 @@ public Builder setIndexBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - index_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -692,9 +710,9 @@ public Builder setIndexBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDatapointIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { datapointIds_ = new com.google.protobuf.LazyStringArrayList(datapointIds_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -829,7 +847,7 @@ public Builder addAllDatapointIds(java.lang.Iterable values) { */ public Builder clearDatapointIds() { datapointIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcesConsumed.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcesConsumed.java index 27ba515d6241..e267e7a16a6f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcesConsumed.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcesConsumed.java @@ -66,7 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int REPLICA_HOURS_FIELD_NUMBER = 1; - private double replicaHours_; + private double replicaHours_ = 0D; /** * * @@ -287,8 +287,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; replicaHours_ = 0D; - return this; } @@ -316,11 +316,20 @@ public com.google.cloud.aiplatform.v1beta1.ResourcesConsumed build() { public com.google.cloud.aiplatform.v1beta1.ResourcesConsumed buildPartial() { com.google.cloud.aiplatform.v1beta1.ResourcesConsumed result = new com.google.cloud.aiplatform.v1beta1.ResourcesConsumed(this); - result.replicaHours_ = replicaHours_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ResourcesConsumed result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.replicaHours_ = replicaHours_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -399,7 +408,7 @@ public Builder mergeFrom( case 9: { replicaHours_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 default: @@ -419,6 +428,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private double replicaHours_; /** * @@ -454,6 +465,7 @@ public double getReplicaHours() { public Builder setReplicaHours(double value) { replicaHours_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -471,7 +483,7 @@ public Builder setReplicaHours(double value) { * @return This builder for chaining. */ public Builder clearReplicaHours() { - + bitField0_ = (bitField0_ & ~0x00000001); replicaHours_ = 0D; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResumeModelDeploymentMonitoringJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResumeModelDeploymentMonitoringJobRequest.java index f8dddbfd2a5a..8e78cb732621 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResumeModelDeploymentMonitoringJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResumeModelDeploymentMonitoringJobRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -336,8 +338,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -369,11 +371,21 @@ public com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobReq buildPartial() { com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest result = new com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -427,6 +439,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -458,7 +471,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -478,6 +491,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -551,8 +566,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -572,8 +587,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -598,8 +613,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampleConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampleConfig.java index 57b19f47b052..93fcb40d08f4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampleConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampleConfig.java @@ -365,7 +365,7 @@ public int getFollowingBatchSamplePercentage() { } public static final int SAMPLE_STRATEGY_FIELD_NUMBER = 5; - private int sampleStrategy_; + private int sampleStrategy_ = 0; /** * * @@ -396,9 +396,8 @@ public int getSampleStrategyValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy getSampleStrategy() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy result = - com.google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy.valueOf(sampleStrategy_); + com.google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy.forNumber(sampleStrategy_); return result == null ? com.google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy.UNRECOGNIZED : result; @@ -660,8 +659,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; sampleStrategy_ = 0; - initialBatchSampleSizeCase_ = 0; initialBatchSampleSize_ = null; followingBatchSampleSizeCase_ = 0; @@ -693,17 +692,26 @@ public com.google.cloud.aiplatform.v1beta1.SampleConfig build() { public com.google.cloud.aiplatform.v1beta1.SampleConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.SampleConfig result = new com.google.cloud.aiplatform.v1beta1.SampleConfig(this); - if (initialBatchSampleSizeCase_ == 1) { - result.initialBatchSampleSize_ = initialBatchSampleSize_; + if (bitField0_ != 0) { + buildPartial0(result); } - if (followingBatchSampleSizeCase_ == 3) { - result.followingBatchSampleSize_ = followingBatchSampleSize_; + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.SampleConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sampleStrategy_ = sampleStrategy_; } - result.sampleStrategy_ = sampleStrategy_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.SampleConfig result) { result.initialBatchSampleSizeCase_ = initialBatchSampleSizeCase_; + result.initialBatchSampleSize_ = this.initialBatchSampleSize_; result.followingBatchSampleSizeCase_ = followingBatchSampleSizeCase_; - onBuilt(); - return result; + result.followingBatchSampleSize_ = this.followingBatchSampleSize_; } @java.lang.Override @@ -818,7 +826,7 @@ public Builder mergeFrom( case 40: { sampleStrategy_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 40 default: @@ -866,6 +874,8 @@ public Builder clearFollowingBatchSampleSize() { return this; } + private int bitField0_; + /** * * @@ -910,6 +920,7 @@ public int getInitialBatchSamplePercentage() { * @return This builder for chaining. */ public Builder setInitialBatchSamplePercentage(int value) { + initialBatchSampleSizeCase_ = 1; initialBatchSampleSize_ = value; onChanged(); @@ -982,6 +993,7 @@ public int getFollowingBatchSamplePercentage() { * @return This builder for chaining. */ public Builder setFollowingBatchSamplePercentage(int value) { + followingBatchSampleSizeCase_ = 3; followingBatchSampleSize_ = value; onChanged(); @@ -1041,8 +1053,8 @@ public int getSampleStrategyValue() { * @return This builder for chaining. */ public Builder setSampleStrategyValue(int value) { - sampleStrategy_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1061,9 +1073,9 @@ public Builder setSampleStrategyValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy getSampleStrategy() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy result = - com.google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy.valueOf(sampleStrategy_); + com.google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy.forNumber( + sampleStrategy_); return result == null ? com.google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy.UNRECOGNIZED : result; @@ -1087,7 +1099,7 @@ public Builder setSampleStrategy( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; sampleStrategy_ = value.getNumber(); onChanged(); return this; @@ -1106,7 +1118,7 @@ public Builder setSampleStrategy( * @return This builder for chaining. */ public Builder clearSampleStrategy() { - + bitField0_ = (bitField0_ & ~0x00000004); sampleStrategy_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampledShapleyAttribution.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampledShapleyAttribution.java index 80ded858e394..67db85fdee5b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampledShapleyAttribution.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SampledShapleyAttribution.java @@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PATH_COUNT_FIELD_NUMBER = 1; - private int pathCount_; + private int pathCount_ = 0; /** * * @@ -287,8 +287,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; pathCount_ = 0; - return this; } @@ -317,11 +317,21 @@ public com.google.cloud.aiplatform.v1beta1.SampledShapleyAttribution build() { public com.google.cloud.aiplatform.v1beta1.SampledShapleyAttribution buildPartial() { com.google.cloud.aiplatform.v1beta1.SampledShapleyAttribution result = new com.google.cloud.aiplatform.v1beta1.SampledShapleyAttribution(this); - result.pathCount_ = pathCount_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.SampledShapleyAttribution result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pathCount_ = pathCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -401,7 +411,7 @@ public Builder mergeFrom( case 8: { pathCount_ = input.readInt32(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -421,6 +431,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int pathCount_; /** * @@ -456,6 +468,7 @@ public int getPathCount() { public Builder setPathCount(int value) { pathCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -473,7 +486,7 @@ public Builder setPathCount(int value) { * @return This builder for chaining. */ public Builder clearPathCount() { - + bitField0_ = (bitField0_ & ~0x00000001); pathCount_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SamplingStrategy.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SamplingStrategy.java index b38e50eb9cc4..0222c4be7efb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SamplingStrategy.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SamplingStrategy.java @@ -133,7 +133,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SAMPLE_RATE_FIELD_NUMBER = 1; - private double sampleRate_; + private double sampleRate_ = 0D; /** * * @@ -358,8 +358,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; sampleRate_ = 0D; - return this; } @@ -391,11 +391,21 @@ public com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig b buildPartial() { com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig result = new com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig(this); - result.sampleRate_ = sampleRate_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sampleRate_ = sampleRate_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -480,7 +490,7 @@ public Builder mergeFrom( case 9: { sampleRate_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 default: @@ -500,6 +510,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private double sampleRate_; /** * @@ -531,6 +543,7 @@ public double getSampleRate() { public Builder setSampleRate(double value) { sampleRate_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -546,7 +559,7 @@ public Builder setSampleRate(double value) { * @return This builder for chaining. */ public Builder clearSampleRate() { - + bitField0_ = (bitField0_ & ~0x00000001); sampleRate_ = 0D; onChanged(); return this; @@ -675,7 +688,10 @@ public boolean hasRandomSampleConfig() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfigOrBuilder getRandomSampleConfigOrBuilder() { - return getRandomSampleConfig(); + return randomSampleConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + .getDefaultInstance() + : randomSampleConfig_; } private byte memoizedIsInitialized = -1; @@ -881,10 +897,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (randomSampleConfigBuilder_ == null) { - randomSampleConfig_ = null; - } else { - randomSampleConfig_ = null; + bitField0_ = 0; + randomSampleConfig_ = null; + if (randomSampleConfigBuilder_ != null) { + randomSampleConfigBuilder_.dispose(); randomSampleConfigBuilder_ = null; } return this; @@ -914,15 +930,23 @@ public com.google.cloud.aiplatform.v1beta1.SamplingStrategy build() { public com.google.cloud.aiplatform.v1beta1.SamplingStrategy buildPartial() { com.google.cloud.aiplatform.v1beta1.SamplingStrategy result = new com.google.cloud.aiplatform.v1beta1.SamplingStrategy(this); - if (randomSampleConfigBuilder_ == null) { - result.randomSampleConfig_ = randomSampleConfig_; - } else { - result.randomSampleConfig_ = randomSampleConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.SamplingStrategy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.randomSampleConfig_ = + randomSampleConfigBuilder_ == null + ? randomSampleConfig_ + : randomSampleConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1002,7 +1026,7 @@ public Builder mergeFrom( { input.readMessage( getRandomSampleConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -1022,6 +1046,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig randomSampleConfig_; private com.google.protobuf.SingleFieldBuilderV3< @@ -1043,7 +1069,7 @@ public Builder mergeFrom( * @return Whether the randomSampleConfig field is set. */ public boolean hasRandomSampleConfig() { - return randomSampleConfigBuilder_ != null || randomSampleConfig_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1087,11 +1113,11 @@ public Builder setRandomSampleConfig( throw new NullPointerException(); } randomSampleConfig_ = value; - onChanged(); } else { randomSampleConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1110,11 +1136,11 @@ public Builder setRandomSampleConfig( builderForValue) { if (randomSampleConfigBuilder_ == null) { randomSampleConfig_ = builderForValue.build(); - onChanged(); } else { randomSampleConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1131,20 +1157,20 @@ public Builder setRandomSampleConfig( public Builder mergeRandomSampleConfig( com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig value) { if (randomSampleConfigBuilder_ == null) { - if (randomSampleConfig_ != null) { - randomSampleConfig_ = - com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.newBuilder( - randomSampleConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && randomSampleConfig_ != null + && randomSampleConfig_ + != com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + .getDefaultInstance()) { + getRandomSampleConfigBuilder().mergeFrom(value); } else { randomSampleConfig_ = value; } - onChanged(); } else { randomSampleConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1159,14 +1185,13 @@ public Builder mergeRandomSampleConfig( * */ public Builder clearRandomSampleConfig() { - if (randomSampleConfigBuilder_ == null) { - randomSampleConfig_ = null; - onChanged(); - } else { - randomSampleConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + randomSampleConfig_ = null; + if (randomSampleConfigBuilder_ != null) { + randomSampleConfigBuilder_.dispose(); randomSampleConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1182,7 +1207,7 @@ public Builder clearRandomSampleConfig() { */ public com.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.Builder getRandomSampleConfigBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getRandomSampleConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQuery.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQuery.java index 1100d4445921..cac3a4d293b3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQuery.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQuery.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -122,7 +124,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -217,7 +221,7 @@ public com.google.protobuf.Value getMetadata() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; } public static final int CREATE_TIME_FIELD_NUMBER = 3; @@ -266,7 +270,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 4; @@ -315,11 +319,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ANNOTATION_FILTER_FIELD_NUMBER = 5; - private volatile java.lang.Object annotationFilter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object annotationFilter_ = ""; /** * * @@ -368,7 +374,9 @@ public com.google.protobuf.ByteString getAnnotationFilterBytes() { } public static final int PROBLEM_TYPE_FIELD_NUMBER = 6; - private volatile java.lang.Object problemType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object problemType_ = ""; /** * * @@ -439,7 +447,7 @@ public com.google.protobuf.ByteString getProblemTypeBytes() { } public static final int ANNOTATION_SPEC_COUNT_FIELD_NUMBER = 10; - private int annotationSpecCount_; + private int annotationSpecCount_ = 0; /** * * @@ -457,7 +465,9 @@ public int getAnnotationSpecCount() { } public static final int ETAG_FIELD_NUMBER = 8; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -508,7 +518,7 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int SUPPORT_AUTOML_TRAINING_FIELD_NUMBER = 9; - private boolean supportAutomlTraining_; + private boolean supportAutomlTraining_ = false; /** * * @@ -820,38 +830,29 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } annotationFilter_ = ""; - problemType_ = ""; - annotationSpecCount_ = 0; - etag_ = ""; - supportAutomlTraining_ = false; - return this; } @@ -879,32 +880,47 @@ public com.google.cloud.aiplatform.v1beta1.SavedQuery build() { public com.google.cloud.aiplatform.v1beta1.SavedQuery buildPartial() { com.google.cloud.aiplatform.v1beta1.SavedQuery result = new com.google.cloud.aiplatform.v1beta1.SavedQuery(this); - result.name_ = name_; - result.displayName_ = displayName_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.annotationFilter_ = annotationFilter_; - result.problemType_ = problemType_; - result.annotationSpecCount_ = annotationSpecCount_; - result.etag_ = etag_; - result.supportAutomlTraining_ = supportAutomlTraining_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.SavedQuery result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.annotationFilter_ = annotationFilter_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.problemType_ = problemType_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.annotationSpecCount_ = annotationSpecCount_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.supportAutomlTraining_ = supportAutomlTraining_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -952,10 +968,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SavedQuery other) { if (other == com.google.cloud.aiplatform.v1beta1.SavedQuery.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasMetadata()) { @@ -969,10 +987,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SavedQuery other) { } if (!other.getAnnotationFilter().isEmpty()) { annotationFilter_ = other.annotationFilter_; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getProblemType().isEmpty()) { problemType_ = other.problemType_; + bitField0_ |= 0x00000040; onChanged(); } if (other.getAnnotationSpecCount() != 0) { @@ -980,6 +1000,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SavedQuery other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000100; onChanged(); } if (other.getSupportAutomlTraining() != false) { @@ -1014,61 +1035,61 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 34 case 42: { annotationFilter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 42 case 50: { problemType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 50 case 66: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 66 case 72: { supportAutomlTraining_ = input.readBool(); - + bitField0_ |= 0x00000200; break; } // case 72 case 80: { annotationSpecCount_ = input.readInt32(); - + bitField0_ |= 0x00000080; break; } // case 80 case 98: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 98 default: @@ -1088,6 +1109,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -1149,8 +1172,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1166,8 +1189,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1188,8 +1211,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1261,8 +1284,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1280,8 +1303,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1304,8 +1327,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1328,7 +1351,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1363,11 +1386,11 @@ public Builder setMetadata(com.google.protobuf.Value value) { throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1382,11 +1405,11 @@ public Builder setMetadata(com.google.protobuf.Value value) { public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1400,17 +1423,18 @@ public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Value value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Value.newBuilder(metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Value.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1423,14 +1447,13 @@ public Builder mergeMetadata(com.google.protobuf.Value value) { * .google.protobuf.Value metadata = 12; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -1443,7 +1466,7 @@ public Builder clearMetadata() { * .google.protobuf.Value metadata = 12; */ public com.google.protobuf.Value.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -1509,7 +1532,7 @@ public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1550,11 +1573,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1571,11 +1594,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1591,17 +1614,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1616,14 +1640,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1638,7 +1661,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1710,7 +1733,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1751,11 +1774,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1772,11 +1795,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1792,17 +1815,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1817,14 +1841,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1839,7 +1862,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -1952,8 +1975,8 @@ public Builder setAnnotationFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - annotationFilter_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1969,8 +1992,8 @@ public Builder setAnnotationFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAnnotationFilter() { - annotationFilter_ = getDefaultInstance().getAnnotationFilter(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1991,8 +2014,8 @@ public Builder setAnnotationFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - annotationFilter_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2091,8 +2114,8 @@ public Builder setProblemType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - problemType_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2119,8 +2142,8 @@ public Builder setProblemType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearProblemType() { - problemType_ = getDefaultInstance().getProblemType(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2152,8 +2175,8 @@ public Builder setProblemTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - problemType_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2189,6 +2212,7 @@ public int getAnnotationSpecCount() { public Builder setAnnotationSpecCount(int value) { annotationSpecCount_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2204,7 +2228,7 @@ public Builder setAnnotationSpecCount(int value) { * @return This builder for chaining. */ public Builder clearAnnotationSpecCount() { - + bitField0_ = (bitField0_ & ~0x00000080); annotationSpecCount_ = 0; onChanged(); return this; @@ -2274,8 +2298,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2292,8 +2316,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2315,8 +2339,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2354,6 +2378,7 @@ public boolean getSupportAutomlTraining() { public Builder setSupportAutomlTraining(boolean value) { supportAutomlTraining_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2370,7 +2395,7 @@ public Builder setSupportAutomlTraining(boolean value) { * @return This builder for chaining. */ public Builder clearSupportAutomlTraining() { - + bitField0_ = (bitField0_ & ~0x00000200); supportAutomlTraining_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scalar.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scalar.java index 075bceab800d..32124c5e0c5e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scalar.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scalar.java @@ -66,7 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUE_FIELD_NUMBER = 1; - private double value_; + private double value_ = 0D; /** * * @@ -283,8 +283,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; value_ = 0D; - return this; } @@ -312,11 +312,20 @@ public com.google.cloud.aiplatform.v1beta1.Scalar build() { public com.google.cloud.aiplatform.v1beta1.Scalar buildPartial() { com.google.cloud.aiplatform.v1beta1.Scalar result = new com.google.cloud.aiplatform.v1beta1.Scalar(this); - result.value_ = value_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Scalar result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -394,7 +403,7 @@ public Builder mergeFrom( case 9: { value_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 default: @@ -414,6 +423,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private double value_; /** * @@ -445,6 +456,7 @@ public double getValue() { public Builder setValue(double value) { value_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -460,7 +472,7 @@ public Builder setValue(double value) { * @return This builder for chaining. */ public Builder clearValue() { - + bitField0_ = (bitField0_ & ~0x00000001); value_ = 0D; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scheduling.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scheduling.java index 637a32c5674a..52b604c36311 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scheduling.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scheduling.java @@ -108,11 +108,11 @@ public com.google.protobuf.Duration getTimeout() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { - return getTimeout(); + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } public static final int RESTART_JOB_ON_WORKER_RESTART_FIELD_NUMBER = 3; - private boolean restartJobOnWorkerRestart_; + private boolean restartJobOnWorkerRestart_ = false; /** * * @@ -342,14 +342,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (timeoutBuilder_ == null) { - timeout_ = null; - } else { - timeout_ = null; + bitField0_ = 0; + timeout_ = null; + if (timeoutBuilder_ != null) { + timeoutBuilder_.dispose(); timeoutBuilder_ = null; } restartJobOnWorkerRestart_ = false; - return this; } @@ -377,16 +376,23 @@ public com.google.cloud.aiplatform.v1beta1.Scheduling build() { public com.google.cloud.aiplatform.v1beta1.Scheduling buildPartial() { com.google.cloud.aiplatform.v1beta1.Scheduling result = new com.google.cloud.aiplatform.v1beta1.Scheduling(this); - if (timeoutBuilder_ == null) { - result.timeout_ = timeout_; - } else { - result.timeout_ = timeoutBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.restartJobOnWorkerRestart_ = restartJobOnWorkerRestart_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Scheduling result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timeout_ = timeoutBuilder_ == null ? timeout_ : timeoutBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.restartJobOnWorkerRestart_ = restartJobOnWorkerRestart_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -467,13 +473,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getTimeoutFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 24: { restartJobOnWorkerRestart_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 24 default: @@ -493,6 +499,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Duration timeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -511,7 +519,7 @@ public Builder mergeFrom( * @return Whether the timeout field is set. */ public boolean hasTimeout() { - return timeoutBuilder_ != null || timeout_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -546,11 +554,11 @@ public Builder setTimeout(com.google.protobuf.Duration value) { throw new NullPointerException(); } timeout_ = value; - onChanged(); } else { timeoutBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -565,11 +573,11 @@ public Builder setTimeout(com.google.protobuf.Duration value) { public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) { if (timeoutBuilder_ == null) { timeout_ = builderForValue.build(); - onChanged(); } else { timeoutBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -583,17 +591,18 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) */ public Builder mergeTimeout(com.google.protobuf.Duration value) { if (timeoutBuilder_ == null) { - if (timeout_ != null) { - timeout_ = - com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && timeout_ != null + && timeout_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTimeoutBuilder().mergeFrom(value); } else { timeout_ = value; } - onChanged(); } else { timeoutBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -606,14 +615,13 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { * .google.protobuf.Duration timeout = 1; */ public Builder clearTimeout() { - if (timeoutBuilder_ == null) { - timeout_ = null; - onChanged(); - } else { - timeout_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + timeout_ = null; + if (timeoutBuilder_ != null) { + timeoutBuilder_.dispose(); timeoutBuilder_ = null; } - + onChanged(); return this; } /** @@ -626,7 +634,7 @@ public Builder clearTimeout() { * .google.protobuf.Duration timeout = 1; */ public com.google.protobuf.Duration.Builder getTimeoutBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getTimeoutFieldBuilder().getBuilder(); } @@ -707,6 +715,7 @@ public boolean getRestartJobOnWorkerRestart() { public Builder setRestartJobOnWorkerRestart(boolean value) { restartJobOnWorkerRestart_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -724,7 +733,7 @@ public Builder setRestartJobOnWorkerRestart(boolean value) { * @return This builder for chaining. */ public Builder clearRestartJobOnWorkerRestart() { - + bitField0_ = (bitField0_ & ~0x00000002); restartJobOnWorkerRestart_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequest.java index 45a5ba9598c1..0d4312043558 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequest.java @@ -188,7 +188,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SAVED_QUERY_FIELD_NUMBER = 1; - private volatile java.lang.Object savedQuery_; + + @SuppressWarnings("serial") + private volatile java.lang.Object savedQuery_ = ""; /** * * @@ -239,7 +241,9 @@ public com.google.protobuf.ByteString getSavedQueryBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 2; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -511,10 +515,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; savedQuery_ = ""; - orderBy_ = ""; - return this; } @@ -546,12 +549,24 @@ public com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotat buildPartial() { com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation result = new com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation(this); - result.savedQuery_ = savedQuery_; - result.orderBy_ = orderBy_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.savedQuery_ = savedQuery_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.orderBy_ = orderBy_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -607,10 +622,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getSavedQuery().isEmpty()) { savedQuery_ = other.savedQuery_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -642,13 +659,13 @@ public Builder mergeFrom( case 10: { savedQuery_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -668,6 +685,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object savedQuery_ = ""; /** * @@ -732,8 +751,8 @@ public Builder setSavedQuery(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - savedQuery_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -750,8 +769,8 @@ public Builder setSavedQuery(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSavedQuery() { - savedQuery_ = getDefaultInstance().getSavedQuery(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -773,8 +792,8 @@ public Builder setSavedQueryBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - savedQuery_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -846,8 +865,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -865,8 +884,8 @@ public Builder setOrderBy(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -889,8 +908,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1146,7 +1165,9 @@ public boolean hasOrderByAnnotation() { } public static final int DATASET_FIELD_NUMBER = 1; - private volatile java.lang.Object dataset_; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataset_ = ""; /** * * @@ -1203,7 +1224,9 @@ public com.google.protobuf.ByteString getDatasetBytes() { } public static final int SAVED_QUERY_FIELD_NUMBER = 2; - private volatile java.lang.Object savedQuery_; + + @SuppressWarnings("serial") + private volatile java.lang.Object savedQuery_ = ""; /** * * @@ -1266,7 +1289,9 @@ public com.google.protobuf.ByteString getSavedQueryBytes() { } public static final int DATA_LABELING_JOB_FIELD_NUMBER = 3; - private volatile java.lang.Object dataLabelingJob_; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataLabelingJob_ = ""; /** * * @@ -1323,7 +1348,9 @@ public com.google.protobuf.ByteString getDataLabelingJobBytes() { } public static final int DATA_ITEM_FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object dataItemFilter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataItemFilter_ = ""; /** * * @@ -1388,7 +1415,9 @@ public com.google.protobuf.ByteString getDataItemFilterBytes() { } public static final int ANNOTATIONS_FILTER_FIELD_NUMBER = 5; - private volatile java.lang.Object annotationsFilter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object annotationsFilter_ = ""; /** * * @@ -1447,6 +1476,8 @@ public com.google.protobuf.ByteString getAnnotationsFilterBytes() { } public static final int ANNOTATION_FILTERS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList annotationFilters_; /** * @@ -1569,11 +1600,11 @@ public com.google.protobuf.FieldMask getFieldMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { - return getFieldMask(); + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } public static final int ANNOTATIONS_LIMIT_FIELD_NUMBER = 7; - private int annotationsLimit_; + private int annotationsLimit_ = 0; /** * * @@ -1593,7 +1624,7 @@ public int getAnnotationsLimit() { } public static final int PAGE_SIZE_FIELD_NUMBER = 8; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -1612,7 +1643,9 @@ public int getPageSize() { } public static final int ORDER_BY_FIELD_NUMBER = 9; - private volatile java.lang.Object orderBy_; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; /** * * @@ -1669,7 +1702,9 @@ public com.google.protobuf.ByteString getOrderByBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 10; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -2069,35 +2104,26 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (orderByAnnotationBuilder_ != null) { orderByAnnotationBuilder_.clear(); } dataset_ = ""; - savedQuery_ = ""; - dataLabelingJob_ = ""; - dataItemFilter_ = ""; - annotationsFilter_ = ""; - annotationFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (fieldMaskBuilder_ == null) { - fieldMask_ = null; - } else { - fieldMask_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + fieldMask_ = null; + if (fieldMaskBuilder_ != null) { + fieldMaskBuilder_.dispose(); fieldMaskBuilder_ = null; } annotationsLimit_ = 0; - pageSize_ = 0; - orderBy_ = ""; - pageToken_ = ""; - orderCase_ = 0; order_ = null; return this; @@ -2127,39 +2153,65 @@ public com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest build() { public com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest result = new com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest(this); - int from_bitField0_ = bitField0_; - if (orderCase_ == 12) { - result.order_ = order_; - } - if (orderCase_ == 13) { - if (orderByAnnotationBuilder_ == null) { - result.order_ = order_; - } else { - result.order_ = orderByAnnotationBuilder_.build(); - } + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.dataset_ = dataset_; - result.savedQuery_ = savedQuery_; - result.dataLabelingJob_ = dataLabelingJob_; - result.dataItemFilter_ = dataItemFilter_; - result.annotationsFilter_ = annotationsFilter_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest result) { + if (((bitField0_ & 0x00000080) != 0)) { annotationFilters_ = annotationFilters_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); } result.annotationFilters_ = annotationFilters_; - if (fieldMaskBuilder_ == null) { - result.fieldMask_ = fieldMask_; - } else { - result.fieldMask_ = fieldMaskBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dataset_ = dataset_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.savedQuery_ = savedQuery_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dataLabelingJob_ = dataLabelingJob_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.dataItemFilter_ = dataItemFilter_; } - result.annotationsLimit_ = annotationsLimit_; - result.pageSize_ = pageSize_; - result.orderBy_ = orderBy_; - result.pageToken_ = pageToken_; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.annotationsFilter_ = annotationsFilter_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.fieldMask_ = fieldMaskBuilder_ == null ? fieldMask_ : fieldMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.annotationsLimit_ = annotationsLimit_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.pageToken_ = pageToken_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest result) { result.orderCase_ = orderCase_; - onBuilt(); - return result; + result.order_ = this.order_; + if (orderCase_ == 13 && orderByAnnotationBuilder_ != null) { + result.order_ = orderByAnnotationBuilder_.build(); + } } @java.lang.Override @@ -2210,28 +2262,33 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequ return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getSavedQuery().isEmpty()) { savedQuery_ = other.savedQuery_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getDataLabelingJob().isEmpty()) { dataLabelingJob_ = other.dataLabelingJob_; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getDataItemFilter().isEmpty()) { dataItemFilter_ = other.dataItemFilter_; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getAnnotationsFilter().isEmpty()) { annotationsFilter_ = other.annotationsFilter_; + bitField0_ |= 0x00000040; onChanged(); } if (!other.annotationFilters_.isEmpty()) { if (annotationFilters_.isEmpty()) { annotationFilters_ = other.annotationFilters_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureAnnotationFiltersIsMutable(); annotationFilters_.addAll(other.annotationFilters_); @@ -2249,10 +2306,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequ } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; + bitField0_ |= 0x00000800; onChanged(); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00001000; onChanged(); } switch (other.getOrderCase()) { @@ -2302,61 +2361,61 @@ public Builder mergeFrom( case 10: { dataset_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 10 case 18: { savedQuery_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 18 case 26: { dataLabelingJob_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 26 case 34: { dataItemFilter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 34 case 42: { annotationsFilter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 42 case 50: { input.readMessage(getFieldMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 50 case 56: { annotationsLimit_ = input.readInt32(); - + bitField0_ |= 0x00000200; break; } // case 56 case 64: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000400; break; } // case 64 case 74: { orderBy_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000800; break; } // case 74 case 82: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00001000; break; } // case 82 case 90: @@ -2797,7 +2856,6 @@ public Builder clearOrderByAnnotation() { } orderCase_ = 13; onChanged(); - ; return orderByAnnotationBuilder_; } @@ -2874,8 +2932,8 @@ public Builder setDataset(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - dataset_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2895,8 +2953,8 @@ public Builder setDataset(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDataset() { - dataset_ = getDefaultInstance().getDataset(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2921,8 +2979,8 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - dataset_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3009,8 +3067,8 @@ public Builder setSavedQuery(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - savedQuery_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3033,8 +3091,8 @@ public Builder setSavedQuery(java.lang.String value) { */ @java.lang.Deprecated public Builder clearSavedQuery() { - savedQuery_ = getDefaultInstance().getSavedQuery(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -3062,8 +3120,8 @@ public Builder setSavedQueryBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - savedQuery_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3141,8 +3199,8 @@ public Builder setDataLabelingJob(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - dataLabelingJob_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3162,8 +3220,8 @@ public Builder setDataLabelingJob(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDataLabelingJob() { - dataLabelingJob_ = getDefaultInstance().getDataLabelingJob(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -3188,8 +3246,8 @@ public Builder setDataLabelingJobBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - dataLabelingJob_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3279,8 +3337,8 @@ public Builder setDataItemFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - dataItemFilter_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3304,8 +3362,8 @@ public Builder setDataItemFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDataItemFilter() { - dataItemFilter_ = getDefaultInstance().getDataItemFilter(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -3334,8 +3392,8 @@ public Builder setDataItemFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - dataItemFilter_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3416,8 +3474,8 @@ public Builder setAnnotationsFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - annotationsFilter_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3438,8 +3496,8 @@ public Builder setAnnotationsFilter(java.lang.String value) { */ @java.lang.Deprecated public Builder clearAnnotationsFilter() { - annotationsFilter_ = getDefaultInstance().getAnnotationsFilter(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -3465,8 +3523,8 @@ public Builder setAnnotationsFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - annotationsFilter_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3475,9 +3533,9 @@ public Builder setAnnotationsFilterBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAnnotationFiltersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { annotationFilters_ = new com.google.protobuf.LazyStringArrayList(annotationFilters_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000080; } } /** @@ -3644,7 +3702,7 @@ public Builder addAllAnnotationFilters(java.lang.Iterable valu */ public Builder clearAnnotationFilters() { annotationFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -3694,7 +3752,7 @@ public Builder addAnnotationFiltersBytes(com.google.protobuf.ByteString value) { * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { - return fieldMaskBuilder_ != null || fieldMask_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -3731,11 +3789,11 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } fieldMask_ = value; - onChanged(); } else { fieldMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3751,11 +3809,11 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (fieldMaskBuilder_ == null) { fieldMask_ = builderForValue.build(); - onChanged(); } else { fieldMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3770,17 +3828,18 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu */ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { - if (fieldMask_ != null) { - fieldMask_ = - com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && fieldMask_ != null + && fieldMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getFieldMaskBuilder().mergeFrom(value); } else { fieldMask_ = value; } - onChanged(); } else { fieldMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -3794,14 +3853,13 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask field_mask = 6; */ public Builder clearFieldMask() { - if (fieldMaskBuilder_ == null) { - fieldMask_ = null; - onChanged(); - } else { - fieldMask_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + fieldMask_ = null; + if (fieldMaskBuilder_ != null) { + fieldMaskBuilder_.dispose(); fieldMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -3815,7 +3873,7 @@ public Builder clearFieldMask() { * .google.protobuf.FieldMask field_mask = 6; */ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getFieldMaskFieldBuilder().getBuilder(); } @@ -3898,6 +3956,7 @@ public int getAnnotationsLimit() { public Builder setAnnotationsLimit(int value) { annotationsLimit_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3915,7 +3974,7 @@ public Builder setAnnotationsLimit(int value) { * @return This builder for chaining. */ public Builder clearAnnotationsLimit() { - + bitField0_ = (bitField0_ & ~0x00000200); annotationsLimit_ = 0; onChanged(); return this; @@ -3954,6 +4013,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3970,7 +4030,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000400); pageSize_ = 0; onChanged(); return this; @@ -4049,8 +4109,8 @@ public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderBy_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4070,8 +4130,8 @@ public Builder setOrderBy(java.lang.String value) { */ @java.lang.Deprecated public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -4096,8 +4156,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderBy_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4178,8 +4238,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4200,8 +4260,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -4227,8 +4287,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsResponse.java index bd34e80259da..737c18c9c17b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DATA_ITEM_VIEWS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List dataItemViews_; /** * @@ -140,7 +142,9 @@ public com.google.cloud.aiplatform.v1beta1.DataItemViewOrBuilder getDataItemView } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -404,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (dataItemViewsBuilder_ == null) { dataItemViews_ = java.util.Collections.emptyList(); } else { @@ -412,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -440,7 +444,16 @@ public com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse build() { public com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse result = new com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse result) { if (dataItemViewsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { dataItemViews_ = java.util.Collections.unmodifiableList(dataItemViews_); @@ -450,9 +463,13 @@ public com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse buildPartial( } else { result.dataItemViews_ = dataItemViewsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -530,6 +547,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SearchDataItemsResp } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -575,7 +593,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1027,8 +1045,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1047,8 +1065,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1072,8 +1090,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesRequest.java index b5e87c5b4564..534196521274 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int LOCATION_FIELD_NUMBER = 1; - private volatile java.lang.Object location_; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; /** * * @@ -128,7 +130,9 @@ public com.google.protobuf.ByteString getLocationBytes() { } public static final int QUERY_FIELD_NUMBER = 3; - private volatile java.lang.Object query_; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; /** * * @@ -271,7 +275,7 @@ public com.google.protobuf.ByteString getQueryBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 4; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -292,7 +296,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 5; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -576,14 +582,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; location_ = ""; - query_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -611,14 +614,29 @@ public com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest build() { public com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest result = new com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest(this); - result.location_ = location_; - result.query_ = query_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -667,10 +685,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SearchFeaturesReque return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getQuery().isEmpty()) { query_ = other.query_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -678,6 +698,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SearchFeaturesReque } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -709,25 +730,25 @@ public Builder mergeFrom( case 10: { location_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: { query_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 26 case 32: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 32 case 42: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 42 default: @@ -747,6 +768,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object location_ = ""; /** * @@ -820,8 +843,8 @@ public Builder setLocation(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - location_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -841,8 +864,8 @@ public Builder setLocation(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLocation() { - location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -867,8 +890,8 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - location_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1075,8 +1098,8 @@ public Builder setQuery(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - query_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1139,8 +1162,8 @@ public Builder setQuery(java.lang.String value) { * @return This builder for chaining. */ public Builder clearQuery() { - query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1208,8 +1231,8 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - query_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1251,6 +1274,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1269,7 +1293,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1351,8 +1375,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1373,8 +1397,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1400,8 +1424,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesResponse.java index 33ddad502706..05a093bd1110 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchFeaturesResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int FEATURES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List features_; /** * @@ -169,7 +171,9 @@ public com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeaturesOrBuilder } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -433,6 +437,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (featuresBuilder_ == null) { features_ = java.util.Collections.emptyList(); } else { @@ -441,7 +446,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -469,7 +473,16 @@ public com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse build() { public com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse result = new com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse result) { if (featuresBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { features_ = java.util.Collections.unmodifiableList(features_); @@ -479,9 +492,13 @@ public com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse buildPartial() } else { result.features_ = featuresBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -559,6 +576,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SearchFeaturesRespo } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -603,7 +621,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1153,8 +1171,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1173,8 +1191,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1198,8 +1216,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchMigratableResourcesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchMigratableResourcesRequest.java index d66a3d3d8801..3ebdd7aeff78 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchMigratableResourcesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchMigratableResourcesRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -131,7 +133,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -150,7 +152,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -199,7 +203,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -497,14 +503,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - filter_ = ""; - return this; } @@ -534,14 +537,30 @@ public com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest buil public com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest result = new com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -593,6 +612,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -600,10 +620,12 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -635,25 +657,25 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -673,6 +695,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -749,8 +773,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -771,8 +795,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -798,8 +822,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -837,6 +861,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -853,7 +878,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -920,8 +945,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -937,8 +962,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -959,8 +984,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1059,8 +1084,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1087,8 +1112,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1120,8 +1145,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchMigratableResourcesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchMigratableResourcesResponse.java index 877252d2e291..83029b44abbc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchMigratableResourcesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchMigratableResourcesResponse.java @@ -71,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MIGRATABLE_RESOURCES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List migratableResources_; /** @@ -153,7 +155,9 @@ public com.google.cloud.aiplatform.v1beta1.MigratableResource getMigratableResou } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -418,6 +422,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (migratableResourcesBuilder_ == null) { migratableResources_ = java.util.Collections.emptyList(); } else { @@ -426,7 +431,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -456,7 +460,16 @@ public com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse bui public com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse result = new com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse result) { if (migratableResourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { migratableResources_ = java.util.Collections.unmodifiableList(migratableResources_); @@ -466,9 +479,14 @@ public com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse bui } else { result.migratableResources_ = migratableResourcesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -549,6 +567,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -594,7 +613,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1085,8 +1104,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1104,8 +1123,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1128,8 +1147,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java index a6d520e05365..cc0974969f10 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java @@ -171,7 +171,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TYPE_FIELD_NUMBER = 1; - private int type_; + private int type_ = 0; /** * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType type = 1; * @@ -190,16 +190,16 @@ public int getTypeValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType getType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType result = - com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.valueOf(type_); + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.forNumber( + type_); return result == null ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.UNRECOGNIZED : result; } public static final int TOP_FEATURE_COUNT_FIELD_NUMBER = 4; - private int topFeatureCount_; + private int topFeatureCount_ = 0; /** * * @@ -471,10 +471,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; type_ = 0; - topFeatureCount_ = 0; - return this; } @@ -516,12 +515,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { new com.google.cloud.aiplatform.v1beta1 .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective( this); - result.type_ = type_; - result.topFeatureCount_ = topFeatureCount_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + .StatsAnomaliesObjective + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.topFeatureCount_ = topFeatureCount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -616,13 +629,13 @@ public Builder mergeFrom( case 8: { type_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 32: { topFeatureCount_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 32 default: @@ -642,6 +655,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int type_ = 0; /** * .google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType type = 1; @@ -661,8 +676,8 @@ public int getTypeValue() { * @return This builder for chaining. */ public Builder setTypeValue(int value) { - type_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -674,9 +689,8 @@ public Builder setTypeValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType getType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType result = - com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.valueOf( + com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.forNumber( type_); return result == null ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType @@ -695,7 +709,7 @@ public Builder setType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; @@ -707,7 +721,7 @@ public Builder setType( * @return This builder for chaining. */ public Builder clearType() { - + bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; @@ -756,6 +770,7 @@ public int getTopFeatureCount() { public Builder setTopFeatureCount(int value) { topFeatureCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -777,7 +792,7 @@ public Builder setTopFeatureCount(int value) { * @return This builder for chaining. */ public Builder clearTopFeatureCount() { - + bitField0_ = (bitField0_ & ~0x00000002); topFeatureCount_ = 0; onChanged(); return this; @@ -856,7 +871,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int MODEL_DEPLOYMENT_MONITORING_JOB_FIELD_NUMBER = 1; - private volatile java.lang.Object modelDeploymentMonitoringJob_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelDeploymentMonitoringJob_ = ""; /** * * @@ -913,7 +930,9 @@ public com.google.protobuf.ByteString getModelDeploymentMonitoringJobBytes() { } public static final int DEPLOYED_MODEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deployedModelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedModelId_ = ""; /** * * @@ -964,7 +983,9 @@ public com.google.protobuf.ByteString getDeployedModelIdBytes() { } public static final int FEATURE_DISPLAY_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object featureDisplayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object featureDisplayName_ = ""; /** * * @@ -1019,6 +1040,8 @@ public com.google.protobuf.ByteString getFeatureDisplayNameBytes() { } public static final int OBJECTIVES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest .StatsAnomaliesObjective> @@ -1112,7 +1135,7 @@ public int getObjectivesCount() { } public static final int PAGE_SIZE_FIELD_NUMBER = 5; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -1130,7 +1153,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 6; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -1228,7 +1253,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 8; @@ -1277,7 +1302,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } private byte memoizedIsInitialized = -1; @@ -1584,33 +1609,27 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; modelDeploymentMonitoringJob_ = ""; - deployedModelId_ = ""; - featureDisplayName_ = ""; - if (objectivesBuilder_ == null) { objectives_ = java.util.Collections.emptyList(); } else { objectives_ = null; objectivesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); pageSize_ = 0; - pageToken_ = ""; - - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } return this; @@ -1647,33 +1666,53 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1 .SearchModelDeploymentMonitoringStatsAnomaliesRequest(this); - int from_bitField0_ = bitField0_; - result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_; - result.deployedModelId_ = deployedModelId_; - result.featureDisplayName_ = featureDisplayName_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + result) { if (objectivesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { objectives_ = java.util.Collections.unmodifiableList(objectives_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.objectives_ = objectives_; } else { result.objectives_ = objectivesBuilder_.build(); } - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_; } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedModelId_ = deployedModelId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.featureDisplayName_ = featureDisplayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -1734,21 +1773,24 @@ public Builder mergeFrom( return this; if (!other.getModelDeploymentMonitoringJob().isEmpty()) { modelDeploymentMonitoringJob_ = other.modelDeploymentMonitoringJob_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDeployedModelId().isEmpty()) { deployedModelId_ = other.deployedModelId_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getFeatureDisplayName().isEmpty()) { featureDisplayName_ = other.featureDisplayName_; + bitField0_ |= 0x00000004; onChanged(); } if (objectivesBuilder_ == null) { if (!other.objectives_.isEmpty()) { if (objectives_.isEmpty()) { objectives_ = other.objectives_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureObjectivesIsMutable(); objectives_.addAll(other.objectives_); @@ -1761,7 +1803,7 @@ public Builder mergeFrom( objectivesBuilder_.dispose(); objectivesBuilder_ = null; objectives_ = other.objectives_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); objectivesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getObjectivesFieldBuilder() @@ -1776,6 +1818,7 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasStartTime()) { @@ -1813,19 +1856,19 @@ public Builder mergeFrom( case 10: { modelDeploymentMonitoringJob_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { deployedModelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { featureDisplayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: @@ -1850,25 +1893,25 @@ public Builder mergeFrom( case 40: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000010; break; } // case 40 case 50: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 66 default: @@ -1963,8 +2006,8 @@ public Builder setModelDeploymentMonitoringJob(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelDeploymentMonitoringJob_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1984,8 +2027,8 @@ public Builder setModelDeploymentMonitoringJob(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelDeploymentMonitoringJob() { - modelDeploymentMonitoringJob_ = getDefaultInstance().getModelDeploymentMonitoringJob(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2010,8 +2053,8 @@ public Builder setModelDeploymentMonitoringJobBytes(com.google.protobuf.ByteStri throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelDeploymentMonitoringJob_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2080,8 +2123,8 @@ public Builder setDeployedModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2098,8 +2141,8 @@ public Builder setDeployedModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedModelId() { - deployedModelId_ = getDefaultInstance().getDeployedModelId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2121,8 +2164,8 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2197,8 +2240,8 @@ public Builder setFeatureDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - featureDisplayName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2217,8 +2260,8 @@ public Builder setFeatureDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFeatureDisplayName() { - featureDisplayName_ = getDefaultInstance().getFeatureDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2242,8 +2285,8 @@ public Builder setFeatureDisplayNameBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - featureDisplayName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2254,13 +2297,13 @@ public Builder setFeatureDisplayNameBytes(com.google.protobuf.ByteString value) objectives_ = java.util.Collections.emptyList(); private void ensureObjectivesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { objectives_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1 .SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective>( objectives_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -2530,7 +2573,7 @@ public Builder addAllObjectives( public Builder clearObjectives() { if (objectivesBuilder_ == null) { objectives_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { objectivesBuilder_.clear(); @@ -2695,7 +2738,7 @@ public Builder removeObjectives(int index) { com.google.cloud.aiplatform.v1beta1 .SearchModelDeploymentMonitoringStatsAnomaliesRequest .StatsAnomaliesObjectiveOrBuilder>( - objectives_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + objectives_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); objectives_ = null; } return objectivesBuilder_; @@ -2732,6 +2775,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2747,7 +2791,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000010); pageSize_ = 0; onChanged(); return this; @@ -2820,8 +2864,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2839,8 +2883,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2863,8 +2907,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2888,7 +2932,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2925,11 +2969,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2945,11 +2989,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2964,17 +3008,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2988,14 +3033,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp start_time = 7; */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3009,7 +3053,7 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 7; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -3076,7 +3120,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -3113,11 +3157,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3133,11 +3177,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3152,17 +3196,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -3176,14 +3221,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp end_time = 8; */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3197,7 +3241,7 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 8; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesResponse.java index 7d1358f47b07..cc42aa64d687 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesResponse.java @@ -75,6 +75,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MONITORING_STATS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List monitoringStats_; /** @@ -174,7 +176,9 @@ public com.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies getMoni } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -466,6 +470,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (monitoringStatsBuilder_ == null) { monitoringStats_ = java.util.Collections.emptyList(); } else { @@ -474,7 +479,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -509,7 +513,17 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1 .SearchModelDeploymentMonitoringStatsAnomaliesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + result) { if (monitoringStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { monitoringStats_ = java.util.Collections.unmodifiableList(monitoringStats_); @@ -519,9 +533,15 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } else { result.monitoringStats_ = monitoringStatsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -609,6 +629,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -654,7 +675,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1208,8 +1229,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1227,8 +1248,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1251,8 +1272,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SmoothGradConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SmoothGradConfig.java index 9fe1e2b42181..34a84e68eda4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SmoothGradConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SmoothGradConfig.java @@ -245,7 +245,7 @@ public com.google.cloud.aiplatform.v1beta1.FeatureNoiseSigma getFeatureNoiseSigm } public static final int NOISY_SAMPLE_COUNT_FIELD_NUMBER = 3; - private int noisySampleCount_; + private int noisySampleCount_ = 0; /** * * @@ -507,11 +507,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (featureNoiseSigmaBuilder_ != null) { featureNoiseSigmaBuilder_.clear(); } noisySampleCount_ = 0; - gradientNoiseSigmaCase_ = 0; gradientNoiseSigma_ = null; return this; @@ -541,22 +541,29 @@ public com.google.cloud.aiplatform.v1beta1.SmoothGradConfig build() { public com.google.cloud.aiplatform.v1beta1.SmoothGradConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.SmoothGradConfig result = new com.google.cloud.aiplatform.v1beta1.SmoothGradConfig(this); - if (gradientNoiseSigmaCase_ == 1) { - result.gradientNoiseSigma_ = gradientNoiseSigma_; - } - if (gradientNoiseSigmaCase_ == 2) { - if (featureNoiseSigmaBuilder_ == null) { - result.gradientNoiseSigma_ = gradientNoiseSigma_; - } else { - result.gradientNoiseSigma_ = featureNoiseSigmaBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - result.noisySampleCount_ = noisySampleCount_; - result.gradientNoiseSigmaCase_ = gradientNoiseSigmaCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.SmoothGradConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.noisySampleCount_ = noisySampleCount_; + } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.SmoothGradConfig result) { + result.gradientNoiseSigmaCase_ = gradientNoiseSigmaCase_; + result.gradientNoiseSigma_ = this.gradientNoiseSigma_; + if (gradientNoiseSigmaCase_ == 2 && featureNoiseSigmaBuilder_ != null) { + result.gradientNoiseSigma_ = featureNoiseSigmaBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -664,7 +671,7 @@ public Builder mergeFrom( case 24: { noisySampleCount_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -698,6 +705,8 @@ public Builder clearGradientNoiseSigma() { return this; } + private int bitField0_; + /** * * @@ -772,6 +781,7 @@ public float getNoiseSigma() { * @return This builder for chaining. */ public Builder setNoiseSigma(float value) { + gradientNoiseSigmaCase_ = 1; gradientNoiseSigma_ = value; onChanged(); @@ -1082,7 +1092,6 @@ public Builder clearFeatureNoiseSigma() { } gradientNoiseSigmaCase_ = 2; onChanged(); - ; return featureNoiseSigmaBuilder_; } @@ -1123,6 +1132,7 @@ public int getNoisySampleCount() { public Builder setNoisySampleCount(int value) { noisySampleCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1141,7 +1151,7 @@ public Builder setNoisySampleCount(int value) { * @return This builder for chaining. */ public Builder clearNoisySampleCount() { - + bitField0_ = (bitField0_ & ~0x00000004); noisySampleCount_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPool.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPool.java index fe9a7e8a1cd7..8a68358d4418 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPool.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPool.java @@ -77,7 +77,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -126,7 +128,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -181,7 +185,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int SPECIALIST_MANAGERS_COUNT_FIELD_NUMBER = 3; - private int specialistManagersCount_; + private int specialistManagersCount_ = 0; /** * * @@ -199,6 +203,8 @@ public int getSpecialistManagersCount() { } public static final int SPECIALIST_MANAGER_EMAILS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList specialistManagerEmails_; /** * @@ -260,6 +266,8 @@ public com.google.protobuf.ByteString getSpecialistManagerEmailsBytes(int index) } public static final int PENDING_DATA_LABELING_JOBS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList pendingDataLabelingJobs_; /** * @@ -329,6 +337,8 @@ public com.google.protobuf.ByteString getPendingDataLabelingJobsBytes(int index) } public static final int SPECIALIST_WORKER_EMAILS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList specialistWorkerEmails_; /** * @@ -663,18 +673,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - specialistManagersCount_ = 0; - specialistManagerEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); pendingDataLabelingJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); specialistWorkerEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); return this; } @@ -702,27 +710,44 @@ public com.google.cloud.aiplatform.v1beta1.SpecialistPool build() { public com.google.cloud.aiplatform.v1beta1.SpecialistPool buildPartial() { com.google.cloud.aiplatform.v1beta1.SpecialistPool result = new com.google.cloud.aiplatform.v1beta1.SpecialistPool(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.specialistManagersCount_ = specialistManagersCount_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.SpecialistPool result) { + if (((bitField0_ & 0x00000008) != 0)) { specialistManagerEmails_ = specialistManagerEmails_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.specialistManagerEmails_ = specialistManagerEmails_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { pendingDataLabelingJobs_ = pendingDataLabelingJobs_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); } result.pendingDataLabelingJobs_ = pendingDataLabelingJobs_; - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { specialistWorkerEmails_ = specialistWorkerEmails_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); } result.specialistWorkerEmails_ = specialistWorkerEmails_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.SpecialistPool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.specialistManagersCount_ = specialistManagersCount_; + } } @java.lang.Override @@ -773,10 +798,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SpecialistPool othe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getSpecialistManagersCount() != 0) { @@ -785,7 +812,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SpecialistPool othe if (!other.specialistManagerEmails_.isEmpty()) { if (specialistManagerEmails_.isEmpty()) { specialistManagerEmails_ = other.specialistManagerEmails_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureSpecialistManagerEmailsIsMutable(); specialistManagerEmails_.addAll(other.specialistManagerEmails_); @@ -795,7 +822,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SpecialistPool othe if (!other.pendingDataLabelingJobs_.isEmpty()) { if (pendingDataLabelingJobs_.isEmpty()) { pendingDataLabelingJobs_ = other.pendingDataLabelingJobs_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensurePendingDataLabelingJobsIsMutable(); pendingDataLabelingJobs_.addAll(other.pendingDataLabelingJobs_); @@ -805,7 +832,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SpecialistPool othe if (!other.specialistWorkerEmails_.isEmpty()) { if (specialistWorkerEmails_.isEmpty()) { specialistWorkerEmails_ = other.specialistWorkerEmails_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureSpecialistWorkerEmailsIsMutable(); specialistWorkerEmails_.addAll(other.specialistWorkerEmails_); @@ -841,19 +868,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { specialistManagersCount_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: @@ -957,8 +984,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -974,8 +1001,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -996,8 +1023,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1072,8 +1099,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1092,8 +1119,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1117,8 +1144,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1156,6 +1183,7 @@ public int getSpecialistManagersCount() { public Builder setSpecialistManagersCount(int value) { specialistManagersCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1172,7 +1200,7 @@ public Builder setSpecialistManagersCount(int value) { * @return This builder for chaining. */ public Builder clearSpecialistManagersCount() { - + bitField0_ = (bitField0_ & ~0x00000004); specialistManagersCount_ = 0; onChanged(); return this; @@ -1182,10 +1210,10 @@ public Builder clearSpecialistManagersCount() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSpecialistManagerEmailsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { specialistManagerEmails_ = new com.google.protobuf.LazyStringArrayList(specialistManagerEmails_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } /** @@ -1320,7 +1348,7 @@ public Builder addAllSpecialistManagerEmails(java.lang.Iterable */ public Builder clearSpecialistWorkerEmails() { specialistWorkerEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StopTrialRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StopTrialRequest.java index 2fa52b5c7bf4..a291773ba5e1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StopTrialRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StopTrialRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.aiplatform.v1beta1.StopTrialRequest build() { public com.google.cloud.aiplatform.v1beta1.StopTrialRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.StopTrialRequest result = new com.google.cloud.aiplatform.v1beta1.StopTrialRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.StopTrialRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -405,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.StopTrialRequest ot return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -436,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -456,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -529,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -550,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -576,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StratifiedSplit.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StratifiedSplit.java index 0b95fc481a0c..8204cde35110 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StratifiedSplit.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StratifiedSplit.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRAINING_FRACTION_FIELD_NUMBER = 1; - private double trainingFraction_; + private double trainingFraction_ = 0D; /** * * @@ -99,7 +99,7 @@ public double getTrainingFraction() { } public static final int VALIDATION_FRACTION_FIELD_NUMBER = 2; - private double validationFraction_; + private double validationFraction_ = 0D; /** * * @@ -117,7 +117,7 @@ public double getValidationFraction() { } public static final int TEST_FRACTION_FIELD_NUMBER = 3; - private double testFraction_; + private double testFraction_ = 0D; /** * * @@ -135,7 +135,9 @@ public double getTestFraction() { } public static final int KEY_FIELD_NUMBER = 4; - private volatile java.lang.Object key_; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; /** * * @@ -434,14 +436,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; trainingFraction_ = 0D; - validationFraction_ = 0D; - testFraction_ = 0D; - key_ = ""; - return this; } @@ -469,14 +468,29 @@ public com.google.cloud.aiplatform.v1beta1.StratifiedSplit build() { public com.google.cloud.aiplatform.v1beta1.StratifiedSplit buildPartial() { com.google.cloud.aiplatform.v1beta1.StratifiedSplit result = new com.google.cloud.aiplatform.v1beta1.StratifiedSplit(this); - result.trainingFraction_ = trainingFraction_; - result.validationFraction_ = validationFraction_; - result.testFraction_ = testFraction_; - result.key_ = key_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.StratifiedSplit result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trainingFraction_ = trainingFraction_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validationFraction_ = validationFraction_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.testFraction_ = testFraction_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.key_ = key_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -534,6 +548,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.StratifiedSplit oth } if (!other.getKey().isEmpty()) { key_ = other.key_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -565,25 +580,25 @@ public Builder mergeFrom( case 9: { trainingFraction_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 case 17: { validationFraction_ = input.readDouble(); - + bitField0_ |= 0x00000002; break; } // case 17 case 25: { testFraction_ = input.readDouble(); - + bitField0_ |= 0x00000004; break; } // case 25 case 34: { key_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -603,6 +618,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private double trainingFraction_; /** * @@ -634,6 +651,7 @@ public double getTrainingFraction() { public Builder setTrainingFraction(double value) { trainingFraction_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -649,7 +667,7 @@ public Builder setTrainingFraction(double value) { * @return This builder for chaining. */ public Builder clearTrainingFraction() { - + bitField0_ = (bitField0_ & ~0x00000001); trainingFraction_ = 0D; onChanged(); return this; @@ -686,6 +704,7 @@ public double getValidationFraction() { public Builder setValidationFraction(double value) { validationFraction_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -701,7 +720,7 @@ public Builder setValidationFraction(double value) { * @return This builder for chaining. */ public Builder clearValidationFraction() { - + bitField0_ = (bitField0_ & ~0x00000002); validationFraction_ = 0D; onChanged(); return this; @@ -738,6 +757,7 @@ public double getTestFraction() { public Builder setTestFraction(double value) { testFraction_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -753,7 +773,7 @@ public Builder setTestFraction(double value) { * @return This builder for chaining. */ public Builder clearTestFraction() { - + bitField0_ = (bitField0_ & ~0x00000004); testFraction_ = 0D; onChanged(); return this; @@ -823,8 +843,8 @@ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - key_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -841,8 +861,8 @@ public Builder setKey(java.lang.String value) { * @return This builder for chaining. */ public Builder clearKey() { - key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -864,8 +884,8 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - key_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamingReadFeatureValuesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamingReadFeatureValuesRequest.java index dab887fa4798..4e9d813d479b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamingReadFeatureValuesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamingReadFeatureValuesRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENTITY_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object entityType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityType_ = ""; /** * * @@ -134,6 +136,8 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { } public static final int ENTITY_IDS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList entityIds_; /** * @@ -257,7 +261,9 @@ public com.google.cloud.aiplatform.v1beta1.FeatureSelector getFeatureSelector() @java.lang.Override public com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder getFeatureSelectorOrBuilder() { - return getFeatureSelector(); + return featureSelector_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureSelector.getDefaultInstance() + : featureSelector_; } private byte memoizedIsInitialized = -1; @@ -491,14 +497,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; entityType_ = ""; - entityIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (featureSelectorBuilder_ == null) { - featureSelector_ = null; - } else { - featureSelector_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + featureSelector_ = null; + if (featureSelectorBuilder_ != null) { + featureSelectorBuilder_.dispose(); featureSelectorBuilder_ = null; } return this; @@ -530,20 +535,33 @@ public com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest bui public com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest result = new com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest(this); - int from_bitField0_ = bitField0_; - result.entityType_ = entityType_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest result) { + if (((bitField0_ & 0x00000002) != 0)) { entityIds_ = entityIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.entityIds_ = entityIds_; - if (featureSelectorBuilder_ == null) { - result.featureSelector_ = featureSelector_; - } else { - result.featureSelector_ = featureSelectorBuilder_.build(); + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityType_ = entityType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.featureSelector_ = + featureSelectorBuilder_ == null ? featureSelector_ : featureSelectorBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -597,12 +615,13 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getEntityType().isEmpty()) { entityType_ = other.entityType_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.entityIds_.isEmpty()) { if (entityIds_.isEmpty()) { entityIds_ = other.entityIds_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureEntityIdsIsMutable(); entityIds_.addAll(other.entityIds_); @@ -641,7 +660,7 @@ public Builder mergeFrom( case 10: { entityType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -654,7 +673,7 @@ public Builder mergeFrom( case 26: { input.readMessage(getFeatureSelectorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -758,8 +777,8 @@ public Builder setEntityType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -782,8 +801,8 @@ public Builder setEntityType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityType() { - entityType_ = getDefaultInstance().getEntityType(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -811,8 +830,8 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -821,9 +840,9 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureEntityIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { entityIds_ = new com.google.protobuf.LazyStringArrayList(entityIds_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -974,7 +993,7 @@ public Builder addAllEntityIds(java.lang.Iterable values) { */ public Builder clearEntityIds() { entityIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1024,7 +1043,7 @@ public Builder addEntityIdsBytes(com.google.protobuf.ByteString value) { * @return Whether the featureSelector field is set. */ public boolean hasFeatureSelector() { - return featureSelectorBuilder_ != null || featureSelector_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1067,11 +1086,11 @@ public Builder setFeatureSelector(com.google.cloud.aiplatform.v1beta1.FeatureSel throw new NullPointerException(); } featureSelector_ = value; - onChanged(); } else { featureSelectorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1090,11 +1109,11 @@ public Builder setFeatureSelector( com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder builderForValue) { if (featureSelectorBuilder_ == null) { featureSelector_ = builderForValue.build(); - onChanged(); } else { featureSelectorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1111,19 +1130,19 @@ public Builder setFeatureSelector( */ public Builder mergeFeatureSelector(com.google.cloud.aiplatform.v1beta1.FeatureSelector value) { if (featureSelectorBuilder_ == null) { - if (featureSelector_ != null) { - featureSelector_ = - com.google.cloud.aiplatform.v1beta1.FeatureSelector.newBuilder(featureSelector_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && featureSelector_ != null + && featureSelector_ + != com.google.cloud.aiplatform.v1beta1.FeatureSelector.getDefaultInstance()) { + getFeatureSelectorBuilder().mergeFrom(value); } else { featureSelector_ = value; } - onChanged(); } else { featureSelectorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1139,14 +1158,13 @@ public Builder mergeFeatureSelector(com.google.cloud.aiplatform.v1beta1.FeatureS * */ public Builder clearFeatureSelector() { - if (featureSelectorBuilder_ == null) { - featureSelector_ = null; - onChanged(); - } else { - featureSelector_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + featureSelector_ = null; + if (featureSelectorBuilder_ != null) { + featureSelectorBuilder_.dispose(); featureSelectorBuilder_ = null; } - + onChanged(); return this; } /** @@ -1162,7 +1180,7 @@ public Builder clearFeatureSelector() { * */ public com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder getFeatureSelectorBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getFeatureSelectorFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StringArray.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StringArray.java index bde44de2740f..057236615ea0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StringArray.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StringArray.java @@ -68,6 +68,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList values_; /** * @@ -332,6 +334,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; @@ -361,14 +364,25 @@ public com.google.cloud.aiplatform.v1beta1.StringArray build() { public com.google.cloud.aiplatform.v1beta1.StringArray buildPartial() { com.google.cloud.aiplatform.v1beta1.StringArray result = new com.google.cloud.aiplatform.v1beta1.StringArray(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.StringArray result) { if (((bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.StringArray result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Study.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Study.java index ccc4f6ad7ac5..e51ec4b93c7b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Study.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Study.java @@ -252,7 +252,9 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -303,7 +305,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -402,11 +406,13 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec getStudySpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.StudySpecOrBuilder getStudySpecOrBuilder() { - return getStudySpec(); + return studySpec_ == null + ? com.google.cloud.aiplatform.v1beta1.StudySpec.getDefaultInstance() + : studySpec_; } public static final int STATE_FIELD_NUMBER = 4; - private int state_; + private int state_ = 0; /** * * @@ -439,9 +445,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Study.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Study.State result = - com.google.cloud.aiplatform.v1beta1.Study.State.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.Study.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.Study.State.UNRECOGNIZED : result; } @@ -491,11 +496,13 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int INACTIVE_REASON_FIELD_NUMBER = 6; - private volatile java.lang.Object inactiveReason_; + + @SuppressWarnings("serial") + private volatile java.lang.Object inactiveReason_ = ""; /** * * @@ -797,26 +804,21 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - - if (studySpecBuilder_ == null) { - studySpec_ = null; - } else { - studySpec_ = null; + studySpec_ = null; + if (studySpecBuilder_ != null) { + studySpecBuilder_.dispose(); studySpecBuilder_ = null; } state_ = 0; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } inactiveReason_ = ""; - return this; } @@ -844,24 +846,35 @@ public com.google.cloud.aiplatform.v1beta1.Study build() { public com.google.cloud.aiplatform.v1beta1.Study buildPartial() { com.google.cloud.aiplatform.v1beta1.Study result = new com.google.cloud.aiplatform.v1beta1.Study(this); - result.name_ = name_; - result.displayName_ = displayName_; - if (studySpecBuilder_ == null) { - result.studySpec_ = studySpec_; - } else { - result.studySpec_ = studySpecBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.state_ = state_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - result.inactiveReason_ = inactiveReason_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Study result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.studySpec_ = studySpecBuilder_ == null ? studySpec_ : studySpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.inactiveReason_ = inactiveReason_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -909,10 +922,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Study other) { if (other == com.google.cloud.aiplatform.v1beta1.Study.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasStudySpec()) { @@ -926,6 +941,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Study other) { } if (!other.getInactiveReason().isEmpty()) { inactiveReason_ = other.inactiveReason_; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -957,37 +973,37 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getStudySpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 32: { state_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { inactiveReason_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -1007,6 +1023,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -1071,8 +1089,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1089,8 +1107,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1112,8 +1130,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1179,8 +1197,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1196,8 +1214,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1218,8 +1236,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1244,7 +1262,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the studySpec field is set. */ public boolean hasStudySpec() { - return studySpecBuilder_ != null || studySpec_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1285,11 +1303,11 @@ public Builder setStudySpec(com.google.cloud.aiplatform.v1beta1.StudySpec value) throw new NullPointerException(); } studySpec_ = value; - onChanged(); } else { studySpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1307,11 +1325,11 @@ public Builder setStudySpec( com.google.cloud.aiplatform.v1beta1.StudySpec.Builder builderForValue) { if (studySpecBuilder_ == null) { studySpec_ = builderForValue.build(); - onChanged(); } else { studySpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1327,19 +1345,18 @@ public Builder setStudySpec( */ public Builder mergeStudySpec(com.google.cloud.aiplatform.v1beta1.StudySpec value) { if (studySpecBuilder_ == null) { - if (studySpec_ != null) { - studySpec_ = - com.google.cloud.aiplatform.v1beta1.StudySpec.newBuilder(studySpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && studySpec_ != null + && studySpec_ != com.google.cloud.aiplatform.v1beta1.StudySpec.getDefaultInstance()) { + getStudySpecBuilder().mergeFrom(value); } else { studySpec_ = value; } - onChanged(); } else { studySpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1354,14 +1371,13 @@ public Builder mergeStudySpec(com.google.cloud.aiplatform.v1beta1.StudySpec valu * */ public Builder clearStudySpec() { - if (studySpecBuilder_ == null) { - studySpec_ = null; - onChanged(); - } else { - studySpec_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + studySpec_ = null; + if (studySpecBuilder_ != null) { + studySpecBuilder_.dispose(); studySpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -1376,7 +1392,7 @@ public Builder clearStudySpec() { * */ public com.google.cloud.aiplatform.v1beta1.StudySpec.Builder getStudySpecBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getStudySpecFieldBuilder().getBuilder(); } @@ -1461,8 +1477,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1481,9 +1497,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Study.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Study.State result = - com.google.cloud.aiplatform.v1beta1.Study.State.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.Study.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.Study.State.UNRECOGNIZED : result; } /** @@ -1504,7 +1519,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.Study.State value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; state_ = value.getNumber(); onChanged(); return this; @@ -1523,7 +1538,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.Study.State value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000008); state_ = 0; onChanged(); return this; @@ -1549,7 +1564,7 @@ public Builder clearState() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1590,11 +1605,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1611,11 +1626,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1631,17 +1646,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1656,14 +1672,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1678,7 +1693,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1794,8 +1809,8 @@ public Builder setInactiveReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - inactiveReason_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1812,8 +1827,8 @@ public Builder setInactiveReason(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInactiveReason() { - inactiveReason_ = getDefaultInstance().getInactiveReason(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1835,8 +1850,8 @@ public Builder setInactiveReasonBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - inactiveReason_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpec.java index d441205eed1a..72eb5f25ddc3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpec.java @@ -844,7 +844,9 @@ private GoalType(int value) { } public static final int METRIC_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object metricId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object metricId_ = ""; /** * * @@ -895,7 +897,7 @@ public com.google.protobuf.ByteString getMetricIdBytes() { } public static final int GOAL_FIELD_NUMBER = 2; - private int goal_; + private int goal_ = 0; /** * * @@ -928,9 +930,8 @@ public int getGoalValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType getGoal() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType result = - com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType.valueOf(goal_); + com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType.forNumber(goal_); return result == null ? com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType.UNRECOGNIZED : result; @@ -1149,10 +1150,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; metricId_ = ""; - goal_ = 0; - return this; } @@ -1180,12 +1180,23 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec build() { public com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec buildPartial() { com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec result = new com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec(this); - result.metricId_ = metricId_; - result.goal_ = goal_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricId_ = metricId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.goal_ = goal_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1236,6 +1247,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpe return this; if (!other.getMetricId().isEmpty()) { metricId_ = other.metricId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.goal_ != 0) { @@ -1270,13 +1282,13 @@ public Builder mergeFrom( case 10: { metricId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { goal_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -1296,6 +1308,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object metricId_ = ""; /** * @@ -1360,8 +1374,8 @@ public Builder setMetricId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - metricId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1378,8 +1392,8 @@ public Builder setMetricId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMetricId() { - metricId_ = getDefaultInstance().getMetricId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1401,8 +1415,8 @@ public Builder setMetricIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - metricId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1440,8 +1454,8 @@ public int getGoalValue() { * @return This builder for chaining. */ public Builder setGoalValue(int value) { - goal_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1460,9 +1474,8 @@ public Builder setGoalValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType getGoal() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType result = - com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType.valueOf(goal_); + com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType.forNumber(goal_); return result == null ? com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType.UNRECOGNIZED : result; @@ -1486,7 +1499,7 @@ public Builder setGoal( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; goal_ = value.getNumber(); onChanged(); return this; @@ -1505,7 +1518,7 @@ public Builder setGoal( * @return This builder for chaining. */ public Builder clearGoal() { - + bitField0_ = (bitField0_ & ~0x00000002); goal_ = 0; onChanged(); return this; @@ -2249,7 +2262,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int bitField0_; public static final int MIN_VALUE_FIELD_NUMBER = 1; - private double minValue_; + private double minValue_ = 0D; /** * * @@ -2267,7 +2280,7 @@ public double getMinValue() { } public static final int MAX_VALUE_FIELD_NUMBER = 2; - private double maxValue_; + private double maxValue_ = 0D; /** * * @@ -2285,7 +2298,7 @@ public double getMaxValue() { } public static final int DEFAULT_VALUE_FIELD_NUMBER = 4; - private double defaultValue_; + private double defaultValue_ = 0D; /** * * @@ -2573,12 +2586,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; minValue_ = 0D; - maxValue_ = 0D; - defaultValue_ = 0D; - bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -2610,17 +2621,28 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSp buildPartial() { com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec result = new com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec result) { int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.minValue_ = minValue_; - result.maxValue_ = maxValue_; if (((from_bitField0_ & 0x00000001) != 0)) { + result.minValue_ = minValue_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxValue_ = maxValue_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { result.defaultValue_ = defaultValue_; to_bitField0_ |= 0x00000001; } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2715,19 +2737,19 @@ public Builder mergeFrom( case 9: { minValue_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 case 17: { maxValue_ = input.readDouble(); - + bitField0_ |= 0x00000002; break; } // case 17 case 33: { defaultValue_ = input.readDouble(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; break; } // case 33 default: @@ -2780,6 +2802,7 @@ public double getMinValue() { public Builder setMinValue(double value) { minValue_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2795,7 +2818,7 @@ public Builder setMinValue(double value) { * @return This builder for chaining. */ public Builder clearMinValue() { - + bitField0_ = (bitField0_ & ~0x00000001); minValue_ = 0D; onChanged(); return this; @@ -2832,6 +2855,7 @@ public double getMaxValue() { public Builder setMaxValue(double value) { maxValue_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2847,7 +2871,7 @@ public Builder setMaxValue(double value) { * @return This builder for chaining. */ public Builder clearMaxValue() { - + bitField0_ = (bitField0_ & ~0x00000002); maxValue_ = 0D; onChanged(); return this; @@ -2871,7 +2895,7 @@ public Builder clearMaxValue() { */ @java.lang.Override public boolean hasDefaultValue() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -2909,8 +2933,9 @@ public double getDefaultValue() { * @return This builder for chaining. */ public Builder setDefaultValue(double value) { - bitField0_ |= 0x00000001; + defaultValue_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2930,7 +2955,7 @@ public Builder setDefaultValue(double value) { * @return This builder for chaining. */ public Builder clearDefaultValue() { - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); defaultValue_ = 0D; onChanged(); return this; @@ -3120,7 +3145,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int bitField0_; public static final int MIN_VALUE_FIELD_NUMBER = 1; - private long minValue_; + private long minValue_ = 0L; /** * * @@ -3138,7 +3163,7 @@ public long getMinValue() { } public static final int MAX_VALUE_FIELD_NUMBER = 2; - private long maxValue_; + private long maxValue_ = 0L; /** * * @@ -3156,7 +3181,7 @@ public long getMaxValue() { } public static final int DEFAULT_VALUE_FIELD_NUMBER = 4; - private long defaultValue_; + private long defaultValue_ = 0L; /** * * @@ -3433,12 +3458,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; minValue_ = 0L; - maxValue_ = 0L; - defaultValue_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -3472,17 +3495,28 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec result = new com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec( this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec result) { int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.minValue_ = minValue_; - result.maxValue_ = maxValue_; if (((from_bitField0_ & 0x00000001) != 0)) { + result.minValue_ = minValue_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxValue_ = maxValue_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { result.defaultValue_ = defaultValue_; to_bitField0_ |= 0x00000001; } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -3577,19 +3611,19 @@ public Builder mergeFrom( case 8: { minValue_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { maxValue_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 case 32: { defaultValue_ = input.readInt64(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; break; } // case 32 default: @@ -3642,6 +3676,7 @@ public long getMinValue() { public Builder setMinValue(long value) { minValue_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3657,7 +3692,7 @@ public Builder setMinValue(long value) { * @return This builder for chaining. */ public Builder clearMinValue() { - + bitField0_ = (bitField0_ & ~0x00000001); minValue_ = 0L; onChanged(); return this; @@ -3694,6 +3729,7 @@ public long getMaxValue() { public Builder setMaxValue(long value) { maxValue_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3709,7 +3745,7 @@ public Builder setMaxValue(long value) { * @return This builder for chaining. */ public Builder clearMaxValue() { - + bitField0_ = (bitField0_ & ~0x00000002); maxValue_ = 0L; onChanged(); return this; @@ -3733,7 +3769,7 @@ public Builder clearMaxValue() { */ @java.lang.Override public boolean hasDefaultValue() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -3771,8 +3807,9 @@ public long getDefaultValue() { * @return This builder for chaining. */ public Builder setDefaultValue(long value) { - bitField0_ |= 0x00000001; + defaultValue_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3792,7 +3829,7 @@ public Builder setDefaultValue(long value) { * @return This builder for chaining. */ public Builder clearDefaultValue() { - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); defaultValue_ = 0L; onChanged(); return this; @@ -4027,6 +4064,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int bitField0_; public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList values_; /** * @@ -4088,7 +4127,9 @@ public com.google.protobuf.ByteString getValuesBytes(int index) { } public static final int DEFAULT_VALUE_FIELD_NUMBER = 3; - private volatile java.lang.Object defaultValue_; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultValue_ = ""; /** * * @@ -4400,10 +4441,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); defaultValue_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -4437,20 +4478,34 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec result = new com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec( this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec + result) { if (((bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { + result.defaultValue_ = defaultValue_; to_bitField0_ |= 0x00000001; } - result.defaultValue_ = defaultValue_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -4519,8 +4574,8 @@ public Builder mergeFrom( onChanged(); } if (other.hasDefaultValue()) { - bitField0_ |= 0x00000002; defaultValue_ = other.defaultValue_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -4840,8 +4895,8 @@ public Builder setDefaultValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000002; defaultValue_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4861,8 +4916,8 @@ public Builder setDefaultValue(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDefaultValue() { - bitField0_ = (bitField0_ & ~0x00000002); defaultValue_ = getDefaultInstance().getDefaultValue(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -4887,8 +4942,8 @@ public Builder setDefaultValueBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - bitField0_ |= 0x00000002; defaultValue_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -5102,6 +5157,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int bitField0_; public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.DoubleList values_; /** * @@ -5160,7 +5217,7 @@ public double getValues(int index) { private int valuesMemoizedSerializedSize = -1; public static final int DEFAULT_VALUE_FIELD_NUMBER = 3; - private double defaultValue_; + private double defaultValue_ = 0D; /** * * @@ -5448,10 +5505,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; values_ = emptyDoubleList(); - bitField0_ = (bitField0_ & ~0x00000001); defaultValue_ = 0D; - bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -5485,20 +5541,32 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec result = new com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec( this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec result) { if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.defaultValue_ = defaultValue_; to_bitField0_ |= 0x00000001; } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -5716,6 +5784,7 @@ public double getValues(int index) { * @return This builder for chaining. */ public Builder setValues(int index, double value) { + ensureValuesIsMutable(); values_.setDouble(index, value); onChanged(); @@ -5737,6 +5806,7 @@ public Builder setValues(int index, double value) { * @return This builder for chaining. */ public Builder addValues(double value) { + ensureValuesIsMutable(); values_.addDouble(value); onChanged(); @@ -5843,8 +5913,9 @@ public double getDefaultValue() { * @return This builder for chaining. */ public Builder setDefaultValue(double value) { - bitField0_ |= 0x00000002; + defaultValue_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -6289,6 +6360,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.DoubleList values_; /** * @@ -6594,8 +6667,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; values_ = emptyDoubleList(); - bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -6635,14 +6708,30 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec .ConditionalParameterSpec.DiscreteValueCondition(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + .DiscreteValueCondition + result) { if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + .DiscreteValueCondition + result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -6852,6 +6941,7 @@ public double getValues(int index) { * @return This builder for chaining. */ public Builder setValues(int index, double value) { + ensureValuesIsMutable(); values_.setDouble(index, value); onChanged(); @@ -6872,6 +6962,7 @@ public Builder setValues(int index, double value) { * @return This builder for chaining. */ public Builder addValues(double value) { + ensureValuesIsMutable(); values_.addDouble(value); onChanged(); @@ -7088,6 +7179,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList values_; /** * @@ -7393,8 +7486,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; values_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -7434,14 +7527,30 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec .ConditionalParameterSpec.IntValueCondition(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + .IntValueCondition + result) { if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + .IntValueCondition + result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -7646,6 +7755,7 @@ public long getValues(int index) { * @return This builder for chaining. */ public Builder setValues(int index, long value) { + ensureValuesIsMutable(); values_.setLong(index, value); onChanged(); @@ -7665,6 +7775,7 @@ public Builder setValues(int index, long value) { * @return This builder for chaining. */ public Builder addValues(long value) { + ensureValuesIsMutable(); values_.addLong(value); onChanged(); @@ -7899,6 +8010,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList values_; /** * @@ -8211,6 +8324,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; @@ -8252,14 +8366,30 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec .ConditionalParameterSpec.CategoricalValueCondition(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + .CategoricalValueCondition + result) { if (((bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + .CategoricalValueCondition + result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -8953,7 +9083,9 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec getParameterS @java.lang.Override public com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpecOrBuilder getParameterSpecOrBuilder() { - return getParameterSpec(); + return parameterSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.getDefaultInstance() + : parameterSpec_; } private byte memoizedIsInitialized = -1; @@ -9267,6 +9399,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (parentDiscreteValuesBuilder_ != null) { parentDiscreteValuesBuilder_.clear(); } @@ -9276,10 +9409,9 @@ public Builder clear() { if (parentCategoricalValuesBuilder_ != null) { parentCategoricalValuesBuilder_.clear(); } - if (parameterSpecBuilder_ == null) { - parameterSpec_ = null; - } else { - parameterSpec_ = null; + parameterSpec_ = null; + if (parameterSpecBuilder_ != null) { + parameterSpecBuilder_.dispose(); parameterSpecBuilder_ = null; } parentValueConditionCase_ = 0; @@ -9318,35 +9450,38 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec .ConditionalParameterSpec(this); - if (parentValueConditionCase_ == 2) { - if (parentDiscreteValuesBuilder_ == null) { - result.parentValueCondition_ = parentValueCondition_; - } else { - result.parentValueCondition_ = parentDiscreteValuesBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (parentValueConditionCase_ == 3) { - if (parentIntValuesBuilder_ == null) { - result.parentValueCondition_ = parentValueCondition_; - } else { - result.parentValueCondition_ = parentIntValuesBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parameterSpec_ = + parameterSpecBuilder_ == null ? parameterSpec_ : parameterSpecBuilder_.build(); } - if (parentValueConditionCase_ == 4) { - if (parentCategoricalValuesBuilder_ == null) { - result.parentValueCondition_ = parentValueCondition_; - } else { - result.parentValueCondition_ = parentCategoricalValuesBuilder_.build(); - } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + result) { + result.parentValueConditionCase_ = parentValueConditionCase_; + result.parentValueCondition_ = this.parentValueCondition_; + if (parentValueConditionCase_ == 2 && parentDiscreteValuesBuilder_ != null) { + result.parentValueCondition_ = parentDiscreteValuesBuilder_.build(); } - if (parameterSpecBuilder_ == null) { - result.parameterSpec_ = parameterSpec_; - } else { - result.parameterSpec_ = parameterSpecBuilder_.build(); + if (parentValueConditionCase_ == 3 && parentIntValuesBuilder_ != null) { + result.parentValueCondition_ = parentIntValuesBuilder_.build(); + } + if (parentValueConditionCase_ == 4 && parentCategoricalValuesBuilder_ != null) { + result.parentValueCondition_ = parentCategoricalValuesBuilder_.build(); } - result.parentValueConditionCase_ = parentValueConditionCase_; - onBuilt(); - return result; } @java.lang.Override @@ -9460,7 +9595,7 @@ public Builder mergeFrom( { input.readMessage( getParameterSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 10 case 18: @@ -9515,6 +9650,8 @@ public Builder clearParentValueCondition() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec .DiscreteValueCondition, @@ -9787,7 +9924,6 @@ public Builder clearParentDiscreteValues() { } parentValueConditionCase_ = 2; onChanged(); - ; return parentDiscreteValuesBuilder_; } @@ -10063,7 +10199,6 @@ public Builder clearParentIntValues() { } parentValueConditionCase_ = 3; onChanged(); - ; return parentIntValuesBuilder_; } @@ -10339,7 +10474,6 @@ public Builder clearParentCategoricalValues() { } parentValueConditionCase_ = 4; onChanged(); - ; return parentCategoricalValuesBuilder_; } @@ -10363,7 +10497,7 @@ public Builder clearParentCategoricalValues() { * @return Whether the parameterSpec field is set. */ public boolean hasParameterSpec() { - return parameterSpecBuilder_ != null || parameterSpec_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -10405,11 +10539,11 @@ public Builder setParameterSpec( throw new NullPointerException(); } parameterSpec_ = value; - onChanged(); } else { parameterSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -10427,11 +10561,11 @@ public Builder setParameterSpec( com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.Builder builderForValue) { if (parameterSpecBuilder_ == null) { parameterSpec_ = builderForValue.build(); - onChanged(); } else { parameterSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -10448,20 +10582,20 @@ public Builder setParameterSpec( public Builder mergeParameterSpec( com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec value) { if (parameterSpecBuilder_ == null) { - if (parameterSpec_ != null) { - parameterSpec_ = - com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.newBuilder( - parameterSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && parameterSpec_ != null + && parameterSpec_ + != com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec + .getDefaultInstance()) { + getParameterSpecBuilder().mergeFrom(value); } else { parameterSpec_ = value; } - onChanged(); } else { parameterSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -10476,14 +10610,13 @@ public Builder mergeParameterSpec( * */ public Builder clearParameterSpec() { - if (parameterSpecBuilder_ == null) { - parameterSpec_ = null; - onChanged(); - } else { - parameterSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + parameterSpec_ = null; + if (parameterSpecBuilder_ != null) { + parameterSpecBuilder_.dispose(); parameterSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -10499,7 +10632,7 @@ public Builder clearParameterSpec() { */ public com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.Builder getParameterSpecBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getParameterSpecFieldBuilder().getBuilder(); } @@ -10929,7 +11062,9 @@ public boolean hasDiscreteValueSpec() { } public static final int PARAMETER_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object parameterId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parameterId_ = ""; /** * * @@ -10980,7 +11115,7 @@ public com.google.protobuf.ByteString getParameterIdBytes() { } public static final int SCALE_TYPE_FIELD_NUMBER = 6; - private int scaleType_; + private int scaleType_ = 0; /** * * @@ -11013,15 +11148,17 @@ public int getScaleTypeValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType getScaleType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType result = - com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType.valueOf(scaleType_); + com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType.forNumber( + scaleType_); return result == null ? com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType.UNRECOGNIZED : result; } public static final int CONDITIONAL_PARAMETER_SPECS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec> conditionalParameterSpecs_; @@ -11443,6 +11580,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (doubleValueSpecBuilder_ != null) { doubleValueSpecBuilder_.clear(); } @@ -11456,16 +11594,14 @@ public Builder clear() { discreteValueSpecBuilder_.clear(); } parameterId_ = ""; - scaleType_ = 0; - if (conditionalParameterSpecsBuilder_ == null) { conditionalParameterSpecs_ = java.util.Collections.emptyList(); } else { conditionalParameterSpecs_ = null; conditionalParameterSpecsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000040); parameterValueSpecCase_ = 0; parameterValueSpec_ = null; return this; @@ -11496,50 +11632,56 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec build() { public com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec buildPartial() { com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec result = new com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec(this); - int from_bitField0_ = bitField0_; - if (parameterValueSpecCase_ == 2) { - if (doubleValueSpecBuilder_ == null) { - result.parameterValueSpec_ = parameterValueSpec_; - } else { - result.parameterValueSpec_ = doubleValueSpecBuilder_.build(); - } - } - if (parameterValueSpecCase_ == 3) { - if (integerValueSpecBuilder_ == null) { - result.parameterValueSpec_ = parameterValueSpec_; - } else { - result.parameterValueSpec_ = integerValueSpecBuilder_.build(); - } - } - if (parameterValueSpecCase_ == 4) { - if (categoricalValueSpecBuilder_ == null) { - result.parameterValueSpec_ = parameterValueSpec_; - } else { - result.parameterValueSpec_ = categoricalValueSpecBuilder_.build(); - } + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - if (parameterValueSpecCase_ == 5) { - if (discreteValueSpecBuilder_ == null) { - result.parameterValueSpec_ = parameterValueSpec_; - } else { - result.parameterValueSpec_ = discreteValueSpecBuilder_.build(); - } - } - result.parameterId_ = parameterId_; - result.scaleType_ = scaleType_; + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec result) { if (conditionalParameterSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { conditionalParameterSpecs_ = java.util.Collections.unmodifiableList(conditionalParameterSpecs_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000040); } result.conditionalParameterSpecs_ = conditionalParameterSpecs_; } else { result.conditionalParameterSpecs_ = conditionalParameterSpecsBuilder_.build(); } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.parameterId_ = parameterId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.scaleType_ = scaleType_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec result) { result.parameterValueSpecCase_ = parameterValueSpecCase_; - onBuilt(); - return result; + result.parameterValueSpec_ = this.parameterValueSpec_; + if (parameterValueSpecCase_ == 2 && doubleValueSpecBuilder_ != null) { + result.parameterValueSpec_ = doubleValueSpecBuilder_.build(); + } + if (parameterValueSpecCase_ == 3 && integerValueSpecBuilder_ != null) { + result.parameterValueSpec_ = integerValueSpecBuilder_.build(); + } + if (parameterValueSpecCase_ == 4 && categoricalValueSpecBuilder_ != null) { + result.parameterValueSpec_ = categoricalValueSpecBuilder_.build(); + } + if (parameterValueSpecCase_ == 5 && discreteValueSpecBuilder_ != null) { + result.parameterValueSpec_ = discreteValueSpecBuilder_.build(); + } } @java.lang.Override @@ -11593,6 +11735,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.StudySpec.Parameter return this; if (!other.getParameterId().isEmpty()) { parameterId_ = other.parameterId_; + bitField0_ |= 0x00000010; onChanged(); } if (other.scaleType_ != 0) { @@ -11602,7 +11745,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.StudySpec.Parameter if (!other.conditionalParameterSpecs_.isEmpty()) { if (conditionalParameterSpecs_.isEmpty()) { conditionalParameterSpecs_ = other.conditionalParameterSpecs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000040); } else { ensureConditionalParameterSpecsIsMutable(); conditionalParameterSpecs_.addAll(other.conditionalParameterSpecs_); @@ -11615,7 +11758,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.StudySpec.Parameter conditionalParameterSpecsBuilder_.dispose(); conditionalParameterSpecsBuilder_ = null; conditionalParameterSpecs_ = other.conditionalParameterSpecs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000040); conditionalParameterSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConditionalParameterSpecsFieldBuilder() @@ -11680,7 +11823,7 @@ public Builder mergeFrom( case 10: { parameterId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 10 case 18: @@ -11714,7 +11857,7 @@ public Builder mergeFrom( case 48: { scaleType_ = input.readEnum(); - + bitField0_ |= 0x00000020; break; } // case 48 case 82: @@ -12012,7 +12155,6 @@ public Builder clearDoubleValueSpec() { } parameterValueSpecCase_ = 2; onChanged(); - ; return doubleValueSpecBuilder_; } @@ -12261,7 +12403,6 @@ public Builder clearIntegerValueSpec() { } parameterValueSpecCase_ = 3; onChanged(); - ; return integerValueSpecBuilder_; } @@ -12518,7 +12659,6 @@ public Builder clearCategoricalValueSpec() { } parameterValueSpecCase_ = 4; onChanged(); - ; return categoricalValueSpecBuilder_; } @@ -12769,7 +12909,6 @@ public Builder clearDiscreteValueSpec() { } parameterValueSpecCase_ = 5; onChanged(); - ; return discreteValueSpecBuilder_; } @@ -12837,8 +12976,8 @@ public Builder setParameterId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parameterId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -12855,8 +12994,8 @@ public Builder setParameterId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParameterId() { - parameterId_ = getDefaultInstance().getParameterId(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -12878,8 +13017,8 @@ public Builder setParameterIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parameterId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -12917,8 +13056,8 @@ public int getScaleTypeValue() { * @return This builder for chaining. */ public Builder setScaleTypeValue(int value) { - scaleType_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -12937,9 +13076,8 @@ public Builder setScaleTypeValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType getScaleType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType result = - com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType.valueOf( + com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType.forNumber( scaleType_); return result == null ? com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType.UNRECOGNIZED @@ -12964,7 +13102,7 @@ public Builder setScaleType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000020; scaleType_ = value.getNumber(); onChanged(); return this; @@ -12983,7 +13121,7 @@ public Builder setScaleType( * @return This builder for chaining. */ public Builder clearScaleType() { - + bitField0_ = (bitField0_ & ~0x00000020); scaleType_ = 0; onChanged(); return this; @@ -12994,12 +13132,12 @@ public Builder clearScaleType() { conditionalParameterSpecs_ = java.util.Collections.emptyList(); private void ensureConditionalParameterSpecsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000040) != 0)) { conditionalParameterSpecs_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec .ConditionalParameterSpec>(conditionalParameterSpecs_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000040; } } @@ -13296,7 +13434,7 @@ public Builder addAllConditionalParameterSpecs( public Builder clearConditionalParameterSpecs() { if (conditionalParameterSpecsBuilder_ == null) { conditionalParameterSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { conditionalParameterSpecsBuilder_.clear(); @@ -13477,7 +13615,7 @@ public Builder removeConditionalParameterSpecs(int index) { com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec .ConditionalParameterSpecOrBuilder>( conditionalParameterSpecs_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); conditionalParameterSpecs_ = null; @@ -13627,7 +13765,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int USE_ELAPSED_DURATION_FIELD_NUMBER = 1; - private boolean useElapsedDuration_; + private boolean useElapsedDuration_ = false; /** * * @@ -13863,8 +14001,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; useElapsedDuration_ = false; - return this; } @@ -13896,11 +14034,21 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStopping buildPartial() { com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec result = new com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec(this); - result.useElapsedDuration_ = useElapsedDuration_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.useElapsedDuration_ = useElapsedDuration_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -13987,7 +14135,7 @@ public Builder mergeFrom( case 8: { useElapsedDuration_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -14007,6 +14155,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean useElapsedDuration_; /** * @@ -14046,6 +14196,7 @@ public boolean getUseElapsedDuration() { public Builder setUseElapsedDuration(boolean value) { useElapsedDuration_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -14065,7 +14216,7 @@ public Builder setUseElapsedDuration(boolean value) { * @return This builder for chaining. */ public Builder clearUseElapsedDuration() { - + bitField0_ = (bitField0_ & ~0x00000001); useElapsedDuration_ = false; onChanged(); return this; @@ -14216,7 +14367,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int USE_ELAPSED_DURATION_FIELD_NUMBER = 1; - private boolean useElapsedDuration_; + private boolean useElapsedDuration_ = false; /** * * @@ -14450,8 +14601,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; useElapsedDuration_ = false; - return this; } @@ -14483,11 +14634,21 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec buildPartial() { com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec result = new com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec(this); - result.useElapsedDuration_ = useElapsedDuration_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.useElapsedDuration_ = useElapsedDuration_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -14572,7 +14733,7 @@ public Builder mergeFrom( case 8: { useElapsedDuration_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -14592,6 +14753,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean useElapsedDuration_; /** * @@ -14631,6 +14794,7 @@ public boolean getUseElapsedDuration() { public Builder setUseElapsedDuration(boolean value) { useElapsedDuration_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -14650,7 +14814,7 @@ public Builder setUseElapsedDuration(boolean value) { * @return This builder for chaining. */ public Builder clearUseElapsedDuration() { - + bitField0_ = (bitField0_ & ~0x00000001); useElapsedDuration_ = false; onChanged(); return this; @@ -14929,7 +15093,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int bitField0_; public static final int MAX_STEP_COUNT_FIELD_NUMBER = 1; - private long maxStepCount_; + private long maxStepCount_ = 0L; /** * * @@ -14950,7 +15114,7 @@ public long getMaxStepCount() { } public static final int MIN_STEP_COUNT_FIELD_NUMBER = 2; - private long minStepCount_; + private long minStepCount_ = 0L; /** * * @@ -14974,7 +15138,7 @@ public long getMinStepCount() { } public static final int MIN_MEASUREMENT_COUNT_FIELD_NUMBER = 3; - private long minMeasurementCount_; + private long minMeasurementCount_ = 0L; /** * * @@ -14995,7 +15159,9 @@ public long getMinMeasurementCount() { } public static final int LEARNING_RATE_PARAMETER_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object learningRateParameterName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object learningRateParameterName_ = ""; /** * * @@ -15050,7 +15216,7 @@ public com.google.protobuf.ByteString getLearningRateParameterNameBytes() { } public static final int USE_ELAPSED_DURATION_FIELD_NUMBER = 5; - private boolean useElapsedDuration_; + private boolean useElapsedDuration_ = false; /** * * @@ -15074,7 +15240,7 @@ public boolean getUseElapsedDuration() { } public static final int UPDATE_ALL_STOPPED_TRIALS_FIELD_NUMBER = 6; - private boolean updateAllStoppedTrials_; + private boolean updateAllStoppedTrials_ = false; /** * * @@ -15388,18 +15554,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; maxStepCount_ = 0L; - minStepCount_ = 0L; - minMeasurementCount_ = 0L; - learningRateParameterName_ = ""; - useElapsedDuration_ = false; - updateAllStoppedTrials_ = false; - bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -15431,20 +15592,37 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec buildPartial() { com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec result = new com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec result) { int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.maxStepCount_ = maxStepCount_; - result.minStepCount_ = minStepCount_; - result.minMeasurementCount_ = minMeasurementCount_; - result.learningRateParameterName_ = learningRateParameterName_; - result.useElapsedDuration_ = useElapsedDuration_; if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxStepCount_ = maxStepCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.minStepCount_ = minStepCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.minMeasurementCount_ = minMeasurementCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.learningRateParameterName_ = learningRateParameterName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.useElapsedDuration_ = useElapsedDuration_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { result.updateAllStoppedTrials_ = updateAllStoppedTrials_; to_bitField0_ |= 0x00000001; } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -15510,6 +15688,7 @@ public Builder mergeFrom( } if (!other.getLearningRateParameterName().isEmpty()) { learningRateParameterName_ = other.learningRateParameterName_; + bitField0_ |= 0x00000008; onChanged(); } if (other.getUseElapsedDuration() != false) { @@ -15547,37 +15726,37 @@ public Builder mergeFrom( case 8: { maxStepCount_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { minStepCount_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { minMeasurementCount_ = input.readInt64(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { learningRateParameterName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 40: { useElapsedDuration_ = input.readBool(); - + bitField0_ |= 0x00000010; break; } // case 40 case 48: { updateAllStoppedTrials_ = input.readBool(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000020; break; } // case 48 default: @@ -15636,6 +15815,7 @@ public long getMaxStepCount() { public Builder setMaxStepCount(long value) { maxStepCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -15654,7 +15834,7 @@ public Builder setMaxStepCount(long value) { * @return This builder for chaining. */ public Builder clearMaxStepCount() { - + bitField0_ = (bitField0_ & ~0x00000001); maxStepCount_ = 0L; onChanged(); return this; @@ -15703,6 +15883,7 @@ public long getMinStepCount() { public Builder setMinStepCount(long value) { minStepCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -15724,7 +15905,7 @@ public Builder setMinStepCount(long value) { * @return This builder for chaining. */ public Builder clearMinStepCount() { - + bitField0_ = (bitField0_ & ~0x00000002); minStepCount_ = 0L; onChanged(); return this; @@ -15767,6 +15948,7 @@ public long getMinMeasurementCount() { public Builder setMinMeasurementCount(long value) { minMeasurementCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -15785,7 +15967,7 @@ public Builder setMinMeasurementCount(long value) { * @return This builder for chaining. */ public Builder clearMinMeasurementCount() { - + bitField0_ = (bitField0_ & ~0x00000004); minMeasurementCount_ = 0L; onChanged(); return this; @@ -15861,8 +16043,8 @@ public Builder setLearningRateParameterName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - learningRateParameterName_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -15881,8 +16063,8 @@ public Builder setLearningRateParameterName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLearningRateParameterName() { - learningRateParameterName_ = getDefaultInstance().getLearningRateParameterName(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -15906,8 +16088,8 @@ public Builder setLearningRateParameterNameBytes(com.google.protobuf.ByteString throw new NullPointerException(); } checkByteStringIsUtf8(value); - learningRateParameterName_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -15955,6 +16137,7 @@ public boolean getUseElapsedDuration() { public Builder setUseElapsedDuration(boolean value) { useElapsedDuration_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -15976,7 +16159,7 @@ public Builder setUseElapsedDuration(boolean value) { * @return This builder for chaining. */ public Builder clearUseElapsedDuration() { - + bitField0_ = (bitField0_ & ~0x00000010); useElapsedDuration_ = false; onChanged(); return this; @@ -16002,7 +16185,7 @@ public Builder clearUseElapsedDuration() { */ @java.lang.Override public boolean hasUpdateAllStoppedTrials() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -16044,8 +16227,9 @@ public boolean getUpdateAllStoppedTrials() { * @return This builder for chaining. */ public Builder setUpdateAllStoppedTrials(boolean value) { - bitField0_ |= 0x00000001; + updateAllStoppedTrials_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -16067,7 +16251,7 @@ public Builder setUpdateAllStoppedTrials(boolean value) { * @return This builder for chaining. */ public Builder clearUpdateAllStoppedTrials() { - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); updateAllStoppedTrials_ = false; onChanged(); return this; @@ -16297,7 +16481,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MAX_NUM_STEPS_FIELD_NUMBER = 1; - private long maxNumSteps_; + private long maxNumSteps_ = 0L; /** * * @@ -16318,7 +16502,7 @@ public long getMaxNumSteps() { } public static final int MIN_NUM_STEPS_FIELD_NUMBER = 2; - private long minNumSteps_; + private long minNumSteps_ = 0L; /** * * @@ -16342,7 +16526,7 @@ public long getMinNumSteps() { } public static final int AUTOREGRESSIVE_ORDER_FIELD_NUMBER = 3; - private long autoregressiveOrder_; + private long autoregressiveOrder_ = 0L; /** * * @@ -16362,7 +16546,9 @@ public long getAutoregressiveOrder() { } public static final int LEARNING_RATE_PARAMETER_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object learningRateParameterName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object learningRateParameterName_ = ""; /** * * @@ -16417,7 +16603,7 @@ public com.google.protobuf.ByteString getLearningRateParameterNameBytes() { } public static final int USE_SECONDS_FIELD_NUMBER = 5; - private boolean useSeconds_; + private boolean useSeconds_ = false; /** * * @@ -16677,16 +16863,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; maxNumSteps_ = 0L; - minNumSteps_ = 0L; - autoregressiveOrder_ = 0L; - learningRateParameterName_ = ""; - useSeconds_ = false; - return this; } @@ -16715,15 +16897,33 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig build() { public com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig result = new com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig(this); - result.maxNumSteps_ = maxNumSteps_; - result.minNumSteps_ = minNumSteps_; - result.autoregressiveOrder_ = autoregressiveOrder_; - result.learningRateParameterName_ = learningRateParameterName_; - result.useSeconds_ = useSeconds_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxNumSteps_ = maxNumSteps_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.minNumSteps_ = minNumSteps_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.autoregressiveOrder_ = autoregressiveOrder_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.learningRateParameterName_ = learningRateParameterName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.useSeconds_ = useSeconds_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -16785,6 +16985,7 @@ public Builder mergeFrom( } if (!other.getLearningRateParameterName().isEmpty()) { learningRateParameterName_ = other.learningRateParameterName_; + bitField0_ |= 0x00000008; onChanged(); } if (other.getUseSeconds() != false) { @@ -16819,31 +17020,31 @@ public Builder mergeFrom( case 8: { maxNumSteps_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { minNumSteps_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { autoregressiveOrder_ = input.readInt64(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { learningRateParameterName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 40: { useSeconds_ = input.readBool(); - + bitField0_ |= 0x00000010; break; } // case 40 default: @@ -16863,6 +17064,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long maxNumSteps_; /** * @@ -16900,6 +17103,7 @@ public long getMaxNumSteps() { public Builder setMaxNumSteps(long value) { maxNumSteps_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -16918,7 +17122,7 @@ public Builder setMaxNumSteps(long value) { * @return This builder for chaining. */ public Builder clearMaxNumSteps() { - + bitField0_ = (bitField0_ & ~0x00000001); maxNumSteps_ = 0L; onChanged(); return this; @@ -16967,6 +17171,7 @@ public long getMinNumSteps() { public Builder setMinNumSteps(long value) { minNumSteps_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -16988,7 +17193,7 @@ public Builder setMinNumSteps(long value) { * @return This builder for chaining. */ public Builder clearMinNumSteps() { - + bitField0_ = (bitField0_ & ~0x00000002); minNumSteps_ = 0L; onChanged(); return this; @@ -17029,6 +17234,7 @@ public long getAutoregressiveOrder() { public Builder setAutoregressiveOrder(long value) { autoregressiveOrder_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -17046,7 +17252,7 @@ public Builder setAutoregressiveOrder(long value) { * @return This builder for chaining. */ public Builder clearAutoregressiveOrder() { - + bitField0_ = (bitField0_ & ~0x00000004); autoregressiveOrder_ = 0L; onChanged(); return this; @@ -17122,8 +17328,8 @@ public Builder setLearningRateParameterName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - learningRateParameterName_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -17142,8 +17348,8 @@ public Builder setLearningRateParameterName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLearningRateParameterName() { - learningRateParameterName_ = getDefaultInstance().getLearningRateParameterName(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -17167,8 +17373,8 @@ public Builder setLearningRateParameterNameBytes(com.google.protobuf.ByteString throw new NullPointerException(); } checkByteStringIsUtf8(value); - learningRateParameterName_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -17214,6 +17420,7 @@ public boolean getUseSeconds() { public Builder setUseSeconds(boolean value) { useSeconds_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -17234,7 +17441,7 @@ public Builder setUseSeconds(boolean value) { * @return This builder for chaining. */ public Builder clearUseSeconds() { - + bitField0_ = (bitField0_ & ~0x00000010); useSeconds_ = false; onChanged(); return this; @@ -17434,7 +17641,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DISABLE_TRANSFER_LEARNING_FIELD_NUMBER = 1; - private boolean disableTransferLearning_; + private boolean disableTransferLearning_ = false; /** * * @@ -17454,6 +17661,8 @@ public boolean getDisableTransferLearning() { } public static final int PRIOR_STUDY_NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList priorStudyNames_; /** * @@ -17738,10 +17947,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; disableTransferLearning_ = false; - priorStudyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -17772,17 +17981,31 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig buil public com.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig result = new com.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig(this); - int from_bitField0_ = bitField0_; - result.disableTransferLearning_ = disableTransferLearning_; - if (((bitField0_ & 0x00000001) != 0)) { - priorStudyNames_ = priorStudyNames_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.priorStudyNames_ = priorStudyNames_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig result) { + if (((bitField0_ & 0x00000002) != 0)) { + priorStudyNames_ = priorStudyNames_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.priorStudyNames_ = priorStudyNames_; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disableTransferLearning_ = disableTransferLearning_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -17840,7 +18063,7 @@ public Builder mergeFrom( if (!other.priorStudyNames_.isEmpty()) { if (priorStudyNames_.isEmpty()) { priorStudyNames_ = other.priorStudyNames_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePriorStudyNamesIsMutable(); priorStudyNames_.addAll(other.priorStudyNames_); @@ -17876,7 +18099,7 @@ public Builder mergeFrom( case 8: { disableTransferLearning_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: @@ -17940,6 +18163,7 @@ public boolean getDisableTransferLearning() { public Builder setDisableTransferLearning(boolean value) { disableTransferLearning_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -17957,7 +18181,7 @@ public Builder setDisableTransferLearning(boolean value) { * @return This builder for chaining. */ public Builder clearDisableTransferLearning() { - + bitField0_ = (bitField0_ & ~0x00000001); disableTransferLearning_ = false; onChanged(); return this; @@ -17967,9 +18191,9 @@ public Builder clearDisableTransferLearning() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePriorStudyNamesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { priorStudyNames_ = new com.google.protobuf.LazyStringArrayList(priorStudyNames_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -18112,7 +18336,7 @@ public Builder addAllPriorStudyNames(java.lang.Iterable values */ public Builder clearPriorStudyNames() { priorStudyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -18521,6 +18745,8 @@ public boolean hasConvexAutomatedStoppingSpec() { } public static final int METRICS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List metrics_; /** * @@ -18601,6 +18827,8 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpecOrBuilder getMetr } public static final int PARAMETERS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List parameters_; /** * @@ -18683,7 +18911,7 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec getParameters } public static final int ALGORITHM_FIELD_NUMBER = 3; - private int algorithm_; + private int algorithm_ = 0; /** * * @@ -18712,16 +18940,15 @@ public int getAlgorithmValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.StudySpec.Algorithm getAlgorithm() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.StudySpec.Algorithm result = - com.google.cloud.aiplatform.v1beta1.StudySpec.Algorithm.valueOf(algorithm_); + com.google.cloud.aiplatform.v1beta1.StudySpec.Algorithm.forNumber(algorithm_); return result == null ? com.google.cloud.aiplatform.v1beta1.StudySpec.Algorithm.UNRECOGNIZED : result; } public static final int OBSERVATION_NOISE_FIELD_NUMBER = 6; - private int observationNoise_; + private int observationNoise_ = 0; /** * * @@ -18754,16 +18981,15 @@ public int getObservationNoiseValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise getObservationNoise() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise result = - com.google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise.valueOf(observationNoise_); + com.google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise.forNumber(observationNoise_); return result == null ? com.google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise.UNRECOGNIZED : result; } public static final int MEASUREMENT_SELECTION_TYPE_FIELD_NUMBER = 7; - private int measurementSelectionType_; + private int measurementSelectionType_ = 0; /** * * @@ -18797,9 +19023,8 @@ public int getMeasurementSelectionTypeValue() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType getMeasurementSelectionType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType result = - com.google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType.valueOf( + com.google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType.forNumber( measurementSelectionType_); return result == null ? com.google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType.UNRECOGNIZED @@ -18863,7 +19088,9 @@ public boolean hasTransferLearningConfig() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfigOrBuilder getTransferLearningConfigOrBuilder() { - return getTransferLearningConfig(); + return transferLearningConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.getDefaultInstance() + : transferLearningConfig_; } private byte memoizedIsInitialized = -1; @@ -19224,6 +19451,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (decayCurveStoppingSpecBuilder_ != null) { decayCurveStoppingSpecBuilder_.clear(); } @@ -19242,24 +19470,20 @@ public Builder clear() { metrics_ = null; metricsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); } else { parameters_ = null; parametersBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); algorithm_ = 0; - observationNoise_ = 0; - measurementSelectionType_ = 0; - - if (transferLearningConfigBuilder_ == null) { - transferLearningConfig_ = null; - } else { - transferLearningConfig_ = null; + transferLearningConfig_ = null; + if (transferLearningConfigBuilder_ != null) { + transferLearningConfigBuilder_.dispose(); transferLearningConfigBuilder_ = null; } automatedStoppingSpecCase_ = 0; @@ -19291,64 +19515,70 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec build() { public com.google.cloud.aiplatform.v1beta1.StudySpec buildPartial() { com.google.cloud.aiplatform.v1beta1.StudySpec result = new com.google.cloud.aiplatform.v1beta1.StudySpec(this); - int from_bitField0_ = bitField0_; - if (automatedStoppingSpecCase_ == 4) { - if (decayCurveStoppingSpecBuilder_ == null) { - result.automatedStoppingSpec_ = automatedStoppingSpec_; - } else { - result.automatedStoppingSpec_ = decayCurveStoppingSpecBuilder_.build(); - } - } - if (automatedStoppingSpecCase_ == 5) { - if (medianAutomatedStoppingSpecBuilder_ == null) { - result.automatedStoppingSpec_ = automatedStoppingSpec_; - } else { - result.automatedStoppingSpec_ = medianAutomatedStoppingSpecBuilder_.build(); - } - } - if (automatedStoppingSpecCase_ == 8) { - if (convexStopConfigBuilder_ == null) { - result.automatedStoppingSpec_ = automatedStoppingSpec_; - } else { - result.automatedStoppingSpec_ = convexStopConfigBuilder_.build(); - } - } - if (automatedStoppingSpecCase_ == 9) { - if (convexAutomatedStoppingSpecBuilder_ == null) { - result.automatedStoppingSpec_ = automatedStoppingSpec_; - } else { - result.automatedStoppingSpec_ = convexAutomatedStoppingSpecBuilder_.build(); - } + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.StudySpec result) { if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } result.metrics_ = metrics_; } else { result.metrics_ = metricsBuilder_.build(); } if (parametersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { parameters_ = java.util.Collections.unmodifiableList(parameters_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } result.parameters_ = parameters_; } else { result.parameters_ = parametersBuilder_.build(); } - result.algorithm_ = algorithm_; - result.observationNoise_ = observationNoise_; - result.measurementSelectionType_ = measurementSelectionType_; - if (transferLearningConfigBuilder_ == null) { - result.transferLearningConfig_ = transferLearningConfig_; - } else { - result.transferLearningConfig_ = transferLearningConfigBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.StudySpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.algorithm_ = algorithm_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.observationNoise_ = observationNoise_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.measurementSelectionType_ = measurementSelectionType_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.transferLearningConfig_ = + transferLearningConfigBuilder_ == null + ? transferLearningConfig_ + : transferLearningConfigBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.StudySpec result) { result.automatedStoppingSpecCase_ = automatedStoppingSpecCase_; - onBuilt(); - return result; + result.automatedStoppingSpec_ = this.automatedStoppingSpec_; + if (automatedStoppingSpecCase_ == 4 && decayCurveStoppingSpecBuilder_ != null) { + result.automatedStoppingSpec_ = decayCurveStoppingSpecBuilder_.build(); + } + if (automatedStoppingSpecCase_ == 5 && medianAutomatedStoppingSpecBuilder_ != null) { + result.automatedStoppingSpec_ = medianAutomatedStoppingSpecBuilder_.build(); + } + if (automatedStoppingSpecCase_ == 8 && convexStopConfigBuilder_ != null) { + result.automatedStoppingSpec_ = convexStopConfigBuilder_.build(); + } + if (automatedStoppingSpecCase_ == 9 && convexAutomatedStoppingSpecBuilder_ != null) { + result.automatedStoppingSpec_ = convexAutomatedStoppingSpecBuilder_.build(); + } } @java.lang.Override @@ -19400,7 +19630,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.StudySpec other) { if (!other.metrics_.isEmpty()) { if (metrics_.isEmpty()) { metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureMetricsIsMutable(); metrics_.addAll(other.metrics_); @@ -19413,7 +19643,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.StudySpec other) { metricsBuilder_.dispose(); metricsBuilder_ = null; metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); metricsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMetricsFieldBuilder() @@ -19427,7 +19657,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.StudySpec other) { if (!other.parameters_.isEmpty()) { if (parameters_.isEmpty()) { parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureParametersIsMutable(); parameters_.addAll(other.parameters_); @@ -19440,7 +19670,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.StudySpec other) { parametersBuilder_.dispose(); parametersBuilder_ = null; parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); parametersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParametersFieldBuilder() @@ -19545,7 +19775,7 @@ public Builder mergeFrom( case 24: { algorithm_ = input.readEnum(); - + bitField0_ |= 0x00000040; break; } // case 24 case 34: @@ -19565,13 +19795,13 @@ public Builder mergeFrom( case 48: { observationNoise_ = input.readEnum(); - + bitField0_ |= 0x00000080; break; } // case 48 case 56: { measurementSelectionType_ = input.readEnum(); - + bitField0_ |= 0x00000100; break; } // case 56 case 66: @@ -19592,7 +19822,7 @@ public Builder mergeFrom( { input.readMessage( getTransferLearningConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 82 default: @@ -19873,7 +20103,6 @@ public Builder clearDecayCurveStoppingSpec() { } automatedStoppingSpecCase_ = 4; onChanged(); - ; return decayCurveStoppingSpecBuilder_; } @@ -20118,7 +20347,6 @@ public Builder clearMedianAutomatedStoppingSpec() { } automatedStoppingSpecCase_ = 5; onChanged(); - ; return medianAutomatedStoppingSpecBuilder_; } @@ -20378,7 +20606,6 @@ public Builder clearConvexStopConfig() { } automatedStoppingSpecCase_ = 8; onChanged(); - ; return convexStopConfigBuilder_; } @@ -20623,7 +20850,6 @@ public Builder clearConvexAutomatedStoppingSpec() { } automatedStoppingSpecCase_ = 9; onChanged(); - ; return convexAutomatedStoppingSpecBuilder_; } @@ -20631,11 +20857,11 @@ public Builder clearConvexAutomatedStoppingSpec() { java.util.Collections.emptyList(); private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { metrics_ = new java.util.ArrayList( metrics_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000010; } } @@ -20879,7 +21105,7 @@ public Builder addAllMetrics( public Builder clearMetrics() { if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { metricsBuilder_.clear(); @@ -21021,7 +21247,7 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.Builder addMetri com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec, com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.Builder, com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpecOrBuilder>( - metrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + metrics_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); metrics_ = null; } return metricsBuilder_; @@ -21031,11 +21257,11 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.Builder addMetri parameters_ = java.util.Collections.emptyList(); private void ensureParametersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { parameters_ = new java.util.ArrayList( parameters_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000020; } } @@ -21280,7 +21506,7 @@ public Builder addAllParameters( public Builder clearParameters() { if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { parametersBuilder_.clear(); @@ -21424,7 +21650,7 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.Builder addPa com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec, com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.Builder, com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpecOrBuilder>( - parameters_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + parameters_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; @@ -21459,8 +21685,8 @@ public int getAlgorithmValue() { * @return This builder for chaining. */ public Builder setAlgorithmValue(int value) { - algorithm_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -21477,9 +21703,8 @@ public Builder setAlgorithmValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.StudySpec.Algorithm getAlgorithm() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.StudySpec.Algorithm result = - com.google.cloud.aiplatform.v1beta1.StudySpec.Algorithm.valueOf(algorithm_); + com.google.cloud.aiplatform.v1beta1.StudySpec.Algorithm.forNumber(algorithm_); return result == null ? com.google.cloud.aiplatform.v1beta1.StudySpec.Algorithm.UNRECOGNIZED : result; @@ -21500,7 +21725,7 @@ public Builder setAlgorithm(com.google.cloud.aiplatform.v1beta1.StudySpec.Algori if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000040; algorithm_ = value.getNumber(); onChanged(); return this; @@ -21517,7 +21742,7 @@ public Builder setAlgorithm(com.google.cloud.aiplatform.v1beta1.StudySpec.Algori * @return This builder for chaining. */ public Builder clearAlgorithm() { - + bitField0_ = (bitField0_ & ~0x00000040); algorithm_ = 0; onChanged(); return this; @@ -21558,8 +21783,8 @@ public int getObservationNoiseValue() { * @return This builder for chaining. */ public Builder setObservationNoiseValue(int value) { - observationNoise_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -21579,9 +21804,9 @@ public Builder setObservationNoiseValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise getObservationNoise() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise result = - com.google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise.valueOf(observationNoise_); + com.google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise.forNumber( + observationNoise_); return result == null ? com.google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise.UNRECOGNIZED : result; @@ -21606,7 +21831,7 @@ public Builder setObservationNoise( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000080; observationNoise_ = value.getNumber(); onChanged(); return this; @@ -21626,7 +21851,7 @@ public Builder setObservationNoise( * @return This builder for chaining. */ public Builder clearObservationNoise() { - + bitField0_ = (bitField0_ & ~0x00000080); observationNoise_ = 0; onChanged(); return this; @@ -21665,8 +21890,8 @@ public int getMeasurementSelectionTypeValue() { * @return This builder for chaining. */ public Builder setMeasurementSelectionTypeValue(int value) { - measurementSelectionType_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -21686,9 +21911,8 @@ public Builder setMeasurementSelectionTypeValue(int value) { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType getMeasurementSelectionType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType result = - com.google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType.valueOf( + com.google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType.forNumber( measurementSelectionType_); return result == null ? com.google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType.UNRECOGNIZED @@ -21713,7 +21937,7 @@ public Builder setMeasurementSelectionType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000100; measurementSelectionType_ = value.getNumber(); onChanged(); return this; @@ -21732,7 +21956,7 @@ public Builder setMeasurementSelectionType( * @return This builder for chaining. */ public Builder clearMeasurementSelectionType() { - + bitField0_ = (bitField0_ & ~0x00000100); measurementSelectionType_ = 0; onChanged(); return this; @@ -21760,7 +21984,7 @@ public Builder clearMeasurementSelectionType() { * @return Whether the transferLearningConfig field is set. */ public boolean hasTransferLearningConfig() { - return transferLearningConfigBuilder_ != null || transferLearningConfig_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -21806,11 +22030,11 @@ public Builder setTransferLearningConfig( throw new NullPointerException(); } transferLearningConfig_ = value; - onChanged(); } else { transferLearningConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -21830,11 +22054,11 @@ public Builder setTransferLearningConfig( builderForValue) { if (transferLearningConfigBuilder_ == null) { transferLearningConfig_ = builderForValue.build(); - onChanged(); } else { transferLearningConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -21852,20 +22076,20 @@ public Builder setTransferLearningConfig( public Builder mergeTransferLearningConfig( com.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig value) { if (transferLearningConfigBuilder_ == null) { - if (transferLearningConfig_ != null) { - transferLearningConfig_ = - com.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.newBuilder( - transferLearningConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && transferLearningConfig_ != null + && transferLearningConfig_ + != com.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + .getDefaultInstance()) { + getTransferLearningConfigBuilder().mergeFrom(value); } else { transferLearningConfig_ = value; } - onChanged(); } else { transferLearningConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -21881,14 +22105,13 @@ public Builder mergeTransferLearningConfig( * */ public Builder clearTransferLearningConfig() { - if (transferLearningConfigBuilder_ == null) { - transferLearningConfig_ = null; - onChanged(); - } else { - transferLearningConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + transferLearningConfig_ = null; + if (transferLearningConfigBuilder_ != null) { + transferLearningConfigBuilder_.dispose(); transferLearningConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -21905,7 +22128,7 @@ public Builder clearTransferLearningConfig() { */ public com.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.Builder getTransferLearningConfigBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getTransferLearningConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsMetadata.java index 2970d20addfb..d48ffc2bba94 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsMetadata.java @@ -113,11 +113,15 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } public static final int CLIENT_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object clientId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; /** * * @@ -383,14 +387,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } clientId_ = ""; - return this; } @@ -418,16 +421,24 @@ public com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata build() { public com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata result = new com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.clientId_ = clientId_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clientId_ = clientId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -479,6 +490,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SuggestTrialsMetada } if (!other.getClientId().isEmpty()) { clientId_ = other.clientId_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -510,13 +522,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { clientId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -536,6 +548,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -554,7 +568,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -592,11 +606,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -612,11 +626,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -631,20 +645,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -657,14 +671,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -678,7 +691,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } @@ -797,8 +810,8 @@ public Builder setClientId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - clientId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -817,8 +830,8 @@ public Builder setClientId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearClientId() { - clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -842,8 +855,8 @@ public Builder setClientIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - clientId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsRequest.java index 553d80f8777a..329254413e25 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -125,7 +127,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SUGGESTION_COUNT_FIELD_NUMBER = 2; - private int suggestionCount_; + private int suggestionCount_ = 0; /** * * @@ -143,7 +145,9 @@ public int getSuggestionCount() { } public static final int CLIENT_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clientId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; /** * * @@ -414,12 +418,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - suggestionCount_ = 0; - clientId_ = ""; - return this; } @@ -447,13 +449,26 @@ public com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest build() { public com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest result = new com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest(this); - result.parent_ = parent_; - result.suggestionCount_ = suggestionCount_; - result.clientId_ = clientId_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.suggestionCount_ = suggestionCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clientId_ = clientId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -502,6 +517,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SuggestTrialsReques return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getSuggestionCount() != 0) { @@ -509,6 +525,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SuggestTrialsReques } if (!other.getClientId().isEmpty()) { clientId_ = other.clientId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -540,19 +557,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { suggestionCount_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { clientId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -572,6 +589,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -642,8 +661,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -662,8 +681,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -687,8 +706,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -724,6 +743,7 @@ public int getSuggestionCount() { public Builder setSuggestionCount(int value) { suggestionCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -739,7 +759,7 @@ public Builder setSuggestionCount(int value) { * @return This builder for chaining. */ public Builder clearSuggestionCount() { - + bitField0_ = (bitField0_ & ~0x00000002); suggestionCount_ = 0; onChanged(); return this; @@ -815,8 +835,8 @@ public Builder setClientId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - clientId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -835,8 +855,8 @@ public Builder setClientId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearClientId() { - clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -860,8 +880,8 @@ public Builder setClientIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - clientId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsResponse.java index 29ae5aedad69..9f9503cfc649 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuggestTrialsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRIALS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List trials_; /** * @@ -139,7 +141,7 @@ public com.google.cloud.aiplatform.v1beta1.TrialOrBuilder getTrialsOrBuilder(int } public static final int STUDY_STATE_FIELD_NUMBER = 2; - private int studyState_; + private int studyState_ = 0; /** * * @@ -168,9 +170,8 @@ public int getStudyStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Study.State getStudyState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Study.State result = - com.google.cloud.aiplatform.v1beta1.Study.State.valueOf(studyState_); + com.google.cloud.aiplatform.v1beta1.Study.State.forNumber(studyState_); return result == null ? com.google.cloud.aiplatform.v1beta1.Study.State.UNRECOGNIZED : result; } @@ -217,7 +218,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 4; @@ -263,7 +264,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } private byte memoizedIsInitialized = -1; @@ -506,6 +507,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (trialsBuilder_ == null) { trials_ = java.util.Collections.emptyList(); } else { @@ -514,17 +516,14 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); studyState_ = 0; - - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } return this; @@ -554,7 +553,16 @@ public com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse build() { public com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse result = new com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse result) { if (trialsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { trials_ = java.util.Collections.unmodifiableList(trials_); @@ -564,19 +572,19 @@ public com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse buildPartial() } else { result.trials_ = trialsBuilder_.build(); } - result.studyState_ = studyState_; - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.studyState_ = studyState_; } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -703,19 +711,19 @@ public Builder mergeFrom( case 16: { studyState_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -1115,8 +1123,8 @@ public int getStudyStateValue() { * @return This builder for chaining. */ public Builder setStudyStateValue(int value) { - studyState_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1133,9 +1141,8 @@ public Builder setStudyStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Study.State getStudyState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Study.State result = - com.google.cloud.aiplatform.v1beta1.Study.State.valueOf(studyState_); + com.google.cloud.aiplatform.v1beta1.Study.State.forNumber(studyState_); return result == null ? com.google.cloud.aiplatform.v1beta1.Study.State.UNRECOGNIZED : result; } /** @@ -1154,7 +1161,7 @@ public Builder setStudyState(com.google.cloud.aiplatform.v1beta1.Study.State val if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; studyState_ = value.getNumber(); onChanged(); return this; @@ -1171,7 +1178,7 @@ public Builder setStudyState(com.google.cloud.aiplatform.v1beta1.Study.State val * @return This builder for chaining. */ public Builder clearStudyState() { - + bitField0_ = (bitField0_ & ~0x00000002); studyState_ = 0; onChanged(); return this; @@ -1195,7 +1202,7 @@ public Builder clearStudyState() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1230,11 +1237,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1249,11 +1256,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1267,17 +1274,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1290,14 +1298,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp start_time = 3; */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1310,7 +1317,7 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 3; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -1374,7 +1381,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1409,11 +1416,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1428,11 +1435,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1446,17 +1453,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1469,14 +1477,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp end_time = 4; */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1489,7 +1496,7 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 4; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TFRecordDestination.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TFRecordDestination.java index 87ba209c77a0..c2cf0c3b5dcc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TFRecordDestination.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TFRecordDestination.java @@ -116,7 +116,9 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination getGcsDestination() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { - return getGcsDestination(); + return gcsDestination_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance() + : gcsDestination_; } private byte memoizedIsInitialized = -1; @@ -322,10 +324,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (gcsDestinationBuilder_ == null) { - gcsDestination_ = null; - } else { - gcsDestination_ = null; + bitField0_ = 0; + gcsDestination_ = null; + if (gcsDestinationBuilder_ != null) { + gcsDestinationBuilder_.dispose(); gcsDestinationBuilder_ = null; } return this; @@ -355,15 +357,21 @@ public com.google.cloud.aiplatform.v1beta1.TFRecordDestination build() { public com.google.cloud.aiplatform.v1beta1.TFRecordDestination buildPartial() { com.google.cloud.aiplatform.v1beta1.TFRecordDestination result = new com.google.cloud.aiplatform.v1beta1.TFRecordDestination(this); - if (gcsDestinationBuilder_ == null) { - result.gcsDestination_ = gcsDestination_; - } else { - result.gcsDestination_ = gcsDestinationBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TFRecordDestination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gcsDestination_ = + gcsDestinationBuilder_ == null ? gcsDestination_ : gcsDestinationBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -442,7 +450,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -462,6 +470,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GcsDestination gcsDestination_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GcsDestination, @@ -482,7 +492,7 @@ public Builder mergeFrom( * @return Whether the gcsDestination field is set. */ public boolean hasGcsDestination() { - return gcsDestinationBuilder_ != null || gcsDestination_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -523,11 +533,11 @@ public Builder setGcsDestination(com.google.cloud.aiplatform.v1beta1.GcsDestinat throw new NullPointerException(); } gcsDestination_ = value; - onChanged(); } else { gcsDestinationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -545,11 +555,11 @@ public Builder setGcsDestination( com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder builderForValue) { if (gcsDestinationBuilder_ == null) { gcsDestination_ = builderForValue.build(); - onChanged(); } else { gcsDestinationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -565,19 +575,19 @@ public Builder setGcsDestination( */ public Builder mergeGcsDestination(com.google.cloud.aiplatform.v1beta1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (gcsDestination_ != null) { - gcsDestination_ = - com.google.cloud.aiplatform.v1beta1.GcsDestination.newBuilder(gcsDestination_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && gcsDestination_ != null + && gcsDestination_ + != com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance()) { + getGcsDestinationBuilder().mergeFrom(value); } else { gcsDestination_ = value; } - onChanged(); } else { gcsDestinationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -592,14 +602,13 @@ public Builder mergeGcsDestination(com.google.cloud.aiplatform.v1beta1.GcsDestin * */ public Builder clearGcsDestination() { - if (gcsDestinationBuilder_ == null) { - gcsDestination_ = null; - onChanged(); - } else { - gcsDestination_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + gcsDestination_ = null; + if (gcsDestinationBuilder_ != null) { + gcsDestinationBuilder_.dispose(); gcsDestinationBuilder_ = null; } - + onChanged(); return this; } /** @@ -614,7 +623,7 @@ public Builder clearGcsDestination() { * */ public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder getGcsDestinationBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGcsDestinationFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tensorboard.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tensorboard.java index 1d0ffee40b86..4c81989b3474 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tensorboard.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tensorboard.java @@ -85,7 +85,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -138,7 +140,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -187,7 +191,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -286,11 +292,15 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } public static final int BLOB_STORAGE_PATH_PREFIX_FIELD_NUMBER = 10; - private volatile java.lang.Object blobStoragePathPrefix_; + + @SuppressWarnings("serial") + private volatile java.lang.Object blobStoragePathPrefix_ = ""; /** * * @@ -341,7 +351,7 @@ public com.google.protobuf.ByteString getBlobStoragePathPrefixBytes() { } public static final int RUN_COUNT_FIELD_NUMBER = 5; - private int runCount_; + private int runCount_ = 0; /** * * @@ -404,7 +414,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 7; @@ -453,7 +463,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int LABELS_FIELD_NUMBER = 8; @@ -469,6 +479,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -550,7 +561,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -587,7 +601,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int ETAG_FIELD_NUMBER = 9; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -960,37 +976,29 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } blobStoragePathPrefix_ = ""; - runCount_ = 0; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); etag_ = ""; - return this; } @@ -1018,32 +1026,47 @@ public com.google.cloud.aiplatform.v1beta1.Tensorboard build() { public com.google.cloud.aiplatform.v1beta1.Tensorboard buildPartial() { com.google.cloud.aiplatform.v1beta1.Tensorboard result = new com.google.cloud.aiplatform.v1beta1.Tensorboard(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Tensorboard result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - result.blobStoragePathPrefix_ = blobStoragePathPrefix_; - result.runCount_ = runCount_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.blobStoragePathPrefix_ = blobStoragePathPrefix_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.runCount_ = runCount_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.etag_ = etag_; } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.etag_ = etag_; - onBuilt(); - return result; } @java.lang.Override @@ -1094,14 +1117,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Tensorboard other) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasEncryptionSpec()) { @@ -1109,6 +1135,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Tensorboard other) } if (!other.getBlobStoragePathPrefix().isEmpty()) { blobStoragePathPrefix_ = other.blobStoragePathPrefix_; + bitField0_ |= 0x00000010; onChanged(); } if (other.getRunCount() != 0) { @@ -1121,8 +1148,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Tensorboard other) mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000100; if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000200; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1154,37 +1183,37 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 40: { runCount_ = input.readInt32(); - + bitField0_ |= 0x00000020; break; } // case 40 case 50: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 50 case 58: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 58 case 66: @@ -1196,24 +1225,25 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000100; break; } // case 66 case 74: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000200; break; } // case 74 case 82: { blobStoragePathPrefix_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 82 case 90: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 90 default: @@ -1302,8 +1332,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1321,8 +1351,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1345,8 +1375,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1412,8 +1442,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1429,8 +1459,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1451,8 +1481,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1518,8 +1548,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1535,8 +1565,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1557,8 +1587,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1583,7 +1613,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1624,11 +1654,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1646,11 +1676,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1666,19 +1696,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1beta1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1693,14 +1723,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 11; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -1715,7 +1744,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 11; */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -1835,8 +1864,8 @@ public Builder setBlobStoragePathPrefix(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - blobStoragePathPrefix_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1854,8 +1883,8 @@ public Builder setBlobStoragePathPrefix(java.lang.String value) { * @return This builder for chaining. */ public Builder clearBlobStoragePathPrefix() { - blobStoragePathPrefix_ = getDefaultInstance().getBlobStoragePathPrefix(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1878,8 +1907,8 @@ public Builder setBlobStoragePathPrefixBytes(com.google.protobuf.ByteString valu throw new NullPointerException(); } checkByteStringIsUtf8(value); - blobStoragePathPrefix_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1915,6 +1944,7 @@ public int getRunCount() { public Builder setRunCount(int value) { runCount_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1930,7 +1960,7 @@ public Builder setRunCount(int value) { * @return This builder for chaining. */ public Builder clearRunCount() { - + bitField0_ = (bitField0_ & ~0x00000020); runCount_ = 0; onChanged(); return this; @@ -1956,7 +1986,7 @@ public Builder clearRunCount() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -1997,11 +2027,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2018,11 +2048,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2038,17 +2068,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2063,14 +2094,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2085,7 +2115,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2157,7 +2187,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2198,11 +2228,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2219,11 +2249,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2239,17 +2269,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2264,14 +2295,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2286,7 +2316,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2349,14 +2379,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000100; + onChanged(); return labels_; } @@ -2432,8 +2462,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2470,6 +2502,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -2500,6 +2533,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000100; return internalGetMutableLabels().getMutableMap(); } /** @@ -2526,8 +2560,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000100; return this; } /** @@ -2549,6 +2583,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; return this; } @@ -2616,8 +2651,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2634,8 +2669,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -2657,8 +2692,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlob.java index 1777e3d7ea56..3e1b76f7d6b7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlob.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -120,7 +122,7 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int DATA_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString data_; + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * * @@ -344,10 +346,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - data_ = com.google.protobuf.ByteString.EMPTY; - return this; } @@ -375,12 +376,23 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardBlob build() { public com.google.cloud.aiplatform.v1beta1.TensorboardBlob buildPartial() { com.google.cloud.aiplatform.v1beta1.TensorboardBlob result = new com.google.cloud.aiplatform.v1beta1.TensorboardBlob(this); - result.id_ = id_; - result.data_ = data_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TensorboardBlob result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.data_ = data_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -429,6 +441,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TensorboardBlob oth return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { @@ -463,13 +476,13 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { data_ = input.readBytes(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -489,6 +502,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object id_ = ""; /** * @@ -553,8 +568,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -571,8 +586,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -594,8 +609,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -634,8 +649,8 @@ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - data_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -652,7 +667,7 @@ public Builder setData(com.google.protobuf.ByteString value) { * @return This builder for chaining. */ public Builder clearData() { - + bitField0_ = (bitField0_ & ~0x00000002); data_ = getDefaultInstance().getData(); onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlobSequence.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlobSequence.java index 673837304b96..89788420271a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlobSequence.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardBlobSequence.java @@ -69,6 +69,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List values_; /** * @@ -339,6 +341,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); } else { @@ -373,7 +376,16 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence build() { public com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence buildPartial() { com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence result = new com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence result) { if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); @@ -383,8 +395,10 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence buildPartial( } else { result.values_ = valuesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperiment.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperiment.java index 08d6c73701cc..67a62e822cd6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperiment.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperiment.java @@ -84,7 +84,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -137,7 +139,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -186,7 +190,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -280,7 +286,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 5; @@ -329,7 +335,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int LABELS_FIELD_NUMBER = 6; @@ -345,6 +351,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -435,7 +442,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -475,7 +485,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int ETAG_FIELD_NUMBER = 7; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -526,7 +538,9 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int SOURCE_FIELD_NUMBER = 8; - private volatile java.lang.Object source_; + + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; /** * * @@ -876,29 +890,23 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); etag_ = ""; - source_ = ""; - return this; } @@ -926,28 +934,42 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment build() { public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment buildPartial() { com.google.cloud.aiplatform.v1beta1.TensorboardExperiment result = new com.google.cloud.aiplatform.v1beta1.TensorboardExperiment(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.etag_ = etag_; - result.source_ = source_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TensorboardExperiment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.source_ = source_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -996,14 +1018,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TensorboardExperime return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasCreateTime()) { @@ -1013,12 +1038,15 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TensorboardExperime mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000020; if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000040; onChanged(); } if (!other.getSource().isEmpty()) { source_ = other.source_; + bitField0_ |= 0x00000080; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1050,31 +1078,31 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: @@ -1086,18 +1114,19 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; break; } // case 50 case 58: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 58 case 66: { source_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 66 default: @@ -1186,8 +1215,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1205,8 +1234,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1229,8 +1258,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1296,8 +1325,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1313,8 +1342,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1335,8 +1364,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1402,8 +1431,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1419,8 +1448,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1441,8 +1470,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1467,7 +1496,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1508,11 +1537,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1529,11 +1558,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1549,17 +1578,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1574,14 +1604,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1596,7 +1625,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1668,7 +1697,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1709,11 +1738,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1730,11 +1759,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1750,17 +1779,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1775,14 +1805,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1797,7 +1826,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -1860,14 +1889,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000020; + onChanged(); return labels_; } @@ -1952,8 +1981,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 6; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1993,6 +2024,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -2026,6 +2058,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000020; return internalGetMutableLabels().getMutableMap(); } /** @@ -2055,8 +2088,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000020; return this; } /** @@ -2081,6 +2114,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000020; return this; } @@ -2148,8 +2182,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2166,8 +2200,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2189,8 +2223,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2259,8 +2293,8 @@ public Builder setSource(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - source_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2277,8 +2311,8 @@ public Builder setSource(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSource() { - source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -2300,8 +2334,8 @@ public Builder setSourceBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - source_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentOrBuilder.java index 00309434d64c..ec519be23f8b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentOrBuilder.java @@ -264,7 +264,6 @@ public interface TensorboardExperimentOrBuilder * * map<string, string> labels = 6; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardOrBuilder.java index 5577940d73a4..39feca68b6f4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardOrBuilder.java @@ -333,7 +333,6 @@ public interface TensorboardOrBuilder * * map<string, string> labels = 8; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRun.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRun.java index 290890a08f16..f2eba53ab730 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRun.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRun.java @@ -83,7 +83,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -136,7 +138,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -189,7 +193,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -283,7 +289,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 7; @@ -332,7 +338,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int LABELS_FIELD_NUMBER = 8; @@ -348,6 +354,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -447,7 +454,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -490,7 +500,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int ETAG_FIELD_NUMBER = 9; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -830,27 +842,22 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); etag_ = ""; - return this; } @@ -878,27 +885,39 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardRun build() { public com.google.cloud.aiplatform.v1beta1.TensorboardRun buildPartial() { com.google.cloud.aiplatform.v1beta1.TensorboardRun result = new com.google.cloud.aiplatform.v1beta1.TensorboardRun(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.etag_ = etag_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TensorboardRun result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.etag_ = etag_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -947,14 +966,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TensorboardRun othe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasCreateTime()) { @@ -964,8 +986,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TensorboardRun othe mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000020; if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000040; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -997,31 +1021,31 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 50: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 50 case 58: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 58 case 66: @@ -1033,12 +1057,13 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; break; } // case 66 case 74: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 74 default: @@ -1127,8 +1152,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1146,8 +1171,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1170,8 +1195,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1243,8 +1268,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1262,8 +1287,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1286,8 +1311,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1353,8 +1378,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1370,8 +1395,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1392,8 +1417,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1418,7 +1443,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1459,11 +1484,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1480,11 +1505,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1500,17 +1525,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1525,14 +1551,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1547,7 +1572,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1619,7 +1644,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1660,11 +1685,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1681,11 +1706,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1701,17 +1726,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1726,14 +1752,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1748,7 +1773,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -1811,14 +1836,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000020; + onChanged(); return labels_; } @@ -1912,8 +1937,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 8; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1956,6 +1983,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -1992,6 +2020,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000020; return internalGetMutableLabels().getMutableMap(); } /** @@ -2024,8 +2053,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000020; return this; } /** @@ -2053,6 +2082,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000020; return this; } @@ -2120,8 +2150,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2138,8 +2168,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2161,8 +2191,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunOrBuilder.java index 8c4e7b5c5b34..d5f697703708 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunOrBuilder.java @@ -280,7 +280,6 @@ public interface TensorboardRunOrBuilder * * map<string, string> labels = 8; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTensor.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTensor.java index 8296e25b42df..084a7d2cc8ad 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTensor.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTensor.java @@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUE_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString value_; + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * * @@ -87,7 +87,7 @@ public com.google.protobuf.ByteString getValue() { } public static final int VERSION_NUMBER_FIELD_NUMBER = 2; - private int versionNumber_; + private int versionNumber_ = 0; /** * * @@ -312,10 +312,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; value_ = com.google.protobuf.ByteString.EMPTY; - versionNumber_ = 0; - return this; } @@ -343,12 +342,23 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardTensor build() { public com.google.cloud.aiplatform.v1beta1.TensorboardTensor buildPartial() { com.google.cloud.aiplatform.v1beta1.TensorboardTensor result = new com.google.cloud.aiplatform.v1beta1.TensorboardTensor(this); - result.value_ = value_; - result.versionNumber_ = versionNumber_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TensorboardTensor result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.versionNumber_ = versionNumber_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -430,13 +440,13 @@ public Builder mergeFrom( case 10: { value_ = input.readBytes(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { versionNumber_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -456,6 +466,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * @@ -490,8 +502,8 @@ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - value_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -508,7 +520,7 @@ public Builder setValue(com.google.protobuf.ByteString value) { * @return This builder for chaining. */ public Builder clearValue() { - + bitField0_ = (bitField0_ & ~0x00000001); value_ = getDefaultInstance().getValue(); onChanged(); return this; @@ -547,6 +559,7 @@ public int getVersionNumber() { public Builder setVersionNumber(int value) { versionNumber_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -563,7 +576,7 @@ public Builder setVersionNumber(int value) { * @return This builder for chaining. */ public Builder clearVersionNumber() { - + bitField0_ = (bitField0_ & ~0x00000002); versionNumber_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeries.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeries.java index caf1b845c7ef..767a6a87de32 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeries.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeries.java @@ -385,7 +385,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MAX_STEP_FIELD_NUMBER = 1; - private long maxStep_; + private long maxStep_ = 0L; /** * * @@ -457,11 +457,13 @@ public com.google.protobuf.Timestamp getMaxWallTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getMaxWallTimeOrBuilder() { - return getMaxWallTime(); + return maxWallTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : maxWallTime_; } public static final int MAX_BLOB_SEQUENCE_LENGTH_FIELD_NUMBER = 3; - private long maxBlobSequenceLength_; + private long maxBlobSequenceLength_ = 0L; /** * * @@ -704,16 +706,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; maxStep_ = 0L; - - if (maxWallTimeBuilder_ == null) { - maxWallTime_ = null; - } else { - maxWallTime_ = null; + maxWallTime_ = null; + if (maxWallTimeBuilder_ != null) { + maxWallTimeBuilder_.dispose(); maxWallTimeBuilder_ = null; } maxBlobSequenceLength_ = 0L; - return this; } @@ -743,17 +743,28 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata build( public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata buildPartial() { com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata result = new com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata(this); - result.maxStep_ = maxStep_; - if (maxWallTimeBuilder_ == null) { - result.maxWallTime_ = maxWallTime_; - } else { - result.maxWallTime_ = maxWallTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.maxBlobSequenceLength_ = maxBlobSequenceLength_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxStep_ = maxStep_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxWallTime_ = + maxWallTimeBuilder_ == null ? maxWallTime_ : maxWallTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxBlobSequenceLength_ = maxBlobSequenceLength_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -843,19 +854,19 @@ public Builder mergeFrom( case 8: { maxStep_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage(getMaxWallTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { maxBlobSequenceLength_ = input.readInt64(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -875,6 +886,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long maxStep_; /** * @@ -908,6 +921,7 @@ public long getMaxStep() { public Builder setMaxStep(long value) { maxStep_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -924,7 +938,7 @@ public Builder setMaxStep(long value) { * @return This builder for chaining. */ public Builder clearMaxStep() { - + bitField0_ = (bitField0_ & ~0x00000001); maxStep_ = 0L; onChanged(); return this; @@ -951,7 +965,7 @@ public Builder clearMaxStep() { * @return Whether the maxWallTime field is set. */ public boolean hasMaxWallTime() { - return maxWallTimeBuilder_ != null || maxWallTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -994,11 +1008,11 @@ public Builder setMaxWallTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } maxWallTime_ = value; - onChanged(); } else { maxWallTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1016,11 +1030,11 @@ public Builder setMaxWallTime(com.google.protobuf.Timestamp value) { public Builder setMaxWallTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (maxWallTimeBuilder_ == null) { maxWallTime_ = builderForValue.build(); - onChanged(); } else { maxWallTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1037,19 +1051,18 @@ public Builder setMaxWallTime(com.google.protobuf.Timestamp.Builder builderForVa */ public Builder mergeMaxWallTime(com.google.protobuf.Timestamp value) { if (maxWallTimeBuilder_ == null) { - if (maxWallTime_ != null) { - maxWallTime_ = - com.google.protobuf.Timestamp.newBuilder(maxWallTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && maxWallTime_ != null + && maxWallTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getMaxWallTimeBuilder().mergeFrom(value); } else { maxWallTime_ = value; } - onChanged(); } else { maxWallTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1065,14 +1078,13 @@ public Builder mergeMaxWallTime(com.google.protobuf.Timestamp value) { * */ public Builder clearMaxWallTime() { - if (maxWallTimeBuilder_ == null) { - maxWallTime_ = null; - onChanged(); - } else { - maxWallTime_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + maxWallTime_ = null; + if (maxWallTimeBuilder_ != null) { + maxWallTimeBuilder_.dispose(); maxWallTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1088,7 +1100,7 @@ public Builder clearMaxWallTime() { * */ public com.google.protobuf.Timestamp.Builder getMaxWallTimeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMaxWallTimeFieldBuilder().getBuilder(); } @@ -1177,6 +1189,7 @@ public long getMaxBlobSequenceLength() { public Builder setMaxBlobSequenceLength(long value) { maxBlobSequenceLength_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1194,7 +1207,7 @@ public Builder setMaxBlobSequenceLength(long value) { * @return This builder for chaining. */ public Builder clearMaxBlobSequenceLength() { - + bitField0_ = (bitField0_ & ~0x00000004); maxBlobSequenceLength_ = 0L; onChanged(); return this; @@ -1268,7 +1281,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -1317,7 +1332,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -1370,7 +1387,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -1419,7 +1438,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int VALUE_TYPE_FIELD_NUMBER = 4; - private int valueType_; + private int valueType_ = 0; /** * * @@ -1452,9 +1471,8 @@ public int getValueTypeValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType getValueType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType result = - com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType.valueOf(valueType_); + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType.forNumber(valueType_); return result == null ? com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType.UNRECOGNIZED : result; @@ -1506,7 +1524,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 6; @@ -1555,11 +1573,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int ETAG_FIELD_NUMBER = 7; - private volatile java.lang.Object etag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; /** * * @@ -1610,7 +1630,9 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int PLUGIN_NAME_FIELD_NUMBER = 8; - private volatile java.lang.Object pluginName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pluginName_ = ""; /** * * @@ -1661,7 +1683,7 @@ public com.google.protobuf.ByteString getPluginNameBytes() { } public static final int PLUGIN_DATA_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString pluginData_; + private com.google.protobuf.ByteString pluginData_ = com.google.protobuf.ByteString.EMPTY; /** * * @@ -1733,7 +1755,9 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata getMet @java.lang.Override public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.MetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata.getDefaultInstance() + : metadata_; } private byte memoizedIsInitialized = -1; @@ -2036,36 +2060,27 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - valueType_ = 0; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } etag_ = ""; - pluginName_ = ""; - pluginData_ = com.google.protobuf.ByteString.EMPTY; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; @@ -2095,32 +2110,47 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries build() { public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries buildPartial() { com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries result = new com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries(this); - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; - result.valueType_ = valueType_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.etag_ = etag_; - result.pluginName_ = pluginName_; - result.pluginData_ = pluginData_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.valueType_ = valueType_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.pluginName_ = pluginName_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.pluginData_ = pluginData_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2169,14 +2199,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeri return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (other.valueType_ != 0) { @@ -2190,10 +2223,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeri } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; + bitField0_ |= 0x00000040; onChanged(); } if (!other.getPluginName().isEmpty()) { pluginName_ = other.pluginName_; + bitField0_ |= 0x00000080; onChanged(); } if (other.getPluginData() != com.google.protobuf.ByteString.EMPTY) { @@ -2231,61 +2266,61 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 32: { valueType_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 case 58: { etag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 58 case 66: { pluginName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 66 case 74: { pluginData_ = input.readBytes(); - + bitField0_ |= 0x00000100; break; } // case 74 case 82: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 82 default: @@ -2305,6 +2340,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -2366,8 +2403,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2383,8 +2420,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2405,8 +2442,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2478,8 +2515,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2497,8 +2534,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2521,8 +2558,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2588,8 +2625,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2605,8 +2642,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2627,8 +2664,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2666,8 +2703,8 @@ public int getValueTypeValue() { * @return This builder for chaining. */ public Builder setValueTypeValue(int value) { - valueType_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2686,9 +2723,8 @@ public Builder setValueTypeValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType getValueType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType result = - com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType.valueOf(valueType_); + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType.forNumber(valueType_); return result == null ? com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType.UNRECOGNIZED : result; @@ -2712,7 +2748,7 @@ public Builder setValueType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; valueType_ = value.getNumber(); onChanged(); return this; @@ -2731,7 +2767,7 @@ public Builder setValueType( * @return This builder for chaining. */ public Builder clearValueType() { - + bitField0_ = (bitField0_ & ~0x00000008); valueType_ = 0; onChanged(); return this; @@ -2757,7 +2793,7 @@ public Builder clearValueType() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2798,11 +2834,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2819,11 +2855,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2839,17 +2875,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2864,14 +2901,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2886,7 +2922,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2958,7 +2994,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2999,11 +3035,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -3020,11 +3056,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -3040,17 +3076,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -3065,14 +3102,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -3087,7 +3123,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -3203,8 +3239,8 @@ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - etag_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3221,8 +3257,8 @@ public Builder setEtag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -3244,8 +3280,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - etag_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3314,8 +3350,8 @@ public Builder setPluginName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pluginName_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3332,8 +3368,8 @@ public Builder setPluginName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPluginName() { - pluginName_ = getDefaultInstance().getPluginName(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -3355,8 +3391,8 @@ public Builder setPluginNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pluginName_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3393,8 +3429,8 @@ public Builder setPluginData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - pluginData_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3410,7 +3446,7 @@ public Builder setPluginData(com.google.protobuf.ByteString value) { * @return This builder for chaining. */ public Builder clearPluginData() { - + bitField0_ = (bitField0_ & ~0x00000100); pluginData_ = getDefaultInstance().getPluginData(); onChanged(); return this; @@ -3437,7 +3473,7 @@ public Builder clearPluginData() { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -3482,11 +3518,11 @@ public Builder setMetadata( throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3506,11 +3542,11 @@ public Builder setMetadata( builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3528,20 +3564,20 @@ public Builder setMetadata( public Builder mergeMetadata( com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata.newBuilder( - metadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata + .getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -3557,14 +3593,13 @@ public Builder mergeMetadata( * */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -3581,7 +3616,7 @@ public Builder clearMetadata() { */ public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Metadata.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ThresholdConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ThresholdConfig.java index 04500f7a445d..56cf49223c57 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ThresholdConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ThresholdConfig.java @@ -374,6 +374,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; thresholdCase_ = 0; threshold_ = null; return this; @@ -403,14 +404,23 @@ public com.google.cloud.aiplatform.v1beta1.ThresholdConfig build() { public com.google.cloud.aiplatform.v1beta1.ThresholdConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.ThresholdConfig result = new com.google.cloud.aiplatform.v1beta1.ThresholdConfig(this); - if (thresholdCase_ == 1) { - result.threshold_ = threshold_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.thresholdCase_ = thresholdCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ThresholdConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.ThresholdConfig result) { + result.thresholdCase_ = thresholdCase_; + result.threshold_ = this.threshold_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -531,6 +541,8 @@ public Builder clearThreshold() { return this; } + private int bitField0_; + /** * * @@ -596,6 +608,7 @@ public double getValue() { * @return This builder for chaining. */ public Builder setValue(double value) { + thresholdCase_ = 1; threshold_ = value; onChanged(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesData.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesData.java index b9d748390e69..ce2757dfe9a4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesData.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesData.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_TIME_SERIES_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object tensorboardTimeSeriesId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboardTimeSeriesId_ = ""; /** * * @@ -121,7 +123,7 @@ public com.google.protobuf.ByteString getTensorboardTimeSeriesIdBytes() { } public static final int VALUE_TYPE_FIELD_NUMBER = 2; - private int valueType_; + private int valueType_ = 0; /** * * @@ -156,15 +158,16 @@ public int getValueTypeValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType getValueType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType result = - com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType.valueOf(valueType_); + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType.forNumber(valueType_); return result == null ? com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType.UNRECOGNIZED : result; } public static final int VALUES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List values_; /** * @@ -467,17 +470,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; tensorboardTimeSeriesId_ = ""; - valueType_ = 0; - if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); } else { values_ = null; valuesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -505,20 +507,35 @@ public com.google.cloud.aiplatform.v1beta1.TimeSeriesData build() { public com.google.cloud.aiplatform.v1beta1.TimeSeriesData buildPartial() { com.google.cloud.aiplatform.v1beta1.TimeSeriesData result = new com.google.cloud.aiplatform.v1beta1.TimeSeriesData(this); - int from_bitField0_ = bitField0_; - result.tensorboardTimeSeriesId_ = tensorboardTimeSeriesId_; - result.valueType_ = valueType_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.TimeSeriesData result) { if (valuesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.values_ = values_; } else { result.values_ = valuesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TimeSeriesData result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tensorboardTimeSeriesId_ = tensorboardTimeSeriesId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.valueType_ = valueType_; + } } @java.lang.Override @@ -569,6 +586,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TimeSeriesData othe return this; if (!other.getTensorboardTimeSeriesId().isEmpty()) { tensorboardTimeSeriesId_ = other.tensorboardTimeSeriesId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.valueType_ != 0) { @@ -578,7 +596,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TimeSeriesData othe if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureValuesIsMutable(); values_.addAll(other.values_); @@ -591,7 +609,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TimeSeriesData othe valuesBuilder_.dispose(); valuesBuilder_ = null; values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); valuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValuesFieldBuilder() @@ -630,13 +648,13 @@ public Builder mergeFrom( case 10: { tensorboardTimeSeriesId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { valueType_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: @@ -736,8 +754,8 @@ public Builder setTensorboardTimeSeriesId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboardTimeSeriesId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -754,8 +772,8 @@ public Builder setTensorboardTimeSeriesId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboardTimeSeriesId() { - tensorboardTimeSeriesId_ = getDefaultInstance().getTensorboardTimeSeriesId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -777,8 +795,8 @@ public Builder setTensorboardTimeSeriesIdBytes(com.google.protobuf.ByteString va throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboardTimeSeriesId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -818,8 +836,8 @@ public int getValueTypeValue() { * @return This builder for chaining. */ public Builder setValueTypeValue(int value) { - valueType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -839,9 +857,8 @@ public Builder setValueTypeValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType getValueType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType result = - com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType.valueOf(valueType_); + com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType.forNumber(valueType_); return result == null ? com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.ValueType.UNRECOGNIZED : result; @@ -866,7 +883,7 @@ public Builder setValueType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; valueType_ = value.getNumber(); onChanged(); return this; @@ -886,7 +903,7 @@ public Builder setValueType( * @return This builder for chaining. */ public Builder clearValueType() { - + bitField0_ = (bitField0_ & ~0x00000002); valueType_ = 0; onChanged(); return this; @@ -896,11 +913,11 @@ public Builder clearValueType() { java.util.Collections.emptyList(); private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { values_ = new java.util.ArrayList( values_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -1143,7 +1160,7 @@ public Builder addAllValues( public Builder clearValues() { if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { valuesBuilder_.clear(); @@ -1284,7 +1301,7 @@ public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.Builder addValues com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint, com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint.Builder, com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPointOrBuilder>( - values_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + values_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); values_ = null; } return valuesBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesDataPoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesDataPoint.java index ae775aea7bf4..eb4bca7b7895 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesDataPoint.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimeSeriesDataPoint.java @@ -311,11 +311,11 @@ public com.google.protobuf.Timestamp getWallTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getWallTimeOrBuilder() { - return getWallTime(); + return wallTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : wallTime_; } public static final int STEP_FIELD_NUMBER = 2; - private long step_; + private long step_ = 0L; /** * * @@ -598,6 +598,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (scalarBuilder_ != null) { scalarBuilder_.clear(); } @@ -607,14 +608,12 @@ public Builder clear() { if (blobsBuilder_ != null) { blobsBuilder_.clear(); } - if (wallTimeBuilder_ == null) { - wallTime_ = null; - } else { - wallTime_ = null; + wallTime_ = null; + if (wallTimeBuilder_ != null) { + wallTimeBuilder_.dispose(); wallTimeBuilder_ = null; } step_ = 0L; - valueCase_ = 0; value_ = null; return this; @@ -644,36 +643,37 @@ public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint build() { public com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint buildPartial() { com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint result = new com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint(this); - if (valueCase_ == 3) { - if (scalarBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = scalarBuilder_.build(); - } - } - if (valueCase_ == 4) { - if (tensorBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = tensorBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (valueCase_ == 5) { - if (blobsBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = blobsBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.wallTime_ = wallTimeBuilder_ == null ? wallTime_ : wallTimeBuilder_.build(); } - if (wallTimeBuilder_ == null) { - result.wallTime_ = wallTime_; - } else { - result.wallTime_ = wallTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.step_ = step_; } - result.step_ = step_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint result) { result.valueCase_ = valueCase_; - onBuilt(); - return result; + result.value_ = this.value_; + if (valueCase_ == 3 && scalarBuilder_ != null) { + result.value_ = scalarBuilder_.build(); + } + if (valueCase_ == 4 && tensorBuilder_ != null) { + result.value_ = tensorBuilder_.build(); + } + if (valueCase_ == 5 && blobsBuilder_ != null) { + result.value_ = blobsBuilder_.build(); + } } @java.lang.Override @@ -778,13 +778,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getWallTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 10 case 16: { step_ = input.readInt64(); - + bitField0_ |= 0x00000010; break; } // case 16 case 26: @@ -836,6 +836,8 @@ public Builder clearValue() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.Scalar, com.google.cloud.aiplatform.v1beta1.Scalar.Builder, @@ -1041,7 +1043,6 @@ public com.google.cloud.aiplatform.v1beta1.ScalarOrBuilder getScalarOrBuilder() } valueCase_ = 3; onChanged(); - ; return scalarBuilder_; } @@ -1252,7 +1253,6 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardTensorOrBuilder getTensorO } valueCase_ = 4; onChanged(); - ; return tensorBuilder_; } @@ -1465,7 +1465,6 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.Builder getBl } valueCase_ = 5; onChanged(); - ; return blobsBuilder_; } @@ -1487,7 +1486,7 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardBlobSequence.Builder getBl * @return Whether the wallTime field is set. */ public boolean hasWallTime() { - return wallTimeBuilder_ != null || wallTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1522,11 +1521,11 @@ public Builder setWallTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } wallTime_ = value; - onChanged(); } else { wallTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1541,11 +1540,11 @@ public Builder setWallTime(com.google.protobuf.Timestamp value) { public Builder setWallTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (wallTimeBuilder_ == null) { wallTime_ = builderForValue.build(); - onChanged(); } else { wallTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1559,17 +1558,18 @@ public Builder setWallTime(com.google.protobuf.Timestamp.Builder builderForValue */ public Builder mergeWallTime(com.google.protobuf.Timestamp value) { if (wallTimeBuilder_ == null) { - if (wallTime_ != null) { - wallTime_ = - com.google.protobuf.Timestamp.newBuilder(wallTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && wallTime_ != null + && wallTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getWallTimeBuilder().mergeFrom(value); } else { wallTime_ = value; } - onChanged(); } else { wallTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1582,14 +1582,13 @@ public Builder mergeWallTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp wall_time = 1; */ public Builder clearWallTime() { - if (wallTimeBuilder_ == null) { - wallTime_ = null; - onChanged(); - } else { - wallTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + wallTime_ = null; + if (wallTimeBuilder_ != null) { + wallTimeBuilder_.dispose(); wallTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1602,7 +1601,7 @@ public Builder clearWallTime() { * .google.protobuf.Timestamp wall_time = 1; */ public com.google.protobuf.Timestamp.Builder getWallTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getWallTimeFieldBuilder().getBuilder(); } @@ -1679,6 +1678,7 @@ public long getStep() { public Builder setStep(long value) { step_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1694,7 +1694,7 @@ public Builder setStep(long value) { * @return This builder for chaining. */ public Builder clearStep() { - + bitField0_ = (bitField0_ & ~0x00000010); step_ = 0L; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimestampSplit.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimestampSplit.java index cd4550e50fb2..06859cb357a8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimestampSplit.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TimestampSplit.java @@ -71,7 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRAINING_FRACTION_FIELD_NUMBER = 1; - private double trainingFraction_; + private double trainingFraction_ = 0D; /** * * @@ -89,7 +89,7 @@ public double getTrainingFraction() { } public static final int VALIDATION_FRACTION_FIELD_NUMBER = 2; - private double validationFraction_; + private double validationFraction_ = 0D; /** * * @@ -107,7 +107,7 @@ public double getValidationFraction() { } public static final int TEST_FRACTION_FIELD_NUMBER = 3; - private double testFraction_; + private double testFraction_ = 0D; /** * * @@ -125,7 +125,9 @@ public double getTestFraction() { } public static final int KEY_FIELD_NUMBER = 4; - private volatile java.lang.Object key_; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; /** * * @@ -420,14 +422,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; trainingFraction_ = 0D; - validationFraction_ = 0D; - testFraction_ = 0D; - key_ = ""; - return this; } @@ -455,14 +454,29 @@ public com.google.cloud.aiplatform.v1beta1.TimestampSplit build() { public com.google.cloud.aiplatform.v1beta1.TimestampSplit buildPartial() { com.google.cloud.aiplatform.v1beta1.TimestampSplit result = new com.google.cloud.aiplatform.v1beta1.TimestampSplit(this); - result.trainingFraction_ = trainingFraction_; - result.validationFraction_ = validationFraction_; - result.testFraction_ = testFraction_; - result.key_ = key_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TimestampSplit result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trainingFraction_ = trainingFraction_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validationFraction_ = validationFraction_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.testFraction_ = testFraction_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.key_ = key_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -520,6 +534,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TimestampSplit othe } if (!other.getKey().isEmpty()) { key_ = other.key_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -551,25 +566,25 @@ public Builder mergeFrom( case 9: { trainingFraction_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 case 17: { validationFraction_ = input.readDouble(); - + bitField0_ |= 0x00000002; break; } // case 17 case 25: { testFraction_ = input.readDouble(); - + bitField0_ |= 0x00000004; break; } // case 25 case 34: { key_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -589,6 +604,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private double trainingFraction_; /** * @@ -620,6 +637,7 @@ public double getTrainingFraction() { public Builder setTrainingFraction(double value) { trainingFraction_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -635,7 +653,7 @@ public Builder setTrainingFraction(double value) { * @return This builder for chaining. */ public Builder clearTrainingFraction() { - + bitField0_ = (bitField0_ & ~0x00000001); trainingFraction_ = 0D; onChanged(); return this; @@ -672,6 +690,7 @@ public double getValidationFraction() { public Builder setValidationFraction(double value) { validationFraction_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -687,7 +706,7 @@ public Builder setValidationFraction(double value) { * @return This builder for chaining. */ public Builder clearValidationFraction() { - + bitField0_ = (bitField0_ & ~0x00000002); validationFraction_ = 0D; onChanged(); return this; @@ -724,6 +743,7 @@ public double getTestFraction() { public Builder setTestFraction(double value) { testFraction_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -739,7 +759,7 @@ public Builder setTestFraction(double value) { * @return This builder for chaining. */ public Builder clearTestFraction() { - + bitField0_ = (bitField0_ & ~0x00000004); testFraction_ = 0D; onChanged(); return this; @@ -818,8 +838,8 @@ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - key_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -839,8 +859,8 @@ public Builder setKey(java.lang.String value) { * @return This builder for chaining. */ public Builder clearKey() { - key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -865,8 +885,8 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - key_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingConfig.java index c293448dfcfd..72155b3b607f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingConfig.java @@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TIMEOUT_TRAINING_MILLI_HOURS_FIELD_NUMBER = 1; - private long timeoutTrainingMilliHours_; + private long timeoutTrainingMilliHours_ = 0L; /** * * @@ -285,8 +285,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; timeoutTrainingMilliHours_ = 0L; - return this; } @@ -314,11 +314,20 @@ public com.google.cloud.aiplatform.v1beta1.TrainingConfig build() { public com.google.cloud.aiplatform.v1beta1.TrainingConfig buildPartial() { com.google.cloud.aiplatform.v1beta1.TrainingConfig result = new com.google.cloud.aiplatform.v1beta1.TrainingConfig(this); - result.timeoutTrainingMilliHours_ = timeoutTrainingMilliHours_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TrainingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timeoutTrainingMilliHours_ = timeoutTrainingMilliHours_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -397,7 +406,7 @@ public Builder mergeFrom( case 8: { timeoutTrainingMilliHours_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -417,6 +426,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long timeoutTrainingMilliHours_; /** * @@ -450,6 +461,7 @@ public long getTimeoutTrainingMilliHours() { public Builder setTimeoutTrainingMilliHours(long value) { timeoutTrainingMilliHours_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -466,7 +478,7 @@ public Builder setTimeoutTrainingMilliHours(long value) { * @return This builder for chaining. */ public Builder clearTimeoutTrainingMilliHours() { - + bitField0_ = (bitField0_ & ~0x00000001); timeoutTrainingMilliHours_ = 0L; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipeline.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipeline.java index e33e277ed784..a857638b9612 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipeline.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipeline.java @@ -88,7 +88,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -137,7 +139,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -255,11 +259,15 @@ public com.google.cloud.aiplatform.v1beta1.InputDataConfig getInputDataConfig() @java.lang.Override public com.google.cloud.aiplatform.v1beta1.InputDataConfigOrBuilder getInputDataConfigOrBuilder() { - return getInputDataConfig(); + return inputDataConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.InputDataConfig.getDefaultInstance() + : inputDataConfig_; } public static final int TRAINING_TASK_DEFINITION_FIELD_NUMBER = 4; - private volatile java.lang.Object trainingTaskDefinition_; + + @SuppressWarnings("serial") + private volatile java.lang.Object trainingTaskDefinition_ = ""; /** * * @@ -378,7 +386,9 @@ public com.google.protobuf.Value getTrainingTaskInputs() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getTrainingTaskInputsOrBuilder() { - return getTrainingTaskInputs(); + return trainingTaskInputs_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : trainingTaskInputs_; } public static final int TRAINING_TASK_METADATA_FIELD_NUMBER = 6; @@ -453,7 +463,9 @@ public com.google.protobuf.Value getTrainingTaskMetadata() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getTrainingTaskMetadataOrBuilder() { - return getTrainingTaskMetadata(); + return trainingTaskMetadata_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : trainingTaskMetadata_; } public static final int MODEL_TO_UPLOAD_FIELD_NUMBER = 7; @@ -549,11 +561,15 @@ public com.google.cloud.aiplatform.v1beta1.Model getModelToUpload() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelOrBuilder getModelToUploadOrBuilder() { - return getModelToUpload(); + return modelToUpload_ == null + ? com.google.cloud.aiplatform.v1beta1.Model.getDefaultInstance() + : modelToUpload_; } public static final int MODEL_ID_FIELD_NUMBER = 22; - private volatile java.lang.Object modelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelId_ = ""; /** * * @@ -608,7 +624,9 @@ public com.google.protobuf.ByteString getModelIdBytes() { } public static final int PARENT_MODEL_FIELD_NUMBER = 21; - private volatile java.lang.Object parentModel_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parentModel_ = ""; /** * * @@ -661,7 +679,7 @@ public com.google.protobuf.ByteString getParentModelBytes() { } public static final int STATE_FIELD_NUMBER = 9; - private int state_; + private int state_ = 0; /** * * @@ -694,9 +712,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.PipelineState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.PipelineState result = - com.google.cloud.aiplatform.v1beta1.PipelineState.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.PipelineState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.PipelineState.UNRECOGNIZED : result; } @@ -746,7 +763,7 @@ public com.google.rpc.Status getError() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - return getError(); + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } public static final int CREATE_TIME_FIELD_NUMBER = 11; @@ -795,7 +812,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int START_TIME_FIELD_NUMBER = 12; @@ -847,7 +864,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 13; @@ -902,7 +919,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 14; @@ -951,7 +968,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int LABELS_FIELD_NUMBER = 15; @@ -967,6 +984,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -1036,7 +1054,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 15; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1125,7 +1146,9 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { - return getEncryptionSpec(); + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; } private byte memoizedIsInitialized = -1; @@ -1556,77 +1579,62 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - - if (inputDataConfigBuilder_ == null) { - inputDataConfig_ = null; - } else { - inputDataConfig_ = null; + inputDataConfig_ = null; + if (inputDataConfigBuilder_ != null) { + inputDataConfigBuilder_.dispose(); inputDataConfigBuilder_ = null; } trainingTaskDefinition_ = ""; - - if (trainingTaskInputsBuilder_ == null) { - trainingTaskInputs_ = null; - } else { - trainingTaskInputs_ = null; + trainingTaskInputs_ = null; + if (trainingTaskInputsBuilder_ != null) { + trainingTaskInputsBuilder_.dispose(); trainingTaskInputsBuilder_ = null; } - if (trainingTaskMetadataBuilder_ == null) { - trainingTaskMetadata_ = null; - } else { - trainingTaskMetadata_ = null; + trainingTaskMetadata_ = null; + if (trainingTaskMetadataBuilder_ != null) { + trainingTaskMetadataBuilder_.dispose(); trainingTaskMetadataBuilder_ = null; } - if (modelToUploadBuilder_ == null) { - modelToUpload_ = null; - } else { - modelToUpload_ = null; + modelToUpload_ = null; + if (modelToUploadBuilder_ != null) { + modelToUploadBuilder_.dispose(); modelToUploadBuilder_ = null; } modelId_ = ""; - parentModel_ = ""; - state_ = 0; - - if (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - } else { - encryptionSpec_ = null; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } return this; @@ -1656,67 +1664,76 @@ public com.google.cloud.aiplatform.v1beta1.TrainingPipeline build() { public com.google.cloud.aiplatform.v1beta1.TrainingPipeline buildPartial() { com.google.cloud.aiplatform.v1beta1.TrainingPipeline result = new com.google.cloud.aiplatform.v1beta1.TrainingPipeline(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TrainingPipeline result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - if (inputDataConfigBuilder_ == null) { - result.inputDataConfig_ = inputDataConfig_; - } else { - result.inputDataConfig_ = inputDataConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - result.trainingTaskDefinition_ = trainingTaskDefinition_; - if (trainingTaskInputsBuilder_ == null) { - result.trainingTaskInputs_ = trainingTaskInputs_; - } else { - result.trainingTaskInputs_ = trainingTaskInputsBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (trainingTaskMetadataBuilder_ == null) { - result.trainingTaskMetadata_ = trainingTaskMetadata_; - } else { - result.trainingTaskMetadata_ = trainingTaskMetadataBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.inputDataConfig_ = + inputDataConfigBuilder_ == null ? inputDataConfig_ : inputDataConfigBuilder_.build(); } - if (modelToUploadBuilder_ == null) { - result.modelToUpload_ = modelToUpload_; - } else { - result.modelToUpload_ = modelToUploadBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.trainingTaskDefinition_ = trainingTaskDefinition_; } - result.modelId_ = modelId_; - result.parentModel_ = parentModel_; - result.state_ = state_; - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.trainingTaskInputs_ = + trainingTaskInputsBuilder_ == null + ? trainingTaskInputs_ + : trainingTaskInputsBuilder_.build(); } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.trainingTaskMetadata_ = + trainingTaskMetadataBuilder_ == null + ? trainingTaskMetadata_ + : trainingTaskMetadataBuilder_.build(); } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000040) != 0)) { + result.modelToUpload_ = + modelToUploadBuilder_ == null ? modelToUpload_ : modelToUploadBuilder_.build(); } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000080) != 0)) { + result.modelId_ = modelId_; } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000100) != 0)) { + result.parentModel_ = parentModel_; } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (encryptionSpecBuilder_ == null) { - result.encryptionSpec_ = encryptionSpec_; - } else { - result.encryptionSpec_ = encryptionSpecBuilder_.build(); + if (((from_bitField0_ & 0x00000200) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -1767,10 +1784,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrainingPipeline ot return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasInputDataConfig()) { @@ -1778,6 +1797,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrainingPipeline ot } if (!other.getTrainingTaskDefinition().isEmpty()) { trainingTaskDefinition_ = other.trainingTaskDefinition_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasTrainingTaskInputs()) { @@ -1791,10 +1811,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrainingPipeline ot } if (!other.getModelId().isEmpty()) { modelId_ = other.modelId_; + bitField0_ |= 0x00000080; onChanged(); } if (!other.getParentModel().isEmpty()) { parentModel_ = other.parentModel_; + bitField0_ |= 0x00000100; onChanged(); } if (other.state_ != 0) { @@ -1816,6 +1838,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TrainingPipeline ot mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00008000; if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } @@ -1848,81 +1871,81 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getInputDataConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { trainingTaskDefinition_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getTrainingTaskInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getTrainingTaskMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage(getModelToUploadFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 58 case 72: { state_ = input.readEnum(); - + bitField0_ |= 0x00000200; break; } // case 72 case 82: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 82 case 90: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000800; break; } // case 90 case 98: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00001000; break; } // case 98 case 106: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00002000; break; } // case 106 case 114: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00004000; break; } // case 114 case 122: @@ -1934,24 +1957,25 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00008000; break; } // case 122 case 146: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00010000; break; } // case 146 case 170: { parentModel_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 170 case 178: { modelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 178 default: @@ -2034,8 +2058,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2051,8 +2075,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2073,8 +2097,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2140,8 +2164,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2157,8 +2181,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2179,8 +2203,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2211,7 +2235,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the inputDataConfig field is set. */ public boolean hasInputDataConfig() { - return inputDataConfigBuilder_ != null || inputDataConfig_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -2264,11 +2288,11 @@ public Builder setInputDataConfig(com.google.cloud.aiplatform.v1beta1.InputDataC throw new NullPointerException(); } inputDataConfig_ = value; - onChanged(); } else { inputDataConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2292,11 +2316,11 @@ public Builder setInputDataConfig( com.google.cloud.aiplatform.v1beta1.InputDataConfig.Builder builderForValue) { if (inputDataConfigBuilder_ == null) { inputDataConfig_ = builderForValue.build(); - onChanged(); } else { inputDataConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2318,19 +2342,19 @@ public Builder setInputDataConfig( */ public Builder mergeInputDataConfig(com.google.cloud.aiplatform.v1beta1.InputDataConfig value) { if (inputDataConfigBuilder_ == null) { - if (inputDataConfig_ != null) { - inputDataConfig_ = - com.google.cloud.aiplatform.v1beta1.InputDataConfig.newBuilder(inputDataConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && inputDataConfig_ != null + && inputDataConfig_ + != com.google.cloud.aiplatform.v1beta1.InputDataConfig.getDefaultInstance()) { + getInputDataConfigBuilder().mergeFrom(value); } else { inputDataConfig_ = value; } - onChanged(); } else { inputDataConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2351,14 +2375,13 @@ public Builder mergeInputDataConfig(com.google.cloud.aiplatform.v1beta1.InputDat * .google.cloud.aiplatform.v1beta1.InputDataConfig input_data_config = 3; */ public Builder clearInputDataConfig() { - if (inputDataConfigBuilder_ == null) { - inputDataConfig_ = null; - onChanged(); - } else { - inputDataConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + inputDataConfig_ = null; + if (inputDataConfigBuilder_ != null) { + inputDataConfigBuilder_.dispose(); inputDataConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -2379,7 +2402,7 @@ public Builder clearInputDataConfig() { * .google.cloud.aiplatform.v1beta1.InputDataConfig input_data_config = 3; */ public com.google.cloud.aiplatform.v1beta1.InputDataConfig.Builder getInputDataConfigBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getInputDataConfigFieldBuilder().getBuilder(); } @@ -2526,8 +2549,8 @@ public Builder setTrainingTaskDefinition(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - trainingTaskDefinition_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2550,8 +2573,8 @@ public Builder setTrainingTaskDefinition(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTrainingTaskDefinition() { - trainingTaskDefinition_ = getDefaultInstance().getTrainingTaskDefinition(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2579,8 +2602,8 @@ public Builder setTrainingTaskDefinitionBytes(com.google.protobuf.ByteString val throw new NullPointerException(); } checkByteStringIsUtf8(value); - trainingTaskDefinition_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2607,7 +2630,7 @@ public Builder setTrainingTaskDefinitionBytes(com.google.protobuf.ByteString val * @return Whether the trainingTaskInputs field is set. */ public boolean hasTrainingTaskInputs() { - return trainingTaskInputsBuilder_ != null || trainingTaskInputs_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2652,11 +2675,11 @@ public Builder setTrainingTaskInputs(com.google.protobuf.Value value) { throw new NullPointerException(); } trainingTaskInputs_ = value; - onChanged(); } else { trainingTaskInputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2675,11 +2698,11 @@ public Builder setTrainingTaskInputs(com.google.protobuf.Value value) { public Builder setTrainingTaskInputs(com.google.protobuf.Value.Builder builderForValue) { if (trainingTaskInputsBuilder_ == null) { trainingTaskInputs_ = builderForValue.build(); - onChanged(); } else { trainingTaskInputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2697,19 +2720,18 @@ public Builder setTrainingTaskInputs(com.google.protobuf.Value.Builder builderFo */ public Builder mergeTrainingTaskInputs(com.google.protobuf.Value value) { if (trainingTaskInputsBuilder_ == null) { - if (trainingTaskInputs_ != null) { - trainingTaskInputs_ = - com.google.protobuf.Value.newBuilder(trainingTaskInputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && trainingTaskInputs_ != null + && trainingTaskInputs_ != com.google.protobuf.Value.getDefaultInstance()) { + getTrainingTaskInputsBuilder().mergeFrom(value); } else { trainingTaskInputs_ = value; } - onChanged(); } else { trainingTaskInputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2726,14 +2748,13 @@ public Builder mergeTrainingTaskInputs(com.google.protobuf.Value value) { * */ public Builder clearTrainingTaskInputs() { - if (trainingTaskInputsBuilder_ == null) { - trainingTaskInputs_ = null; - onChanged(); - } else { - trainingTaskInputs_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + trainingTaskInputs_ = null; + if (trainingTaskInputsBuilder_ != null) { + trainingTaskInputsBuilder_.dispose(); trainingTaskInputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -2750,7 +2771,7 @@ public Builder clearTrainingTaskInputs() { * */ public com.google.protobuf.Value.Builder getTrainingTaskInputsBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getTrainingTaskInputsFieldBuilder().getBuilder(); } @@ -2833,7 +2854,7 @@ public com.google.protobuf.ValueOrBuilder getTrainingTaskInputsOrBuilder() { * @return Whether the trainingTaskMetadata field is set. */ public boolean hasTrainingTaskMetadata() { - return trainingTaskMetadataBuilder_ != null || trainingTaskMetadata_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2888,11 +2909,11 @@ public Builder setTrainingTaskMetadata(com.google.protobuf.Value value) { throw new NullPointerException(); } trainingTaskMetadata_ = value; - onChanged(); } else { trainingTaskMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2916,11 +2937,11 @@ public Builder setTrainingTaskMetadata(com.google.protobuf.Value value) { public Builder setTrainingTaskMetadata(com.google.protobuf.Value.Builder builderForValue) { if (trainingTaskMetadataBuilder_ == null) { trainingTaskMetadata_ = builderForValue.build(); - onChanged(); } else { trainingTaskMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2943,19 +2964,18 @@ public Builder setTrainingTaskMetadata(com.google.protobuf.Value.Builder builder */ public Builder mergeTrainingTaskMetadata(com.google.protobuf.Value value) { if (trainingTaskMetadataBuilder_ == null) { - if (trainingTaskMetadata_ != null) { - trainingTaskMetadata_ = - com.google.protobuf.Value.newBuilder(trainingTaskMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && trainingTaskMetadata_ != null + && trainingTaskMetadata_ != com.google.protobuf.Value.getDefaultInstance()) { + getTrainingTaskMetadataBuilder().mergeFrom(value); } else { trainingTaskMetadata_ = value; } - onChanged(); } else { trainingTaskMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2977,14 +2997,13 @@ public Builder mergeTrainingTaskMetadata(com.google.protobuf.Value value) { * */ public Builder clearTrainingTaskMetadata() { - if (trainingTaskMetadataBuilder_ == null) { - trainingTaskMetadata_ = null; - onChanged(); - } else { - trainingTaskMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + trainingTaskMetadata_ = null; + if (trainingTaskMetadataBuilder_ != null) { + trainingTaskMetadataBuilder_.dispose(); trainingTaskMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -3006,7 +3025,7 @@ public Builder clearTrainingTaskMetadata() { * */ public com.google.protobuf.Value.Builder getTrainingTaskMetadataBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getTrainingTaskMetadataFieldBuilder().getBuilder(); } @@ -3106,7 +3125,7 @@ public com.google.protobuf.ValueOrBuilder getTrainingTaskMetadataOrBuilder() { * @return Whether the modelToUpload field is set. */ public boolean hasModelToUpload() { - return modelToUploadBuilder_ != null || modelToUpload_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -3175,11 +3194,11 @@ public Builder setModelToUpload(com.google.cloud.aiplatform.v1beta1.Model value) throw new NullPointerException(); } modelToUpload_ = value; - onChanged(); } else { modelToUploadBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -3211,11 +3230,11 @@ public Builder setModelToUpload( com.google.cloud.aiplatform.v1beta1.Model.Builder builderForValue) { if (modelToUploadBuilder_ == null) { modelToUpload_ = builderForValue.build(); - onChanged(); } else { modelToUploadBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -3245,19 +3264,18 @@ public Builder setModelToUpload( */ public Builder mergeModelToUpload(com.google.cloud.aiplatform.v1beta1.Model value) { if (modelToUploadBuilder_ == null) { - if (modelToUpload_ != null) { - modelToUpload_ = - com.google.cloud.aiplatform.v1beta1.Model.newBuilder(modelToUpload_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && modelToUpload_ != null + && modelToUpload_ != com.google.cloud.aiplatform.v1beta1.Model.getDefaultInstance()) { + getModelToUploadBuilder().mergeFrom(value); } else { modelToUpload_ = value; } - onChanged(); } else { modelToUploadBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -3286,14 +3304,13 @@ public Builder mergeModelToUpload(com.google.cloud.aiplatform.v1beta1.Model valu * .google.cloud.aiplatform.v1beta1.Model model_to_upload = 7; */ public Builder clearModelToUpload() { - if (modelToUploadBuilder_ == null) { - modelToUpload_ = null; - onChanged(); - } else { - modelToUpload_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + modelToUpload_ = null; + if (modelToUploadBuilder_ != null) { + modelToUploadBuilder_.dispose(); modelToUploadBuilder_ = null; } - + onChanged(); return this; } /** @@ -3322,7 +3339,7 @@ public Builder clearModelToUpload() { * .google.cloud.aiplatform.v1beta1.Model model_to_upload = 7; */ public com.google.cloud.aiplatform.v1beta1.Model.Builder getModelToUploadBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getModelToUploadFieldBuilder().getBuilder(); } @@ -3472,8 +3489,8 @@ public Builder setModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelId_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3492,8 +3509,8 @@ public Builder setModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelId() { - modelId_ = getDefaultInstance().getModelId(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -3517,8 +3534,8 @@ public Builder setModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelId_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3590,8 +3607,8 @@ public Builder setParentModel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parentModel_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3609,8 +3626,8 @@ public Builder setParentModel(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParentModel() { - parentModel_ = getDefaultInstance().getParentModel(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -3633,8 +3650,8 @@ public Builder setParentModelBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parentModel_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3672,8 +3689,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3692,9 +3709,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.PipelineState getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.PipelineState result = - com.google.cloud.aiplatform.v1beta1.PipelineState.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.PipelineState.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.PipelineState.UNRECOGNIZED : result; @@ -3717,7 +3733,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.PipelineState value) if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000200; state_ = value.getNumber(); onChanged(); return this; @@ -3736,7 +3752,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.PipelineState value) * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000200); state_ = 0; onChanged(); return this; @@ -3759,7 +3775,7 @@ public Builder clearState() { * @return Whether the error field is set. */ public boolean hasError() { - return errorBuilder_ != null || error_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -3796,11 +3812,11 @@ public Builder setError(com.google.rpc.Status value) { throw new NullPointerException(); } error_ = value; - onChanged(); } else { errorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3816,11 +3832,11 @@ public Builder setError(com.google.rpc.Status value) { public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); - onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3835,16 +3851,18 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (error_ != null) { - error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); } else { error_ = value; } - onChanged(); } else { errorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3858,14 +3876,13 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); errorBuilder_ = null; } - + onChanged(); return this; } /** @@ -3879,7 +3896,7 @@ public Builder clearError() { * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getErrorFieldBuilder().getBuilder(); } @@ -3944,7 +3961,7 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -3985,11 +4002,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -4006,11 +4023,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -4026,17 +4043,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000800) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -4051,14 +4069,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000800); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -4073,7 +4090,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000800; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -4146,7 +4163,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -4187,11 +4204,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -4209,11 +4226,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -4230,17 +4247,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00001000) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -4256,14 +4274,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00001000); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -4279,7 +4296,7 @@ public Builder clearStartTime() { * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00001000; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -4352,7 +4369,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -4393,11 +4410,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -4415,11 +4432,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -4436,17 +4453,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00002000) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -4462,14 +4480,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00002000); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -4485,7 +4502,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00002000; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -4557,7 +4574,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -4598,11 +4615,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -4619,11 +4636,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -4639,17 +4656,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00004000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -4664,14 +4682,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00004000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -4686,7 +4703,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00004000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -4749,14 +4766,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00008000; + onChanged(); return labels_; } @@ -4820,8 +4837,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 15; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -4854,6 +4873,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00008000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -4880,6 +4900,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00008000; return internalGetMutableLabels().getMutableMap(); } /** @@ -4902,8 +4923,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00008000; return this; } /** @@ -4921,6 +4942,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00008000; return this; } @@ -4946,7 +4968,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -4991,11 +5013,11 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS throw new NullPointerException(); } encryptionSpec_ = value; - onChanged(); } else { encryptionSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -5015,11 +5037,11 @@ public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); - onChanged(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -5037,19 +5059,19 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (encryptionSpec_ != null) { - encryptionSpec_ = - com.google.cloud.aiplatform.v1beta1.EncryptionSpec.newBuilder(encryptionSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00010000) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); } else { encryptionSpec_ = value; } - onChanged(); } else { encryptionSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00010000; + onChanged(); return this; } /** @@ -5066,14 +5088,13 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 18; */ public Builder clearEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - encryptionSpec_ = null; - onChanged(); - } else { - encryptionSpec_ = null; + bitField0_ = (bitField0_ & ~0x00010000); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); encryptionSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -5090,7 +5111,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 18; */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - + bitField0_ |= 0x00010000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineOrBuilder.java index 112995df6d06..498cc703dca6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineOrBuilder.java @@ -709,7 +709,6 @@ public interface TrainingPipelineOrBuilder * * map<string, string> labels = 15; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Trial.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Trial.java index 495bf788d50c..a27fcfdd415b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Trial.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Trial.java @@ -447,7 +447,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARAMETER_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object parameterId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parameterId_ = ""; /** * * @@ -554,7 +556,7 @@ public com.google.protobuf.Value getValue() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { - return getValue(); + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; } private byte memoizedIsInitialized = -1; @@ -771,12 +773,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parameterId_ = ""; - - if (valueBuilder_ == null) { - value_ = null; - } else { - value_ = null; + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); valueBuilder_ = null; } return this; @@ -806,16 +807,23 @@ public com.google.cloud.aiplatform.v1beta1.Trial.Parameter build() { public com.google.cloud.aiplatform.v1beta1.Trial.Parameter buildPartial() { com.google.cloud.aiplatform.v1beta1.Trial.Parameter result = new com.google.cloud.aiplatform.v1beta1.Trial.Parameter(this); - result.parameterId_ = parameterId_; - if (valueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = valueBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Trial.Parameter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parameterId_ = parameterId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -866,6 +874,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Trial.Parameter oth return this; if (!other.getParameterId().isEmpty()) { parameterId_ = other.parameterId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasValue()) { @@ -900,13 +909,13 @@ public Builder mergeFrom( case 10: { parameterId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -926,6 +935,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parameterId_ = ""; /** * @@ -993,8 +1004,8 @@ public Builder setParameterId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parameterId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1012,8 +1023,8 @@ public Builder setParameterId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParameterId() { - parameterId_ = getDefaultInstance().getParameterId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1036,8 +1047,8 @@ public Builder setParameterIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parameterId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1064,7 +1075,7 @@ public Builder setParameterIdBytes(com.google.protobuf.ByteString value) { * @return Whether the value field is set. */ public boolean hasValue() { - return valueBuilder_ != null || value_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1107,11 +1118,11 @@ public Builder setValue(com.google.protobuf.Value value) { throw new NullPointerException(); } value_ = value; - onChanged(); } else { valueBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1130,11 +1141,11 @@ public Builder setValue(com.google.protobuf.Value value) { public Builder setValue(com.google.protobuf.Value.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); - onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1152,16 +1163,18 @@ public Builder setValue(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeValue(com.google.protobuf.Value value) { if (valueBuilder_ == null) { - if (value_ != null) { - value_ = com.google.protobuf.Value.newBuilder(value_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && value_ != null + && value_ != com.google.protobuf.Value.getDefaultInstance()) { + getValueBuilder().mergeFrom(value); } else { value_ = value; } - onChanged(); } else { valueBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1178,14 +1191,13 @@ public Builder mergeValue(com.google.protobuf.Value value) { * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearValue() { - if (valueBuilder_ == null) { - value_ = null; - onChanged(); - } else { - value_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); valueBuilder_ = null; } - + onChanged(); return this; } /** @@ -1202,7 +1214,7 @@ public Builder clearValue() { * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Value.Builder getValueBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getValueFieldBuilder().getBuilder(); } @@ -1321,7 +1333,9 @@ public com.google.cloud.aiplatform.v1beta1.Trial.Parameter getDefaultInstanceFor } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -1370,7 +1384,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int ID_FIELD_NUMBER = 2; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -1419,7 +1435,7 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int STATE_FIELD_NUMBER = 3; - private int state_; + private int state_ = 0; /** * * @@ -1452,13 +1468,14 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Trial.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Trial.State result = - com.google.cloud.aiplatform.v1beta1.Trial.State.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.Trial.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.Trial.State.UNRECOGNIZED : result; } public static final int PARAMETERS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List parameters_; /** * @@ -1589,10 +1606,14 @@ public com.google.cloud.aiplatform.v1beta1.Measurement getFinalMeasurement() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.MeasurementOrBuilder getFinalMeasurementOrBuilder() { - return getFinalMeasurement(); + return finalMeasurement_ == null + ? com.google.cloud.aiplatform.v1beta1.Measurement.getDefaultInstance() + : finalMeasurement_; } public static final int MEASUREMENTS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") private java.util.List measurements_; /** * @@ -1728,7 +1749,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 8; @@ -1780,11 +1801,13 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } public static final int CLIENT_ID_FIELD_NUMBER = 9; - private volatile java.lang.Object clientId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; /** * * @@ -1847,7 +1870,9 @@ public com.google.protobuf.ByteString getClientIdBytes() { } public static final int INFEASIBLE_REASON_FIELD_NUMBER = 10; - private volatile java.lang.Object infeasibleReason_; + + @SuppressWarnings("serial") + private volatile java.lang.Object infeasibleReason_ = ""; /** * * @@ -1898,7 +1923,9 @@ public com.google.protobuf.ByteString getInfeasibleReasonBytes() { } public static final int CUSTOM_JOB_FIELD_NUMBER = 11; - private volatile java.lang.Object customJob_; + + @SuppressWarnings("serial") + private volatile java.lang.Object customJob_ = ""; /** * * @@ -1965,6 +1992,7 @@ private static final class WebAccessUrisDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField webAccessUris_; private com.google.protobuf.MapField @@ -2066,8 +2094,10 @@ public java.util.Map getWebAccessUrisMap() { * */ @java.lang.Override - public java.lang.String getWebAccessUrisOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getWebAccessUrisOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -2454,23 +2484,20 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - id_ = ""; - state_ = 0; - if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); } else { parameters_ = null; parametersBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (finalMeasurementBuilder_ == null) { - finalMeasurement_ = null; - } else { - finalMeasurement_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + finalMeasurement_ = null; + if (finalMeasurementBuilder_ != null) { + finalMeasurementBuilder_.dispose(); finalMeasurementBuilder_ = null; } if (measurementsBuilder_ == null) { @@ -2479,25 +2506,20 @@ public Builder clear() { measurements_ = null; measurementsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } clientId_ = ""; - infeasibleReason_ = ""; - customJob_ = ""; - internalGetMutableWebAccessUris().clear(); return this; } @@ -2526,50 +2548,69 @@ public com.google.cloud.aiplatform.v1beta1.Trial build() { public com.google.cloud.aiplatform.v1beta1.Trial buildPartial() { com.google.cloud.aiplatform.v1beta1.Trial result = new com.google.cloud.aiplatform.v1beta1.Trial(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.id_ = id_; - result.state_ = state_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.Trial result) { if (parametersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { parameters_ = java.util.Collections.unmodifiableList(parameters_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.parameters_ = parameters_; } else { result.parameters_ = parametersBuilder_.build(); } - if (finalMeasurementBuilder_ == null) { - result.finalMeasurement_ = finalMeasurement_; - } else { - result.finalMeasurement_ = finalMeasurementBuilder_.build(); - } if (measurementsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { measurements_ = java.util.Collections.unmodifiableList(measurements_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } result.measurements_ = measurements_; } else { result.measurements_ = measurementsBuilder_.build(); } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Trial result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.finalMeasurement_ = + finalMeasurementBuilder_ == null ? finalMeasurement_ : finalMeasurementBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.clientId_ = clientId_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.infeasibleReason_ = infeasibleReason_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.customJob_ = customJob_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.webAccessUris_ = internalGetWebAccessUris(); + result.webAccessUris_.makeImmutable(); } - result.clientId_ = clientId_; - result.infeasibleReason_ = infeasibleReason_; - result.customJob_ = customJob_; - result.webAccessUris_ = internalGetWebAccessUris(); - result.webAccessUris_.makeImmutable(); - onBuilt(); - return result; } @java.lang.Override @@ -2619,10 +2660,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Trial other) { if (other == com.google.cloud.aiplatform.v1beta1.Trial.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000002; onChanged(); } if (other.state_ != 0) { @@ -2632,7 +2675,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Trial other) { if (!other.parameters_.isEmpty()) { if (parameters_.isEmpty()) { parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureParametersIsMutable(); parameters_.addAll(other.parameters_); @@ -2645,7 +2688,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Trial other) { parametersBuilder_.dispose(); parametersBuilder_ = null; parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); parametersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParametersFieldBuilder() @@ -2662,7 +2705,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Trial other) { if (!other.measurements_.isEmpty()) { if (measurements_.isEmpty()) { measurements_ = other.measurements_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureMeasurementsIsMutable(); measurements_.addAll(other.measurements_); @@ -2675,7 +2718,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Trial other) { measurementsBuilder_.dispose(); measurementsBuilder_ = null; measurements_ = other.measurements_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); measurementsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMeasurementsFieldBuilder() @@ -2693,17 +2736,21 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Trial other) { } if (!other.getClientId().isEmpty()) { clientId_ = other.clientId_; + bitField0_ |= 0x00000100; onChanged(); } if (!other.getInfeasibleReason().isEmpty()) { infeasibleReason_ = other.infeasibleReason_; + bitField0_ |= 0x00000200; onChanged(); } if (!other.getCustomJob().isEmpty()) { customJob_ = other.customJob_; + bitField0_ |= 0x00000400; onChanged(); } internalGetMutableWebAccessUris().mergeFrom(other.internalGetWebAccessUris()); + bitField0_ |= 0x00000800; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2733,19 +2780,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { state_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: @@ -2766,7 +2813,7 @@ public Builder mergeFrom( { input.readMessage( getFinalMeasurementFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: @@ -2786,31 +2833,31 @@ public Builder mergeFrom( case 58: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 66 case 74: { clientId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 74 case 82: { infeasibleReason_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000200; break; } // case 82 case 90: { customJob_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000400; break; } // case 90 case 98: @@ -2822,6 +2869,7 @@ public Builder mergeFrom( internalGetMutableWebAccessUris() .getMutableMap() .put(webAccessUris__.getKey(), webAccessUris__.getValue()); + bitField0_ |= 0x00000800; break; } // case 98 default: @@ -2904,8 +2952,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2921,8 +2969,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2943,8 +2991,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3010,8 +3058,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3027,8 +3075,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3049,8 +3097,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3088,8 +3136,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3108,9 +3156,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.Trial.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.Trial.State result = - com.google.cloud.aiplatform.v1beta1.Trial.State.valueOf(state_); + com.google.cloud.aiplatform.v1beta1.Trial.State.forNumber(state_); return result == null ? com.google.cloud.aiplatform.v1beta1.Trial.State.UNRECOGNIZED : result; } /** @@ -3131,7 +3178,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.Trial.State value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; state_ = value.getNumber(); onChanged(); return this; @@ -3150,7 +3197,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.Trial.State value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000004); state_ = 0; onChanged(); return this; @@ -3160,11 +3207,11 @@ public Builder clearState() { java.util.Collections.emptyList(); private void ensureParametersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { parameters_ = new java.util.ArrayList( parameters_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -3404,7 +3451,7 @@ public Builder addAllParameters( public Builder clearParameters() { if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { parametersBuilder_.clear(); @@ -3544,7 +3591,7 @@ public com.google.cloud.aiplatform.v1beta1.Trial.Parameter.Builder addParameters com.google.cloud.aiplatform.v1beta1.Trial.Parameter, com.google.cloud.aiplatform.v1beta1.Trial.Parameter.Builder, com.google.cloud.aiplatform.v1beta1.Trial.ParameterOrBuilder>( - parameters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + parameters_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; @@ -3570,7 +3617,7 @@ public com.google.cloud.aiplatform.v1beta1.Trial.Parameter.Builder addParameters * @return Whether the finalMeasurement field is set. */ public boolean hasFinalMeasurement() { - return finalMeasurementBuilder_ != null || finalMeasurement_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -3611,11 +3658,11 @@ public Builder setFinalMeasurement(com.google.cloud.aiplatform.v1beta1.Measureme throw new NullPointerException(); } finalMeasurement_ = value; - onChanged(); } else { finalMeasurementBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3633,11 +3680,11 @@ public Builder setFinalMeasurement( com.google.cloud.aiplatform.v1beta1.Measurement.Builder builderForValue) { if (finalMeasurementBuilder_ == null) { finalMeasurement_ = builderForValue.build(); - onChanged(); } else { finalMeasurementBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3653,19 +3700,19 @@ public Builder setFinalMeasurement( */ public Builder mergeFinalMeasurement(com.google.cloud.aiplatform.v1beta1.Measurement value) { if (finalMeasurementBuilder_ == null) { - if (finalMeasurement_ != null) { - finalMeasurement_ = - com.google.cloud.aiplatform.v1beta1.Measurement.newBuilder(finalMeasurement_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && finalMeasurement_ != null + && finalMeasurement_ + != com.google.cloud.aiplatform.v1beta1.Measurement.getDefaultInstance()) { + getFinalMeasurementBuilder().mergeFrom(value); } else { finalMeasurement_ = value; } - onChanged(); } else { finalMeasurementBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3680,14 +3727,13 @@ public Builder mergeFinalMeasurement(com.google.cloud.aiplatform.v1beta1.Measure * */ public Builder clearFinalMeasurement() { - if (finalMeasurementBuilder_ == null) { - finalMeasurement_ = null; - onChanged(); - } else { - finalMeasurement_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + finalMeasurement_ = null; + if (finalMeasurementBuilder_ != null) { + finalMeasurementBuilder_.dispose(); finalMeasurementBuilder_ = null; } - + onChanged(); return this; } /** @@ -3702,7 +3748,7 @@ public Builder clearFinalMeasurement() { * */ public com.google.cloud.aiplatform.v1beta1.Measurement.Builder getFinalMeasurementBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getFinalMeasurementFieldBuilder().getBuilder(); } @@ -3758,10 +3804,10 @@ public com.google.cloud.aiplatform.v1beta1.MeasurementOrBuilder getFinalMeasurem java.util.Collections.emptyList(); private void ensureMeasurementsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { measurements_ = new java.util.ArrayList(measurements_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000020; } } @@ -4023,7 +4069,7 @@ public Builder addAllMeasurements( public Builder clearMeasurements() { if (measurementsBuilder_ == null) { measurements_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { measurementsBuilder_.clear(); @@ -4176,7 +4222,7 @@ public com.google.cloud.aiplatform.v1beta1.Measurement.Builder addMeasurementsBu com.google.cloud.aiplatform.v1beta1.Measurement, com.google.cloud.aiplatform.v1beta1.Measurement.Builder, com.google.cloud.aiplatform.v1beta1.MeasurementOrBuilder>( - measurements_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + measurements_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); measurements_ = null; } return measurementsBuilder_; @@ -4201,7 +4247,7 @@ public com.google.cloud.aiplatform.v1beta1.Measurement.Builder addMeasurementsBu * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -4238,11 +4284,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -4258,11 +4304,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -4277,17 +4323,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -4301,14 +4348,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -4322,7 +4368,7 @@ public Builder clearStartTime() { * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -4390,7 +4436,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -4429,11 +4475,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -4450,11 +4496,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -4470,17 +4516,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -4495,14 +4542,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -4517,7 +4563,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -4649,8 +4695,8 @@ public Builder setClientId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - clientId_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4673,8 +4719,8 @@ public Builder setClientId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearClientId() { - clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -4702,8 +4748,8 @@ public Builder setClientIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - clientId_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4772,8 +4818,8 @@ public Builder setInfeasibleReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - infeasibleReason_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4790,8 +4836,8 @@ public Builder setInfeasibleReason(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInfeasibleReason() { - infeasibleReason_ = getDefaultInstance().getInfeasibleReason(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -4813,8 +4859,8 @@ public Builder setInfeasibleReasonBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - infeasibleReason_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4889,8 +4935,8 @@ public Builder setCustomJob(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - customJob_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4909,8 +4955,8 @@ public Builder setCustomJob(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCustomJob() { - customJob_ = getDefaultInstance().getCustomJob(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -4934,8 +4980,8 @@ public Builder setCustomJobBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - customJob_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4953,8 +4999,6 @@ public Builder setCustomJobBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.MapField internalGetMutableWebAccessUris() { - onChanged(); - ; if (webAccessUris_ == null) { webAccessUris_ = com.google.protobuf.MapField.newMapField(WebAccessUrisDefaultEntryHolder.defaultEntry); @@ -4962,6 +5006,8 @@ public Builder setCustomJobBytes(com.google.protobuf.ByteString value) { if (!webAccessUris_.isMutable()) { webAccessUris_ = webAccessUris_.copy(); } + bitField0_ |= 0x00000800; + onChanged(); return webAccessUris_; } @@ -5055,8 +5101,10 @@ public java.util.Map getWebAccessUrisMap() { * */ @java.lang.Override - public java.lang.String getWebAccessUrisOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getWebAccessUrisOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -5099,6 +5147,7 @@ public java.lang.String getWebAccessUrisOrThrow(java.lang.String key) { } public Builder clearWebAccessUris() { + bitField0_ = (bitField0_ & ~0x00000800); internalGetMutableWebAccessUris().getMutableMap().clear(); return this; } @@ -5135,6 +5184,7 @@ public Builder removeWebAccessUris(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableWebAccessUris() { + bitField0_ |= 0x00000800; return internalGetMutableWebAccessUris().getMutableMap(); } /** @@ -5167,8 +5217,8 @@ public Builder putWebAccessUris(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableWebAccessUris().getMutableMap().put(key, value); + bitField0_ |= 0x00000800; return this; } /** @@ -5196,6 +5246,7 @@ public Builder putWebAccessUris(java.lang.String key, java.lang.String value) { */ public Builder putAllWebAccessUris(java.util.Map values) { internalGetMutableWebAccessUris().getMutableMap().putAll(values); + bitField0_ |= 0x00000800; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialOrBuilder.java index 07db99695d0d..d84805e012ba 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialOrBuilder.java @@ -551,7 +551,6 @@ public interface TrialOrBuilder * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - /* nullable */ java.lang.String getWebAccessUrisOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexOperationMetadata.java index 20224c816349..60ec7b6ae6b8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexOperationMetadata.java @@ -113,7 +113,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -322,10 +324,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -357,15 +359,22 @@ public com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata build( public com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -447,7 +456,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -467,6 +476,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -485,7 +496,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -523,11 +534,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -543,11 +554,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -562,20 +573,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -588,14 +599,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -609,7 +619,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexRequest.java index f2b8fc37226b..d48f4d3c0687 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployIndexRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INDEX_ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object indexEndpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object indexEndpoint_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getIndexEndpointBytes() { } public static final int DEPLOYED_INDEX_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deployedIndexId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedIndexId_ = ""; /** * * @@ -385,10 +389,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; indexEndpoint_ = ""; - deployedIndexId_ = ""; - return this; } @@ -416,12 +419,23 @@ public com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest build() { public com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest result = new com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest(this); - result.indexEndpoint_ = indexEndpoint_; - result.deployedIndexId_ = deployedIndexId_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.indexEndpoint_ = indexEndpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedIndexId_ = deployedIndexId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -470,10 +484,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UndeployIndexReques return this; if (!other.getIndexEndpoint().isEmpty()) { indexEndpoint_ = other.indexEndpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDeployedIndexId().isEmpty()) { deployedIndexId_ = other.deployedIndexId_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -505,13 +521,13 @@ public Builder mergeFrom( case 10: { indexEndpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { deployedIndexId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -531,6 +547,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object indexEndpoint_ = ""; /** * @@ -604,8 +622,8 @@ public Builder setIndexEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - indexEndpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -625,8 +643,8 @@ public Builder setIndexEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearIndexEndpoint() { - indexEndpoint_ = getDefaultInstance().getIndexEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -651,8 +669,8 @@ public Builder setIndexEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - indexEndpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -721,8 +739,8 @@ public Builder setDeployedIndexId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedIndexId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -739,8 +757,8 @@ public Builder setDeployedIndexId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedIndexId() { - deployedIndexId_ = getDefaultInstance().getDeployedIndexId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -762,8 +780,8 @@ public Builder setDeployedIndexIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedIndexId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployModelOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployModelOperationMetadata.java index 10c66b4f4eb9..a50d6e1bc84f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployModelOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployModelOperationMetadata.java @@ -113,7 +113,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -322,10 +324,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -357,15 +359,22 @@ public com.google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata build( public com.google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -447,7 +456,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -467,6 +476,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -485,7 +496,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -523,11 +534,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -543,11 +554,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -562,20 +573,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -588,14 +599,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -609,7 +619,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployModelRequest.java index 79c419d71170..ef4029614ebf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UndeployModelRequest.java @@ -81,7 +81,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object endpoint_; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; /** * * @@ -138,7 +140,9 @@ public com.google.protobuf.ByteString getEndpointBytes() { } public static final int DEPLOYED_MODEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deployedModelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployedModelId_ = ""; /** * * @@ -199,6 +203,7 @@ private static final class TrafficSplitDefaultEntryHolder { 0); } + @SuppressWarnings("serial") private com.google.protobuf.MapField trafficSplit_; private com.google.protobuf.MapField @@ -555,10 +560,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; endpoint_ = ""; - deployedModelId_ = ""; - internalGetMutableTrafficSplit().clear(); return this; } @@ -587,15 +591,27 @@ public com.google.cloud.aiplatform.v1beta1.UndeployModelRequest build() { public com.google.cloud.aiplatform.v1beta1.UndeployModelRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UndeployModelRequest result = new com.google.cloud.aiplatform.v1beta1.UndeployModelRequest(this); - int from_bitField0_ = bitField0_; - result.endpoint_ = endpoint_; - result.deployedModelId_ = deployedModelId_; - result.trafficSplit_ = internalGetTrafficSplit(); - result.trafficSplit_.makeImmutable(); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.UndeployModelRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployedModelId_ = deployedModelId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.trafficSplit_ = internalGetTrafficSplit(); + result.trafficSplit_.makeImmutable(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -644,13 +660,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UndeployModelReques return this; if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDeployedModelId().isEmpty()) { deployedModelId_ = other.deployedModelId_; + bitField0_ |= 0x00000002; onChanged(); } internalGetMutableTrafficSplit().mergeFrom(other.internalGetTrafficSplit()); + bitField0_ |= 0x00000004; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -680,13 +699,13 @@ public Builder mergeFrom( case 10: { endpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { deployedModelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -698,6 +717,7 @@ public Builder mergeFrom( internalGetMutableTrafficSplit() .getMutableMap() .put(trafficSplit__.getKey(), trafficSplit__.getValue()); + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -792,8 +812,8 @@ public Builder setEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -813,8 +833,8 @@ public Builder setEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEndpoint() { - endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -839,8 +859,8 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -906,8 +926,8 @@ public Builder setDeployedModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -923,8 +943,8 @@ public Builder setDeployedModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployedModelId() { - deployedModelId_ = getDefaultInstance().getDeployedModelId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -945,8 +965,8 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployedModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -964,8 +984,6 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.MapField internalGetMutableTrafficSplit() { - onChanged(); - ; if (trafficSplit_ == null) { trafficSplit_ = com.google.protobuf.MapField.newMapField(TrafficSplitDefaultEntryHolder.defaultEntry); @@ -973,6 +991,8 @@ public Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value) { if (!trafficSplit_.isMutable()) { trafficSplit_ = trafficSplit_.copy(); } + bitField0_ |= 0x00000004; + onChanged(); return trafficSplit_; } @@ -1077,6 +1097,7 @@ public int getTrafficSplitOrThrow(java.lang.String key) { } public Builder clearTrafficSplit() { + bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableTrafficSplit().getMutableMap().clear(); return this; } @@ -1105,6 +1126,7 @@ public Builder removeTrafficSplit(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableTrafficSplit() { + bitField0_ |= 0x00000004; return internalGetMutableTrafficSplit().getMutableMap(); } /** @@ -1128,6 +1150,7 @@ public Builder putTrafficSplit(java.lang.String key, int value) { } internalGetMutableTrafficSplit().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; return this; } /** @@ -1147,6 +1170,7 @@ public Builder putTrafficSplit(java.lang.String key, int value) { */ public Builder putAllTrafficSplit(java.util.Map values) { internalGetMutableTrafficSplit().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UnmanagedContainerModel.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UnmanagedContainerModel.java index 5a94c06ebc9b..5958cc9587c0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UnmanagedContainerModel.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UnmanagedContainerModel.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ARTIFACT_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object artifactUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object artifactUri_ = ""; /** * * @@ -165,7 +167,9 @@ public com.google.cloud.aiplatform.v1beta1.PredictSchemata getPredictSchemata() @java.lang.Override public com.google.cloud.aiplatform.v1beta1.PredictSchemataOrBuilder getPredictSchemataOrBuilder() { - return getPredictSchemata(); + return predictSchemata_ == null + ? com.google.cloud.aiplatform.v1beta1.PredictSchemata.getDefaultInstance() + : predictSchemata_; } public static final int CONTAINER_SPEC_FIELD_NUMBER = 3; @@ -223,7 +227,9 @@ public com.google.cloud.aiplatform.v1beta1.ModelContainerSpec getContainerSpec() @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelContainerSpecOrBuilder getContainerSpecOrBuilder() { - return getContainerSpec(); + return containerSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.getDefaultInstance() + : containerSpec_; } private byte memoizedIsInitialized = -1; @@ -453,18 +459,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; artifactUri_ = ""; - - if (predictSchemataBuilder_ == null) { - predictSchemata_ = null; - } else { - predictSchemata_ = null; + predictSchemata_ = null; + if (predictSchemataBuilder_ != null) { + predictSchemataBuilder_.dispose(); predictSchemataBuilder_ = null; } - if (containerSpecBuilder_ == null) { - containerSpec_ = null; - } else { - containerSpec_ = null; + containerSpec_ = null; + if (containerSpecBuilder_ != null) { + containerSpecBuilder_.dispose(); containerSpecBuilder_ = null; } return this; @@ -494,21 +498,28 @@ public com.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel build() { public com.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel buildPartial() { com.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel result = new com.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel(this); - result.artifactUri_ = artifactUri_; - if (predictSchemataBuilder_ == null) { - result.predictSchemata_ = predictSchemata_; - } else { - result.predictSchemata_ = predictSchemataBuilder_.build(); - } - if (containerSpecBuilder_ == null) { - result.containerSpec_ = containerSpec_; - } else { - result.containerSpec_ = containerSpecBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.artifactUri_ = artifactUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.predictSchemata_ = + predictSchemataBuilder_ == null ? predictSchemata_ : predictSchemataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.containerSpec_ = + containerSpecBuilder_ == null ? containerSpec_ : containerSpecBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -557,6 +568,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UnmanagedContainerM return this; if (!other.getArtifactUri().isEmpty()) { artifactUri_ = other.artifactUri_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasPredictSchemata()) { @@ -594,19 +606,19 @@ public Builder mergeFrom( case 10: { artifactUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getPredictSchemataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getContainerSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -626,6 +638,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object artifactUri_ = ""; /** * @@ -690,8 +704,8 @@ public Builder setArtifactUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - artifactUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -708,8 +722,8 @@ public Builder setArtifactUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearArtifactUri() { - artifactUri_ = getDefaultInstance().getArtifactUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -731,8 +745,8 @@ public Builder setArtifactUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - artifactUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -755,7 +769,7 @@ public Builder setArtifactUriBytes(com.google.protobuf.ByteString value) { * @return Whether the predictSchemata field is set. */ public boolean hasPredictSchemata() { - return predictSchemataBuilder_ != null || predictSchemata_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -792,11 +806,11 @@ public Builder setPredictSchemata(com.google.cloud.aiplatform.v1beta1.PredictSch throw new NullPointerException(); } predictSchemata_ = value; - onChanged(); } else { predictSchemataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -812,11 +826,11 @@ public Builder setPredictSchemata( com.google.cloud.aiplatform.v1beta1.PredictSchemata.Builder builderForValue) { if (predictSchemataBuilder_ == null) { predictSchemata_ = builderForValue.build(); - onChanged(); } else { predictSchemataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -830,19 +844,19 @@ public Builder setPredictSchemata( */ public Builder mergePredictSchemata(com.google.cloud.aiplatform.v1beta1.PredictSchemata value) { if (predictSchemataBuilder_ == null) { - if (predictSchemata_ != null) { - predictSchemata_ = - com.google.cloud.aiplatform.v1beta1.PredictSchemata.newBuilder(predictSchemata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && predictSchemata_ != null + && predictSchemata_ + != com.google.cloud.aiplatform.v1beta1.PredictSchemata.getDefaultInstance()) { + getPredictSchemataBuilder().mergeFrom(value); } else { predictSchemata_ = value; } - onChanged(); } else { predictSchemataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -855,14 +869,13 @@ public Builder mergePredictSchemata(com.google.cloud.aiplatform.v1beta1.PredictS * .google.cloud.aiplatform.v1beta1.PredictSchemata predict_schemata = 2; */ public Builder clearPredictSchemata() { - if (predictSchemataBuilder_ == null) { - predictSchemata_ = null; - onChanged(); - } else { - predictSchemata_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + predictSchemata_ = null; + if (predictSchemataBuilder_ != null) { + predictSchemataBuilder_.dispose(); predictSchemataBuilder_ = null; } - + onChanged(); return this; } /** @@ -875,7 +888,7 @@ public Builder clearPredictSchemata() { * .google.cloud.aiplatform.v1beta1.PredictSchemata predict_schemata = 2; */ public com.google.cloud.aiplatform.v1beta1.PredictSchemata.Builder getPredictSchemataBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getPredictSchemataFieldBuilder().getBuilder(); } @@ -945,7 +958,7 @@ public com.google.cloud.aiplatform.v1beta1.PredictSchemata.Builder getPredictSch * @return Whether the containerSpec field is set. */ public boolean hasContainerSpec() { - return containerSpecBuilder_ != null || containerSpec_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -988,11 +1001,11 @@ public Builder setContainerSpec(com.google.cloud.aiplatform.v1beta1.ModelContain throw new NullPointerException(); } containerSpec_ = value; - onChanged(); } else { containerSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1011,11 +1024,11 @@ public Builder setContainerSpec( com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.Builder builderForValue) { if (containerSpecBuilder_ == null) { containerSpec_ = builderForValue.build(); - onChanged(); } else { containerSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1033,19 +1046,19 @@ public Builder setContainerSpec( public Builder mergeContainerSpec( com.google.cloud.aiplatform.v1beta1.ModelContainerSpec value) { if (containerSpecBuilder_ == null) { - if (containerSpec_ != null) { - containerSpec_ = - com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.newBuilder(containerSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && containerSpec_ != null + && containerSpec_ + != com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.getDefaultInstance()) { + getContainerSpecBuilder().mergeFrom(value); } else { containerSpec_ = value; } - onChanged(); } else { containerSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1061,14 +1074,13 @@ public Builder mergeContainerSpec( * */ public Builder clearContainerSpec() { - if (containerSpecBuilder_ == null) { - containerSpec_ = null; - onChanged(); - } else { - containerSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + containerSpec_ = null; + if (containerSpecBuilder_ != null) { + containerSpecBuilder_.dispose(); containerSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -1085,7 +1097,7 @@ public Builder clearContainerSpec() { */ public com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.Builder getContainerSpecBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getContainerSpecFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateArtifactRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateArtifactRequest.java index 43eef4f05721..d125567da0ae 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateArtifactRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateArtifactRequest.java @@ -129,7 +129,9 @@ public com.google.cloud.aiplatform.v1beta1.Artifact getArtifact() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder getArtifactOrBuilder() { - return getArtifact(); + return artifact_ == null + ? com.google.cloud.aiplatform.v1beta1.Artifact.getDefaultInstance() + : artifact_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -181,11 +183,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } public static final int ALLOW_MISSING_FIELD_NUMBER = 3; - private boolean allowMissing_; + private boolean allowMissing_ = false; /** * * @@ -431,20 +433,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (artifactBuilder_ == null) { - artifact_ = null; - } else { - artifact_ = null; + bitField0_ = 0; + artifact_ = null; + if (artifactBuilder_ != null) { + artifactBuilder_.dispose(); artifactBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } allowMissing_ = false; - return this; } @@ -472,21 +472,26 @@ public com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest build() { public com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest result = new com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest(this); - if (artifactBuilder_ == null) { - result.artifact_ = artifact_; - } else { - result.artifact_ = artifactBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - result.allowMissing_ = allowMissing_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.artifact_ = artifactBuilder_ == null ? artifact_ : artifactBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.allowMissing_ = allowMissing_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -571,19 +576,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getArtifactFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { allowMissing_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -603,6 +608,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.Artifact artifact_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.Artifact, @@ -627,7 +634,7 @@ public Builder mergeFrom( * @return Whether the artifact field is set. */ public boolean hasArtifact() { - return artifactBuilder_ != null || artifact_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -676,11 +683,11 @@ public Builder setArtifact(com.google.cloud.aiplatform.v1beta1.Artifact value) { throw new NullPointerException(); } artifact_ = value; - onChanged(); } else { artifactBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -702,11 +709,11 @@ public Builder setArtifact( com.google.cloud.aiplatform.v1beta1.Artifact.Builder builderForValue) { if (artifactBuilder_ == null) { artifact_ = builderForValue.build(); - onChanged(); } else { artifactBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -726,19 +733,18 @@ public Builder setArtifact( */ public Builder mergeArtifact(com.google.cloud.aiplatform.v1beta1.Artifact value) { if (artifactBuilder_ == null) { - if (artifact_ != null) { - artifact_ = - com.google.cloud.aiplatform.v1beta1.Artifact.newBuilder(artifact_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && artifact_ != null + && artifact_ != com.google.cloud.aiplatform.v1beta1.Artifact.getDefaultInstance()) { + getArtifactBuilder().mergeFrom(value); } else { artifact_ = value; } - onChanged(); } else { artifactBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -757,14 +763,13 @@ public Builder mergeArtifact(com.google.cloud.aiplatform.v1beta1.Artifact value) * */ public Builder clearArtifact() { - if (artifactBuilder_ == null) { - artifact_ = null; - onChanged(); - } else { - artifact_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + artifact_ = null; + if (artifactBuilder_ != null) { + artifactBuilder_.dispose(); artifactBuilder_ = null; } - + onChanged(); return this; } /** @@ -783,7 +788,7 @@ public Builder clearArtifact() { * */ public com.google.cloud.aiplatform.v1beta1.Artifact.Builder getArtifactBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getArtifactFieldBuilder().getBuilder(); } @@ -863,7 +868,7 @@ public com.google.cloud.aiplatform.v1beta1.ArtifactOrBuilder getArtifactOrBuilde * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -904,11 +909,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -925,11 +930,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -945,17 +950,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -970,14 +976,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -992,7 +997,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -1079,6 +1084,7 @@ public boolean getAllowMissing() { public Builder setAllowMissing(boolean value) { allowMissing_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1096,7 +1102,7 @@ public Builder setAllowMissing(boolean value) { * @return This builder for chaining. */ public Builder clearAllowMissing() { - + bitField0_ = (bitField0_ & ~0x00000004); allowMissing_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateContextRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateContextRequest.java index 19b69d8058fa..ca5520112fc5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateContextRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateContextRequest.java @@ -126,7 +126,9 @@ public com.google.cloud.aiplatform.v1beta1.Context getContext() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getContextOrBuilder() { - return getContext(); + return context_ == null + ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance() + : context_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -178,11 +180,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } public static final int ALLOW_MISSING_FIELD_NUMBER = 3; - private boolean allowMissing_; + private boolean allowMissing_ = false; /** * * @@ -428,20 +430,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (contextBuilder_ == null) { - context_ = null; - } else { - context_ = null; + bitField0_ = 0; + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); contextBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } allowMissing_ = false; - return this; } @@ -469,21 +469,26 @@ public com.google.cloud.aiplatform.v1beta1.UpdateContextRequest build() { public com.google.cloud.aiplatform.v1beta1.UpdateContextRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateContextRequest result = new com.google.cloud.aiplatform.v1beta1.UpdateContextRequest(this); - if (contextBuilder_ == null) { - result.context_ = context_; - } else { - result.context_ = contextBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - result.allowMissing_ = allowMissing_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.UpdateContextRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.context_ = contextBuilder_ == null ? context_ : contextBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.allowMissing_ = allowMissing_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -568,19 +573,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getContextFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { allowMissing_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -600,6 +605,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.Context context_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.Context, @@ -623,7 +630,7 @@ public Builder mergeFrom( * @return Whether the context field is set. */ public boolean hasContext() { - return contextBuilder_ != null || context_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -670,11 +677,11 @@ public Builder setContext(com.google.cloud.aiplatform.v1beta1.Context value) { throw new NullPointerException(); } context_ = value; - onChanged(); } else { contextBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -694,11 +701,11 @@ public Builder setContext(com.google.cloud.aiplatform.v1beta1.Context value) { public Builder setContext(com.google.cloud.aiplatform.v1beta1.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); - onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -717,19 +724,18 @@ public Builder setContext(com.google.cloud.aiplatform.v1beta1.Context.Builder bu */ public Builder mergeContext(com.google.cloud.aiplatform.v1beta1.Context value) { if (contextBuilder_ == null) { - if (context_ != null) { - context_ = - com.google.cloud.aiplatform.v1beta1.Context.newBuilder(context_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && context_ != null + && context_ != com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance()) { + getContextBuilder().mergeFrom(value); } else { context_ = value; } - onChanged(); } else { contextBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -747,14 +753,13 @@ public Builder mergeContext(com.google.cloud.aiplatform.v1beta1.Context value) { * */ public Builder clearContext() { - if (contextBuilder_ == null) { - context_ = null; - onChanged(); - } else { - context_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); contextBuilder_ = null; } - + onChanged(); return this; } /** @@ -772,7 +777,7 @@ public Builder clearContext() { * */ public com.google.cloud.aiplatform.v1beta1.Context.Builder getContextBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getContextFieldBuilder().getBuilder(); } @@ -850,7 +855,7 @@ public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getContextOrBuilder( * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -891,11 +896,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -912,11 +917,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -932,17 +937,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -957,14 +963,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -979,7 +984,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -1066,6 +1071,7 @@ public boolean getAllowMissing() { public Builder setAllowMissing(boolean value) { allowMissing_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1083,7 +1089,7 @@ public Builder setAllowMissing(boolean value) { * @return This builder for chaining. */ public Builder clearAllowMissing() { - + bitField0_ = (bitField0_ & ~0x00000004); allowMissing_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDatasetRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDatasetRequest.java index 2c05a9b9e314..fbbd2414d4e6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDatasetRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDatasetRequest.java @@ -117,7 +117,9 @@ public com.google.cloud.aiplatform.v1beta1.Dataset getDataset() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { - return getDataset(); + return dataset_ == null + ? com.google.cloud.aiplatform.v1beta1.Dataset.getDefaultInstance() + : dataset_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -181,7 +183,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -402,16 +404,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (datasetBuilder_ == null) { - dataset_ = null; - } else { - dataset_ = null; + bitField0_ = 0; + dataset_ = null; + if (datasetBuilder_ != null) { + datasetBuilder_.dispose(); datasetBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -441,20 +442,23 @@ public com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest build() { public com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest result = new com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest(this); - if (datasetBuilder_ == null) { - result.dataset_ = dataset_; - } else { - result.dataset_ = datasetBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataset_ = datasetBuilder_ == null ? dataset_ : datasetBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -536,13 +540,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getDatasetFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -562,6 +566,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.Dataset dataset_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.Dataset, @@ -582,7 +588,7 @@ public Builder mergeFrom( * @return Whether the dataset field is set. */ public boolean hasDataset() { - return datasetBuilder_ != null || dataset_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -623,11 +629,11 @@ public Builder setDataset(com.google.cloud.aiplatform.v1beta1.Dataset value) { throw new NullPointerException(); } dataset_ = value; - onChanged(); } else { datasetBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -644,11 +650,11 @@ public Builder setDataset(com.google.cloud.aiplatform.v1beta1.Dataset value) { public Builder setDataset(com.google.cloud.aiplatform.v1beta1.Dataset.Builder builderForValue) { if (datasetBuilder_ == null) { dataset_ = builderForValue.build(); - onChanged(); } else { datasetBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -664,19 +670,18 @@ public Builder setDataset(com.google.cloud.aiplatform.v1beta1.Dataset.Builder bu */ public Builder mergeDataset(com.google.cloud.aiplatform.v1beta1.Dataset value) { if (datasetBuilder_ == null) { - if (dataset_ != null) { - dataset_ = - com.google.cloud.aiplatform.v1beta1.Dataset.newBuilder(dataset_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && dataset_ != null + && dataset_ != com.google.cloud.aiplatform.v1beta1.Dataset.getDefaultInstance()) { + getDatasetBuilder().mergeFrom(value); } else { dataset_ = value; } - onChanged(); } else { datasetBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -691,14 +696,13 @@ public Builder mergeDataset(com.google.cloud.aiplatform.v1beta1.Dataset value) { * */ public Builder clearDataset() { - if (datasetBuilder_ == null) { - dataset_ = null; - onChanged(); - } else { - dataset_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + dataset_ = null; + if (datasetBuilder_ != null) { + datasetBuilder_.dispose(); datasetBuilder_ = null; } - + onChanged(); return this; } /** @@ -713,7 +717,7 @@ public Builder clearDataset() { * */ public com.google.cloud.aiplatform.v1beta1.Dataset.Builder getDatasetBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getDatasetFieldBuilder().getBuilder(); } @@ -789,7 +793,7 @@ public com.google.cloud.aiplatform.v1beta1.DatasetOrBuilder getDatasetOrBuilder( * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -838,11 +842,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -863,11 +867,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -887,17 +891,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -916,14 +921,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -942,7 +946,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDeploymentResourcePoolOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDeploymentResourcePoolOperationMetadata.java index 9f700b3ff161..0ca32e2c8bff 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDeploymentResourcePoolOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDeploymentResourcePoolOperationMetadata.java @@ -115,7 +115,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -333,10 +335,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -372,15 +374,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata( this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -465,7 +474,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -485,6 +494,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -503,7 +514,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -541,11 +552,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -561,11 +572,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -580,20 +591,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -606,14 +617,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -627,7 +637,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEndpointRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEndpointRequest.java index 7edf721e57f5..a57be272413a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEndpointRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEndpointRequest.java @@ -117,7 +117,9 @@ public com.google.cloud.aiplatform.v1beta1.Endpoint getEndpoint() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.EndpointOrBuilder getEndpointOrBuilder() { - return getEndpoint(); + return endpoint_ == null + ? com.google.cloud.aiplatform.v1beta1.Endpoint.getDefaultInstance() + : endpoint_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -169,7 +171,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -390,16 +392,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (endpointBuilder_ == null) { - endpoint_ = null; - } else { - endpoint_ = null; + bitField0_ = 0; + endpoint_ = null; + if (endpointBuilder_ != null) { + endpointBuilder_.dispose(); endpointBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -429,20 +430,23 @@ public com.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest build() { public com.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest result = new com.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest(this); - if (endpointBuilder_ == null) { - result.endpoint_ = endpoint_; - } else { - result.endpoint_ = endpointBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpointBuilder_ == null ? endpoint_ : endpointBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -524,13 +528,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getEndpointFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -550,6 +554,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.Endpoint endpoint_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.Endpoint, @@ -570,7 +576,7 @@ public Builder mergeFrom( * @return Whether the endpoint field is set. */ public boolean hasEndpoint() { - return endpointBuilder_ != null || endpoint_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -611,11 +617,11 @@ public Builder setEndpoint(com.google.cloud.aiplatform.v1beta1.Endpoint value) { throw new NullPointerException(); } endpoint_ = value; - onChanged(); } else { endpointBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -633,11 +639,11 @@ public Builder setEndpoint( com.google.cloud.aiplatform.v1beta1.Endpoint.Builder builderForValue) { if (endpointBuilder_ == null) { endpoint_ = builderForValue.build(); - onChanged(); } else { endpointBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -653,19 +659,18 @@ public Builder setEndpoint( */ public Builder mergeEndpoint(com.google.cloud.aiplatform.v1beta1.Endpoint value) { if (endpointBuilder_ == null) { - if (endpoint_ != null) { - endpoint_ = - com.google.cloud.aiplatform.v1beta1.Endpoint.newBuilder(endpoint_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && endpoint_ != null + && endpoint_ != com.google.cloud.aiplatform.v1beta1.Endpoint.getDefaultInstance()) { + getEndpointBuilder().mergeFrom(value); } else { endpoint_ = value; } - onChanged(); } else { endpointBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -680,14 +685,13 @@ public Builder mergeEndpoint(com.google.cloud.aiplatform.v1beta1.Endpoint value) * */ public Builder clearEndpoint() { - if (endpointBuilder_ == null) { - endpoint_ = null; - onChanged(); - } else { - endpoint_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + endpoint_ = null; + if (endpointBuilder_ != null) { + endpointBuilder_.dispose(); endpointBuilder_ = null; } - + onChanged(); return this; } /** @@ -702,7 +706,7 @@ public Builder clearEndpoint() { * */ public com.google.cloud.aiplatform.v1beta1.Endpoint.Builder getEndpointBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getEndpointFieldBuilder().getBuilder(); } @@ -774,7 +778,7 @@ public com.google.cloud.aiplatform.v1beta1.EndpointOrBuilder getEndpointOrBuilde * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -815,11 +819,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -836,11 +840,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -856,17 +860,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -881,14 +886,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -903,7 +907,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequest.java index 9a04b9af1583..82a9f3d63cb5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequest.java @@ -123,7 +123,9 @@ public com.google.cloud.aiplatform.v1beta1.EntityType getEntityType() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder getEntityTypeOrBuilder() { - return getEntityType(); + return entityType_ == null + ? com.google.cloud.aiplatform.v1beta1.EntityType.getDefaultInstance() + : entityType_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -220,7 +222,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -441,16 +443,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (entityTypeBuilder_ == null) { - entityType_ = null; - } else { - entityType_ = null; + bitField0_ = 0; + entityType_ = null; + if (entityTypeBuilder_ != null) { + entityTypeBuilder_.dispose(); entityTypeBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -480,20 +481,23 @@ public com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest build() { public com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest result = new com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest(this); - if (entityTypeBuilder_ == null) { - result.entityType_ = entityType_; - } else { - result.entityType_ = entityTypeBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityType_ = entityTypeBuilder_ == null ? entityType_ : entityTypeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -575,13 +579,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getEntityTypeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -601,6 +605,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.EntityType entityType_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.EntityType, @@ -623,7 +629,7 @@ public Builder mergeFrom( * @return Whether the entityType field is set. */ public boolean hasEntityType() { - return entityTypeBuilder_ != null || entityType_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -668,11 +674,11 @@ public Builder setEntityType(com.google.cloud.aiplatform.v1beta1.EntityType valu throw new NullPointerException(); } entityType_ = value; - onChanged(); } else { entityTypeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -692,11 +698,11 @@ public Builder setEntityType( com.google.cloud.aiplatform.v1beta1.EntityType.Builder builderForValue) { if (entityTypeBuilder_ == null) { entityType_ = builderForValue.build(); - onChanged(); } else { entityTypeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -714,19 +720,18 @@ public Builder setEntityType( */ public Builder mergeEntityType(com.google.cloud.aiplatform.v1beta1.EntityType value) { if (entityTypeBuilder_ == null) { - if (entityType_ != null) { - entityType_ = - com.google.cloud.aiplatform.v1beta1.EntityType.newBuilder(entityType_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && entityType_ != null + && entityType_ != com.google.cloud.aiplatform.v1beta1.EntityType.getDefaultInstance()) { + getEntityTypeBuilder().mergeFrom(value); } else { entityType_ = value; } - onChanged(); } else { entityTypeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -743,14 +748,13 @@ public Builder mergeEntityType(com.google.cloud.aiplatform.v1beta1.EntityType va * */ public Builder clearEntityType() { - if (entityTypeBuilder_ == null) { - entityType_ = null; - onChanged(); - } else { - entityType_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + entityType_ = null; + if (entityTypeBuilder_ != null) { + entityTypeBuilder_.dispose(); entityTypeBuilder_ = null; } - + onChanged(); return this; } /** @@ -767,7 +771,7 @@ public Builder clearEntityType() { * */ public com.google.cloud.aiplatform.v1beta1.EntityType.Builder getEntityTypeBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getEntityTypeFieldBuilder().getBuilder(); } @@ -858,7 +862,7 @@ public com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder getEntityTypeOrBu * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -929,11 +933,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -965,11 +969,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1000,17 +1004,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1040,14 +1045,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1077,7 +1081,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExecutionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExecutionRequest.java index 8d0f7f002490..69c8a8f2dcca 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExecutionRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExecutionRequest.java @@ -129,7 +129,9 @@ public com.google.cloud.aiplatform.v1beta1.Execution getExecution() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionOrBuilder() { - return getExecution(); + return execution_ == null + ? com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance() + : execution_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -181,11 +183,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } public static final int ALLOW_MISSING_FIELD_NUMBER = 3; - private boolean allowMissing_; + private boolean allowMissing_ = false; /** * * @@ -431,20 +433,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (executionBuilder_ == null) { - execution_ = null; - } else { - execution_ = null; + bitField0_ = 0; + execution_ = null; + if (executionBuilder_ != null) { + executionBuilder_.dispose(); executionBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } allowMissing_ = false; - return this; } @@ -472,21 +472,26 @@ public com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest build() { public com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest result = new com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest(this); - if (executionBuilder_ == null) { - result.execution_ = execution_; - } else { - result.execution_ = executionBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - result.allowMissing_ = allowMissing_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.execution_ = executionBuilder_ == null ? execution_ : executionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.allowMissing_ = allowMissing_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -571,19 +576,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getExecutionFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { allowMissing_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -603,6 +608,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.Execution execution_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.Execution, @@ -627,7 +634,7 @@ public Builder mergeFrom( * @return Whether the execution field is set. */ public boolean hasExecution() { - return executionBuilder_ != null || execution_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -676,11 +683,11 @@ public Builder setExecution(com.google.cloud.aiplatform.v1beta1.Execution value) throw new NullPointerException(); } execution_ = value; - onChanged(); } else { executionBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -702,11 +709,11 @@ public Builder setExecution( com.google.cloud.aiplatform.v1beta1.Execution.Builder builderForValue) { if (executionBuilder_ == null) { execution_ = builderForValue.build(); - onChanged(); } else { executionBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -726,19 +733,18 @@ public Builder setExecution( */ public Builder mergeExecution(com.google.cloud.aiplatform.v1beta1.Execution value) { if (executionBuilder_ == null) { - if (execution_ != null) { - execution_ = - com.google.cloud.aiplatform.v1beta1.Execution.newBuilder(execution_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && execution_ != null + && execution_ != com.google.cloud.aiplatform.v1beta1.Execution.getDefaultInstance()) { + getExecutionBuilder().mergeFrom(value); } else { execution_ = value; } - onChanged(); } else { executionBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -757,14 +763,13 @@ public Builder mergeExecution(com.google.cloud.aiplatform.v1beta1.Execution valu * */ public Builder clearExecution() { - if (executionBuilder_ == null) { - execution_ = null; - onChanged(); - } else { - execution_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + execution_ = null; + if (executionBuilder_ != null) { + executionBuilder_.dispose(); executionBuilder_ = null; } - + onChanged(); return this; } /** @@ -783,7 +788,7 @@ public Builder clearExecution() { * */ public com.google.cloud.aiplatform.v1beta1.Execution.Builder getExecutionBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getExecutionFieldBuilder().getBuilder(); } @@ -863,7 +868,7 @@ public com.google.cloud.aiplatform.v1beta1.ExecutionOrBuilder getExecutionOrBuil * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -904,11 +909,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -925,11 +930,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -945,17 +950,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -970,14 +976,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -992,7 +997,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -1079,6 +1084,7 @@ public boolean getAllowMissing() { public Builder setAllowMissing(boolean value) { allowMissing_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1096,7 +1102,7 @@ public Builder setAllowMissing(boolean value) { * @return This builder for chaining. */ public Builder clearAllowMissing() { - + bitField0_ = (bitField0_ & ~0x00000004); allowMissing_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetOperationMetadata.java index ea23878c04b8..cb73754cb3e0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetOperationMetadata.java @@ -115,7 +115,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -331,10 +333,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -368,15 +370,22 @@ public com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMeta buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -460,7 +469,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -480,6 +489,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -498,7 +509,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -536,11 +547,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -556,11 +567,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -575,20 +586,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -601,14 +612,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -622,7 +632,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetRequest.java index aa19b22e17aa..fd1f0f42dd82 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MODEL_FIELD_NUMBER = 1; - private volatile java.lang.Object model_; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; /** * * @@ -169,7 +171,9 @@ public com.google.cloud.aiplatform.v1beta1.Examples getExamples() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ExamplesOrBuilder getExamplesOrBuilder() { - return getExamples(); + return examples_ == null + ? com.google.cloud.aiplatform.v1beta1.Examples.getDefaultInstance() + : examples_; } private byte memoizedIsInitialized = -1; @@ -387,12 +391,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; model_ = ""; - - if (examplesBuilder_ == null) { - examples_ = null; - } else { - examples_ = null; + examples_ = null; + if (examplesBuilder_ != null) { + examplesBuilder_.dispose(); examplesBuilder_ = null; } return this; @@ -424,16 +427,24 @@ public com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest build public com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest result = new com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest(this); - result.model_ = model_; - if (examplesBuilder_ == null) { - result.examples_ = examples_; - } else { - result.examples_ = examplesBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.model_ = model_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.examples_ = examplesBuilder_ == null ? examples_ : examplesBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -485,6 +496,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getModel().isEmpty()) { model_ = other.model_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasExamples()) { @@ -519,13 +531,13 @@ public Builder mergeFrom( case 10: { model_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getExamplesFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -545,6 +557,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object model_ = ""; /** * @@ -615,8 +629,8 @@ public Builder setModel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - model_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -635,8 +649,8 @@ public Builder setModel(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModel() { - model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -660,8 +674,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - model_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -684,7 +698,7 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { * @return Whether the examples field is set. */ public boolean hasExamples() { - return examplesBuilder_ != null || examples_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -721,11 +735,11 @@ public Builder setExamples(com.google.cloud.aiplatform.v1beta1.Examples value) { throw new NullPointerException(); } examples_ = value; - onChanged(); } else { examplesBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -741,11 +755,11 @@ public Builder setExamples( com.google.cloud.aiplatform.v1beta1.Examples.Builder builderForValue) { if (examplesBuilder_ == null) { examples_ = builderForValue.build(); - onChanged(); } else { examplesBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -759,19 +773,18 @@ public Builder setExamples( */ public Builder mergeExamples(com.google.cloud.aiplatform.v1beta1.Examples value) { if (examplesBuilder_ == null) { - if (examples_ != null) { - examples_ = - com.google.cloud.aiplatform.v1beta1.Examples.newBuilder(examples_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && examples_ != null + && examples_ != com.google.cloud.aiplatform.v1beta1.Examples.getDefaultInstance()) { + getExamplesBuilder().mergeFrom(value); } else { examples_ = value; } - onChanged(); } else { examplesBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -784,14 +797,13 @@ public Builder mergeExamples(com.google.cloud.aiplatform.v1beta1.Examples value) * .google.cloud.aiplatform.v1beta1.Examples examples = 2; */ public Builder clearExamples() { - if (examplesBuilder_ == null) { - examples_ = null; - onChanged(); - } else { - examples_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + examples_ = null; + if (examplesBuilder_ != null) { + examplesBuilder_.dispose(); examplesBuilder_ = null; } - + onChanged(); return this; } /** @@ -804,7 +816,7 @@ public Builder clearExamples() { * .google.cloud.aiplatform.v1beta1.Examples examples = 2; */ public com.google.cloud.aiplatform.v1beta1.Examples.Builder getExamplesBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getExamplesFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequest.java index 7d121fcd2724..f66ca3755e5e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureRequest.java @@ -126,7 +126,9 @@ public com.google.cloud.aiplatform.v1beta1.Feature getFeature() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeatureOrBuilder() { - return getFeature(); + return feature_ == null + ? com.google.cloud.aiplatform.v1beta1.Feature.getDefaultInstance() + : feature_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -202,7 +204,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -423,16 +425,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (featureBuilder_ == null) { - feature_ = null; - } else { - feature_ = null; + bitField0_ = 0; + feature_ = null; + if (featureBuilder_ != null) { + featureBuilder_.dispose(); featureBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -462,20 +463,23 @@ public com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest build() { public com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest result = new com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest(this); - if (featureBuilder_ == null) { - result.feature_ = feature_; - } else { - result.feature_ = featureBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.feature_ = featureBuilder_ == null ? feature_ : featureBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -557,13 +561,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getFeatureFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -583,6 +587,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.Feature feature_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.Feature, @@ -606,7 +612,7 @@ public Builder mergeFrom( * @return Whether the feature field is set. */ public boolean hasFeature() { - return featureBuilder_ != null || feature_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -653,11 +659,11 @@ public Builder setFeature(com.google.cloud.aiplatform.v1beta1.Feature value) { throw new NullPointerException(); } feature_ = value; - onChanged(); } else { featureBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -677,11 +683,11 @@ public Builder setFeature(com.google.cloud.aiplatform.v1beta1.Feature value) { public Builder setFeature(com.google.cloud.aiplatform.v1beta1.Feature.Builder builderForValue) { if (featureBuilder_ == null) { feature_ = builderForValue.build(); - onChanged(); } else { featureBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -700,19 +706,18 @@ public Builder setFeature(com.google.cloud.aiplatform.v1beta1.Feature.Builder bu */ public Builder mergeFeature(com.google.cloud.aiplatform.v1beta1.Feature value) { if (featureBuilder_ == null) { - if (feature_ != null) { - feature_ = - com.google.cloud.aiplatform.v1beta1.Feature.newBuilder(feature_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && feature_ != null + && feature_ != com.google.cloud.aiplatform.v1beta1.Feature.getDefaultInstance()) { + getFeatureBuilder().mergeFrom(value); } else { feature_ = value; } - onChanged(); } else { featureBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -730,14 +735,13 @@ public Builder mergeFeature(com.google.cloud.aiplatform.v1beta1.Feature value) { * */ public Builder clearFeature() { - if (featureBuilder_ == null) { - feature_ = null; - onChanged(); - } else { - feature_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + feature_ = null; + if (featureBuilder_ != null) { + featureBuilder_.dispose(); featureBuilder_ = null; } - + onChanged(); return this; } /** @@ -755,7 +759,7 @@ public Builder clearFeature() { * */ public com.google.cloud.aiplatform.v1beta1.Feature.Builder getFeatureBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getFeatureFieldBuilder().getBuilder(); } @@ -841,7 +845,7 @@ public com.google.cloud.aiplatform.v1beta1.FeatureOrBuilder getFeatureOrBuilder( * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -898,11 +902,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -927,11 +931,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -955,17 +959,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -988,14 +993,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1018,7 +1022,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreOperationMetadata.java index bfaec11c86b4..139b29f8df87 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreOperationMetadata.java @@ -113,7 +113,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -322,10 +324,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -358,15 +360,22 @@ public com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata b public com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -449,7 +458,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -469,6 +478,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -487,7 +498,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -525,11 +536,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -545,11 +556,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -564,20 +575,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -590,14 +601,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -611,7 +621,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequest.java index 0118e41e035b..c1ef00fac5a0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequest.java @@ -123,7 +123,9 @@ public com.google.cloud.aiplatform.v1beta1.Featurestore getFeaturestore() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder getFeaturestoreOrBuilder() { - return getFeaturestore(); + return featurestore_ == null + ? com.google.cloud.aiplatform.v1beta1.Featurestore.getDefaultInstance() + : featurestore_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -202,7 +204,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -423,16 +425,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (featurestoreBuilder_ == null) { - featurestore_ = null; - } else { - featurestore_ = null; + bitField0_ = 0; + featurestore_ = null; + if (featurestoreBuilder_ != null) { + featurestoreBuilder_.dispose(); featurestoreBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -463,20 +464,25 @@ public com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest build() { public com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest result = new com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest(this); - if (featurestoreBuilder_ == null) { - result.featurestore_ = featurestore_; - } else { - result.featurestore_ = featurestoreBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.featurestore_ = + featurestoreBuilder_ == null ? featurestore_ : featurestoreBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -559,13 +565,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getFeaturestoreFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -585,6 +591,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.Featurestore featurestore_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.Featurestore, @@ -607,7 +615,7 @@ public Builder mergeFrom( * @return Whether the featurestore field is set. */ public boolean hasFeaturestore() { - return featurestoreBuilder_ != null || featurestore_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -652,11 +660,11 @@ public Builder setFeaturestore(com.google.cloud.aiplatform.v1beta1.Featurestore throw new NullPointerException(); } featurestore_ = value; - onChanged(); } else { featurestoreBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -676,11 +684,11 @@ public Builder setFeaturestore( com.google.cloud.aiplatform.v1beta1.Featurestore.Builder builderForValue) { if (featurestoreBuilder_ == null) { featurestore_ = builderForValue.build(); - onChanged(); } else { featurestoreBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -698,19 +706,19 @@ public Builder setFeaturestore( */ public Builder mergeFeaturestore(com.google.cloud.aiplatform.v1beta1.Featurestore value) { if (featurestoreBuilder_ == null) { - if (featurestore_ != null) { - featurestore_ = - com.google.cloud.aiplatform.v1beta1.Featurestore.newBuilder(featurestore_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && featurestore_ != null + && featurestore_ + != com.google.cloud.aiplatform.v1beta1.Featurestore.getDefaultInstance()) { + getFeaturestoreBuilder().mergeFrom(value); } else { featurestore_ = value; } - onChanged(); } else { featurestoreBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -727,14 +735,13 @@ public Builder mergeFeaturestore(com.google.cloud.aiplatform.v1beta1.Featurestor * */ public Builder clearFeaturestore() { - if (featurestoreBuilder_ == null) { - featurestore_ = null; - onChanged(); - } else { - featurestore_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + featurestore_ = null; + if (featurestoreBuilder_ != null) { + featurestoreBuilder_.dispose(); featurestoreBuilder_ = null; } - + onChanged(); return this; } /** @@ -751,7 +758,7 @@ public Builder clearFeaturestore() { * */ public com.google.cloud.aiplatform.v1beta1.Featurestore.Builder getFeaturestoreBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getFeaturestoreFieldBuilder().getBuilder(); } @@ -836,7 +843,7 @@ public com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder getFeaturestore * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -895,11 +902,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -925,11 +932,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -954,17 +961,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -988,14 +996,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1019,7 +1026,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexEndpointRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexEndpointRequest.java index 79d0cf3f3b4e..2d1f4cde7a21 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexEndpointRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexEndpointRequest.java @@ -117,7 +117,9 @@ public com.google.cloud.aiplatform.v1beta1.IndexEndpoint getIndexEndpoint() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder getIndexEndpointOrBuilder() { - return getIndexEndpoint(); + return indexEndpoint_ == null + ? com.google.cloud.aiplatform.v1beta1.IndexEndpoint.getDefaultInstance() + : indexEndpoint_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -169,7 +171,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -390,16 +392,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (indexEndpointBuilder_ == null) { - indexEndpoint_ = null; - } else { - indexEndpoint_ = null; + bitField0_ = 0; + indexEndpoint_ = null; + if (indexEndpointBuilder_ != null) { + indexEndpointBuilder_.dispose(); indexEndpointBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -430,20 +431,25 @@ public com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest build() { public com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest result = new com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest(this); - if (indexEndpointBuilder_ == null) { - result.indexEndpoint_ = indexEndpoint_; - } else { - result.indexEndpoint_ = indexEndpointBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.indexEndpoint_ = + indexEndpointBuilder_ == null ? indexEndpoint_ : indexEndpointBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -526,13 +532,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getIndexEndpointFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -552,6 +558,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.IndexEndpoint indexEndpoint_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.IndexEndpoint, @@ -572,7 +580,7 @@ public Builder mergeFrom( * @return Whether the indexEndpoint field is set. */ public boolean hasIndexEndpoint() { - return indexEndpointBuilder_ != null || indexEndpoint_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -613,11 +621,11 @@ public Builder setIndexEndpoint(com.google.cloud.aiplatform.v1beta1.IndexEndpoin throw new NullPointerException(); } indexEndpoint_ = value; - onChanged(); } else { indexEndpointBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -635,11 +643,11 @@ public Builder setIndexEndpoint( com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder builderForValue) { if (indexEndpointBuilder_ == null) { indexEndpoint_ = builderForValue.build(); - onChanged(); } else { indexEndpointBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -655,19 +663,19 @@ public Builder setIndexEndpoint( */ public Builder mergeIndexEndpoint(com.google.cloud.aiplatform.v1beta1.IndexEndpoint value) { if (indexEndpointBuilder_ == null) { - if (indexEndpoint_ != null) { - indexEndpoint_ = - com.google.cloud.aiplatform.v1beta1.IndexEndpoint.newBuilder(indexEndpoint_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && indexEndpoint_ != null + && indexEndpoint_ + != com.google.cloud.aiplatform.v1beta1.IndexEndpoint.getDefaultInstance()) { + getIndexEndpointBuilder().mergeFrom(value); } else { indexEndpoint_ = value; } - onChanged(); } else { indexEndpointBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -682,14 +690,13 @@ public Builder mergeIndexEndpoint(com.google.cloud.aiplatform.v1beta1.IndexEndpo * */ public Builder clearIndexEndpoint() { - if (indexEndpointBuilder_ == null) { - indexEndpoint_ = null; - onChanged(); - } else { - indexEndpoint_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + indexEndpoint_ = null; + if (indexEndpointBuilder_ != null) { + indexEndpointBuilder_.dispose(); indexEndpointBuilder_ = null; } - + onChanged(); return this; } /** @@ -704,7 +711,7 @@ public Builder clearIndexEndpoint() { * */ public com.google.cloud.aiplatform.v1beta1.IndexEndpoint.Builder getIndexEndpointBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getIndexEndpointFieldBuilder().getBuilder(); } @@ -776,7 +783,7 @@ public com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder getIndexEndpoi * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -817,11 +824,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -838,11 +845,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -858,17 +865,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -883,14 +891,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -905,7 +912,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexOperationMetadata.java index c5bdc58fcbeb..751e962b3324 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexOperationMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } public static final int NEAREST_NEIGHBOR_SEARCH_OPERATION_METADATA_FIELD_NUMBER = 2; @@ -170,7 +172,10 @@ public boolean hasNearestNeighborSearchOperationMetadata() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadataOrBuilder getNearestNeighborSearchOperationMetadataOrBuilder() { - return getNearestNeighborSearchOperationMetadata(); + return nearestNeighborSearchOperationMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .getDefaultInstance() + : nearestNeighborSearchOperationMetadata_; } private byte memoizedIsInitialized = -1; @@ -395,16 +400,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - if (nearestNeighborSearchOperationMetadataBuilder_ == null) { - nearestNeighborSearchOperationMetadata_ = null; - } else { - nearestNeighborSearchOperationMetadata_ = null; + nearestNeighborSearchOperationMetadata_ = null; + if (nearestNeighborSearchOperationMetadataBuilder_ != null) { + nearestNeighborSearchOperationMetadataBuilder_.dispose(); nearestNeighborSearchOperationMetadataBuilder_ = null; } return this; @@ -435,21 +439,28 @@ public com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata build() public com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); - } - if (nearestNeighborSearchOperationMetadataBuilder_ == null) { - result.nearestNeighborSearchOperationMetadata_ = nearestNeighborSearchOperationMetadata_; - } else { - result.nearestNeighborSearchOperationMetadata_ = - nearestNeighborSearchOperationMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nearestNeighborSearchOperationMetadata_ = + nearestNeighborSearchOperationMetadataBuilder_ == null + ? nearestNeighborSearchOperationMetadata_ + : nearestNeighborSearchOperationMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -534,7 +545,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -542,7 +553,7 @@ public Builder mergeFrom( input.readMessage( getNearestNeighborSearchOperationMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -562,6 +573,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -580,7 +593,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -618,11 +631,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -638,11 +651,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -657,20 +670,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -683,14 +696,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -704,7 +716,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } @@ -774,8 +786,7 @@ public Builder clearGenericMetadata() { * @return Whether the nearestNeighborSearchOperationMetadata field is set. */ public boolean hasNearestNeighborSearchOperationMetadata() { - return nearestNeighborSearchOperationMetadataBuilder_ != null - || nearestNeighborSearchOperationMetadata_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -819,11 +830,11 @@ public Builder setNearestNeighborSearchOperationMetadata( throw new NullPointerException(); } nearestNeighborSearchOperationMetadata_ = value; - onChanged(); } else { nearestNeighborSearchOperationMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -842,11 +853,11 @@ public Builder setNearestNeighborSearchOperationMetadata( builderForValue) { if (nearestNeighborSearchOperationMetadataBuilder_ == null) { nearestNeighborSearchOperationMetadata_ = builderForValue.build(); - onChanged(); } else { nearestNeighborSearchOperationMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -863,20 +874,20 @@ public Builder setNearestNeighborSearchOperationMetadata( public Builder mergeNearestNeighborSearchOperationMetadata( com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata value) { if (nearestNeighborSearchOperationMetadataBuilder_ == null) { - if (nearestNeighborSearchOperationMetadata_ != null) { - nearestNeighborSearchOperationMetadata_ = - com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.newBuilder( - nearestNeighborSearchOperationMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && nearestNeighborSearchOperationMetadata_ != null + && nearestNeighborSearchOperationMetadata_ + != com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + .getDefaultInstance()) { + getNearestNeighborSearchOperationMetadataBuilder().mergeFrom(value); } else { nearestNeighborSearchOperationMetadata_ = value; } - onChanged(); } else { nearestNeighborSearchOperationMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -891,14 +902,13 @@ public Builder mergeNearestNeighborSearchOperationMetadata( * */ public Builder clearNearestNeighborSearchOperationMetadata() { - if (nearestNeighborSearchOperationMetadataBuilder_ == null) { - nearestNeighborSearchOperationMetadata_ = null; - onChanged(); - } else { - nearestNeighborSearchOperationMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + nearestNeighborSearchOperationMetadata_ = null; + if (nearestNeighborSearchOperationMetadataBuilder_ != null) { + nearestNeighborSearchOperationMetadataBuilder_.dispose(); nearestNeighborSearchOperationMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -914,7 +924,7 @@ public Builder clearNearestNeighborSearchOperationMetadata() { */ public com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.Builder getNearestNeighborSearchOperationMetadataBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getNearestNeighborSearchOperationMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexRequest.java index 163b816ceedc..6163778615c0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateIndexRequest.java @@ -115,7 +115,7 @@ public com.google.cloud.aiplatform.v1beta1.Index getIndex() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.IndexOrBuilder getIndexOrBuilder() { - return getIndex(); + return index_ == null ? com.google.cloud.aiplatform.v1beta1.Index.getDefaultInstance() : index_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -167,7 +167,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -388,16 +388,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (indexBuilder_ == null) { - index_ = null; - } else { - index_ = null; + bitField0_ = 0; + index_ = null; + if (indexBuilder_ != null) { + indexBuilder_.dispose(); indexBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -427,20 +426,23 @@ public com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest build() { public com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest result = new com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest(this); - if (indexBuilder_ == null) { - result.index_ = index_; - } else { - result.index_ = indexBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.index_ = indexBuilder_ == null ? index_ : indexBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -522,13 +524,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getIndexFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -548,6 +550,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.Index index_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.Index, @@ -568,7 +572,7 @@ public Builder mergeFrom( * @return Whether the index field is set. */ public boolean hasIndex() { - return indexBuilder_ != null || index_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -609,11 +613,11 @@ public Builder setIndex(com.google.cloud.aiplatform.v1beta1.Index value) { throw new NullPointerException(); } index_ = value; - onChanged(); } else { indexBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -630,11 +634,11 @@ public Builder setIndex(com.google.cloud.aiplatform.v1beta1.Index value) { public Builder setIndex(com.google.cloud.aiplatform.v1beta1.Index.Builder builderForValue) { if (indexBuilder_ == null) { index_ = builderForValue.build(); - onChanged(); } else { indexBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -650,19 +654,18 @@ public Builder setIndex(com.google.cloud.aiplatform.v1beta1.Index.Builder builde */ public Builder mergeIndex(com.google.cloud.aiplatform.v1beta1.Index value) { if (indexBuilder_ == null) { - if (index_ != null) { - index_ = - com.google.cloud.aiplatform.v1beta1.Index.newBuilder(index_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && index_ != null + && index_ != com.google.cloud.aiplatform.v1beta1.Index.getDefaultInstance()) { + getIndexBuilder().mergeFrom(value); } else { index_ = value; } - onChanged(); } else { indexBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -677,14 +680,13 @@ public Builder mergeIndex(com.google.cloud.aiplatform.v1beta1.Index value) { * */ public Builder clearIndex() { - if (indexBuilder_ == null) { - index_ = null; - onChanged(); - } else { - index_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + index_ = null; + if (indexBuilder_ != null) { + indexBuilder_.dispose(); indexBuilder_ = null; } - + onChanged(); return this; } /** @@ -699,7 +701,7 @@ public Builder clearIndex() { * */ public com.google.cloud.aiplatform.v1beta1.Index.Builder getIndexBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getIndexFieldBuilder().getBuilder(); } @@ -771,7 +773,7 @@ public com.google.cloud.aiplatform.v1beta1.IndexOrBuilder getIndexOrBuilder() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -812,11 +814,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -833,11 +835,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -853,17 +855,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -878,14 +881,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -900,7 +902,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobOperationMetadata.java index 42a08ad67af8..09121ba9dfa7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobOperationMetadata.java @@ -117,7 +117,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -351,10 +353,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -391,15 +393,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1 .UpdateModelDeploymentMonitoringJobOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -486,7 +496,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -506,6 +516,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -524,7 +536,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -562,11 +574,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -582,11 +594,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -601,20 +613,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -627,14 +639,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -648,7 +659,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobRequest.java index d119ea32bb1d..2a02e2661c6a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelDeploymentMonitoringJobRequest.java @@ -126,7 +126,9 @@ public boolean hasModelDeploymentMonitoringJob() { @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJobOrBuilder getModelDeploymentMonitoringJobOrBuilder() { - return getModelDeploymentMonitoringJob(); + return modelDeploymentMonitoringJob_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.getDefaultInstance() + : modelDeploymentMonitoringJob_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -244,7 +246,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -477,16 +479,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (modelDeploymentMonitoringJobBuilder_ == null) { - modelDeploymentMonitoringJob_ = null; - } else { - modelDeploymentMonitoringJob_ = null; + bitField0_ = 0; + modelDeploymentMonitoringJob_ = null; + if (modelDeploymentMonitoringJobBuilder_ != null) { + modelDeploymentMonitoringJobBuilder_.dispose(); modelDeploymentMonitoringJobBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -520,20 +521,27 @@ public com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobReq buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest result = new com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest(this); - if (modelDeploymentMonitoringJobBuilder_ == null) { - result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_; - } else { - result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJobBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelDeploymentMonitoringJob_ = + modelDeploymentMonitoringJobBuilder_ == null + ? modelDeploymentMonitoringJob_ + : modelDeploymentMonitoringJobBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -621,13 +629,13 @@ public Builder mergeFrom( { input.readMessage( getModelDeploymentMonitoringJobFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -647,6 +655,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob modelDeploymentMonitoringJob_; private com.google.protobuf.SingleFieldBuilderV3< @@ -669,7 +679,7 @@ public Builder mergeFrom( * @return Whether the modelDeploymentMonitoringJob field is set. */ public boolean hasModelDeploymentMonitoringJob() { - return modelDeploymentMonitoringJobBuilder_ != null || modelDeploymentMonitoringJob_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -714,11 +724,11 @@ public Builder setModelDeploymentMonitoringJob( throw new NullPointerException(); } modelDeploymentMonitoringJob_ = value; - onChanged(); } else { modelDeploymentMonitoringJobBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -737,11 +747,11 @@ public Builder setModelDeploymentMonitoringJob( com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder builderForValue) { if (modelDeploymentMonitoringJobBuilder_ == null) { modelDeploymentMonitoringJob_ = builderForValue.build(); - onChanged(); } else { modelDeploymentMonitoringJobBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -759,20 +769,20 @@ public Builder setModelDeploymentMonitoringJob( public Builder mergeModelDeploymentMonitoringJob( com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob value) { if (modelDeploymentMonitoringJobBuilder_ == null) { - if (modelDeploymentMonitoringJob_ != null) { - modelDeploymentMonitoringJob_ = - com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.newBuilder( - modelDeploymentMonitoringJob_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && modelDeploymentMonitoringJob_ != null + && modelDeploymentMonitoringJob_ + != com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + .getDefaultInstance()) { + getModelDeploymentMonitoringJobBuilder().mergeFrom(value); } else { modelDeploymentMonitoringJob_ = value; } - onChanged(); } else { modelDeploymentMonitoringJobBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -788,14 +798,13 @@ public Builder mergeModelDeploymentMonitoringJob( * */ public Builder clearModelDeploymentMonitoringJob() { - if (modelDeploymentMonitoringJobBuilder_ == null) { - modelDeploymentMonitoringJob_ = null; - onChanged(); - } else { - modelDeploymentMonitoringJob_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + modelDeploymentMonitoringJob_ = null; + if (modelDeploymentMonitoringJobBuilder_ != null) { + modelDeploymentMonitoringJobBuilder_.dispose(); modelDeploymentMonitoringJobBuilder_ = null; } - + onChanged(); return this; } /** @@ -812,7 +821,7 @@ public Builder clearModelDeploymentMonitoringJob() { */ public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.Builder getModelDeploymentMonitoringJobBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getModelDeploymentMonitoringJobFieldBuilder().getBuilder(); } @@ -909,7 +918,7 @@ public Builder clearModelDeploymentMonitoringJob() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -994,11 +1003,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1037,11 +1046,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1079,17 +1088,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1126,14 +1136,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1170,7 +1179,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelRequest.java index 893e1bf500c2..7c8750c9b718 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateModelRequest.java @@ -166,7 +166,7 @@ public com.google.cloud.aiplatform.v1beta1.Model getModel() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelOrBuilder getModelOrBuilder() { - return getModel(); + return model_ == null ? com.google.cloud.aiplatform.v1beta1.Model.getDefaultInstance() : model_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -221,7 +221,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -442,16 +442,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (modelBuilder_ == null) { - model_ = null; - } else { - model_ = null; + bitField0_ = 0; + model_ = null; + if (modelBuilder_ != null) { + modelBuilder_.dispose(); modelBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -481,20 +480,23 @@ public com.google.cloud.aiplatform.v1beta1.UpdateModelRequest build() { public com.google.cloud.aiplatform.v1beta1.UpdateModelRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateModelRequest result = new com.google.cloud.aiplatform.v1beta1.UpdateModelRequest(this); - if (modelBuilder_ == null) { - result.model_ = model_; - } else { - result.model_ = modelBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.UpdateModelRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.model_ = modelBuilder_ == null ? model_ : modelBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -576,13 +578,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getModelFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -602,6 +604,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.Model model_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.Model, @@ -639,7 +643,7 @@ public Builder mergeFrom( * @return Whether the model field is set. */ public boolean hasModel() { - return modelBuilder_ != null || model_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -714,11 +718,11 @@ public Builder setModel(com.google.cloud.aiplatform.v1beta1.Model value) { throw new NullPointerException(); } model_ = value; - onChanged(); } else { modelBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -752,11 +756,11 @@ public Builder setModel(com.google.cloud.aiplatform.v1beta1.Model value) { public Builder setModel(com.google.cloud.aiplatform.v1beta1.Model.Builder builderForValue) { if (modelBuilder_ == null) { model_ = builderForValue.build(); - onChanged(); } else { modelBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -789,19 +793,18 @@ public Builder setModel(com.google.cloud.aiplatform.v1beta1.Model.Builder builde */ public Builder mergeModel(com.google.cloud.aiplatform.v1beta1.Model value) { if (modelBuilder_ == null) { - if (model_ != null) { - model_ = - com.google.cloud.aiplatform.v1beta1.Model.newBuilder(model_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && model_ != null + && model_ != com.google.cloud.aiplatform.v1beta1.Model.getDefaultInstance()) { + getModelBuilder().mergeFrom(value); } else { model_ = value; } - onChanged(); } else { modelBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -833,14 +836,13 @@ public Builder mergeModel(com.google.cloud.aiplatform.v1beta1.Model value) { * */ public Builder clearModel() { - if (modelBuilder_ == null) { - model_ = null; - onChanged(); - } else { - model_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + model_ = null; + if (modelBuilder_ != null) { + modelBuilder_.dispose(); modelBuilder_ = null; } - + onChanged(); return this; } /** @@ -872,7 +874,7 @@ public Builder clearModel() { * */ public com.google.cloud.aiplatform.v1beta1.Model.Builder getModelBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getModelFieldBuilder().getBuilder(); } @@ -979,7 +981,7 @@ public com.google.cloud.aiplatform.v1beta1.ModelOrBuilder getModelOrBuilder() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1022,11 +1024,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1044,11 +1046,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1065,17 +1067,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1091,14 +1094,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1114,7 +1116,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateSpecialistPoolOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateSpecialistPoolOperationMetadata.java index 402ceba20b73..c3928b9c16a0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateSpecialistPoolOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateSpecialistPoolOperationMetadata.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SPECIALIST_POOL_FIELD_NUMBER = 1; - private volatile java.lang.Object specialistPool_; + + @SuppressWarnings("serial") + private volatile java.lang.Object specialistPool_ = ""; /** * * @@ -174,7 +176,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -394,12 +398,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; specialistPool_ = ""; - - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -433,16 +436,25 @@ public com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata(this); - result.specialistPool_ = specialistPool_; - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.specialistPool_ = specialistPool_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -495,6 +507,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getSpecialistPool().isEmpty()) { specialistPool_ = other.specialistPool_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasGenericMetadata()) { @@ -529,13 +542,13 @@ public Builder mergeFrom( case 10: { specialistPool_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -555,6 +568,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object specialistPool_ = ""; /** * @@ -628,8 +643,8 @@ public Builder setSpecialistPool(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - specialistPool_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -649,8 +664,8 @@ public Builder setSpecialistPool(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSpecialistPool() { - specialistPool_ = getDefaultInstance().getSpecialistPool(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -675,8 +690,8 @@ public Builder setSpecialistPoolBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - specialistPool_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -699,7 +714,7 @@ public Builder setSpecialistPoolBytes(com.google.protobuf.ByteString value) { * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -737,11 +752,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -757,11 +772,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -776,20 +791,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -802,14 +817,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 2; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -823,7 +837,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateSpecialistPoolRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateSpecialistPoolRequest.java index de006d306e82..8cc22b6d84b5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateSpecialistPoolRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateSpecialistPoolRequest.java @@ -117,7 +117,9 @@ public com.google.cloud.aiplatform.v1beta1.SpecialistPool getSpecialistPool() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.SpecialistPoolOrBuilder getSpecialistPoolOrBuilder() { - return getSpecialistPool(); + return specialistPool_ == null + ? com.google.cloud.aiplatform.v1beta1.SpecialistPool.getDefaultInstance() + : specialistPool_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -166,7 +168,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -387,16 +389,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (specialistPoolBuilder_ == null) { - specialistPool_ = null; - } else { - specialistPool_ = null; + bitField0_ = 0; + specialistPool_ = null; + if (specialistPoolBuilder_ != null) { + specialistPoolBuilder_.dispose(); specialistPoolBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -427,20 +428,25 @@ public com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest build() { public com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest result = new com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest(this); - if (specialistPoolBuilder_ == null) { - result.specialistPool_ = specialistPool_; - } else { - result.specialistPool_ = specialistPoolBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.specialistPool_ = + specialistPoolBuilder_ == null ? specialistPool_ : specialistPoolBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -524,13 +530,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getSpecialistPoolFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -550,6 +556,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.SpecialistPool specialistPool_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.SpecialistPool, @@ -570,7 +578,7 @@ public Builder mergeFrom( * @return Whether the specialistPool field is set. */ public boolean hasSpecialistPool() { - return specialistPoolBuilder_ != null || specialistPool_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -611,11 +619,11 @@ public Builder setSpecialistPool(com.google.cloud.aiplatform.v1beta1.SpecialistP throw new NullPointerException(); } specialistPool_ = value; - onChanged(); } else { specialistPoolBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -633,11 +641,11 @@ public Builder setSpecialistPool( com.google.cloud.aiplatform.v1beta1.SpecialistPool.Builder builderForValue) { if (specialistPoolBuilder_ == null) { specialistPool_ = builderForValue.build(); - onChanged(); } else { specialistPoolBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -653,19 +661,19 @@ public Builder setSpecialistPool( */ public Builder mergeSpecialistPool(com.google.cloud.aiplatform.v1beta1.SpecialistPool value) { if (specialistPoolBuilder_ == null) { - if (specialistPool_ != null) { - specialistPool_ = - com.google.cloud.aiplatform.v1beta1.SpecialistPool.newBuilder(specialistPool_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && specialistPool_ != null + && specialistPool_ + != com.google.cloud.aiplatform.v1beta1.SpecialistPool.getDefaultInstance()) { + getSpecialistPoolBuilder().mergeFrom(value); } else { specialistPool_ = value; } - onChanged(); } else { specialistPoolBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -680,14 +688,13 @@ public Builder mergeSpecialistPool(com.google.cloud.aiplatform.v1beta1.Specialis * */ public Builder clearSpecialistPool() { - if (specialistPoolBuilder_ == null) { - specialistPool_ = null; - onChanged(); - } else { - specialistPool_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + specialistPool_ = null; + if (specialistPoolBuilder_ != null) { + specialistPoolBuilder_.dispose(); specialistPoolBuilder_ = null; } - + onChanged(); return this; } /** @@ -702,7 +709,7 @@ public Builder clearSpecialistPool() { * */ public com.google.cloud.aiplatform.v1beta1.SpecialistPool.Builder getSpecialistPoolBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getSpecialistPoolFieldBuilder().getBuilder(); } @@ -774,7 +781,7 @@ public com.google.cloud.aiplatform.v1beta1.SpecialistPool.Builder getSpecialistP * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -813,11 +820,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -833,11 +840,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -852,17 +859,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -876,14 +884,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -897,7 +904,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardExperimentRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardExperimentRequest.java index 233166f3cd9c..1f0fea8f4fdc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardExperimentRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardExperimentRequest.java @@ -128,7 +128,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } public static final int TENSORBOARD_EXPERIMENT_FIELD_NUMBER = 2; @@ -189,7 +189,9 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment getTensorboardE @java.lang.Override public com.google.cloud.aiplatform.v1beta1.TensorboardExperimentOrBuilder getTensorboardExperimentOrBuilder() { - return getTensorboardExperiment(); + return tensorboardExperiment_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.getDefaultInstance() + : tensorboardExperiment_; } private byte memoizedIsInitialized = -1; @@ -413,16 +415,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - if (tensorboardExperimentBuilder_ == null) { - tensorboardExperiment_ = null; - } else { - tensorboardExperiment_ = null; + tensorboardExperiment_ = null; + if (tensorboardExperimentBuilder_ != null) { + tensorboardExperimentBuilder_.dispose(); tensorboardExperimentBuilder_ = null; } return this; @@ -455,20 +456,27 @@ public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest bu public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest result = new com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest(this); - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - if (tensorboardExperimentBuilder_ == null) { - result.tensorboardExperiment_ = tensorboardExperiment_; - } else { - result.tensorboardExperiment_ = tensorboardExperimentBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tensorboardExperiment_ = + tensorboardExperimentBuilder_ == null + ? tensorboardExperiment_ + : tensorboardExperimentBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -553,14 +561,14 @@ public Builder mergeFrom( case 10: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTensorboardExperimentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -580,6 +588,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, @@ -604,7 +614,7 @@ public Builder mergeFrom( * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -653,11 +663,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -678,11 +688,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -702,17 +712,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -731,14 +742,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -757,7 +767,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -839,7 +849,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * @return Whether the tensorboardExperiment field is set. */ public boolean hasTensorboardExperiment() { - return tensorboardExperimentBuilder_ != null || tensorboardExperiment_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -885,11 +895,11 @@ public Builder setTensorboardExperiment( throw new NullPointerException(); } tensorboardExperiment_ = value; - onChanged(); } else { tensorboardExperimentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -909,11 +919,11 @@ public Builder setTensorboardExperiment( com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder builderForValue) { if (tensorboardExperimentBuilder_ == null) { tensorboardExperiment_ = builderForValue.build(); - onChanged(); } else { tensorboardExperimentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -932,20 +942,19 @@ public Builder setTensorboardExperiment( public Builder mergeTensorboardExperiment( com.google.cloud.aiplatform.v1beta1.TensorboardExperiment value) { if (tensorboardExperimentBuilder_ == null) { - if (tensorboardExperiment_ != null) { - tensorboardExperiment_ = - com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.newBuilder( - tensorboardExperiment_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && tensorboardExperiment_ != null + && tensorboardExperiment_ + != com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.getDefaultInstance()) { + getTensorboardExperimentBuilder().mergeFrom(value); } else { tensorboardExperiment_ = value; } - onChanged(); } else { tensorboardExperimentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -962,14 +971,13 @@ public Builder mergeTensorboardExperiment( * */ public Builder clearTensorboardExperiment() { - if (tensorboardExperimentBuilder_ == null) { - tensorboardExperiment_ = null; - onChanged(); - } else { - tensorboardExperiment_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + tensorboardExperiment_ = null; + if (tensorboardExperimentBuilder_ != null) { + tensorboardExperimentBuilder_.dispose(); tensorboardExperimentBuilder_ = null; } - + onChanged(); return this; } /** @@ -987,7 +995,7 @@ public Builder clearTensorboardExperiment() { */ public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment.Builder getTensorboardExperimentBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTensorboardExperimentFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardOperationMetadata.java index d406a6e0c687..505919e2bfc6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardOperationMetadata.java @@ -112,7 +112,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -320,10 +322,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -356,15 +358,22 @@ public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata bu public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -446,7 +455,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -466,6 +475,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -484,7 +495,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -522,11 +533,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -542,11 +553,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -561,20 +572,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -587,14 +598,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -608,7 +618,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRequest.java index 8997c61b61a0..e1b79c483bec 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRequest.java @@ -127,7 +127,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } public static final int TENSORBOARD_FIELD_NUMBER = 2; @@ -187,7 +187,9 @@ public com.google.cloud.aiplatform.v1beta1.Tensorboard getTensorboard() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.TensorboardOrBuilder getTensorboardOrBuilder() { - return getTensorboard(); + return tensorboard_ == null + ? com.google.cloud.aiplatform.v1beta1.Tensorboard.getDefaultInstance() + : tensorboard_; } private byte memoizedIsInitialized = -1; @@ -408,16 +410,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - if (tensorboardBuilder_ == null) { - tensorboard_ = null; - } else { - tensorboard_ = null; + tensorboard_ = null; + if (tensorboardBuilder_ != null) { + tensorboardBuilder_.dispose(); tensorboardBuilder_ = null; } return this; @@ -448,20 +449,25 @@ public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest build() { public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest result = new com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest(this); - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - if (tensorboardBuilder_ == null) { - result.tensorboard_ = tensorboard_; - } else { - result.tensorboard_ = tensorboardBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tensorboard_ = + tensorboardBuilder_ == null ? tensorboard_ : tensorboardBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -544,13 +550,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getTensorboardFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -570,6 +576,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, @@ -594,7 +602,7 @@ public Builder mergeFrom( * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -643,11 +651,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -668,11 +676,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -692,17 +700,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -721,14 +730,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -747,7 +755,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -829,7 +837,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * @return Whether the tensorboard field is set. */ public boolean hasTensorboard() { - return tensorboardBuilder_ != null || tensorboard_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -874,11 +882,11 @@ public Builder setTensorboard(com.google.cloud.aiplatform.v1beta1.Tensorboard va throw new NullPointerException(); } tensorboard_ = value; - onChanged(); } else { tensorboardBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -898,11 +906,11 @@ public Builder setTensorboard( com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder builderForValue) { if (tensorboardBuilder_ == null) { tensorboard_ = builderForValue.build(); - onChanged(); } else { tensorboardBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -920,19 +928,19 @@ public Builder setTensorboard( */ public Builder mergeTensorboard(com.google.cloud.aiplatform.v1beta1.Tensorboard value) { if (tensorboardBuilder_ == null) { - if (tensorboard_ != null) { - tensorboard_ = - com.google.cloud.aiplatform.v1beta1.Tensorboard.newBuilder(tensorboard_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && tensorboard_ != null + && tensorboard_ + != com.google.cloud.aiplatform.v1beta1.Tensorboard.getDefaultInstance()) { + getTensorboardBuilder().mergeFrom(value); } else { tensorboard_ = value; } - onChanged(); } else { tensorboardBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -949,14 +957,13 @@ public Builder mergeTensorboard(com.google.cloud.aiplatform.v1beta1.Tensorboard * */ public Builder clearTensorboard() { - if (tensorboardBuilder_ == null) { - tensorboard_ = null; - onChanged(); - } else { - tensorboard_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + tensorboard_ = null; + if (tensorboardBuilder_ != null) { + tensorboardBuilder_.dispose(); tensorboardBuilder_ = null; } - + onChanged(); return this; } /** @@ -973,7 +980,7 @@ public Builder clearTensorboard() { * */ public com.google.cloud.aiplatform.v1beta1.Tensorboard.Builder getTensorboardBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTensorboardFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRunRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRunRequest.java index 0552d064cc06..24bab1371ca3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRunRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardRunRequest.java @@ -127,7 +127,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } public static final int TENSORBOARD_RUN_FIELD_NUMBER = 2; @@ -187,7 +187,9 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardRun getTensorboardRun() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder getTensorboardRunOrBuilder() { - return getTensorboardRun(); + return tensorboardRun_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardRun.getDefaultInstance() + : tensorboardRun_; } private byte memoizedIsInitialized = -1; @@ -408,16 +410,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - if (tensorboardRunBuilder_ == null) { - tensorboardRun_ = null; - } else { - tensorboardRun_ = null; + tensorboardRun_ = null; + if (tensorboardRunBuilder_ != null) { + tensorboardRunBuilder_.dispose(); tensorboardRunBuilder_ = null; } return this; @@ -448,20 +449,25 @@ public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest build() { public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest result = new com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest(this); - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - if (tensorboardRunBuilder_ == null) { - result.tensorboardRun_ = tensorboardRun_; - } else { - result.tensorboardRun_ = tensorboardRunBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tensorboardRun_ = + tensorboardRunBuilder_ == null ? tensorboardRun_ : tensorboardRunBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -545,13 +551,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getTensorboardRunFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -571,6 +577,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, @@ -595,7 +603,7 @@ public Builder mergeFrom( * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -644,11 +652,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -669,11 +677,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -693,17 +701,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -722,14 +731,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -748,7 +756,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -830,7 +838,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * @return Whether the tensorboardRun field is set. */ public boolean hasTensorboardRun() { - return tensorboardRunBuilder_ != null || tensorboardRun_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -875,11 +883,11 @@ public Builder setTensorboardRun(com.google.cloud.aiplatform.v1beta1.Tensorboard throw new NullPointerException(); } tensorboardRun_ = value; - onChanged(); } else { tensorboardRunBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -899,11 +907,11 @@ public Builder setTensorboardRun( com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder builderForValue) { if (tensorboardRunBuilder_ == null) { tensorboardRun_ = builderForValue.build(); - onChanged(); } else { tensorboardRunBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -921,19 +929,19 @@ public Builder setTensorboardRun( */ public Builder mergeTensorboardRun(com.google.cloud.aiplatform.v1beta1.TensorboardRun value) { if (tensorboardRunBuilder_ == null) { - if (tensorboardRun_ != null) { - tensorboardRun_ = - com.google.cloud.aiplatform.v1beta1.TensorboardRun.newBuilder(tensorboardRun_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && tensorboardRun_ != null + && tensorboardRun_ + != com.google.cloud.aiplatform.v1beta1.TensorboardRun.getDefaultInstance()) { + getTensorboardRunBuilder().mergeFrom(value); } else { tensorboardRun_ = value; } - onChanged(); } else { tensorboardRunBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -950,14 +958,13 @@ public Builder mergeTensorboardRun(com.google.cloud.aiplatform.v1beta1.Tensorboa * */ public Builder clearTensorboardRun() { - if (tensorboardRunBuilder_ == null) { - tensorboardRun_ = null; - onChanged(); - } else { - tensorboardRun_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + tensorboardRun_ = null; + if (tensorboardRunBuilder_ != null) { + tensorboardRunBuilder_.dispose(); tensorboardRunBuilder_ = null; } - + onChanged(); return this; } /** @@ -974,7 +981,7 @@ public Builder clearTensorboardRun() { * */ public com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder getTensorboardRunBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTensorboardRunFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardTimeSeriesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardTimeSeriesRequest.java index eef9b6e6be28..80e2123bfb0f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardTimeSeriesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateTensorboardTimeSeriesRequest.java @@ -128,7 +128,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } public static final int TENSORBOARD_TIME_SERIES_FIELD_NUMBER = 2; @@ -192,7 +192,9 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries getTensorboardT @java.lang.Override public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeriesOrBuilder getTensorboardTimeSeriesOrBuilder() { - return getTensorboardTimeSeries(); + return tensorboardTimeSeries_ == null + ? com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.getDefaultInstance() + : tensorboardTimeSeries_; } private byte memoizedIsInitialized = -1; @@ -416,16 +418,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - if (tensorboardTimeSeriesBuilder_ == null) { - tensorboardTimeSeries_ = null; - } else { - tensorboardTimeSeries_ = null; + tensorboardTimeSeries_ = null; + if (tensorboardTimeSeriesBuilder_ != null) { + tensorboardTimeSeriesBuilder_.dispose(); tensorboardTimeSeriesBuilder_ = null; } return this; @@ -458,20 +459,27 @@ public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest bu public com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest result = new com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest(this); - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - if (tensorboardTimeSeriesBuilder_ == null) { - result.tensorboardTimeSeries_ = tensorboardTimeSeries_; - } else { - result.tensorboardTimeSeries_ = tensorboardTimeSeriesBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tensorboardTimeSeries_ = + tensorboardTimeSeriesBuilder_ == null + ? tensorboardTimeSeries_ + : tensorboardTimeSeriesBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -556,14 +564,14 @@ public Builder mergeFrom( case 10: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTensorboardTimeSeriesFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -583,6 +591,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, @@ -607,7 +617,7 @@ public Builder mergeFrom( * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -656,11 +666,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -681,11 +691,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -705,17 +715,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -734,14 +745,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -760,7 +770,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -843,7 +853,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * @return Whether the tensorboardTimeSeries field is set. */ public boolean hasTensorboardTimeSeries() { - return tensorboardTimeSeriesBuilder_ != null || tensorboardTimeSeries_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -891,11 +901,11 @@ public Builder setTensorboardTimeSeries( throw new NullPointerException(); } tensorboardTimeSeries_ = value; - onChanged(); } else { tensorboardTimeSeriesBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -916,11 +926,11 @@ public Builder setTensorboardTimeSeries( com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder builderForValue) { if (tensorboardTimeSeriesBuilder_ == null) { tensorboardTimeSeries_ = builderForValue.build(); - onChanged(); } else { tensorboardTimeSeriesBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -940,20 +950,19 @@ public Builder setTensorboardTimeSeries( public Builder mergeTensorboardTimeSeries( com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries value) { if (tensorboardTimeSeriesBuilder_ == null) { - if (tensorboardTimeSeries_ != null) { - tensorboardTimeSeries_ = - com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.newBuilder( - tensorboardTimeSeries_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && tensorboardTimeSeries_ != null + && tensorboardTimeSeries_ + != com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.getDefaultInstance()) { + getTensorboardTimeSeriesBuilder().mergeFrom(value); } else { tensorboardTimeSeries_ = value; } - onChanged(); } else { tensorboardTimeSeriesBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -971,14 +980,13 @@ public Builder mergeTensorboardTimeSeries( * */ public Builder clearTensorboardTimeSeries() { - if (tensorboardTimeSeriesBuilder_ == null) { - tensorboardTimeSeries_ = null; - onChanged(); - } else { - tensorboardTimeSeries_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + tensorboardTimeSeries_ = null; + if (tensorboardTimeSeriesBuilder_ != null) { + tensorboardTimeSeriesBuilder_.dispose(); tensorboardTimeSeriesBuilder_ = null; } - + onChanged(); return this; } /** @@ -997,7 +1005,7 @@ public Builder clearTensorboardTimeSeries() { */ public com.google.cloud.aiplatform.v1beta1.TensorboardTimeSeries.Builder getTensorboardTimeSeriesBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTensorboardTimeSeriesFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelOperationMetadata.java index 7f6b2b224204..4844307b0d5a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelOperationMetadata.java @@ -113,7 +113,9 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe @java.lang.Override public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder() { - return getGenericMetadata(); + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; } private byte memoizedIsInitialized = -1; @@ -321,10 +323,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - } else { - genericMetadata_ = null; + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } return this; @@ -355,15 +357,22 @@ public com.google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata build() public com.google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata(this); - if (genericMetadataBuilder_ == null) { - result.genericMetadata_ = genericMetadata_; - } else { - result.genericMetadata_ = genericMetadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -444,7 +453,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -464,6 +473,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -482,7 +493,7 @@ public Builder mergeFrom( * @return Whether the genericMetadata field is set. */ public boolean hasGenericMetadata() { - return genericMetadataBuilder_ != null || genericMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -520,11 +531,11 @@ public Builder setGenericMetadata( throw new NullPointerException(); } genericMetadata_ = value; - onChanged(); } else { genericMetadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -540,11 +551,11 @@ public Builder setGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { if (genericMetadataBuilder_ == null) { genericMetadata_ = builderForValue.build(); - onChanged(); } else { genericMetadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -559,20 +570,20 @@ public Builder setGenericMetadata( public Builder mergeGenericMetadata( com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { if (genericMetadataBuilder_ == null) { - if (genericMetadata_ != null) { - genericMetadata_ = - com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( - genericMetadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); } else { genericMetadata_ = value; } - onChanged(); } else { genericMetadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -585,14 +596,13 @@ public Builder mergeGenericMetadata( * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; */ public Builder clearGenericMetadata() { - if (genericMetadataBuilder_ == null) { - genericMetadata_ = null; - onChanged(); - } else { - genericMetadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -606,7 +616,7 @@ public Builder clearGenericMetadata() { */ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder getGenericMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getGenericMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelRequest.java index 6b227b7381f5..e553f35de732 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PARENT_MODEL_FIELD_NUMBER = 4; - private volatile java.lang.Object parentModel_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parentModel_ = ""; /** * * @@ -178,7 +182,9 @@ public com.google.protobuf.ByteString getParentModelBytes() { } public static final int MODEL_ID_FIELD_NUMBER = 5; - private volatile java.lang.Object modelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelId_ = ""; /** * * @@ -281,11 +287,13 @@ public com.google.cloud.aiplatform.v1beta1.Model getModel() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.ModelOrBuilder getModelOrBuilder() { - return getModel(); + return model_ == null ? com.google.cloud.aiplatform.v1beta1.Model.getDefaultInstance() : model_; } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 6; - private volatile java.lang.Object serviceAccount_; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; /** * * @@ -585,20 +593,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - parentModel_ = ""; - modelId_ = ""; - - if (modelBuilder_ == null) { - model_ = null; - } else { - model_ = null; + model_ = null; + if (modelBuilder_ != null) { + modelBuilder_.dispose(); modelBuilder_ = null; } serviceAccount_ = ""; - return this; } @@ -626,19 +630,32 @@ public com.google.cloud.aiplatform.v1beta1.UploadModelRequest build() { public com.google.cloud.aiplatform.v1beta1.UploadModelRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UploadModelRequest result = new com.google.cloud.aiplatform.v1beta1.UploadModelRequest(this); - result.parent_ = parent_; - result.parentModel_ = parentModel_; - result.modelId_ = modelId_; - if (modelBuilder_ == null) { - result.model_ = model_; - } else { - result.model_ = modelBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.serviceAccount_ = serviceAccount_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.UploadModelRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parentModel_ = parentModel_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.modelId_ = modelId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.model_ = modelBuilder_ == null ? model_ : modelBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -687,14 +704,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UploadModelRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getParentModel().isEmpty()) { parentModel_ = other.parentModel_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getModelId().isEmpty()) { modelId_ = other.modelId_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasModel()) { @@ -702,6 +722,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UploadModelRequest } if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -733,31 +754,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getModelFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 18 case 34: { parentModel_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 34 case 42: { modelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 42 case 50: { serviceAccount_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 50 default: @@ -777,6 +798,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -847,8 +870,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -867,8 +890,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -892,8 +915,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -962,8 +985,8 @@ public Builder setParentModel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parentModel_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -980,8 +1003,8 @@ public Builder setParentModel(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParentModel() { - parentModel_ = getDefaultInstance().getParentModel(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1003,8 +1026,8 @@ public Builder setParentModelBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parentModel_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1079,8 +1102,8 @@ public Builder setModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1099,8 +1122,8 @@ public Builder setModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelId() { - modelId_ = getDefaultInstance().getModelId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1124,8 +1147,8 @@ public Builder setModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1150,7 +1173,7 @@ public Builder setModelIdBytes(com.google.protobuf.ByteString value) { * @return Whether the model field is set. */ public boolean hasModel() { - return modelBuilder_ != null || model_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1191,11 +1214,11 @@ public Builder setModel(com.google.cloud.aiplatform.v1beta1.Model value) { throw new NullPointerException(); } model_ = value; - onChanged(); } else { modelBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1212,11 +1235,11 @@ public Builder setModel(com.google.cloud.aiplatform.v1beta1.Model value) { public Builder setModel(com.google.cloud.aiplatform.v1beta1.Model.Builder builderForValue) { if (modelBuilder_ == null) { model_ = builderForValue.build(); - onChanged(); } else { modelBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1232,19 +1255,18 @@ public Builder setModel(com.google.cloud.aiplatform.v1beta1.Model.Builder builde */ public Builder mergeModel(com.google.cloud.aiplatform.v1beta1.Model value) { if (modelBuilder_ == null) { - if (model_ != null) { - model_ = - com.google.cloud.aiplatform.v1beta1.Model.newBuilder(model_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && model_ != null + && model_ != com.google.cloud.aiplatform.v1beta1.Model.getDefaultInstance()) { + getModelBuilder().mergeFrom(value); } else { model_ = value; } - onChanged(); } else { modelBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1259,14 +1281,13 @@ public Builder mergeModel(com.google.cloud.aiplatform.v1beta1.Model value) { * */ public Builder clearModel() { - if (modelBuilder_ == null) { - model_ = null; - onChanged(); - } else { - model_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + model_ = null; + if (modelBuilder_ != null) { + modelBuilder_.dispose(); modelBuilder_ = null; } - + onChanged(); return this; } /** @@ -1281,7 +1302,7 @@ public Builder clearModel() { * */ public com.google.cloud.aiplatform.v1beta1.Model.Builder getModelBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getModelFieldBuilder().getBuilder(); } @@ -1412,8 +1433,8 @@ public Builder setServiceAccount(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - serviceAccount_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1435,8 +1456,8 @@ public Builder setServiceAccount(java.lang.String value) { * @return This builder for chaining. */ public Builder clearServiceAccount() { - serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1463,8 +1484,8 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - serviceAccount_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelResponse.java index 4e93e91f9329..522868e2ba37 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelResponse.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MODEL_FIELD_NUMBER = 1; - private volatile java.lang.Object model_; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; /** * * @@ -122,7 +124,9 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int MODEL_VERSION_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object modelVersionId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelVersionId_ = ""; /** * * @@ -379,10 +383,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; model_ = ""; - modelVersionId_ = ""; - return this; } @@ -410,12 +413,23 @@ public com.google.cloud.aiplatform.v1beta1.UploadModelResponse build() { public com.google.cloud.aiplatform.v1beta1.UploadModelResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.UploadModelResponse result = new com.google.cloud.aiplatform.v1beta1.UploadModelResponse(this); - result.model_ = model_; - result.modelVersionId_ = modelVersionId_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.UploadModelResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.model_ = model_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelVersionId_ = modelVersionId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -464,10 +478,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UploadModelResponse return this; if (!other.getModel().isEmpty()) { model_ = other.model_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getModelVersionId().isEmpty()) { modelVersionId_ = other.modelVersionId_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -499,13 +515,13 @@ public Builder mergeFrom( case 10: { model_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { modelVersionId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -525,6 +541,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object model_ = ""; /** * @@ -589,8 +607,8 @@ public Builder setModel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - model_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -607,8 +625,8 @@ public Builder setModel(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModel() { - model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -630,8 +648,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - model_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -697,8 +715,8 @@ public Builder setModelVersionId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - modelVersionId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -714,8 +732,8 @@ public Builder setModelVersionId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModelVersionId() { - modelVersionId_ = getDefaultInstance().getModelVersionId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -736,8 +754,8 @@ public Builder setModelVersionIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - modelVersionId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpsertDatapointsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpsertDatapointsRequest.java index 47302a0e23fb..e0916ad0317f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpsertDatapointsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpsertDatapointsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INDEX_FIELD_NUMBER = 1; - private volatile java.lang.Object index_; + + @SuppressWarnings("serial") + private volatile java.lang.Object index_ = ""; /** * * @@ -127,6 +129,8 @@ public com.google.protobuf.ByteString getIndexBytes() { } public static final int DATAPOINTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List datapoints_; /** * @@ -406,15 +410,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; index_ = ""; - if (datapointsBuilder_ == null) { datapoints_ = java.util.Collections.emptyList(); } else { datapoints_ = null; datapointsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -442,19 +446,32 @@ public com.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest build() { public com.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest result = new com.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest(this); - int from_bitField0_ = bitField0_; - result.index_ = index_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest result) { if (datapointsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { datapoints_ = java.util.Collections.unmodifiableList(datapoints_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.datapoints_ = datapoints_; } else { result.datapoints_ = datapointsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.index_ = index_; + } } @java.lang.Override @@ -505,13 +522,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UpsertDatapointsReq return this; if (!other.getIndex().isEmpty()) { index_ = other.index_; + bitField0_ |= 0x00000001; onChanged(); } if (datapointsBuilder_ == null) { if (!other.datapoints_.isEmpty()) { if (datapoints_.isEmpty()) { datapoints_ = other.datapoints_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDatapointsIsMutable(); datapoints_.addAll(other.datapoints_); @@ -524,7 +542,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UpsertDatapointsReq datapointsBuilder_.dispose(); datapointsBuilder_ = null; datapoints_ = other.datapoints_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); datapointsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDatapointsFieldBuilder() @@ -563,7 +581,7 @@ public Builder mergeFrom( case 10: { index_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -672,8 +690,8 @@ public Builder setIndex(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - index_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -693,8 +711,8 @@ public Builder setIndex(java.lang.String value) { * @return This builder for chaining. */ public Builder clearIndex() { - index_ = getDefaultInstance().getIndex(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -719,8 +737,8 @@ public Builder setIndexBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - index_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -729,11 +747,11 @@ public Builder setIndexBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureDatapointsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { datapoints_ = new java.util.ArrayList( datapoints_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -951,7 +969,7 @@ public Builder addAllDatapoints( public Builder clearDatapoints() { if (datapointsBuilder_ == null) { datapoints_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { datapointsBuilder_.clear(); @@ -1077,7 +1095,7 @@ public com.google.cloud.aiplatform.v1beta1.IndexDatapoint.Builder addDatapointsB com.google.cloud.aiplatform.v1beta1.IndexDatapoint, com.google.cloud.aiplatform.v1beta1.IndexDatapoint.Builder, com.google.cloud.aiplatform.v1beta1.IndexDatapointOrBuilder>( - datapoints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + datapoints_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); datapoints_ = null; } return datapointsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UserActionReference.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UserActionReference.java index 6e95e656ac50..394b8ca3d7de 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UserActionReference.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UserActionReference.java @@ -274,7 +274,9 @@ public com.google.protobuf.ByteString getDataLabelingJobBytes() { } public static final int METHOD_FIELD_NUMBER = 3; - private volatile java.lang.Object method_; + + @SuppressWarnings("serial") + private volatile java.lang.Object method_ = ""; /** * * @@ -558,8 +560,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; method_ = ""; - referenceCase_ = 0; reference_ = null; return this; @@ -589,18 +591,27 @@ public com.google.cloud.aiplatform.v1beta1.UserActionReference build() { public com.google.cloud.aiplatform.v1beta1.UserActionReference buildPartial() { com.google.cloud.aiplatform.v1beta1.UserActionReference result = new com.google.cloud.aiplatform.v1beta1.UserActionReference(this); - if (referenceCase_ == 1) { - result.reference_ = reference_; - } - if (referenceCase_ == 2) { - result.reference_ = reference_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.method_ = method_; - result.referenceCase_ = referenceCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.UserActionReference result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.method_ = method_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.UserActionReference result) { + result.referenceCase_ = referenceCase_; + result.reference_ = this.reference_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -649,6 +660,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UserActionReference return this; if (!other.getMethod().isEmpty()) { method_ = other.method_; + bitField0_ |= 0x00000004; onChanged(); } switch (other.getReferenceCase()) { @@ -714,7 +726,7 @@ public Builder mergeFrom( case 26: { method_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -748,6 +760,8 @@ public Builder clearReference() { return this; } + private int bitField0_; + /** * * @@ -1116,8 +1130,8 @@ public Builder setMethod(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - method_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1134,8 +1148,8 @@ public Builder setMethod(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMethod() { - method_ = getDefaultInstance().getMethod(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1157,8 +1171,8 @@ public Builder setMethodBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - method_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Value.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Value.java index fe739cca1872..dec62ba63755 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Value.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Value.java @@ -499,6 +499,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; valueCase_ = 0; value_ = null; return this; @@ -528,20 +529,23 @@ public com.google.cloud.aiplatform.v1beta1.Value build() { public com.google.cloud.aiplatform.v1beta1.Value buildPartial() { com.google.cloud.aiplatform.v1beta1.Value result = new com.google.cloud.aiplatform.v1beta1.Value(this); - if (valueCase_ == 1) { - result.value_ = value_; - } - if (valueCase_ == 2) { - result.value_ = value_; + if (bitField0_ != 0) { + buildPartial0(result); } - if (valueCase_ == 3) { - result.value_ = value_; - } - result.valueCase_ = valueCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Value result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.Value result) { + result.valueCase_ = valueCase_; + result.value_ = this.value_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -686,6 +690,8 @@ public Builder clearValue() { return this; } + private int bitField0_; + /** * * @@ -730,6 +736,7 @@ public long getIntValue() { * @return This builder for chaining. */ public Builder setIntValue(long value) { + valueCase_ = 1; value_ = value; onChanged(); @@ -799,6 +806,7 @@ public double getDoubleValue() { * @return This builder for chaining. */ public Builder setDoubleValue(double value) { + valueCase_ = 2; value_ = value; onChanged(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WorkerPoolSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WorkerPoolSpec.java index 083936be8594..4882a0fcb9e9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WorkerPoolSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WorkerPoolSpec.java @@ -268,11 +268,13 @@ public com.google.cloud.aiplatform.v1beta1.MachineSpec getMachineSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder getMachineSpecOrBuilder() { - return getMachineSpec(); + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.MachineSpec.getDefaultInstance() + : machineSpec_; } public static final int REPLICA_COUNT_FIELD_NUMBER = 2; - private long replicaCount_; + private long replicaCount_ = 0L; /** * * @@ -290,6 +292,8 @@ public long getReplicaCount() { } public static final int NFS_MOUNTS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List nfsMounts_; /** * @@ -413,7 +417,9 @@ public com.google.cloud.aiplatform.v1beta1.DiskSpec getDiskSpec() { */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.DiskSpecOrBuilder getDiskSpecOrBuilder() { - return getDiskSpec(); + return diskSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.DiskSpec.getDefaultInstance() + : diskSpec_; } private byte memoizedIsInitialized = -1; @@ -691,31 +697,29 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (containerSpecBuilder_ != null) { containerSpecBuilder_.clear(); } if (pythonPackageSpecBuilder_ != null) { pythonPackageSpecBuilder_.clear(); } - if (machineSpecBuilder_ == null) { - machineSpec_ = null; - } else { - machineSpec_ = null; + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); machineSpecBuilder_ = null; } replicaCount_ = 0L; - if (nfsMountsBuilder_ == null) { nfsMounts_ = java.util.Collections.emptyList(); } else { nfsMounts_ = null; nfsMountsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (diskSpecBuilder_ == null) { - diskSpec_ = null; - } else { - diskSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + diskSpec_ = null; + if (diskSpecBuilder_ != null) { + diskSpecBuilder_.dispose(); diskSpecBuilder_ = null; } taskCase_ = 0; @@ -747,44 +751,51 @@ public com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec build() { public com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec buildPartial() { com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec result = new com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec(this); - int from_bitField0_ = bitField0_; - if (taskCase_ == 6) { - if (containerSpecBuilder_ == null) { - result.task_ = task_; - } else { - result.task_ = containerSpecBuilder_.build(); - } - } - if (taskCase_ == 7) { - if (pythonPackageSpecBuilder_ == null) { - result.task_ = task_; - } else { - result.task_ = pythonPackageSpecBuilder_.build(); - } - } - if (machineSpecBuilder_ == null) { - result.machineSpec_ = machineSpec_; - } else { - result.machineSpec_ = machineSpecBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.replicaCount_ = replicaCount_; + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec result) { if (nfsMountsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { nfsMounts_ = java.util.Collections.unmodifiableList(nfsMounts_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } result.nfsMounts_ = nfsMounts_; } else { result.nfsMounts_ = nfsMountsBuilder_.build(); } - if (diskSpecBuilder_ == null) { - result.diskSpec_ = diskSpec_; - } else { - result.diskSpec_ = diskSpecBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.machineSpec_ = + machineSpecBuilder_ == null ? machineSpec_ : machineSpecBuilder_.build(); } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.replicaCount_ = replicaCount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.diskSpec_ = diskSpecBuilder_ == null ? diskSpec_ : diskSpecBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec result) { result.taskCase_ = taskCase_; - onBuilt(); - return result; + result.task_ = this.task_; + if (taskCase_ == 6 && containerSpecBuilder_ != null) { + result.task_ = containerSpecBuilder_.build(); + } + if (taskCase_ == 7 && pythonPackageSpecBuilder_ != null) { + result.task_ = pythonPackageSpecBuilder_.build(); + } } @java.lang.Override @@ -843,7 +854,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec othe if (!other.nfsMounts_.isEmpty()) { if (nfsMounts_.isEmpty()) { nfsMounts_ = other.nfsMounts_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureNfsMountsIsMutable(); nfsMounts_.addAll(other.nfsMounts_); @@ -856,7 +867,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.WorkerPoolSpec othe nfsMountsBuilder_.dispose(); nfsMountsBuilder_ = null; nfsMounts_ = other.nfsMounts_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); nfsMountsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNfsMountsFieldBuilder() @@ -914,13 +925,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getMachineSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 10 case 16: { replicaCount_ = input.readInt64(); - + bitField0_ |= 0x00000008; break; } // case 16 case 34: @@ -939,7 +950,7 @@ public Builder mergeFrom( case 42: { input.readMessage(getDiskSpecFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 42 case 50: @@ -1194,7 +1205,6 @@ public com.google.cloud.aiplatform.v1beta1.ContainerSpecOrBuilder getContainerSp } taskCase_ = 6; onChanged(); - ; return containerSpecBuilder_; } @@ -1409,7 +1419,6 @@ public Builder clearPythonPackageSpec() { } taskCase_ = 7; onChanged(); - ; return pythonPackageSpecBuilder_; } @@ -1433,7 +1442,7 @@ public Builder clearPythonPackageSpec() { * @return Whether the machineSpec field is set. */ public boolean hasMachineSpec() { - return machineSpecBuilder_ != null || machineSpec_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1474,11 +1483,11 @@ public Builder setMachineSpec(com.google.cloud.aiplatform.v1beta1.MachineSpec va throw new NullPointerException(); } machineSpec_ = value; - onChanged(); } else { machineSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1496,11 +1505,11 @@ public Builder setMachineSpec( com.google.cloud.aiplatform.v1beta1.MachineSpec.Builder builderForValue) { if (machineSpecBuilder_ == null) { machineSpec_ = builderForValue.build(); - onChanged(); } else { machineSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1516,19 +1525,19 @@ public Builder setMachineSpec( */ public Builder mergeMachineSpec(com.google.cloud.aiplatform.v1beta1.MachineSpec value) { if (machineSpecBuilder_ == null) { - if (machineSpec_ != null) { - machineSpec_ = - com.google.cloud.aiplatform.v1beta1.MachineSpec.newBuilder(machineSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && machineSpec_ != null + && machineSpec_ + != com.google.cloud.aiplatform.v1beta1.MachineSpec.getDefaultInstance()) { + getMachineSpecBuilder().mergeFrom(value); } else { machineSpec_ = value; } - onChanged(); } else { machineSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1543,14 +1552,13 @@ public Builder mergeMachineSpec(com.google.cloud.aiplatform.v1beta1.MachineSpec * */ public Builder clearMachineSpec() { - if (machineSpecBuilder_ == null) { - machineSpec_ = null; - onChanged(); - } else { - machineSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); machineSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -1565,7 +1573,7 @@ public Builder clearMachineSpec() { * */ public com.google.cloud.aiplatform.v1beta1.MachineSpec.Builder getMachineSpecBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getMachineSpecFieldBuilder().getBuilder(); } @@ -1648,6 +1656,7 @@ public long getReplicaCount() { public Builder setReplicaCount(long value) { replicaCount_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1663,7 +1672,7 @@ public Builder setReplicaCount(long value) { * @return This builder for chaining. */ public Builder clearReplicaCount() { - + bitField0_ = (bitField0_ & ~0x00000008); replicaCount_ = 0L; onChanged(); return this; @@ -1673,10 +1682,10 @@ public Builder clearReplicaCount() { java.util.Collections.emptyList(); private void ensureNfsMountsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { nfsMounts_ = new java.util.ArrayList(nfsMounts_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000010; } } @@ -1914,7 +1923,7 @@ public Builder addAllNfsMounts( public Builder clearNfsMounts() { if (nfsMountsBuilder_ == null) { nfsMounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { nfsMountsBuilder_.clear(); @@ -2050,7 +2059,7 @@ public com.google.cloud.aiplatform.v1beta1.NfsMount.Builder addNfsMountsBuilder( com.google.cloud.aiplatform.v1beta1.NfsMount, com.google.cloud.aiplatform.v1beta1.NfsMount.Builder, com.google.cloud.aiplatform.v1beta1.NfsMountOrBuilder>( - nfsMounts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + nfsMounts_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); nfsMounts_ = null; } return nfsMountsBuilder_; @@ -2074,7 +2083,7 @@ public com.google.cloud.aiplatform.v1beta1.NfsMount.Builder addNfsMountsBuilder( * @return Whether the diskSpec field is set. */ public boolean hasDiskSpec() { - return diskSpecBuilder_ != null || diskSpec_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2111,11 +2120,11 @@ public Builder setDiskSpec(com.google.cloud.aiplatform.v1beta1.DiskSpec value) { throw new NullPointerException(); } diskSpec_ = value; - onChanged(); } else { diskSpecBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2131,11 +2140,11 @@ public Builder setDiskSpec( com.google.cloud.aiplatform.v1beta1.DiskSpec.Builder builderForValue) { if (diskSpecBuilder_ == null) { diskSpec_ = builderForValue.build(); - onChanged(); } else { diskSpecBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2149,19 +2158,18 @@ public Builder setDiskSpec( */ public Builder mergeDiskSpec(com.google.cloud.aiplatform.v1beta1.DiskSpec value) { if (diskSpecBuilder_ == null) { - if (diskSpec_ != null) { - diskSpec_ = - com.google.cloud.aiplatform.v1beta1.DiskSpec.newBuilder(diskSpec_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && diskSpec_ != null + && diskSpec_ != com.google.cloud.aiplatform.v1beta1.DiskSpec.getDefaultInstance()) { + getDiskSpecBuilder().mergeFrom(value); } else { diskSpec_ = value; } - onChanged(); } else { diskSpecBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2174,14 +2182,13 @@ public Builder mergeDiskSpec(com.google.cloud.aiplatform.v1beta1.DiskSpec value) * .google.cloud.aiplatform.v1beta1.DiskSpec disk_spec = 5; */ public Builder clearDiskSpec() { - if (diskSpecBuilder_ == null) { - diskSpec_ = null; - onChanged(); - } else { - diskSpec_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + diskSpec_ = null; + if (diskSpecBuilder_ != null) { + diskSpecBuilder_.dispose(); diskSpecBuilder_ = null; } - + onChanged(); return this; } /** @@ -2194,7 +2201,7 @@ public Builder clearDiskSpec() { * .google.cloud.aiplatform.v1beta1.DiskSpec disk_spec = 5; */ public com.google.cloud.aiplatform.v1beta1.DiskSpec.Builder getDiskSpecBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getDiskSpecFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteFeatureValuesPayload.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteFeatureValuesPayload.java index d0fc04c1b9a8..ef4fab4cc011 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteFeatureValuesPayload.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteFeatureValuesPayload.java @@ -79,7 +79,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int ENTITY_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object entityId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityId_ = ""; /** * * @@ -144,6 +146,7 @@ private static final class FeatureValuesDefaultEntryHolder { com.google.cloud.aiplatform.v1beta1.FeatureValue.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.FeatureValue> featureValues_; @@ -223,8 +226,10 @@ public boolean containsFeatureValues(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.FeatureValue getFeatureValuesOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1beta1.FeatureValue defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1beta1.FeatureValue getFeatureValuesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.FeatureValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -497,8 +502,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; entityId_ = ""; - internalGetMutableFeatureValues().clear(); return this; } @@ -528,14 +533,25 @@ public com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload build() { public com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload buildPartial() { com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload result = new com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload(this); - int from_bitField0_ = bitField0_; - result.entityId_ = entityId_; - result.featureValues_ = internalGetFeatureValues(); - result.featureValues_.makeImmutable(); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityId_ = entityId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.featureValues_ = internalGetFeatureValues(); + result.featureValues_.makeImmutable(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -585,9 +601,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesP return this; if (!other.getEntityId().isEmpty()) { entityId_ = other.entityId_; + bitField0_ |= 0x00000001; onChanged(); } internalGetMutableFeatureValues().mergeFrom(other.internalGetFeatureValues()); + bitField0_ |= 0x00000002; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -617,7 +635,7 @@ public Builder mergeFrom( case 10: { entityId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -631,6 +649,7 @@ public Builder mergeFrom( internalGetMutableFeatureValues() .getMutableMap() .put(featureValues__.getKey(), featureValues__.getValue()); + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -713,8 +732,8 @@ public Builder setEntityId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -730,8 +749,8 @@ public Builder setEntityId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityId() { - entityId_ = getDefaultInstance().getEntityId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -752,8 +771,8 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -775,8 +794,6 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.MapField< java.lang.String, com.google.cloud.aiplatform.v1beta1.FeatureValue> internalGetMutableFeatureValues() { - onChanged(); - ; if (featureValues_ == null) { featureValues_ = com.google.protobuf.MapField.newMapField(FeatureValuesDefaultEntryHolder.defaultEntry); @@ -784,6 +801,8 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { if (!featureValues_.isMutable()) { featureValues_ = featureValues_.copy(); } + bitField0_ |= 0x00000002; + onChanged(); return featureValues_; } @@ -852,8 +871,11 @@ public boolean containsFeatureValues(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.FeatureValue getFeatureValuesOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1beta1.FeatureValue defaultValue) { + public /* nullable */ com.google.cloud.aiplatform.v1beta1.FeatureValue + getFeatureValuesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.FeatureValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -890,6 +912,7 @@ public com.google.cloud.aiplatform.v1beta1.FeatureValue getFeatureValuesOrThrow( } public Builder clearFeatureValues() { + bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableFeatureValues().getMutableMap().clear(); return this; } @@ -918,6 +941,7 @@ public Builder removeFeatureValues(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableFeatureValues() { + bitField0_ |= 0x00000002; return internalGetMutableFeatureValues().getMutableMap(); } /** @@ -942,8 +966,8 @@ public Builder putFeatureValues( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableFeatureValues().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; return this; } /** @@ -963,6 +987,7 @@ public Builder putFeatureValues( public Builder putAllFeatureValues( java.util.Map values) { internalGetMutableFeatureValues().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteFeatureValuesPayloadOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteFeatureValuesPayloadOrBuilder.java index 8137de03a123..ec27950f3256 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteFeatureValuesPayloadOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteFeatureValuesPayloadOrBuilder.java @@ -112,7 +112,6 @@ public interface WriteFeatureValuesPayloadOrBuilder * map<string, .google.cloud.aiplatform.v1beta1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED]; * */ - /* nullable */ com.google.cloud.aiplatform.v1beta1.FeatureValue getFeatureValuesOrDefault( java.lang.String key, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteFeatureValuesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteFeatureValuesRequest.java index 0c5162dff9bd..caae5624fa95 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteFeatureValuesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteFeatureValuesRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENTITY_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object entityType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityType_ = ""; /** * * @@ -133,6 +135,8 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { } public static final int PAYLOADS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List payloads_; /** * @@ -429,15 +433,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; entityType_ = ""; - if (payloadsBuilder_ == null) { payloads_ = java.util.Collections.emptyList(); } else { payloads_ = null; payloadsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -466,19 +470,33 @@ public com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest build() { public com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest result = new com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest(this); - int from_bitField0_ = bitField0_; - result.entityType_ = entityType_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest result) { if (payloadsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { payloads_ = java.util.Collections.unmodifiableList(payloads_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.payloads_ = payloads_; } else { result.payloads_ = payloadsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityType_ = entityType_; + } } @java.lang.Override @@ -530,13 +548,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesR return this; if (!other.getEntityType().isEmpty()) { entityType_ = other.entityType_; + bitField0_ |= 0x00000001; onChanged(); } if (payloadsBuilder_ == null) { if (!other.payloads_.isEmpty()) { if (payloads_.isEmpty()) { payloads_ = other.payloads_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePayloadsIsMutable(); payloads_.addAll(other.payloads_); @@ -549,7 +568,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesR payloadsBuilder_.dispose(); payloadsBuilder_ = null; payloads_ = other.payloads_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); payloadsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPayloadsFieldBuilder() @@ -588,7 +607,7 @@ public Builder mergeFrom( case 10: { entityType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -706,8 +725,8 @@ public Builder setEntityType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -730,8 +749,8 @@ public Builder setEntityType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityType() { - entityType_ = getDefaultInstance().getEntityType(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -759,8 +778,8 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -769,11 +788,11 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { payloads_ = java.util.Collections.emptyList(); private void ensurePayloadsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { payloads_ = new java.util.ArrayList( payloads_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1029,7 +1048,7 @@ public Builder addAllPayloads( public Builder clearPayloads() { if (payloadsBuilder_ == null) { payloads_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { payloadsBuilder_.clear(); @@ -1180,7 +1199,7 @@ public com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload.Builder add com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload, com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload.Builder, com.google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayloadOrBuilder>( - payloads_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + payloads_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); payloads_ = null; } return payloadsBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardExperimentDataRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardExperimentDataRequest.java index 788700d6e3c0..894fe0845901 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardExperimentDataRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardExperimentDataRequest.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_EXPERIMENT_FIELD_NUMBER = 1; - private volatile java.lang.Object tensorboardExperiment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboardExperiment_ = ""; /** * * @@ -130,6 +132,8 @@ public com.google.protobuf.ByteString getTensorboardExperimentBytes() { } public static final int WRITE_RUN_DATA_REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List writeRunDataRequests_; /** @@ -428,15 +432,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; tensorboardExperiment_ = ""; - if (writeRunDataRequestsBuilder_ == null) { writeRunDataRequests_ = java.util.Collections.emptyList(); } else { writeRunDataRequests_ = null; writeRunDataRequestsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -468,19 +472,33 @@ public com.google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest result = new com.google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest(this); - int from_bitField0_ = bitField0_; - result.tensorboardExperiment_ = tensorboardExperiment_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest result) { if (writeRunDataRequestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { writeRunDataRequests_ = java.util.Collections.unmodifiableList(writeRunDataRequests_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.writeRunDataRequests_ = writeRunDataRequests_; } else { result.writeRunDataRequests_ = writeRunDataRequestsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tensorboardExperiment_ = tensorboardExperiment_; + } } @java.lang.Override @@ -535,13 +553,14 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getTensorboardExperiment().isEmpty()) { tensorboardExperiment_ = other.tensorboardExperiment_; + bitField0_ |= 0x00000001; onChanged(); } if (writeRunDataRequestsBuilder_ == null) { if (!other.writeRunDataRequests_.isEmpty()) { if (writeRunDataRequests_.isEmpty()) { writeRunDataRequests_ = other.writeRunDataRequests_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureWriteRunDataRequestsIsMutable(); writeRunDataRequests_.addAll(other.writeRunDataRequests_); @@ -554,7 +573,7 @@ public Builder mergeFrom( writeRunDataRequestsBuilder_.dispose(); writeRunDataRequestsBuilder_ = null; writeRunDataRequests_ = other.writeRunDataRequests_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); writeRunDataRequestsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWriteRunDataRequestsFieldBuilder() @@ -593,7 +612,7 @@ public Builder mergeFrom( case 10: { tensorboardExperiment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -702,8 +721,8 @@ public Builder setTensorboardExperiment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboardExperiment_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -723,8 +742,8 @@ public Builder setTensorboardExperiment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboardExperiment() { - tensorboardExperiment_ = getDefaultInstance().getTensorboardExperiment(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -749,8 +768,8 @@ public Builder setTensorboardExperimentBytes(com.google.protobuf.ByteString valu throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboardExperiment_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -759,12 +778,12 @@ public Builder setTensorboardExperimentBytes(com.google.protobuf.ByteString valu writeRunDataRequests_ = java.util.Collections.emptyList(); private void ensureWriteRunDataRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { writeRunDataRequests_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest>( writeRunDataRequests_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1014,7 +1033,7 @@ public Builder addAllWriteRunDataRequests( public Builder clearWriteRunDataRequests() { if (writeRunDataRequestsBuilder_ == null) { writeRunDataRequests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { writeRunDataRequestsBuilder_.clear(); @@ -1162,7 +1181,7 @@ public Builder removeWriteRunDataRequests(int index) { com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest.Builder, com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequestOrBuilder>( writeRunDataRequests_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); writeRunDataRequests_ = null; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataRequest.java index cb93bf9d929b..7f1fdd95d3b9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/WriteTensorboardRunDataRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TENSORBOARD_RUN_FIELD_NUMBER = 1; - private volatile java.lang.Object tensorboardRun_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboardRun_ = ""; /** * * @@ -128,6 +130,8 @@ public com.google.protobuf.ByteString getTensorboardRunBytes() { } public static final int TIME_SERIES_DATA_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List timeSeriesData_; /** * @@ -440,15 +444,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; tensorboardRun_ = ""; - if (timeSeriesDataBuilder_ == null) { timeSeriesData_ = java.util.Collections.emptyList(); } else { timeSeriesData_ = null; timeSeriesDataBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -478,19 +482,33 @@ public com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest build( public com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest result = new com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest(this); - int from_bitField0_ = bitField0_; - result.tensorboardRun_ = tensorboardRun_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest result) { if (timeSeriesDataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { timeSeriesData_ = java.util.Collections.unmodifiableList(timeSeriesData_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.timeSeriesData_ = timeSeriesData_; } else { result.timeSeriesData_ = timeSeriesDataBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tensorboardRun_ = tensorboardRun_; + } } @java.lang.Override @@ -544,13 +562,14 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getTensorboardRun().isEmpty()) { tensorboardRun_ = other.tensorboardRun_; + bitField0_ |= 0x00000001; onChanged(); } if (timeSeriesDataBuilder_ == null) { if (!other.timeSeriesData_.isEmpty()) { if (timeSeriesData_.isEmpty()) { timeSeriesData_ = other.timeSeriesData_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTimeSeriesDataIsMutable(); timeSeriesData_.addAll(other.timeSeriesData_); @@ -563,7 +582,7 @@ public Builder mergeFrom( timeSeriesDataBuilder_.dispose(); timeSeriesDataBuilder_ = null; timeSeriesData_ = other.timeSeriesData_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); timeSeriesDataBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTimeSeriesDataFieldBuilder() @@ -602,7 +621,7 @@ public Builder mergeFrom( case 10: { tensorboardRun_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -711,8 +730,8 @@ public Builder setTensorboardRun(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tensorboardRun_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -732,8 +751,8 @@ public Builder setTensorboardRun(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTensorboardRun() { - tensorboardRun_ = getDefaultInstance().getTensorboardRun(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -758,8 +777,8 @@ public Builder setTensorboardRunBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - tensorboardRun_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -768,11 +787,11 @@ public Builder setTensorboardRunBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureTimeSeriesDataIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { timeSeriesData_ = new java.util.ArrayList( timeSeriesData_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1057,7 +1076,7 @@ public Builder addAllTimeSeriesData( public Builder clearTimeSeriesData() { if (timeSeriesDataBuilder_ == null) { timeSeriesData_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { timeSeriesDataBuilder_.clear(); @@ -1226,7 +1245,7 @@ public com.google.cloud.aiplatform.v1beta1.TimeSeriesData.Builder addTimeSeriesD com.google.cloud.aiplatform.v1beta1.TimeSeriesData.Builder, com.google.cloud.aiplatform.v1beta1.TimeSeriesDataOrBuilder>( timeSeriesData_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); timeSeriesData_ = null; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/XraiAttribution.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/XraiAttribution.java index 8ce17c50b6b0..597dda554053 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/XraiAttribution.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/XraiAttribution.java @@ -70,7 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int STEP_COUNT_FIELD_NUMBER = 1; - private int stepCount_; + private int stepCount_ = 0; /** * * @@ -148,7 +148,9 @@ public com.google.cloud.aiplatform.v1beta1.SmoothGradConfig getSmoothGradConfig( @java.lang.Override public com.google.cloud.aiplatform.v1beta1.SmoothGradConfigOrBuilder getSmoothGradConfigOrBuilder() { - return getSmoothGradConfig(); + return smoothGradConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.SmoothGradConfig.getDefaultInstance() + : smoothGradConfig_; } public static final int BLUR_BASELINE_CONFIG_FIELD_NUMBER = 3; @@ -209,7 +211,9 @@ public com.google.cloud.aiplatform.v1beta1.BlurBaselineConfig getBlurBaselineCon @java.lang.Override public com.google.cloud.aiplatform.v1beta1.BlurBaselineConfigOrBuilder getBlurBaselineConfigOrBuilder() { - return getBlurBaselineConfig(); + return blurBaselineConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.BlurBaselineConfig.getDefaultInstance() + : blurBaselineConfig_; } private byte memoizedIsInitialized = -1; @@ -441,18 +445,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; stepCount_ = 0; - - if (smoothGradConfigBuilder_ == null) { - smoothGradConfig_ = null; - } else { - smoothGradConfig_ = null; + smoothGradConfig_ = null; + if (smoothGradConfigBuilder_ != null) { + smoothGradConfigBuilder_.dispose(); smoothGradConfigBuilder_ = null; } - if (blurBaselineConfigBuilder_ == null) { - blurBaselineConfig_ = null; - } else { - blurBaselineConfig_ = null; + blurBaselineConfig_ = null; + if (blurBaselineConfigBuilder_ != null) { + blurBaselineConfigBuilder_.dispose(); blurBaselineConfigBuilder_ = null; } return this; @@ -482,21 +484,30 @@ public com.google.cloud.aiplatform.v1beta1.XraiAttribution build() { public com.google.cloud.aiplatform.v1beta1.XraiAttribution buildPartial() { com.google.cloud.aiplatform.v1beta1.XraiAttribution result = new com.google.cloud.aiplatform.v1beta1.XraiAttribution(this); - result.stepCount_ = stepCount_; - if (smoothGradConfigBuilder_ == null) { - result.smoothGradConfig_ = smoothGradConfig_; - } else { - result.smoothGradConfig_ = smoothGradConfigBuilder_.build(); - } - if (blurBaselineConfigBuilder_ == null) { - result.blurBaselineConfig_ = blurBaselineConfig_; - } else { - result.blurBaselineConfig_ = blurBaselineConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.XraiAttribution result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.stepCount_ = stepCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.smoothGradConfig_ = + smoothGradConfigBuilder_ == null ? smoothGradConfig_ : smoothGradConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.blurBaselineConfig_ = + blurBaselineConfigBuilder_ == null + ? blurBaselineConfig_ + : blurBaselineConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -581,21 +592,21 @@ public Builder mergeFrom( case 8: { stepCount_ = input.readInt32(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getSmoothGradConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getBlurBaselineConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -615,6 +626,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int stepCount_; /** * @@ -652,6 +665,7 @@ public int getStepCount() { public Builder setStepCount(int value) { stepCount_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -670,7 +684,7 @@ public Builder setStepCount(int value) { * @return This builder for chaining. */ public Builder clearStepCount() { - + bitField0_ = (bitField0_ & ~0x00000001); stepCount_ = 0; onChanged(); return this; @@ -698,7 +712,7 @@ public Builder clearStepCount() { * @return Whether the smoothGradConfig field is set. */ public boolean hasSmoothGradConfig() { - return smoothGradConfigBuilder_ != null || smoothGradConfig_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -743,11 +757,11 @@ public Builder setSmoothGradConfig(com.google.cloud.aiplatform.v1beta1.SmoothGra throw new NullPointerException(); } smoothGradConfig_ = value; - onChanged(); } else { smoothGradConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -767,11 +781,11 @@ public Builder setSmoothGradConfig( com.google.cloud.aiplatform.v1beta1.SmoothGradConfig.Builder builderForValue) { if (smoothGradConfigBuilder_ == null) { smoothGradConfig_ = builderForValue.build(); - onChanged(); } else { smoothGradConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -790,19 +804,19 @@ public Builder setSmoothGradConfig( public Builder mergeSmoothGradConfig( com.google.cloud.aiplatform.v1beta1.SmoothGradConfig value) { if (smoothGradConfigBuilder_ == null) { - if (smoothGradConfig_ != null) { - smoothGradConfig_ = - com.google.cloud.aiplatform.v1beta1.SmoothGradConfig.newBuilder(smoothGradConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && smoothGradConfig_ != null + && smoothGradConfig_ + != com.google.cloud.aiplatform.v1beta1.SmoothGradConfig.getDefaultInstance()) { + getSmoothGradConfigBuilder().mergeFrom(value); } else { smoothGradConfig_ = value; } - onChanged(); } else { smoothGradConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -819,14 +833,13 @@ public Builder mergeSmoothGradConfig( * .google.cloud.aiplatform.v1beta1.SmoothGradConfig smooth_grad_config = 2; */ public Builder clearSmoothGradConfig() { - if (smoothGradConfigBuilder_ == null) { - smoothGradConfig_ = null; - onChanged(); - } else { - smoothGradConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + smoothGradConfig_ = null; + if (smoothGradConfigBuilder_ != null) { + smoothGradConfigBuilder_.dispose(); smoothGradConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -844,7 +857,7 @@ public Builder clearSmoothGradConfig() { */ public com.google.cloud.aiplatform.v1beta1.SmoothGradConfig.Builder getSmoothGradConfigBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getSmoothGradConfigFieldBuilder().getBuilder(); } @@ -923,7 +936,7 @@ public Builder clearSmoothGradConfig() { * @return Whether the blurBaselineConfig field is set. */ public boolean hasBlurBaselineConfig() { - return blurBaselineConfigBuilder_ != null || blurBaselineConfig_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -969,11 +982,11 @@ public Builder setBlurBaselineConfig( throw new NullPointerException(); } blurBaselineConfig_ = value; - onChanged(); } else { blurBaselineConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -993,11 +1006,11 @@ public Builder setBlurBaselineConfig( com.google.cloud.aiplatform.v1beta1.BlurBaselineConfig.Builder builderForValue) { if (blurBaselineConfigBuilder_ == null) { blurBaselineConfig_ = builderForValue.build(); - onChanged(); } else { blurBaselineConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1016,19 +1029,19 @@ public Builder setBlurBaselineConfig( public Builder mergeBlurBaselineConfig( com.google.cloud.aiplatform.v1beta1.BlurBaselineConfig value) { if (blurBaselineConfigBuilder_ == null) { - if (blurBaselineConfig_ != null) { - blurBaselineConfig_ = - com.google.cloud.aiplatform.v1beta1.BlurBaselineConfig.newBuilder(blurBaselineConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && blurBaselineConfig_ != null + && blurBaselineConfig_ + != com.google.cloud.aiplatform.v1beta1.BlurBaselineConfig.getDefaultInstance()) { + getBlurBaselineConfigBuilder().mergeFrom(value); } else { blurBaselineConfig_ = value; } - onChanged(); } else { blurBaselineConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1045,14 +1058,13 @@ public Builder mergeBlurBaselineConfig( * .google.cloud.aiplatform.v1beta1.BlurBaselineConfig blur_baseline_config = 3; */ public Builder clearBlurBaselineConfig() { - if (blurBaselineConfigBuilder_ == null) { - blurBaselineConfig_ = null; - onChanged(); - } else { - blurBaselineConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + blurBaselineConfig_ = null; + if (blurBaselineConfigBuilder_ != null) { + blurBaselineConfigBuilder_.dispose(); blurBaselineConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1070,7 +1082,7 @@ public Builder clearBlurBaselineConfig() { */ public com.google.cloud.aiplatform.v1beta1.BlurBaselineConfig.Builder getBlurBaselineConfigBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getBlurBaselineConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageClassificationPredictionInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageClassificationPredictionInstance.java index 4be6af9fddc2..e3f6279240b1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageClassificationPredictionInstance.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageClassificationPredictionInstance.java @@ -76,7 +76,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object content_; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; /** * * @@ -125,7 +127,9 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object mimeType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; /** * * @@ -430,10 +434,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; content_ = ""; - mimeType_ = ""; - return this; } @@ -474,12 +477,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.instance .ImageClassificationPredictionInstance(this); - result.content_ = content_; - result.mimeType_ = mimeType_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.instance + .ImageClassificationPredictionInstance + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mimeType_ = mimeType_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -538,10 +555,12 @@ public Builder mergeFrom( .ImageClassificationPredictionInstance.getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -573,13 +592,13 @@ public Builder mergeFrom( case 10: { content_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { mimeType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -599,6 +618,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object content_ = ""; /** * @@ -660,8 +681,8 @@ public Builder setContent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -677,8 +698,8 @@ public Builder setContent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContent() { - content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -699,8 +720,8 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -790,8 +811,8 @@ public Builder setMimeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -815,8 +836,8 @@ public Builder setMimeType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMimeType() { - mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -845,8 +866,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java index 3cf38ce2ba6d..2fc58ffc7925 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java @@ -76,7 +76,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object content_; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; /** * * @@ -125,7 +127,9 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object mimeType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; /** * * @@ -430,10 +434,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; content_ = ""; - mimeType_ = ""; - return this; } @@ -474,12 +477,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.instance .ImageObjectDetectionPredictionInstance(this); - result.content_ = content_; - result.mimeType_ = mimeType_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.instance + .ImageObjectDetectionPredictionInstance + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mimeType_ = mimeType_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -538,10 +555,12 @@ public Builder mergeFrom( .ImageObjectDetectionPredictionInstance.getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -573,13 +592,13 @@ public Builder mergeFrom( case 10: { content_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { mimeType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -599,6 +618,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object content_ = ""; /** * @@ -660,8 +681,8 @@ public Builder setContent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -677,8 +698,8 @@ public Builder setContent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContent() { - content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -699,8 +720,8 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -790,8 +811,8 @@ public Builder setMimeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -815,8 +836,8 @@ public Builder setMimeType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMimeType() { - mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -845,8 +866,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageSegmentationPredictionInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageSegmentationPredictionInstance.java index dde2d6d6cc08..1828eb0b9d00 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageSegmentationPredictionInstance.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageSegmentationPredictionInstance.java @@ -76,7 +76,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object content_; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; /** * * @@ -125,7 +127,9 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object mimeType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; /** * * @@ -419,10 +423,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; content_ = ""; - mimeType_ = ""; - return this; } @@ -463,12 +466,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.instance .ImageSegmentationPredictionInstance(this); - result.content_ = content_; - result.mimeType_ = mimeType_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.instance + .ImageSegmentationPredictionInstance + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mimeType_ = mimeType_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -527,10 +544,12 @@ public Builder mergeFrom( .ImageSegmentationPredictionInstance.getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -562,13 +581,13 @@ public Builder mergeFrom( case 10: { content_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { mimeType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -588,6 +607,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object content_ = ""; /** * @@ -649,8 +670,8 @@ public Builder setContent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -666,8 +687,8 @@ public Builder setContent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContent() { - content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -688,8 +709,8 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -764,8 +785,8 @@ public Builder setMimeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -784,8 +805,8 @@ public Builder setMimeType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMimeType() { - mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -809,8 +830,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextClassificationPredictionInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextClassificationPredictionInstance.java index 7d4fd767f4c1..b53867bc399e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextClassificationPredictionInstance.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextClassificationPredictionInstance.java @@ -76,7 +76,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object content_; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; /** * * @@ -125,7 +127,9 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object mimeType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; /** * * @@ -417,10 +421,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; content_ = ""; - mimeType_ = ""; - return this; } @@ -461,12 +464,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.instance .TextClassificationPredictionInstance(this); - result.content_ = content_; - result.mimeType_ = mimeType_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.instance + .TextClassificationPredictionInstance + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mimeType_ = mimeType_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -525,10 +542,12 @@ public Builder mergeFrom( .TextClassificationPredictionInstance.getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -560,13 +579,13 @@ public Builder mergeFrom( case 10: { content_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { mimeType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -586,6 +605,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object content_ = ""; /** * @@ -647,8 +668,8 @@ public Builder setContent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -664,8 +685,8 @@ public Builder setContent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContent() { - content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -686,8 +707,8 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -759,8 +780,8 @@ public Builder setMimeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -778,8 +799,8 @@ public Builder setMimeType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMimeType() { - mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -802,8 +823,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextExtractionPredictionInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextExtractionPredictionInstance.java index 6f5008603b5d..7f801001f51d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextExtractionPredictionInstance.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextExtractionPredictionInstance.java @@ -76,7 +76,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object content_; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; /** * * @@ -125,7 +127,9 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object mimeType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; /** * * @@ -178,7 +182,9 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } public static final int KEY_FIELD_NUMBER = 3; - private volatile java.lang.Object key_; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; /** * * @@ -482,12 +488,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; content_ = ""; - mimeType_ = ""; - key_ = ""; - return this; } @@ -526,13 +530,28 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.instance .TextExtractionPredictionInstance(this); - result.content_ = content_; - result.mimeType_ = mimeType_; - result.key_ = key_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mimeType_ = mimeType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.key_ = key_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -590,14 +609,17 @@ public Builder mergeFrom( .TextExtractionPredictionInstance.getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getKey().isEmpty()) { key_ = other.key_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -629,19 +651,19 @@ public Builder mergeFrom( case 10: { content_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { mimeType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { key_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -661,6 +683,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object content_ = ""; /** * @@ -722,8 +746,8 @@ public Builder setContent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -739,8 +763,8 @@ public Builder setContent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContent() { - content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -761,8 +785,8 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -834,8 +858,8 @@ public Builder setMimeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -853,8 +877,8 @@ public Builder setMimeType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMimeType() { - mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -877,8 +901,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -956,8 +980,8 @@ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - key_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -977,8 +1001,8 @@ public Builder setKey(java.lang.String value) { * @return This builder for chaining. */ public Builder clearKey() { - key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1003,8 +1027,8 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - key_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextSentimentPredictionInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextSentimentPredictionInstance.java index 160024f7f1a9..d4f4ecc15de4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextSentimentPredictionInstance.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextSentimentPredictionInstance.java @@ -75,7 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object content_; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; /** * * @@ -124,7 +126,9 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object mimeType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; /** * * @@ -415,10 +419,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; content_ = ""; - mimeType_ = ""; - return this; } @@ -457,12 +460,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.instance .TextSentimentPredictionInstance(this); - result.content_ = content_; - result.mimeType_ = mimeType_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.instance.TextSentimentPredictionInstance + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mimeType_ = mimeType_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -520,10 +536,12 @@ public Builder mergeFrom( .TextSentimentPredictionInstance.getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -555,13 +573,13 @@ public Builder mergeFrom( case 10: { content_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { mimeType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -581,6 +599,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object content_ = ""; /** * @@ -642,8 +662,8 @@ public Builder setContent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -659,8 +679,8 @@ public Builder setContent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContent() { - content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -681,8 +701,8 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -754,8 +774,8 @@ public Builder setMimeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -773,8 +793,8 @@ public Builder setMimeType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMimeType() { - mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -797,8 +817,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoActionRecognitionPredictionInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoActionRecognitionPredictionInstance.java index f701e82f4a1e..9808b5fbcfee 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoActionRecognitionPredictionInstance.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoActionRecognitionPredictionInstance.java @@ -78,7 +78,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object content_; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object mimeType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; /** * * @@ -180,7 +184,9 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } public static final int TIME_SEGMENT_START_FIELD_NUMBER = 3; - private volatile java.lang.Object timeSegmentStart_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeSegmentStart_ = ""; /** * * @@ -235,7 +241,9 @@ public com.google.protobuf.ByteString getTimeSegmentStartBytes() { } public static final int TIME_SEGMENT_END_FIELD_NUMBER = 4; - private volatile java.lang.Object timeSegmentEnd_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeSegmentEnd_ = ""; /** * * @@ -550,14 +558,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; content_ = ""; - mimeType_ = ""; - timeSegmentStart_ = ""; - timeSegmentEnd_ = ""; - return this; } @@ -598,14 +603,32 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.instance .VideoActionRecognitionPredictionInstance(this); - result.content_ = content_; - result.mimeType_ = mimeType_; - result.timeSegmentStart_ = timeSegmentStart_; - result.timeSegmentEnd_ = timeSegmentEnd_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.instance + .VideoActionRecognitionPredictionInstance + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mimeType_ = mimeType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.timeSegmentStart_ = timeSegmentStart_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.timeSegmentEnd_ = timeSegmentEnd_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -664,18 +687,22 @@ public Builder mergeFrom( .VideoActionRecognitionPredictionInstance.getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getTimeSegmentStart().isEmpty()) { timeSegmentStart_ = other.timeSegmentStart_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getTimeSegmentEnd().isEmpty()) { timeSegmentEnd_ = other.timeSegmentEnd_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -707,25 +734,25 @@ public Builder mergeFrom( case 10: { content_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { mimeType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { timeSegmentStart_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { timeSegmentEnd_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -745,6 +772,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object content_ = ""; /** * @@ -809,8 +838,8 @@ public Builder setContent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -827,8 +856,8 @@ public Builder setContent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContent() { - content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -850,8 +879,8 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -920,8 +949,8 @@ public Builder setMimeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -938,8 +967,8 @@ public Builder setMimeType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMimeType() { - mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -961,8 +990,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1037,8 +1066,8 @@ public Builder setTimeSegmentStart(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeSegmentStart_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1057,8 +1086,8 @@ public Builder setTimeSegmentStart(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeSegmentStart() { - timeSegmentStart_ = getDefaultInstance().getTimeSegmentStart(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1082,8 +1111,8 @@ public Builder setTimeSegmentStartBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeSegmentStart_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1161,8 +1190,8 @@ public Builder setTimeSegmentEnd(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeSegmentEnd_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1182,8 +1211,8 @@ public Builder setTimeSegmentEnd(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeSegmentEnd() { - timeSegmentEnd_ = getDefaultInstance().getTimeSegmentEnd(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1208,8 +1237,8 @@ public Builder setTimeSegmentEndBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeSegmentEnd_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoClassificationPredictionInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoClassificationPredictionInstance.java index 24e0217fbc27..a8211f6d5200 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoClassificationPredictionInstance.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoClassificationPredictionInstance.java @@ -78,7 +78,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object content_; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object mimeType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; /** * * @@ -180,7 +184,9 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } public static final int TIME_SEGMENT_START_FIELD_NUMBER = 3; - private volatile java.lang.Object timeSegmentStart_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeSegmentStart_ = ""; /** * * @@ -235,7 +241,9 @@ public com.google.protobuf.ByteString getTimeSegmentStartBytes() { } public static final int TIME_SEGMENT_END_FIELD_NUMBER = 4; - private volatile java.lang.Object timeSegmentEnd_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeSegmentEnd_ = ""; /** * * @@ -550,14 +558,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; content_ = ""; - mimeType_ = ""; - timeSegmentStart_ = ""; - timeSegmentEnd_ = ""; - return this; } @@ -598,14 +603,32 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.instance .VideoClassificationPredictionInstance(this); - result.content_ = content_; - result.mimeType_ = mimeType_; - result.timeSegmentStart_ = timeSegmentStart_; - result.timeSegmentEnd_ = timeSegmentEnd_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.instance + .VideoClassificationPredictionInstance + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mimeType_ = mimeType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.timeSegmentStart_ = timeSegmentStart_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.timeSegmentEnd_ = timeSegmentEnd_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -664,18 +687,22 @@ public Builder mergeFrom( .VideoClassificationPredictionInstance.getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getTimeSegmentStart().isEmpty()) { timeSegmentStart_ = other.timeSegmentStart_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getTimeSegmentEnd().isEmpty()) { timeSegmentEnd_ = other.timeSegmentEnd_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -707,25 +734,25 @@ public Builder mergeFrom( case 10: { content_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { mimeType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { timeSegmentStart_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { timeSegmentEnd_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -745,6 +772,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object content_ = ""; /** * @@ -809,8 +838,8 @@ public Builder setContent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -827,8 +856,8 @@ public Builder setContent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContent() { - content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -850,8 +879,8 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -920,8 +949,8 @@ public Builder setMimeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -938,8 +967,8 @@ public Builder setMimeType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMimeType() { - mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -961,8 +990,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1037,8 +1066,8 @@ public Builder setTimeSegmentStart(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeSegmentStart_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1057,8 +1086,8 @@ public Builder setTimeSegmentStart(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeSegmentStart() { - timeSegmentStart_ = getDefaultInstance().getTimeSegmentStart(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1082,8 +1111,8 @@ public Builder setTimeSegmentStartBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeSegmentStart_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1161,8 +1190,8 @@ public Builder setTimeSegmentEnd(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeSegmentEnd_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1182,8 +1211,8 @@ public Builder setTimeSegmentEnd(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeSegmentEnd() { - timeSegmentEnd_ = getDefaultInstance().getTimeSegmentEnd(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1208,8 +1237,8 @@ public Builder setTimeSegmentEndBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeSegmentEnd_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoObjectTrackingPredictionInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoObjectTrackingPredictionInstance.java index 39b4518d95ff..17f7da8de86c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoObjectTrackingPredictionInstance.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoObjectTrackingPredictionInstance.java @@ -78,7 +78,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object content_; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int MIME_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object mimeType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; /** * * @@ -180,7 +184,9 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } public static final int TIME_SEGMENT_START_FIELD_NUMBER = 3; - private volatile java.lang.Object timeSegmentStart_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeSegmentStart_ = ""; /** * * @@ -235,7 +241,9 @@ public com.google.protobuf.ByteString getTimeSegmentStartBytes() { } public static final int TIME_SEGMENT_END_FIELD_NUMBER = 4; - private volatile java.lang.Object timeSegmentEnd_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeSegmentEnd_ = ""; /** * * @@ -550,14 +558,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; content_ = ""; - mimeType_ = ""; - timeSegmentStart_ = ""; - timeSegmentEnd_ = ""; - return this; } @@ -598,14 +603,32 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.instance .VideoObjectTrackingPredictionInstance(this); - result.content_ = content_; - result.mimeType_ = mimeType_; - result.timeSegmentStart_ = timeSegmentStart_; - result.timeSegmentEnd_ = timeSegmentEnd_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.instance + .VideoObjectTrackingPredictionInstance + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mimeType_ = mimeType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.timeSegmentStart_ = timeSegmentStart_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.timeSegmentEnd_ = timeSegmentEnd_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -664,18 +687,22 @@ public Builder mergeFrom( .VideoObjectTrackingPredictionInstance.getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getTimeSegmentStart().isEmpty()) { timeSegmentStart_ = other.timeSegmentStart_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getTimeSegmentEnd().isEmpty()) { timeSegmentEnd_ = other.timeSegmentEnd_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -707,25 +734,25 @@ public Builder mergeFrom( case 10: { content_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { mimeType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { timeSegmentStart_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { timeSegmentEnd_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -745,6 +772,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object content_ = ""; /** * @@ -809,8 +838,8 @@ public Builder setContent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -827,8 +856,8 @@ public Builder setContent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearContent() { - content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -850,8 +879,8 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - content_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -920,8 +949,8 @@ public Builder setMimeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -938,8 +967,8 @@ public Builder setMimeType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMimeType() { - mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -961,8 +990,8 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - mimeType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1037,8 +1066,8 @@ public Builder setTimeSegmentStart(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeSegmentStart_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1057,8 +1086,8 @@ public Builder setTimeSegmentStart(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeSegmentStart() { - timeSegmentStart_ = getDefaultInstance().getTimeSegmentStart(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1082,8 +1111,8 @@ public Builder setTimeSegmentStartBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeSegmentStart_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1161,8 +1190,8 @@ public Builder setTimeSegmentEnd(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeSegmentEnd_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1182,8 +1211,8 @@ public Builder setTimeSegmentEnd(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeSegmentEnd() { - timeSegmentEnd_ = getDefaultInstance().getTimeSegmentEnd(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1208,8 +1237,8 @@ public Builder setTimeSegmentEndBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeSegmentEnd_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageClassificationPredictionParams.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageClassificationPredictionParams.java index c30e52d15282..e9e01bfef2e0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageClassificationPredictionParams.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageClassificationPredictionParams.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1; - private float confidenceThreshold_; + private float confidenceThreshold_ = 0F; /** * * @@ -92,7 +92,7 @@ public float getConfidenceThreshold() { } public static final int MAX_PREDICTIONS_FIELD_NUMBER = 2; - private int maxPredictions_; + private int maxPredictions_ = 0; /** * * @@ -351,10 +351,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; confidenceThreshold_ = 0F; - maxPredictions_ = 0; - return this; } @@ -393,12 +392,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.params .ImageClassificationPredictionParams(this); - result.confidenceThreshold_ = confidenceThreshold_; - result.maxPredictions_ = maxPredictions_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.params + .ImageClassificationPredictionParams + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.confidenceThreshold_ = confidenceThreshold_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxPredictions_ = maxPredictions_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -490,13 +503,13 @@ public Builder mergeFrom( case 13: { confidenceThreshold_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 case 16: { maxPredictions_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -516,6 +529,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float confidenceThreshold_; /** * @@ -549,6 +564,7 @@ public float getConfidenceThreshold() { public Builder setConfidenceThreshold(float value) { confidenceThreshold_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -565,7 +581,7 @@ public Builder setConfidenceThreshold(float value) { * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + bitField0_ = (bitField0_ & ~0x00000001); confidenceThreshold_ = 0F; onChanged(); return this; @@ -606,6 +622,7 @@ public int getMaxPredictions() { public Builder setMaxPredictions(int value) { maxPredictions_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -623,7 +640,7 @@ public Builder setMaxPredictions(int value) { * @return This builder for chaining. */ public Builder clearMaxPredictions() { - + bitField0_ = (bitField0_ & ~0x00000002); maxPredictions_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageObjectDetectionPredictionParams.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageObjectDetectionPredictionParams.java index a62892e11761..b092a7307dcb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageObjectDetectionPredictionParams.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageObjectDetectionPredictionParams.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1; - private float confidenceThreshold_; + private float confidenceThreshold_ = 0F; /** * * @@ -92,7 +92,7 @@ public float getConfidenceThreshold() { } public static final int MAX_PREDICTIONS_FIELD_NUMBER = 2; - private int maxPredictions_; + private int maxPredictions_ = 0; /** * * @@ -351,10 +351,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; confidenceThreshold_ = 0F; - maxPredictions_ = 0; - return this; } @@ -393,12 +392,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.params .ImageObjectDetectionPredictionParams(this); - result.confidenceThreshold_ = confidenceThreshold_; - result.maxPredictions_ = maxPredictions_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.params + .ImageObjectDetectionPredictionParams + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.confidenceThreshold_ = confidenceThreshold_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxPredictions_ = maxPredictions_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -490,13 +503,13 @@ public Builder mergeFrom( case 13: { confidenceThreshold_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 case 16: { maxPredictions_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -516,6 +529,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float confidenceThreshold_; /** * @@ -549,6 +564,7 @@ public float getConfidenceThreshold() { public Builder setConfidenceThreshold(float value) { confidenceThreshold_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -565,7 +581,7 @@ public Builder setConfidenceThreshold(float value) { * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + bitField0_ = (bitField0_ & ~0x00000001); confidenceThreshold_ = 0F; onChanged(); return this; @@ -606,6 +622,7 @@ public int getMaxPredictions() { public Builder setMaxPredictions(int value) { maxPredictions_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -623,7 +640,7 @@ public Builder setMaxPredictions(int value) { * @return This builder for chaining. */ public Builder clearMaxPredictions() { - + bitField0_ = (bitField0_ & ~0x00000002); maxPredictions_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageSegmentationPredictionParams.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageSegmentationPredictionParams.java index 7ce014559ae6..ba58b78d1ebe 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageSegmentationPredictionParams.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageSegmentationPredictionParams.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1; - private float confidenceThreshold_; + private float confidenceThreshold_ = 0F; /** * * @@ -323,8 +323,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; confidenceThreshold_ = 0F; - return this; } @@ -363,11 +363,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.params .ImageSegmentationPredictionParams(this); - result.confidenceThreshold_ = confidenceThreshold_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.params.ImageSegmentationPredictionParams + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.confidenceThreshold_ = confidenceThreshold_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -455,7 +466,7 @@ public Builder mergeFrom( case 13: { confidenceThreshold_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 default: @@ -475,6 +486,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float confidenceThreshold_; /** * @@ -512,6 +525,7 @@ public float getConfidenceThreshold() { public Builder setConfidenceThreshold(float value) { confidenceThreshold_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -530,7 +544,7 @@ public Builder setConfidenceThreshold(float value) { * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + bitField0_ = (bitField0_ & ~0x00000001); confidenceThreshold_ = 0F; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoActionRecognitionPredictionParams.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoActionRecognitionPredictionParams.java index 00d3976c2625..0fdc7117c979 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoActionRecognitionPredictionParams.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoActionRecognitionPredictionParams.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1; - private float confidenceThreshold_; + private float confidenceThreshold_ = 0F; /** * * @@ -92,7 +92,7 @@ public float getConfidenceThreshold() { } public static final int MAX_PREDICTIONS_FIELD_NUMBER = 2; - private int maxPredictions_; + private int maxPredictions_ = 0; /** * * @@ -352,10 +352,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; confidenceThreshold_ = 0F; - maxPredictions_ = 0; - return this; } @@ -396,12 +395,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.params .VideoActionRecognitionPredictionParams(this); - result.confidenceThreshold_ = confidenceThreshold_; - result.maxPredictions_ = maxPredictions_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.params + .VideoActionRecognitionPredictionParams + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.confidenceThreshold_ = confidenceThreshold_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxPredictions_ = maxPredictions_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -493,13 +506,13 @@ public Builder mergeFrom( case 13: { confidenceThreshold_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 case 16: { maxPredictions_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -519,6 +532,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float confidenceThreshold_; /** * @@ -552,6 +567,7 @@ public float getConfidenceThreshold() { public Builder setConfidenceThreshold(float value) { confidenceThreshold_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -568,7 +584,7 @@ public Builder setConfidenceThreshold(float value) { * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + bitField0_ = (bitField0_ & ~0x00000001); confidenceThreshold_ = 0F; onChanged(); return this; @@ -609,6 +625,7 @@ public int getMaxPredictions() { public Builder setMaxPredictions(int value) { maxPredictions_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -626,7 +643,7 @@ public Builder setMaxPredictions(int value) { * @return This builder for chaining. */ public Builder clearMaxPredictions() { - + bitField0_ = (bitField0_ & ~0x00000002); maxPredictions_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoClassificationPredictionParams.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoClassificationPredictionParams.java index 9e28792bf3aa..9bd3c35be46b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoClassificationPredictionParams.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoClassificationPredictionParams.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1; - private float confidenceThreshold_; + private float confidenceThreshold_ = 0F; /** * * @@ -92,7 +92,7 @@ public float getConfidenceThreshold() { } public static final int MAX_PREDICTIONS_FIELD_NUMBER = 2; - private int maxPredictions_; + private int maxPredictions_ = 0; /** * * @@ -112,7 +112,7 @@ public int getMaxPredictions() { } public static final int SEGMENT_CLASSIFICATION_FIELD_NUMBER = 3; - private boolean segmentClassification_; + private boolean segmentClassification_ = false; /** * * @@ -133,7 +133,7 @@ public boolean getSegmentClassification() { } public static final int SHOT_CLASSIFICATION_FIELD_NUMBER = 4; - private boolean shotClassification_; + private boolean shotClassification_ = false; /** * * @@ -159,7 +159,7 @@ public boolean getShotClassification() { } public static final int ONE_SEC_INTERVAL_CLASSIFICATION_FIELD_NUMBER = 5; - private boolean oneSecIntervalClassification_; + private boolean oneSecIntervalClassification_ = false; /** * * @@ -450,16 +450,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; confidenceThreshold_ = 0F; - maxPredictions_ = 0; - segmentClassification_ = false; - shotClassification_ = false; - oneSecIntervalClassification_ = false; - return this; } @@ -498,15 +494,35 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.params .VideoClassificationPredictionParams(this); - result.confidenceThreshold_ = confidenceThreshold_; - result.maxPredictions_ = maxPredictions_; - result.segmentClassification_ = segmentClassification_; - result.shotClassification_ = shotClassification_; - result.oneSecIntervalClassification_ = oneSecIntervalClassification_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.params + .VideoClassificationPredictionParams + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.confidenceThreshold_ = confidenceThreshold_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxPredictions_ = maxPredictions_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.segmentClassification_ = segmentClassification_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.shotClassification_ = shotClassification_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.oneSecIntervalClassification_ = oneSecIntervalClassification_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -607,31 +623,31 @@ public Builder mergeFrom( case 13: { confidenceThreshold_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 case 16: { maxPredictions_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { segmentClassification_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 case 32: { shotClassification_ = input.readBool(); - + bitField0_ |= 0x00000008; break; } // case 32 case 40: { oneSecIntervalClassification_ = input.readBool(); - + bitField0_ |= 0x00000010; break; } // case 40 default: @@ -651,6 +667,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float confidenceThreshold_; /** * @@ -684,6 +702,7 @@ public float getConfidenceThreshold() { public Builder setConfidenceThreshold(float value) { confidenceThreshold_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -700,7 +719,7 @@ public Builder setConfidenceThreshold(float value) { * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + bitField0_ = (bitField0_ & ~0x00000001); confidenceThreshold_ = 0F; onChanged(); return this; @@ -741,6 +760,7 @@ public int getMaxPredictions() { public Builder setMaxPredictions(int value) { maxPredictions_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -758,7 +778,7 @@ public Builder setMaxPredictions(int value) { * @return This builder for chaining. */ public Builder clearMaxPredictions() { - + bitField0_ = (bitField0_ & ~0x00000002); maxPredictions_ = 0; onChanged(); return this; @@ -801,6 +821,7 @@ public boolean getSegmentClassification() { public Builder setSegmentClassification(boolean value) { segmentClassification_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -819,7 +840,7 @@ public Builder setSegmentClassification(boolean value) { * @return This builder for chaining. */ public Builder clearSegmentClassification() { - + bitField0_ = (bitField0_ & ~0x00000004); segmentClassification_ = false; onChanged(); return this; @@ -872,6 +893,7 @@ public boolean getShotClassification() { public Builder setShotClassification(boolean value) { shotClassification_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -895,7 +917,7 @@ public Builder setShotClassification(boolean value) { * @return This builder for chaining. */ public Builder clearShotClassification() { - + bitField0_ = (bitField0_ & ~0x00000008); shotClassification_ = false; onChanged(); return this; @@ -942,6 +964,7 @@ public boolean getOneSecIntervalClassification() { public Builder setOneSecIntervalClassification(boolean value) { oneSecIntervalClassification_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -962,7 +985,7 @@ public Builder setOneSecIntervalClassification(boolean value) { * @return This builder for chaining. */ public Builder clearOneSecIntervalClassification() { - + bitField0_ = (bitField0_ & ~0x00000010); oneSecIntervalClassification_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoObjectTrackingPredictionParams.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoObjectTrackingPredictionParams.java index dda540521ff1..5a70001249b0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoObjectTrackingPredictionParams.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoObjectTrackingPredictionParams.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1; - private float confidenceThreshold_; + private float confidenceThreshold_ = 0F; /** * * @@ -92,7 +92,7 @@ public float getConfidenceThreshold() { } public static final int MAX_PREDICTIONS_FIELD_NUMBER = 2; - private int maxPredictions_; + private int maxPredictions_ = 0; /** * * @@ -112,7 +112,7 @@ public int getMaxPredictions() { } public static final int MIN_BOUNDING_BOX_SIZE_FIELD_NUMBER = 3; - private float minBoundingBoxSize_; + private float minBoundingBoxSize_ = 0F; /** * * @@ -380,12 +380,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; confidenceThreshold_ = 0F; - maxPredictions_ = 0; - minBoundingBoxSize_ = 0F; - return this; } @@ -424,13 +422,29 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.params .VideoObjectTrackingPredictionParams(this); - result.confidenceThreshold_ = confidenceThreshold_; - result.maxPredictions_ = maxPredictions_; - result.minBoundingBoxSize_ = minBoundingBoxSize_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.params + .VideoObjectTrackingPredictionParams + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.confidenceThreshold_ = confidenceThreshold_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxPredictions_ = maxPredictions_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.minBoundingBoxSize_ = minBoundingBoxSize_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -525,19 +539,19 @@ public Builder mergeFrom( case 13: { confidenceThreshold_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 case 16: { maxPredictions_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 29: { minBoundingBoxSize_ = input.readFloat(); - + bitField0_ |= 0x00000004; break; } // case 29 default: @@ -557,6 +571,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float confidenceThreshold_; /** * @@ -590,6 +606,7 @@ public float getConfidenceThreshold() { public Builder setConfidenceThreshold(float value) { confidenceThreshold_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -606,7 +623,7 @@ public Builder setConfidenceThreshold(float value) { * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + bitField0_ = (bitField0_ & ~0x00000001); confidenceThreshold_ = 0F; onChanged(); return this; @@ -647,6 +664,7 @@ public int getMaxPredictions() { public Builder setMaxPredictions(int value) { maxPredictions_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -664,7 +682,7 @@ public Builder setMaxPredictions(int value) { * @return This builder for chaining. */ public Builder clearMaxPredictions() { - + bitField0_ = (bitField0_ & ~0x00000002); maxPredictions_ = 0; onChanged(); return this; @@ -703,6 +721,7 @@ public float getMinBoundingBoxSize() { public Builder setMinBoundingBoxSize(float value) { minBoundingBoxSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -719,7 +738,7 @@ public Builder setMinBoundingBoxSize(float value) { * @return This builder for chaining. */ public Builder clearMinBoundingBoxSize() { - + bitField0_ = (bitField0_ & ~0x00000004); minBoundingBoxSize_ = 0F; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ClassificationPredictionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ClassificationPredictionResult.java index 8bc994f5d031..02d6a101d14f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ClassificationPredictionResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ClassificationPredictionResult.java @@ -76,6 +76,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int IDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList ids_; /** * @@ -125,6 +127,8 @@ public long getIds(int index) { private int idsMemoizedSerializedSize = -1; public static final int DISPLAY_NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList displayNames_; /** * @@ -190,6 +194,8 @@ public com.google.protobuf.ByteString getDisplayNamesBytes(int index) { } public static final int CONFIDENCES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.FloatList confidences_; /** * @@ -525,12 +531,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; ids_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); displayNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); confidences_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -569,7 +574,17 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.prediction .ClassificationPredictionResult(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult + result) { if (((bitField0_ & 0x00000001) != 0)) { ids_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); @@ -585,8 +600,12 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { bitField0_ = (bitField0_ & ~0x00000004); } result.confidences_ = confidences_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult + result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -827,6 +846,7 @@ public long getIds(int index) { * @return This builder for chaining. */ public Builder setIds(int index, long value) { + ensureIdsIsMutable(); ids_.setLong(index, value); onChanged(); @@ -845,6 +865,7 @@ public Builder setIds(int index, long value) { * @return This builder for chaining. */ public Builder addIds(long value) { + ensureIdsIsMutable(); ids_.addLong(value); onChanged(); @@ -1134,6 +1155,7 @@ public float getConfidences(int index) { * @return This builder for chaining. */ public Builder setConfidences(int index, float value) { + ensureConfidencesIsMutable(); confidences_.setFloat(index, value); onChanged(); @@ -1153,6 +1175,7 @@ public Builder setConfidences(int index, float value) { * @return This builder for chaining. */ public Builder addConfidences(float value) { + ensureConfidencesIsMutable(); confidences_.addFloat(value); onChanged(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageObjectDetectionPredictionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageObjectDetectionPredictionResult.java index aef7569f84a7..62ad086ac775 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageObjectDetectionPredictionResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageObjectDetectionPredictionResult.java @@ -78,6 +78,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int IDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList ids_; /** * @@ -130,6 +132,8 @@ public long getIds(int index) { private int idsMemoizedSerializedSize = -1; public static final int DISPLAY_NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList displayNames_; /** * @@ -195,6 +199,8 @@ public com.google.protobuf.ByteString getDisplayNamesBytes(int index) { } public static final int CONFIDENCES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.FloatList confidences_; /** * @@ -247,6 +253,8 @@ public float getConfidences(int index) { private int confidencesMemoizedSerializedSize = -1; public static final int BBOXES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List bboxes_; /** * @@ -636,12 +644,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; ids_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); displayNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); confidences_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000004); if (bboxesBuilder_ == null) { bboxes_ = java.util.Collections.emptyList(); } else { @@ -689,7 +696,18 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.prediction .ImageObjectDetectionPredictionResult(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.schema.predict.prediction + .ImageObjectDetectionPredictionResult + result) { if (((bitField0_ & 0x00000001) != 0)) { ids_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); @@ -714,8 +732,13 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } else { result.bboxes_ = bboxesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.prediction + .ImageObjectDetectionPredictionResult + result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -1000,6 +1023,7 @@ public long getIds(int index) { * @return This builder for chaining. */ public Builder setIds(int index, long value) { + ensureIdsIsMutable(); ids_.setLong(index, value); onChanged(); @@ -1019,6 +1043,7 @@ public Builder setIds(int index, long value) { * @return This builder for chaining. */ public Builder addIds(long value) { + ensureIdsIsMutable(); ids_.addLong(value); onChanged(); @@ -1310,6 +1335,7 @@ public float getConfidences(int index) { * @return This builder for chaining. */ public Builder setConfidences(int index, float value) { + ensureConfidencesIsMutable(); confidences_.setFloat(index, value); onChanged(); @@ -1329,6 +1355,7 @@ public Builder setConfidences(int index, float value) { * @return This builder for chaining. */ public Builder addConfidences(float value) { + ensureConfidencesIsMutable(); confidences_.addFloat(value); onChanged(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageSegmentationPredictionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageSegmentationPredictionResult.java index d2a8ca64ef9d..a0b543136ed9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageSegmentationPredictionResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageSegmentationPredictionResult.java @@ -75,7 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CATEGORY_MASK_FIELD_NUMBER = 1; - private volatile java.lang.Object categoryMask_; + + @SuppressWarnings("serial") + private volatile java.lang.Object categoryMask_ = ""; /** * * @@ -134,7 +136,9 @@ public com.google.protobuf.ByteString getCategoryMaskBytes() { } public static final int CONFIDENCE_MASK_FIELD_NUMBER = 2; - private volatile java.lang.Object confidenceMask_; + + @SuppressWarnings("serial") + private volatile java.lang.Object confidenceMask_ = ""; /** * * @@ -430,10 +434,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; categoryMask_ = ""; - confidenceMask_ = ""; - return this; } @@ -474,12 +477,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.prediction .ImageSegmentationPredictionResult(this); - result.categoryMask_ = categoryMask_; - result.confidenceMask_ = confidenceMask_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.prediction + .ImageSegmentationPredictionResult + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.categoryMask_ = categoryMask_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.confidenceMask_ = confidenceMask_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -538,10 +555,12 @@ public Builder mergeFrom( .ImageSegmentationPredictionResult.getDefaultInstance()) return this; if (!other.getCategoryMask().isEmpty()) { categoryMask_ = other.categoryMask_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getConfidenceMask().isEmpty()) { confidenceMask_ = other.confidenceMask_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -573,13 +592,13 @@ public Builder mergeFrom( case 10: { categoryMask_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { confidenceMask_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -599,6 +618,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object categoryMask_ = ""; /** * @@ -675,8 +696,8 @@ public Builder setCategoryMask(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - categoryMask_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -697,8 +718,8 @@ public Builder setCategoryMask(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCategoryMask() { - categoryMask_ = getDefaultInstance().getCategoryMask(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -724,8 +745,8 @@ public Builder setCategoryMaskBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - categoryMask_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -803,8 +824,8 @@ public Builder setConfidenceMask(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - confidenceMask_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -824,8 +845,8 @@ public Builder setConfidenceMask(java.lang.String value) { * @return This builder for chaining. */ public Builder clearConfidenceMask() { - confidenceMask_ = getDefaultInstance().getConfidenceMask(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -850,8 +871,8 @@ public Builder setConfidenceMaskBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - confidenceMask_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularClassificationPredictionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularClassificationPredictionResult.java index db30b1318508..6defd7168f5f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularClassificationPredictionResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularClassificationPredictionResult.java @@ -76,6 +76,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CLASSES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList classes_; /** * @@ -141,6 +143,8 @@ public com.google.protobuf.ByteString getClassesBytes(int index) { } public static final int SCORES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.FloatList scores_; /** * @@ -457,10 +461,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; classes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); scores_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -501,7 +505,18 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.prediction .TabularClassificationPredictionResult(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.schema.predict.prediction + .TabularClassificationPredictionResult + result) { if (((bitField0_ & 0x00000001) != 0)) { classes_ = classes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -512,8 +527,13 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { bitField0_ = (bitField0_ & ~0x00000002); } result.scores_ = scores_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.prediction + .TabularClassificationPredictionResult + result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -914,6 +934,7 @@ public float getScores(int index) { * @return This builder for chaining. */ public Builder setScores(int index, float value) { + ensureScoresIsMutable(); scores_.setFloat(index, value); onChanged(); @@ -934,6 +955,7 @@ public Builder setScores(int index, float value) { * @return This builder for chaining. */ public Builder addScores(float value) { + ensureScoresIsMutable(); scores_.addFloat(value); onChanged(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularRegressionPredictionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularRegressionPredictionResult.java index 5098384d4e99..d0823e4ba25d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularRegressionPredictionResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularRegressionPredictionResult.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUE_FIELD_NUMBER = 1; - private float value_; + private float value_ = 0F; /** * * @@ -90,7 +90,7 @@ public float getValue() { } public static final int LOWER_BOUND_FIELD_NUMBER = 2; - private float lowerBound_; + private float lowerBound_ = 0F; /** * * @@ -108,7 +108,7 @@ public float getLowerBound() { } public static final int UPPER_BOUND_FIELD_NUMBER = 3; - private float upperBound_; + private float upperBound_ = 0F; /** * * @@ -377,12 +377,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; value_ = 0F; - lowerBound_ = 0F; - upperBound_ = 0F; - return this; } @@ -423,13 +421,29 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.prediction .TabularRegressionPredictionResult(this); - result.value_ = value_; - result.lowerBound_ = lowerBound_; - result.upperBound_ = upperBound_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.prediction + .TabularRegressionPredictionResult + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.lowerBound_ = lowerBound_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.upperBound_ = upperBound_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -524,19 +538,19 @@ public Builder mergeFrom( case 13: { value_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 case 21: { lowerBound_ = input.readFloat(); - + bitField0_ |= 0x00000002; break; } // case 21 case 29: { upperBound_ = input.readFloat(); - + bitField0_ |= 0x00000004; break; } // case 29 default: @@ -556,6 +570,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float value_; /** * @@ -587,6 +603,7 @@ public float getValue() { public Builder setValue(float value) { value_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -602,7 +619,7 @@ public Builder setValue(float value) { * @return This builder for chaining. */ public Builder clearValue() { - + bitField0_ = (bitField0_ & ~0x00000001); value_ = 0F; onChanged(); return this; @@ -639,6 +656,7 @@ public float getLowerBound() { public Builder setLowerBound(float value) { lowerBound_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -654,7 +672,7 @@ public Builder setLowerBound(float value) { * @return This builder for chaining. */ public Builder clearLowerBound() { - + bitField0_ = (bitField0_ & ~0x00000002); lowerBound_ = 0F; onChanged(); return this; @@ -691,6 +709,7 @@ public float getUpperBound() { public Builder setUpperBound(float value) { upperBound_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -706,7 +725,7 @@ public Builder setUpperBound(float value) { * @return This builder for chaining. */ public Builder clearUpperBound() { - + bitField0_ = (bitField0_ & ~0x00000004); upperBound_ = 0F; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextExtractionPredictionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextExtractionPredictionResult.java index 240ab4604314..0cd4c07e1fc0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextExtractionPredictionResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextExtractionPredictionResult.java @@ -78,6 +78,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int IDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList ids_; /** * @@ -130,6 +132,8 @@ public long getIds(int index) { private int idsMemoizedSerializedSize = -1; public static final int DISPLAY_NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList displayNames_; /** * @@ -195,6 +199,8 @@ public com.google.protobuf.ByteString getDisplayNamesBytes(int index) { } public static final int TEXT_SEGMENT_START_OFFSETS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList textSegmentStartOffsets_; /** * @@ -250,6 +256,8 @@ public long getTextSegmentStartOffsets(int index) { private int textSegmentStartOffsetsMemoizedSerializedSize = -1; public static final int TEXT_SEGMENT_END_OFFSETS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList textSegmentEndOffsets_; /** * @@ -305,6 +313,8 @@ public long getTextSegmentEndOffsets(int index) { private int textSegmentEndOffsetsMemoizedSerializedSize = -1; public static final int CONFIDENCES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.FloatList confidences_; /** * @@ -693,16 +703,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; ids_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); displayNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); textSegmentStartOffsets_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000004); textSegmentEndOffsets_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000008); confidences_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000010); return this; } @@ -741,7 +748,17 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.prediction .TextExtractionPredictionResult(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult + result) { if (((bitField0_ & 0x00000001) != 0)) { ids_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); @@ -767,8 +784,12 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { bitField0_ = (bitField0_ & ~0x00000010); } result.confidences_ = confidences_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextExtractionPredictionResult + result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -1069,6 +1090,7 @@ public long getIds(int index) { * @return This builder for chaining. */ public Builder setIds(int index, long value) { + ensureIdsIsMutable(); ids_.setLong(index, value); onChanged(); @@ -1088,6 +1110,7 @@ public Builder setIds(int index, long value) { * @return This builder for chaining. */ public Builder addIds(long value) { + ensureIdsIsMutable(); ids_.addLong(value); onChanged(); @@ -1383,6 +1406,7 @@ public long getTextSegmentStartOffsets(int index) { * @return This builder for chaining. */ public Builder setTextSegmentStartOffsets(int index, long value) { + ensureTextSegmentStartOffsetsIsMutable(); textSegmentStartOffsets_.setLong(index, value); onChanged(); @@ -1403,6 +1427,7 @@ public Builder setTextSegmentStartOffsets(int index, long value) { * @return This builder for chaining. */ public Builder addTextSegmentStartOffsets(long value) { + ensureTextSegmentStartOffsetsIsMutable(); textSegmentStartOffsets_.addLong(value); onChanged(); @@ -1524,6 +1549,7 @@ public long getTextSegmentEndOffsets(int index) { * @return This builder for chaining. */ public Builder setTextSegmentEndOffsets(int index, long value) { + ensureTextSegmentEndOffsetsIsMutable(); textSegmentEndOffsets_.setLong(index, value); onChanged(); @@ -1544,6 +1570,7 @@ public Builder setTextSegmentEndOffsets(int index, long value) { * @return This builder for chaining. */ public Builder addTextSegmentEndOffsets(long value) { + ensureTextSegmentEndOffsetsIsMutable(); textSegmentEndOffsets_.addLong(value); onChanged(); @@ -1661,6 +1688,7 @@ public float getConfidences(int index) { * @return This builder for chaining. */ public Builder setConfidences(int index, float value) { + ensureConfidencesIsMutable(); confidences_.setFloat(index, value); onChanged(); @@ -1680,6 +1708,7 @@ public Builder setConfidences(int index, float value) { * @return This builder for chaining. */ public Builder addConfidences(float value) { + ensureConfidencesIsMutable(); confidences_.addFloat(value); onChanged(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextSentimentPredictionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextSentimentPredictionResult.java index 768916d764d4..5f60e74cd9a0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextSentimentPredictionResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextSentimentPredictionResult.java @@ -71,7 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SENTIMENT_FIELD_NUMBER = 1; - private int sentiment_; + private int sentiment_ = 0; /** * * @@ -322,8 +322,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; sentiment_ = 0; - return this; } @@ -362,11 +362,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.prediction .TextSentimentPredictionResult(this); - result.sentiment_ = sentiment_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sentiment_ = sentiment_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -454,7 +465,7 @@ public Builder mergeFrom( case 8: { sentiment_ = input.readInt32(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -474,6 +485,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int sentiment_; /** * @@ -513,6 +526,7 @@ public int getSentiment() { public Builder setSentiment(int value) { sentiment_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -532,7 +546,7 @@ public Builder setSentiment(int value) { * @return This builder for chaining. */ public Builder clearSentiment() { - + bitField0_ = (bitField0_ & ~0x00000001); sentiment_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResult.java index b2763544a4a9..00a6767fce7a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResult.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUE_FIELD_NUMBER = 1; - private float value_; + private float value_ = 0F; /** * * @@ -323,8 +323,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; value_ = 0F; - return this; } @@ -365,11 +365,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.prediction .TimeSeriesForecastingPredictionResult(this); - result.value_ = value_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.prediction + .TimeSeriesForecastingPredictionResult + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -458,7 +470,7 @@ public Builder mergeFrom( case 13: { value_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 default: @@ -478,6 +490,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float value_; /** * @@ -509,6 +523,7 @@ public float getValue() { public Builder setValue(float value) { value_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -524,7 +539,7 @@ public Builder setValue(float value) { * @return This builder for chaining. */ public Builder clearValue() { - + bitField0_ = (bitField0_ & ~0x00000001); value_ = 0F; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoActionRecognitionPredictionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoActionRecognitionPredictionResult.java index 59d8ed3acc33..d30bab4fce72 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoActionRecognitionPredictionResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoActionRecognitionPredictionResult.java @@ -76,7 +76,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -125,7 +127,9 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -227,7 +231,9 @@ public com.google.protobuf.Duration getTimeSegmentStart() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeSegmentStartOrBuilder() { - return getTimeSegmentStart(); + return timeSegmentStart_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeSegmentStart_; } public static final int TIME_SEGMENT_END_FIELD_NUMBER = 5; @@ -284,7 +290,9 @@ public com.google.protobuf.Duration getTimeSegmentEnd() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeSegmentEndOrBuilder() { - return getTimeSegmentEnd(); + return timeSegmentEnd_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeSegmentEnd_; } public static final int CONFIDENCE_FIELD_NUMBER = 6; @@ -333,7 +341,7 @@ public com.google.protobuf.FloatValue getConfidence() { */ @java.lang.Override public com.google.protobuf.FloatValueOrBuilder getConfidenceOrBuilder() { - return getConfidence(); + return confidence_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : confidence_; } private byte memoizedIsInitialized = -1; @@ -619,26 +627,22 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - displayName_ = ""; - - if (timeSegmentStartBuilder_ == null) { - timeSegmentStart_ = null; - } else { - timeSegmentStart_ = null; + timeSegmentStart_ = null; + if (timeSegmentStartBuilder_ != null) { + timeSegmentStartBuilder_.dispose(); timeSegmentStartBuilder_ = null; } - if (timeSegmentEndBuilder_ == null) { - timeSegmentEnd_ = null; - } else { - timeSegmentEnd_ = null; + timeSegmentEnd_ = null; + if (timeSegmentEndBuilder_ != null) { + timeSegmentEndBuilder_.dispose(); timeSegmentEndBuilder_ = null; } - if (confidenceBuilder_ == null) { - confidence_ = null; - } else { - confidence_ = null; + confidence_ = null; + if (confidenceBuilder_ != null) { + confidenceBuilder_.dispose(); confidenceBuilder_ = null; } return this; @@ -681,27 +685,37 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.prediction .VideoActionRecognitionPredictionResult(this); - result.id_ = id_; - result.displayName_ = displayName_; - if (timeSegmentStartBuilder_ == null) { - result.timeSegmentStart_ = timeSegmentStart_; - } else { - result.timeSegmentStart_ = timeSegmentStartBuilder_.build(); - } - if (timeSegmentEndBuilder_ == null) { - result.timeSegmentEnd_ = timeSegmentEnd_; - } else { - result.timeSegmentEnd_ = timeSegmentEndBuilder_.build(); - } - if (confidenceBuilder_ == null) { - result.confidence_ = confidence_; - } else { - result.confidence_ = confidenceBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.prediction + .VideoActionRecognitionPredictionResult + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.timeSegmentStart_ = + timeSegmentStartBuilder_ == null ? timeSegmentStart_ : timeSegmentStartBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.timeSegmentEnd_ = + timeSegmentEndBuilder_ == null ? timeSegmentEnd_ : timeSegmentEndBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.confidence_ = confidenceBuilder_ == null ? confidence_ : confidenceBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -760,10 +774,12 @@ public Builder mergeFrom( .VideoActionRecognitionPredictionResult.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasTimeSegmentStart()) { @@ -804,32 +820,32 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 34: { input.readMessage( getTimeSegmentStartFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 34 case 42: { input.readMessage(getTimeSegmentEndFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 42 case 50: { input.readMessage(getConfidenceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 50 default: @@ -849,6 +865,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object id_ = ""; /** * @@ -910,8 +928,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -927,8 +945,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -949,8 +967,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1016,8 +1034,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1033,8 +1051,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1055,8 +1073,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1082,7 +1100,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the timeSegmentStart field is set. */ public boolean hasTimeSegmentStart() { - return timeSegmentStartBuilder_ != null || timeSegmentStart_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1125,11 +1143,11 @@ public Builder setTimeSegmentStart(com.google.protobuf.Duration value) { throw new NullPointerException(); } timeSegmentStart_ = value; - onChanged(); } else { timeSegmentStartBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1147,11 +1165,11 @@ public Builder setTimeSegmentStart(com.google.protobuf.Duration value) { public Builder setTimeSegmentStart(com.google.protobuf.Duration.Builder builderForValue) { if (timeSegmentStartBuilder_ == null) { timeSegmentStart_ = builderForValue.build(); - onChanged(); } else { timeSegmentStartBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1168,19 +1186,18 @@ public Builder setTimeSegmentStart(com.google.protobuf.Duration.Builder builderF */ public Builder mergeTimeSegmentStart(com.google.protobuf.Duration value) { if (timeSegmentStartBuilder_ == null) { - if (timeSegmentStart_ != null) { - timeSegmentStart_ = - com.google.protobuf.Duration.newBuilder(timeSegmentStart_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && timeSegmentStart_ != null + && timeSegmentStart_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTimeSegmentStartBuilder().mergeFrom(value); } else { timeSegmentStart_ = value; } - onChanged(); } else { timeSegmentStartBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1196,14 +1213,13 @@ public Builder mergeTimeSegmentStart(com.google.protobuf.Duration value) { * .google.protobuf.Duration time_segment_start = 4; */ public Builder clearTimeSegmentStart() { - if (timeSegmentStartBuilder_ == null) { - timeSegmentStart_ = null; - onChanged(); - } else { - timeSegmentStart_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + timeSegmentStart_ = null; + if (timeSegmentStartBuilder_ != null) { + timeSegmentStartBuilder_.dispose(); timeSegmentStartBuilder_ = null; } - + onChanged(); return this; } /** @@ -1219,7 +1235,7 @@ public Builder clearTimeSegmentStart() { * .google.protobuf.Duration time_segment_start = 4; */ public com.google.protobuf.Duration.Builder getTimeSegmentStartBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getTimeSegmentStartFieldBuilder().getBuilder(); } @@ -1294,7 +1310,7 @@ public com.google.protobuf.DurationOrBuilder getTimeSegmentStartOrBuilder() { * @return Whether the timeSegmentEnd field is set. */ public boolean hasTimeSegmentEnd() { - return timeSegmentEndBuilder_ != null || timeSegmentEnd_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1337,11 +1353,11 @@ public Builder setTimeSegmentEnd(com.google.protobuf.Duration value) { throw new NullPointerException(); } timeSegmentEnd_ = value; - onChanged(); } else { timeSegmentEndBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1359,11 +1375,11 @@ public Builder setTimeSegmentEnd(com.google.protobuf.Duration value) { public Builder setTimeSegmentEnd(com.google.protobuf.Duration.Builder builderForValue) { if (timeSegmentEndBuilder_ == null) { timeSegmentEnd_ = builderForValue.build(); - onChanged(); } else { timeSegmentEndBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1380,19 +1396,18 @@ public Builder setTimeSegmentEnd(com.google.protobuf.Duration.Builder builderFor */ public Builder mergeTimeSegmentEnd(com.google.protobuf.Duration value) { if (timeSegmentEndBuilder_ == null) { - if (timeSegmentEnd_ != null) { - timeSegmentEnd_ = - com.google.protobuf.Duration.newBuilder(timeSegmentEnd_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && timeSegmentEnd_ != null + && timeSegmentEnd_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTimeSegmentEndBuilder().mergeFrom(value); } else { timeSegmentEnd_ = value; } - onChanged(); } else { timeSegmentEndBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1408,14 +1423,13 @@ public Builder mergeTimeSegmentEnd(com.google.protobuf.Duration value) { * .google.protobuf.Duration time_segment_end = 5; */ public Builder clearTimeSegmentEnd() { - if (timeSegmentEndBuilder_ == null) { - timeSegmentEnd_ = null; - onChanged(); - } else { - timeSegmentEnd_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + timeSegmentEnd_ = null; + if (timeSegmentEndBuilder_ != null) { + timeSegmentEndBuilder_.dispose(); timeSegmentEndBuilder_ = null; } - + onChanged(); return this; } /** @@ -1431,7 +1445,7 @@ public Builder clearTimeSegmentEnd() { * .google.protobuf.Duration time_segment_end = 5; */ public com.google.protobuf.Duration.Builder getTimeSegmentEndBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getTimeSegmentEndFieldBuilder().getBuilder(); } @@ -1504,7 +1518,7 @@ public com.google.protobuf.DurationOrBuilder getTimeSegmentEndOrBuilder() { * @return Whether the confidence field is set. */ public boolean hasConfidence() { - return confidenceBuilder_ != null || confidence_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1543,11 +1557,11 @@ public Builder setConfidence(com.google.protobuf.FloatValue value) { throw new NullPointerException(); } confidence_ = value; - onChanged(); } else { confidenceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1563,11 +1577,11 @@ public Builder setConfidence(com.google.protobuf.FloatValue value) { public Builder setConfidence(com.google.protobuf.FloatValue.Builder builderForValue) { if (confidenceBuilder_ == null) { confidence_ = builderForValue.build(); - onChanged(); } else { confidenceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1582,19 +1596,18 @@ public Builder setConfidence(com.google.protobuf.FloatValue.Builder builderForVa */ public Builder mergeConfidence(com.google.protobuf.FloatValue value) { if (confidenceBuilder_ == null) { - if (confidence_ != null) { - confidence_ = - com.google.protobuf.FloatValue.newBuilder(confidence_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && confidence_ != null + && confidence_ != com.google.protobuf.FloatValue.getDefaultInstance()) { + getConfidenceBuilder().mergeFrom(value); } else { confidence_ = value; } - onChanged(); } else { confidenceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1608,14 +1621,13 @@ public Builder mergeConfidence(com.google.protobuf.FloatValue value) { * .google.protobuf.FloatValue confidence = 6; */ public Builder clearConfidence() { - if (confidenceBuilder_ == null) { - confidence_ = null; - onChanged(); - } else { - confidence_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + confidence_ = null; + if (confidenceBuilder_ != null) { + confidenceBuilder_.dispose(); confidenceBuilder_ = null; } - + onChanged(); return this; } /** @@ -1629,7 +1641,7 @@ public Builder clearConfidence() { * .google.protobuf.FloatValue confidence = 6; */ public com.google.protobuf.FloatValue.Builder getConfidenceBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getConfidenceFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoClassificationPredictionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoClassificationPredictionResult.java index 467b998ba2f2..73c5b4077203 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoClassificationPredictionResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoClassificationPredictionResult.java @@ -77,7 +77,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -126,7 +128,9 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -175,7 +179,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int TYPE_FIELD_NUMBER = 3; - private volatile java.lang.Object type_; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; /** * * @@ -294,7 +300,9 @@ public com.google.protobuf.Duration getTimeSegmentStart() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeSegmentStartOrBuilder() { - return getTimeSegmentStart(); + return timeSegmentStart_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeSegmentStart_; } public static final int TIME_SEGMENT_END_FIELD_NUMBER = 5; @@ -360,7 +368,9 @@ public com.google.protobuf.Duration getTimeSegmentEnd() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeSegmentEndOrBuilder() { - return getTimeSegmentEnd(); + return timeSegmentEnd_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeSegmentEnd_; } public static final int CONFIDENCE_FIELD_NUMBER = 6; @@ -409,7 +419,7 @@ public com.google.protobuf.FloatValue getConfidence() { */ @java.lang.Override public com.google.protobuf.FloatValueOrBuilder getConfidenceOrBuilder() { - return getConfidence(); + return confidence_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : confidence_; } private byte memoizedIsInitialized = -1; @@ -704,28 +714,23 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - displayName_ = ""; - type_ = ""; - - if (timeSegmentStartBuilder_ == null) { - timeSegmentStart_ = null; - } else { - timeSegmentStart_ = null; + timeSegmentStart_ = null; + if (timeSegmentStartBuilder_ != null) { + timeSegmentStartBuilder_.dispose(); timeSegmentStartBuilder_ = null; } - if (timeSegmentEndBuilder_ == null) { - timeSegmentEnd_ = null; - } else { - timeSegmentEnd_ = null; + timeSegmentEnd_ = null; + if (timeSegmentEndBuilder_ != null) { + timeSegmentEndBuilder_.dispose(); timeSegmentEndBuilder_ = null; } - if (confidenceBuilder_ == null) { - confidence_ = null; - } else { - confidence_ = null; + confidence_ = null; + if (confidenceBuilder_ != null) { + confidenceBuilder_.dispose(); confidenceBuilder_ = null; } return this; @@ -768,28 +773,40 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.prediction .VideoClassificationPredictionResult(this); - result.id_ = id_; - result.displayName_ = displayName_; - result.type_ = type_; - if (timeSegmentStartBuilder_ == null) { - result.timeSegmentStart_ = timeSegmentStart_; - } else { - result.timeSegmentStart_ = timeSegmentStartBuilder_.build(); - } - if (timeSegmentEndBuilder_ == null) { - result.timeSegmentEnd_ = timeSegmentEnd_; - } else { - result.timeSegmentEnd_ = timeSegmentEndBuilder_.build(); - } - if (confidenceBuilder_ == null) { - result.confidence_ = confidence_; - } else { - result.confidence_ = confidenceBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.prediction + .VideoClassificationPredictionResult + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.timeSegmentStart_ = + timeSegmentStartBuilder_ == null ? timeSegmentStart_ : timeSegmentStartBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.timeSegmentEnd_ = + timeSegmentEndBuilder_ == null ? timeSegmentEnd_ : timeSegmentEndBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.confidence_ = confidenceBuilder_ == null ? confidence_ : confidenceBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -848,14 +865,17 @@ public Builder mergeFrom( .VideoClassificationPredictionResult.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getType().isEmpty()) { type_ = other.type_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasTimeSegmentStart()) { @@ -896,38 +916,38 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { type_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getTimeSegmentStartFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getTimeSegmentEndFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getConfidenceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -947,6 +967,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object id_ = ""; /** * @@ -1008,8 +1030,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1025,8 +1047,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1047,8 +1069,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1114,8 +1136,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1131,8 +1153,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1153,8 +1175,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1232,8 +1254,8 @@ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - type_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1253,8 +1275,8 @@ public Builder setType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearType() { - type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1279,8 +1301,8 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - type_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1309,7 +1331,7 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { * @return Whether the timeSegmentStart field is set. */ public boolean hasTimeSegmentStart() { - return timeSegmentStartBuilder_ != null || timeSegmentStart_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1358,11 +1380,11 @@ public Builder setTimeSegmentStart(com.google.protobuf.Duration value) { throw new NullPointerException(); } timeSegmentStart_ = value; - onChanged(); } else { timeSegmentStartBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1383,11 +1405,11 @@ public Builder setTimeSegmentStart(com.google.protobuf.Duration value) { public Builder setTimeSegmentStart(com.google.protobuf.Duration.Builder builderForValue) { if (timeSegmentStartBuilder_ == null) { timeSegmentStart_ = builderForValue.build(); - onChanged(); } else { timeSegmentStartBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1407,19 +1429,18 @@ public Builder setTimeSegmentStart(com.google.protobuf.Duration.Builder builderF */ public Builder mergeTimeSegmentStart(com.google.protobuf.Duration value) { if (timeSegmentStartBuilder_ == null) { - if (timeSegmentStart_ != null) { - timeSegmentStart_ = - com.google.protobuf.Duration.newBuilder(timeSegmentStart_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && timeSegmentStart_ != null + && timeSegmentStart_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTimeSegmentStartBuilder().mergeFrom(value); } else { timeSegmentStart_ = value; } - onChanged(); } else { timeSegmentStartBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1438,14 +1459,13 @@ public Builder mergeTimeSegmentStart(com.google.protobuf.Duration value) { * .google.protobuf.Duration time_segment_start = 4; */ public Builder clearTimeSegmentStart() { - if (timeSegmentStartBuilder_ == null) { - timeSegmentStart_ = null; - onChanged(); - } else { - timeSegmentStart_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + timeSegmentStart_ = null; + if (timeSegmentStartBuilder_ != null) { + timeSegmentStartBuilder_.dispose(); timeSegmentStartBuilder_ = null; } - + onChanged(); return this; } /** @@ -1464,7 +1484,7 @@ public Builder clearTimeSegmentStart() { * .google.protobuf.Duration time_segment_start = 4; */ public com.google.protobuf.Duration.Builder getTimeSegmentStartBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getTimeSegmentStartFieldBuilder().getBuilder(); } @@ -1548,7 +1568,7 @@ public com.google.protobuf.DurationOrBuilder getTimeSegmentStartOrBuilder() { * @return Whether the timeSegmentEnd field is set. */ public boolean hasTimeSegmentEnd() { - return timeSegmentEndBuilder_ != null || timeSegmentEnd_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1597,11 +1617,11 @@ public Builder setTimeSegmentEnd(com.google.protobuf.Duration value) { throw new NullPointerException(); } timeSegmentEnd_ = value; - onChanged(); } else { timeSegmentEndBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1622,11 +1642,11 @@ public Builder setTimeSegmentEnd(com.google.protobuf.Duration value) { public Builder setTimeSegmentEnd(com.google.protobuf.Duration.Builder builderForValue) { if (timeSegmentEndBuilder_ == null) { timeSegmentEnd_ = builderForValue.build(); - onChanged(); } else { timeSegmentEndBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1646,19 +1666,18 @@ public Builder setTimeSegmentEnd(com.google.protobuf.Duration.Builder builderFor */ public Builder mergeTimeSegmentEnd(com.google.protobuf.Duration value) { if (timeSegmentEndBuilder_ == null) { - if (timeSegmentEnd_ != null) { - timeSegmentEnd_ = - com.google.protobuf.Duration.newBuilder(timeSegmentEnd_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && timeSegmentEnd_ != null + && timeSegmentEnd_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTimeSegmentEndBuilder().mergeFrom(value); } else { timeSegmentEnd_ = value; } - onChanged(); } else { timeSegmentEndBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1677,14 +1696,13 @@ public Builder mergeTimeSegmentEnd(com.google.protobuf.Duration value) { * .google.protobuf.Duration time_segment_end = 5; */ public Builder clearTimeSegmentEnd() { - if (timeSegmentEndBuilder_ == null) { - timeSegmentEnd_ = null; - onChanged(); - } else { - timeSegmentEnd_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + timeSegmentEnd_ = null; + if (timeSegmentEndBuilder_ != null) { + timeSegmentEndBuilder_.dispose(); timeSegmentEndBuilder_ = null; } - + onChanged(); return this; } /** @@ -1703,7 +1721,7 @@ public Builder clearTimeSegmentEnd() { * .google.protobuf.Duration time_segment_end = 5; */ public com.google.protobuf.Duration.Builder getTimeSegmentEndBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getTimeSegmentEndFieldBuilder().getBuilder(); } @@ -1782,7 +1800,7 @@ public com.google.protobuf.DurationOrBuilder getTimeSegmentEndOrBuilder() { * @return Whether the confidence field is set. */ public boolean hasConfidence() { - return confidenceBuilder_ != null || confidence_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1821,11 +1839,11 @@ public Builder setConfidence(com.google.protobuf.FloatValue value) { throw new NullPointerException(); } confidence_ = value; - onChanged(); } else { confidenceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1841,11 +1859,11 @@ public Builder setConfidence(com.google.protobuf.FloatValue value) { public Builder setConfidence(com.google.protobuf.FloatValue.Builder builderForValue) { if (confidenceBuilder_ == null) { confidence_ = builderForValue.build(); - onChanged(); } else { confidenceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1860,19 +1878,18 @@ public Builder setConfidence(com.google.protobuf.FloatValue.Builder builderForVa */ public Builder mergeConfidence(com.google.protobuf.FloatValue value) { if (confidenceBuilder_ == null) { - if (confidence_ != null) { - confidence_ = - com.google.protobuf.FloatValue.newBuilder(confidence_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && confidence_ != null + && confidence_ != com.google.protobuf.FloatValue.getDefaultInstance()) { + getConfidenceBuilder().mergeFrom(value); } else { confidence_ = value; } - onChanged(); } else { confidenceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -1886,14 +1903,13 @@ public Builder mergeConfidence(com.google.protobuf.FloatValue value) { * .google.protobuf.FloatValue confidence = 6; */ public Builder clearConfidence() { - if (confidenceBuilder_ == null) { - confidence_ = null; - onChanged(); - } else { - confidence_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + confidence_ = null; + if (confidenceBuilder_ != null) { + confidenceBuilder_.dispose(); confidenceBuilder_ = null; } - + onChanged(); return this; } /** @@ -1907,7 +1923,7 @@ public Builder clearConfidence() { * .google.protobuf.FloatValue confidence = 6; */ public com.google.protobuf.FloatValue.Builder getConfidenceBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getConfidenceFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoObjectTrackingPredictionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoObjectTrackingPredictionResult.java index f063e10087f9..8973d8370155 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoObjectTrackingPredictionResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoObjectTrackingPredictionResult.java @@ -372,7 +372,7 @@ public com.google.protobuf.Duration getTimeOffset() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { - return getTimeOffset(); + return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; } public static final int X_MIN_FIELD_NUMBER = 2; @@ -418,7 +418,7 @@ public com.google.protobuf.FloatValue getXMin() { */ @java.lang.Override public com.google.protobuf.FloatValueOrBuilder getXMinOrBuilder() { - return getXMin(); + return xMin_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : xMin_; } public static final int X_MAX_FIELD_NUMBER = 3; @@ -464,7 +464,7 @@ public com.google.protobuf.FloatValue getXMax() { */ @java.lang.Override public com.google.protobuf.FloatValueOrBuilder getXMaxOrBuilder() { - return getXMax(); + return xMax_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : xMax_; } public static final int Y_MIN_FIELD_NUMBER = 4; @@ -510,7 +510,7 @@ public com.google.protobuf.FloatValue getYMin() { */ @java.lang.Override public com.google.protobuf.FloatValueOrBuilder getYMinOrBuilder() { - return getYMin(); + return yMin_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : yMin_; } public static final int Y_MAX_FIELD_NUMBER = 5; @@ -556,7 +556,7 @@ public com.google.protobuf.FloatValue getYMax() { */ @java.lang.Override public com.google.protobuf.FloatValueOrBuilder getYMaxOrBuilder() { - return getYMax(); + return yMax_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : yMax_; } private byte memoizedIsInitialized = -1; @@ -857,34 +857,30 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (timeOffsetBuilder_ == null) { - timeOffset_ = null; - } else { - timeOffset_ = null; + bitField0_ = 0; + timeOffset_ = null; + if (timeOffsetBuilder_ != null) { + timeOffsetBuilder_.dispose(); timeOffsetBuilder_ = null; } - if (xMinBuilder_ == null) { - xMin_ = null; - } else { - xMin_ = null; + xMin_ = null; + if (xMinBuilder_ != null) { + xMinBuilder_.dispose(); xMinBuilder_ = null; } - if (xMaxBuilder_ == null) { - xMax_ = null; - } else { - xMax_ = null; + xMax_ = null; + if (xMaxBuilder_ != null) { + xMaxBuilder_.dispose(); xMaxBuilder_ = null; } - if (yMinBuilder_ == null) { - yMin_ = null; - } else { - yMin_ = null; + yMin_ = null; + if (yMinBuilder_ != null) { + yMinBuilder_.dispose(); yMinBuilder_ = null; } - if (yMaxBuilder_ == null) { - yMax_ = null; - } else { - yMax_ = null; + yMax_ = null; + if (yMaxBuilder_ != null) { + yMaxBuilder_.dispose(); yMaxBuilder_ = null; } return this; @@ -927,33 +923,34 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.prediction .VideoObjectTrackingPredictionResult.Frame(this); - if (timeOffsetBuilder_ == null) { - result.timeOffset_ = timeOffset_; - } else { - result.timeOffset_ = timeOffsetBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (xMinBuilder_ == null) { - result.xMin_ = xMin_; - } else { - result.xMin_ = xMinBuilder_.build(); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.prediction + .VideoObjectTrackingPredictionResult.Frame + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timeOffset_ = + timeOffsetBuilder_ == null ? timeOffset_ : timeOffsetBuilder_.build(); } - if (xMaxBuilder_ == null) { - result.xMax_ = xMax_; - } else { - result.xMax_ = xMaxBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.xMin_ = xMinBuilder_ == null ? xMin_ : xMinBuilder_.build(); } - if (yMinBuilder_ == null) { - result.yMin_ = yMin_; - } else { - result.yMin_ = yMinBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.xMax_ = xMaxBuilder_ == null ? xMax_ : xMaxBuilder_.build(); } - if (yMaxBuilder_ == null) { - result.yMax_ = yMax_; - } else { - result.yMax_ = yMaxBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.yMin_ = yMinBuilder_ == null ? yMin_ : yMinBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.yMax_ = yMaxBuilder_ == null ? yMax_ : yMaxBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -1058,31 +1055,31 @@ public Builder mergeFrom( case 10: { input.readMessage(getTimeOffsetFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getXMinFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getXMaxFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getYMinFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getYMaxFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -1102,6 +1099,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Duration timeOffset_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -1123,7 +1122,7 @@ public Builder mergeFrom( * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { - return timeOffsetBuilder_ != null || timeOffset_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1166,11 +1165,11 @@ public Builder setTimeOffset(com.google.protobuf.Duration value) { throw new NullPointerException(); } timeOffset_ = value; - onChanged(); } else { timeOffsetBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1188,11 +1187,11 @@ public Builder setTimeOffset(com.google.protobuf.Duration value) { public Builder setTimeOffset(com.google.protobuf.Duration.Builder builderForValue) { if (timeOffsetBuilder_ == null) { timeOffset_ = builderForValue.build(); - onChanged(); } else { timeOffsetBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1209,19 +1208,18 @@ public Builder setTimeOffset(com.google.protobuf.Duration.Builder builderForValu */ public Builder mergeTimeOffset(com.google.protobuf.Duration value) { if (timeOffsetBuilder_ == null) { - if (timeOffset_ != null) { - timeOffset_ = - com.google.protobuf.Duration.newBuilder(timeOffset_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && timeOffset_ != null + && timeOffset_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTimeOffsetBuilder().mergeFrom(value); } else { timeOffset_ = value; } - onChanged(); } else { timeOffsetBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1237,14 +1235,13 @@ public Builder mergeTimeOffset(com.google.protobuf.Duration value) { * .google.protobuf.Duration time_offset = 1; */ public Builder clearTimeOffset() { - if (timeOffsetBuilder_ == null) { - timeOffset_ = null; - onChanged(); - } else { - timeOffset_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + timeOffset_ = null; + if (timeOffsetBuilder_ != null) { + timeOffsetBuilder_.dispose(); timeOffsetBuilder_ = null; } - + onChanged(); return this; } /** @@ -1260,7 +1257,7 @@ public Builder clearTimeOffset() { * .google.protobuf.Duration time_offset = 1; */ public com.google.protobuf.Duration.Builder getTimeOffsetBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getTimeOffsetFieldBuilder().getBuilder(); } @@ -1332,7 +1329,7 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * @return Whether the xMin field is set. */ public boolean hasXMin() { - return xMinBuilder_ != null || xMin_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1367,11 +1364,11 @@ public Builder setXMin(com.google.protobuf.FloatValue value) { throw new NullPointerException(); } xMin_ = value; - onChanged(); } else { xMinBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1386,11 +1383,11 @@ public Builder setXMin(com.google.protobuf.FloatValue value) { public Builder setXMin(com.google.protobuf.FloatValue.Builder builderForValue) { if (xMinBuilder_ == null) { xMin_ = builderForValue.build(); - onChanged(); } else { xMinBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1404,17 +1401,18 @@ public Builder setXMin(com.google.protobuf.FloatValue.Builder builderForValue) { */ public Builder mergeXMin(com.google.protobuf.FloatValue value) { if (xMinBuilder_ == null) { - if (xMin_ != null) { - xMin_ = - com.google.protobuf.FloatValue.newBuilder(xMin_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && xMin_ != null + && xMin_ != com.google.protobuf.FloatValue.getDefaultInstance()) { + getXMinBuilder().mergeFrom(value); } else { xMin_ = value; } - onChanged(); } else { xMinBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1427,14 +1425,13 @@ public Builder mergeXMin(com.google.protobuf.FloatValue value) { * .google.protobuf.FloatValue x_min = 2; */ public Builder clearXMin() { - if (xMinBuilder_ == null) { - xMin_ = null; - onChanged(); - } else { - xMin_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + xMin_ = null; + if (xMinBuilder_ != null) { + xMinBuilder_.dispose(); xMinBuilder_ = null; } - + onChanged(); return this; } /** @@ -1447,7 +1444,7 @@ public Builder clearXMin() { * .google.protobuf.FloatValue x_min = 2; */ public com.google.protobuf.FloatValue.Builder getXMinBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getXMinFieldBuilder().getBuilder(); } @@ -1511,7 +1508,7 @@ public com.google.protobuf.FloatValueOrBuilder getXMinOrBuilder() { * @return Whether the xMax field is set. */ public boolean hasXMax() { - return xMaxBuilder_ != null || xMax_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1546,11 +1543,11 @@ public Builder setXMax(com.google.protobuf.FloatValue value) { throw new NullPointerException(); } xMax_ = value; - onChanged(); } else { xMaxBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1565,11 +1562,11 @@ public Builder setXMax(com.google.protobuf.FloatValue value) { public Builder setXMax(com.google.protobuf.FloatValue.Builder builderForValue) { if (xMaxBuilder_ == null) { xMax_ = builderForValue.build(); - onChanged(); } else { xMaxBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1583,17 +1580,18 @@ public Builder setXMax(com.google.protobuf.FloatValue.Builder builderForValue) { */ public Builder mergeXMax(com.google.protobuf.FloatValue value) { if (xMaxBuilder_ == null) { - if (xMax_ != null) { - xMax_ = - com.google.protobuf.FloatValue.newBuilder(xMax_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && xMax_ != null + && xMax_ != com.google.protobuf.FloatValue.getDefaultInstance()) { + getXMaxBuilder().mergeFrom(value); } else { xMax_ = value; } - onChanged(); } else { xMaxBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1606,14 +1604,13 @@ public Builder mergeXMax(com.google.protobuf.FloatValue value) { * .google.protobuf.FloatValue x_max = 3; */ public Builder clearXMax() { - if (xMaxBuilder_ == null) { - xMax_ = null; - onChanged(); - } else { - xMax_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + xMax_ = null; + if (xMaxBuilder_ != null) { + xMaxBuilder_.dispose(); xMaxBuilder_ = null; } - + onChanged(); return this; } /** @@ -1626,7 +1623,7 @@ public Builder clearXMax() { * .google.protobuf.FloatValue x_max = 3; */ public com.google.protobuf.FloatValue.Builder getXMaxBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getXMaxFieldBuilder().getBuilder(); } @@ -1690,7 +1687,7 @@ public com.google.protobuf.FloatValueOrBuilder getXMaxOrBuilder() { * @return Whether the yMin field is set. */ public boolean hasYMin() { - return yMinBuilder_ != null || yMin_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1725,11 +1722,11 @@ public Builder setYMin(com.google.protobuf.FloatValue value) { throw new NullPointerException(); } yMin_ = value; - onChanged(); } else { yMinBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1744,11 +1741,11 @@ public Builder setYMin(com.google.protobuf.FloatValue value) { public Builder setYMin(com.google.protobuf.FloatValue.Builder builderForValue) { if (yMinBuilder_ == null) { yMin_ = builderForValue.build(); - onChanged(); } else { yMinBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1762,17 +1759,18 @@ public Builder setYMin(com.google.protobuf.FloatValue.Builder builderForValue) { */ public Builder mergeYMin(com.google.protobuf.FloatValue value) { if (yMinBuilder_ == null) { - if (yMin_ != null) { - yMin_ = - com.google.protobuf.FloatValue.newBuilder(yMin_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && yMin_ != null + && yMin_ != com.google.protobuf.FloatValue.getDefaultInstance()) { + getYMinBuilder().mergeFrom(value); } else { yMin_ = value; } - onChanged(); } else { yMinBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1785,14 +1783,13 @@ public Builder mergeYMin(com.google.protobuf.FloatValue value) { * .google.protobuf.FloatValue y_min = 4; */ public Builder clearYMin() { - if (yMinBuilder_ == null) { - yMin_ = null; - onChanged(); - } else { - yMin_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + yMin_ = null; + if (yMinBuilder_ != null) { + yMinBuilder_.dispose(); yMinBuilder_ = null; } - + onChanged(); return this; } /** @@ -1805,7 +1802,7 @@ public Builder clearYMin() { * .google.protobuf.FloatValue y_min = 4; */ public com.google.protobuf.FloatValue.Builder getYMinBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getYMinFieldBuilder().getBuilder(); } @@ -1869,7 +1866,7 @@ public com.google.protobuf.FloatValueOrBuilder getYMinOrBuilder() { * @return Whether the yMax field is set. */ public boolean hasYMax() { - return yMaxBuilder_ != null || yMax_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1904,11 +1901,11 @@ public Builder setYMax(com.google.protobuf.FloatValue value) { throw new NullPointerException(); } yMax_ = value; - onChanged(); } else { yMaxBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1923,11 +1920,11 @@ public Builder setYMax(com.google.protobuf.FloatValue value) { public Builder setYMax(com.google.protobuf.FloatValue.Builder builderForValue) { if (yMaxBuilder_ == null) { yMax_ = builderForValue.build(); - onChanged(); } else { yMaxBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1941,17 +1938,18 @@ public Builder setYMax(com.google.protobuf.FloatValue.Builder builderForValue) { */ public Builder mergeYMax(com.google.protobuf.FloatValue value) { if (yMaxBuilder_ == null) { - if (yMax_ != null) { - yMax_ = - com.google.protobuf.FloatValue.newBuilder(yMax_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && yMax_ != null + && yMax_ != com.google.protobuf.FloatValue.getDefaultInstance()) { + getYMaxBuilder().mergeFrom(value); } else { yMax_ = value; } - onChanged(); } else { yMaxBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1964,14 +1962,13 @@ public Builder mergeYMax(com.google.protobuf.FloatValue value) { * .google.protobuf.FloatValue y_max = 5; */ public Builder clearYMax() { - if (yMaxBuilder_ == null) { - yMax_ = null; - onChanged(); - } else { - yMax_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + yMax_ = null; + if (yMaxBuilder_ != null) { + yMaxBuilder_.dispose(); yMaxBuilder_ = null; } - + onChanged(); return this; } /** @@ -1984,7 +1981,7 @@ public Builder clearYMax() { * .google.protobuf.FloatValue y_max = 5; */ public com.google.protobuf.FloatValue.Builder getYMaxBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getYMaxFieldBuilder().getBuilder(); } @@ -2103,7 +2100,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -2152,7 +2151,9 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -2254,7 +2255,9 @@ public com.google.protobuf.Duration getTimeSegmentStart() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeSegmentStartOrBuilder() { - return getTimeSegmentStart(); + return timeSegmentStart_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeSegmentStart_; } public static final int TIME_SEGMENT_END_FIELD_NUMBER = 4; @@ -2311,7 +2314,9 @@ public com.google.protobuf.Duration getTimeSegmentEnd() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeSegmentEndOrBuilder() { - return getTimeSegmentEnd(); + return timeSegmentEnd_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : timeSegmentEnd_; } public static final int CONFIDENCE_FIELD_NUMBER = 5; @@ -2360,10 +2365,12 @@ public com.google.protobuf.FloatValue getConfidence() { */ @java.lang.Override public com.google.protobuf.FloatValueOrBuilder getConfidenceOrBuilder() { - return getConfidence(); + return confidence_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : confidence_; } public static final int FRAMES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1beta1.schema.predict.prediction .VideoObjectTrackingPredictionResult.Frame> @@ -2754,26 +2761,22 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - displayName_ = ""; - - if (timeSegmentStartBuilder_ == null) { - timeSegmentStart_ = null; - } else { - timeSegmentStart_ = null; + timeSegmentStart_ = null; + if (timeSegmentStartBuilder_ != null) { + timeSegmentStartBuilder_.dispose(); timeSegmentStartBuilder_ = null; } - if (timeSegmentEndBuilder_ == null) { - timeSegmentEnd_ = null; - } else { - timeSegmentEnd_ = null; + timeSegmentEnd_ = null; + if (timeSegmentEndBuilder_ != null) { + timeSegmentEndBuilder_.dispose(); timeSegmentEndBuilder_ = null; } - if (confidenceBuilder_ == null) { - confidence_ = null; - } else { - confidence_ = null; + confidence_ = null; + if (confidenceBuilder_ != null) { + confidenceBuilder_.dispose(); confidenceBuilder_ = null; } if (framesBuilder_ == null) { @@ -2782,7 +2785,7 @@ public Builder clear() { frames_ = null; framesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); return this; } @@ -2823,35 +2826,51 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.predict.prediction .VideoObjectTrackingPredictionResult(this); - int from_bitField0_ = bitField0_; - result.id_ = id_; - result.displayName_ = displayName_; - if (timeSegmentStartBuilder_ == null) { - result.timeSegmentStart_ = timeSegmentStart_; - } else { - result.timeSegmentStart_ = timeSegmentStartBuilder_.build(); - } - if (timeSegmentEndBuilder_ == null) { - result.timeSegmentEnd_ = timeSegmentEnd_; - } else { - result.timeSegmentEnd_ = timeSegmentEndBuilder_.build(); - } - if (confidenceBuilder_ == null) { - result.confidence_ = confidence_; - } else { - result.confidence_ = confidenceBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.schema.predict.prediction + .VideoObjectTrackingPredictionResult + result) { if (framesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); } result.frames_ = frames_; } else { result.frames_ = framesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.predict.prediction + .VideoObjectTrackingPredictionResult + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.timeSegmentStart_ = + timeSegmentStartBuilder_ == null ? timeSegmentStart_ : timeSegmentStartBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.timeSegmentEnd_ = + timeSegmentEndBuilder_ == null ? timeSegmentEnd_ : timeSegmentEndBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.confidence_ = confidenceBuilder_ == null ? confidence_ : confidenceBuilder_.build(); + } } @java.lang.Override @@ -2912,10 +2931,12 @@ public Builder mergeFrom( .VideoObjectTrackingPredictionResult.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasTimeSegmentStart()) { @@ -2931,7 +2952,7 @@ public Builder mergeFrom( if (!other.frames_.isEmpty()) { if (frames_.isEmpty()) { frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureFramesIsMutable(); frames_.addAll(other.frames_); @@ -2944,7 +2965,7 @@ public Builder mergeFrom( framesBuilder_.dispose(); framesBuilder_ = null; frames_ = other.frames_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); framesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFramesFieldBuilder() @@ -2983,32 +3004,32 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getTimeSegmentStartFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getTimeSegmentEndFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getConfidenceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: @@ -3108,8 +3129,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3125,8 +3146,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3147,8 +3168,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3214,8 +3235,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3231,8 +3252,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3253,8 +3274,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3280,7 +3301,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the timeSegmentStart field is set. */ public boolean hasTimeSegmentStart() { - return timeSegmentStartBuilder_ != null || timeSegmentStart_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -3323,11 +3344,11 @@ public Builder setTimeSegmentStart(com.google.protobuf.Duration value) { throw new NullPointerException(); } timeSegmentStart_ = value; - onChanged(); } else { timeSegmentStartBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3345,11 +3366,11 @@ public Builder setTimeSegmentStart(com.google.protobuf.Duration value) { public Builder setTimeSegmentStart(com.google.protobuf.Duration.Builder builderForValue) { if (timeSegmentStartBuilder_ == null) { timeSegmentStart_ = builderForValue.build(); - onChanged(); } else { timeSegmentStartBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3366,19 +3387,18 @@ public Builder setTimeSegmentStart(com.google.protobuf.Duration.Builder builderF */ public Builder mergeTimeSegmentStart(com.google.protobuf.Duration value) { if (timeSegmentStartBuilder_ == null) { - if (timeSegmentStart_ != null) { - timeSegmentStart_ = - com.google.protobuf.Duration.newBuilder(timeSegmentStart_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && timeSegmentStart_ != null + && timeSegmentStart_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTimeSegmentStartBuilder().mergeFrom(value); } else { timeSegmentStart_ = value; } - onChanged(); } else { timeSegmentStartBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3394,14 +3414,13 @@ public Builder mergeTimeSegmentStart(com.google.protobuf.Duration value) { * .google.protobuf.Duration time_segment_start = 3; */ public Builder clearTimeSegmentStart() { - if (timeSegmentStartBuilder_ == null) { - timeSegmentStart_ = null; - onChanged(); - } else { - timeSegmentStart_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + timeSegmentStart_ = null; + if (timeSegmentStartBuilder_ != null) { + timeSegmentStartBuilder_.dispose(); timeSegmentStartBuilder_ = null; } - + onChanged(); return this; } /** @@ -3417,7 +3436,7 @@ public Builder clearTimeSegmentStart() { * .google.protobuf.Duration time_segment_start = 3; */ public com.google.protobuf.Duration.Builder getTimeSegmentStartBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getTimeSegmentStartFieldBuilder().getBuilder(); } @@ -3492,7 +3511,7 @@ public com.google.protobuf.DurationOrBuilder getTimeSegmentStartOrBuilder() { * @return Whether the timeSegmentEnd field is set. */ public boolean hasTimeSegmentEnd() { - return timeSegmentEndBuilder_ != null || timeSegmentEnd_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -3535,11 +3554,11 @@ public Builder setTimeSegmentEnd(com.google.protobuf.Duration value) { throw new NullPointerException(); } timeSegmentEnd_ = value; - onChanged(); } else { timeSegmentEndBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3557,11 +3576,11 @@ public Builder setTimeSegmentEnd(com.google.protobuf.Duration value) { public Builder setTimeSegmentEnd(com.google.protobuf.Duration.Builder builderForValue) { if (timeSegmentEndBuilder_ == null) { timeSegmentEnd_ = builderForValue.build(); - onChanged(); } else { timeSegmentEndBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3578,19 +3597,18 @@ public Builder setTimeSegmentEnd(com.google.protobuf.Duration.Builder builderFor */ public Builder mergeTimeSegmentEnd(com.google.protobuf.Duration value) { if (timeSegmentEndBuilder_ == null) { - if (timeSegmentEnd_ != null) { - timeSegmentEnd_ = - com.google.protobuf.Duration.newBuilder(timeSegmentEnd_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && timeSegmentEnd_ != null + && timeSegmentEnd_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTimeSegmentEndBuilder().mergeFrom(value); } else { timeSegmentEnd_ = value; } - onChanged(); } else { timeSegmentEndBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3606,14 +3624,13 @@ public Builder mergeTimeSegmentEnd(com.google.protobuf.Duration value) { * .google.protobuf.Duration time_segment_end = 4; */ public Builder clearTimeSegmentEnd() { - if (timeSegmentEndBuilder_ == null) { - timeSegmentEnd_ = null; - onChanged(); - } else { - timeSegmentEnd_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + timeSegmentEnd_ = null; + if (timeSegmentEndBuilder_ != null) { + timeSegmentEndBuilder_.dispose(); timeSegmentEndBuilder_ = null; } - + onChanged(); return this; } /** @@ -3629,7 +3646,7 @@ public Builder clearTimeSegmentEnd() { * .google.protobuf.Duration time_segment_end = 4; */ public com.google.protobuf.Duration.Builder getTimeSegmentEndBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getTimeSegmentEndFieldBuilder().getBuilder(); } @@ -3702,7 +3719,7 @@ public com.google.protobuf.DurationOrBuilder getTimeSegmentEndOrBuilder() { * @return Whether the confidence field is set. */ public boolean hasConfidence() { - return confidenceBuilder_ != null || confidence_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -3741,11 +3758,11 @@ public Builder setConfidence(com.google.protobuf.FloatValue value) { throw new NullPointerException(); } confidence_ = value; - onChanged(); } else { confidenceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3761,11 +3778,11 @@ public Builder setConfidence(com.google.protobuf.FloatValue value) { public Builder setConfidence(com.google.protobuf.FloatValue.Builder builderForValue) { if (confidenceBuilder_ == null) { confidence_ = builderForValue.build(); - onChanged(); } else { confidenceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3780,19 +3797,18 @@ public Builder setConfidence(com.google.protobuf.FloatValue.Builder builderForVa */ public Builder mergeConfidence(com.google.protobuf.FloatValue value) { if (confidenceBuilder_ == null) { - if (confidence_ != null) { - confidence_ = - com.google.protobuf.FloatValue.newBuilder(confidence_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && confidence_ != null + && confidence_ != com.google.protobuf.FloatValue.getDefaultInstance()) { + getConfidenceBuilder().mergeFrom(value); } else { confidence_ = value; } - onChanged(); } else { confidenceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3806,14 +3822,13 @@ public Builder mergeConfidence(com.google.protobuf.FloatValue value) { * .google.protobuf.FloatValue confidence = 5; */ public Builder clearConfidence() { - if (confidenceBuilder_ == null) { - confidence_ = null; - onChanged(); - } else { - confidence_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + confidence_ = null; + if (confidenceBuilder_ != null) { + confidenceBuilder_.dispose(); confidenceBuilder_ = null; } - + onChanged(); return this; } /** @@ -3827,7 +3842,7 @@ public Builder clearConfidence() { * .google.protobuf.FloatValue confidence = 5; */ public com.google.protobuf.FloatValue.Builder getConfidenceBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getConfidenceFieldBuilder().getBuilder(); } @@ -3883,12 +3898,12 @@ public com.google.protobuf.FloatValueOrBuilder getConfidenceOrBuilder() { frames_ = java.util.Collections.emptyList(); private void ensureFramesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { frames_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.schema.predict.prediction .VideoObjectTrackingPredictionResult.Frame>(frames_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000020; } } @@ -4168,7 +4183,7 @@ public Builder addAllFrames( public Builder clearFrames() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { framesBuilder_.clear(); @@ -4335,7 +4350,7 @@ public Builder removeFrames(int index) { .VideoObjectTrackingPredictionResult.Frame.Builder, com.google.cloud.aiplatform.v1beta1.schema.predict.prediction .VideoObjectTrackingPredictionResult.FrameOrBuilder>( - frames_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + frames_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); frames_ = null; } return framesBuilder_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecasting.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecasting.java index e7fc63168d09..0a5ee566d83c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecasting.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecasting.java @@ -125,7 +125,10 @@ public boolean hasInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlForecastingInputsOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null + ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .getDefaultInstance() + : inputs_; } public static final int METADATA_FIELD_NUMBER = 2; @@ -185,7 +188,10 @@ public boolean hasMetadata() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlForecastingMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingMetadata.getDefaultInstance() + : metadata_; } private byte memoizedIsInitialized = -1; @@ -420,16 +426,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + bitField0_ = 0; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; @@ -466,20 +471,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting( this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -567,13 +577,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -593,6 +603,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlForecastingInputs inputs_; @@ -618,7 +630,7 @@ public Builder mergeFrom( * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -663,11 +675,11 @@ public Builder setInputs( throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -687,11 +699,11 @@ public Builder setInputs( builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -709,20 +721,20 @@ public Builder mergeInputs( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingInputs.newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && inputs_ != null + && inputs_ + != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -737,14 +749,13 @@ public Builder mergeInputs( * */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -761,7 +772,7 @@ public Builder clearInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs .Builder getInputsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputsFieldBuilder().getBuilder(); } @@ -847,7 +858,7 @@ public Builder clearInputs() { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -893,11 +904,11 @@ public Builder setMetadata( throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -917,11 +928,11 @@ public Builder setMetadata( builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -939,20 +950,20 @@ public Builder mergeMetadata( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlForecastingMetadata.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -967,14 +978,13 @@ public Builder mergeMetadata( * */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -991,7 +1001,7 @@ public Builder clearMetadata() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlForecastingMetadata.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs.java index 4f7fa8567033..f652f8a7d46f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs.java @@ -340,7 +340,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; /** * string column_name = 1; * @@ -613,8 +615,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; columnName_ = ""; - return this; } @@ -655,11 +657,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlForecastingInputs.Transformation.AutoTransformation(this); - result.columnName_ = columnName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.AutoTransformation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -721,6 +735,7 @@ public Builder mergeFrom( return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -752,7 +767,7 @@ public Builder mergeFrom( case 10: { columnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -772,6 +787,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object columnName_ = ""; /** * string column_name = 1; @@ -815,8 +832,8 @@ public Builder setColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -826,8 +843,8 @@ public Builder setColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearColumnName() { - columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -842,8 +859,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1002,7 +1019,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; /** * string column_name = 1; * @@ -1283,8 +1302,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; columnName_ = ""; - return this; } @@ -1325,11 +1344,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlForecastingInputs.Transformation.NumericTransformation(this); - result.columnName_ = columnName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.NumericTransformation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1391,6 +1422,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1422,7 +1454,7 @@ public Builder mergeFrom( case 10: { columnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -1442,6 +1474,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object columnName_ = ""; /** * string column_name = 1; @@ -1485,8 +1519,8 @@ public Builder setColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1496,8 +1530,8 @@ public Builder setColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearColumnName() { - columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1512,8 +1546,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1672,7 +1706,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; /** * string column_name = 1; * @@ -1952,8 +1988,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; columnName_ = ""; - return this; } @@ -1995,11 +2031,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlForecastingInputs.Transformation.CategoricalTransformation(this); - result.columnName_ = columnName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.CategoricalTransformation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2061,6 +2109,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -2092,7 +2141,7 @@ public Builder mergeFrom( case 10: { columnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -2112,6 +2161,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object columnName_ = ""; /** * string column_name = 1; @@ -2155,8 +2206,8 @@ public Builder setColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2166,8 +2217,8 @@ public Builder setColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearColumnName() { - columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2182,8 +2233,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2387,7 +2438,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; /** * string column_name = 1; * @@ -2424,7 +2477,9 @@ public com.google.protobuf.ByteString getColumnNameBytes() { } public static final int TIME_FORMAT_FIELD_NUMBER = 2; - private volatile java.lang.Object timeFormat_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeFormat_ = ""; /** * * @@ -2746,10 +2801,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; columnName_ = ""; - timeFormat_ = ""; - return this; } @@ -2790,12 +2844,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlForecastingInputs.Transformation.TimestampTransformation(this); - result.columnName_ = columnName_; - result.timeFormat_ = timeFormat_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.TimestampTransformation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.timeFormat_ = timeFormat_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2857,10 +2925,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getTimeFormat().isEmpty()) { timeFormat_ = other.timeFormat_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -2892,13 +2962,13 @@ public Builder mergeFrom( case 10: { columnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { timeFormat_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -2918,6 +2988,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object columnName_ = ""; /** * string column_name = 1; @@ -2961,8 +3033,8 @@ public Builder setColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2972,8 +3044,8 @@ public Builder setColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearColumnName() { - columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2988,8 +3060,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3088,8 +3160,8 @@ public Builder setTimeFormat(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeFormat_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3116,8 +3188,8 @@ public Builder setTimeFormat(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeFormat() { - timeFormat_ = getDefaultInstance().getTimeFormat(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3149,8 +3221,8 @@ public Builder setTimeFormatBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeFormat_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3304,7 +3376,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; /** * string column_name = 1; * @@ -3580,8 +3654,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; columnName_ = ""; - return this; } @@ -3622,11 +3696,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlForecastingInputs.Transformation.TextTransformation(this); - result.columnName_ = columnName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlForecastingInputs.Transformation.TextTransformation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3688,6 +3774,7 @@ public Builder mergeFrom( return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -3719,7 +3806,7 @@ public Builder mergeFrom( case 10: { columnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -3739,6 +3826,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object columnName_ = ""; /** * string column_name = 1; @@ -3782,8 +3871,8 @@ public Builder setColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3793,8 +3882,8 @@ public Builder setColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearColumnName() { - columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3809,8 +3898,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4526,6 +4615,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (autoBuilder_ != null) { autoBuilder_.clear(); } @@ -4583,44 +4673,42 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlForecastingInputs.Transformation(this); - if (transformationDetailCase_ == 1) { - if (autoBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = autoBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (transformationDetailCase_ == 2) { - if (numericBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = numericBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Transformation + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Transformation + result) { + result.transformationDetailCase_ = transformationDetailCase_; + result.transformationDetail_ = this.transformationDetail_; + if (transformationDetailCase_ == 1 && autoBuilder_ != null) { + result.transformationDetail_ = autoBuilder_.build(); } - if (transformationDetailCase_ == 3) { - if (categoricalBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = categoricalBuilder_.build(); - } + if (transformationDetailCase_ == 2 && numericBuilder_ != null) { + result.transformationDetail_ = numericBuilder_.build(); } - if (transformationDetailCase_ == 4) { - if (timestampBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = timestampBuilder_.build(); - } + if (transformationDetailCase_ == 3 && categoricalBuilder_ != null) { + result.transformationDetail_ = categoricalBuilder_.build(); } - if (transformationDetailCase_ == 5) { - if (textBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = textBuilder_.build(); - } + if (transformationDetailCase_ == 4 && timestampBuilder_ != null) { + result.transformationDetail_ = timestampBuilder_.build(); + } + if (transformationDetailCase_ == 5 && textBuilder_ != null) { + result.transformationDetail_ = textBuilder_.build(); } - result.transformationDetailCase_ = transformationDetailCase_; - onBuilt(); - return result; } @java.lang.Override @@ -4799,6 +4887,8 @@ public Builder clearTransformationDetail() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlForecastingInputs.Transformation.AutoTransformation, @@ -5009,7 +5099,6 @@ public Builder clearAuto() { } transformationDetailCase_ = 1; onChanged(); - ; return autoBuilder_; } @@ -5224,7 +5313,6 @@ public Builder clearNumeric() { } transformationDetailCase_ = 2; onChanged(); - ; return numericBuilder_; } @@ -5442,7 +5530,6 @@ public Builder clearCategorical() { } transformationDetailCase_ = 3; onChanged(); - ; return categoricalBuilder_; } @@ -5657,7 +5744,6 @@ public Builder clearTimestamp() { } transformationDetailCase_ = 4; onChanged(); - ; return timestampBuilder_; } @@ -5871,7 +5957,6 @@ public Builder clearText() { } transformationDetailCase_ = 5; onChanged(); - ; return textBuilder_; } @@ -6062,7 +6147,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int UNIT_FIELD_NUMBER = 1; - private volatile java.lang.Object unit_; + + @SuppressWarnings("serial") + private volatile java.lang.Object unit_ = ""; /** * * @@ -6125,7 +6212,7 @@ public com.google.protobuf.ByteString getUnitBytes() { } public static final int QUANTITY_FIELD_NUMBER = 2; - private long quantity_; + private long quantity_ = 0L; /** * * @@ -6388,10 +6475,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; unit_ = ""; - quantity_ = 0L; - return this; } @@ -6432,12 +6518,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlForecastingInputs.Granularity(this); - result.unit_ = unit_; - result.quantity_ = quantity_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Granularity + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.unit_ = unit_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.quantity_ = quantity_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -6498,6 +6598,7 @@ public Builder mergeFrom( .AutoMlForecastingInputs.Granularity.getDefaultInstance()) return this; if (!other.getUnit().isEmpty()) { unit_ = other.unit_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getQuantity() != 0L) { @@ -6532,13 +6633,13 @@ public Builder mergeFrom( case 10: { unit_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { quantity_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -6558,6 +6659,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object unit_ = ""; /** * @@ -6640,8 +6743,8 @@ public Builder setUnit(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - unit_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -6664,8 +6767,8 @@ public Builder setUnit(java.lang.String value) { * @return This builder for chaining. */ public Builder clearUnit() { - unit_ = getDefaultInstance().getUnit(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -6693,8 +6796,8 @@ public Builder setUnitBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - unit_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -6736,6 +6839,7 @@ public long getQuantity() { public Builder setQuantity(long value) { quantity_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -6754,7 +6858,7 @@ public Builder setQuantity(long value) { * @return This builder for chaining. */ public Builder clearQuantity() { - + bitField0_ = (bitField0_ & ~0x00000002); quantity_ = 0L; onChanged(); return this; @@ -6833,7 +6937,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int TARGET_COLUMN_FIELD_NUMBER = 1; - private volatile java.lang.Object targetColumn_; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetColumn_ = ""; /** * * @@ -6882,7 +6988,9 @@ public com.google.protobuf.ByteString getTargetColumnBytes() { } public static final int TIME_SERIES_IDENTIFIER_COLUMN_FIELD_NUMBER = 2; - private volatile java.lang.Object timeSeriesIdentifierColumn_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeSeriesIdentifierColumn_ = ""; /** * * @@ -6931,7 +7039,9 @@ public com.google.protobuf.ByteString getTimeSeriesIdentifierColumnBytes() { } public static final int TIME_COLUMN_FIELD_NUMBER = 3; - private volatile java.lang.Object timeColumn_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeColumn_ = ""; /** * * @@ -6980,6 +7090,8 @@ public com.google.protobuf.ByteString getTimeColumnBytes() { } public static final int TRANSFORMATIONS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs .Transformation> @@ -7087,7 +7199,9 @@ public int getTransformationsCount() { } public static final int OPTIMIZATION_OBJECTIVE_FIELD_NUMBER = 5; - private volatile java.lang.Object optimizationObjective_; + + @SuppressWarnings("serial") + private volatile java.lang.Object optimizationObjective_ = ""; /** * * @@ -7158,7 +7272,7 @@ public com.google.protobuf.ByteString getOptimizationObjectiveBytes() { } public static final int TRAIN_BUDGET_MILLI_NODE_HOURS_FIELD_NUMBER = 6; - private long trainBudgetMilliNodeHours_; + private long trainBudgetMilliNodeHours_ = 0L; /** * * @@ -7186,7 +7300,9 @@ public long getTrainBudgetMilliNodeHours() { } public static final int WEIGHT_COLUMN_FIELD_NUMBER = 7; - private volatile java.lang.Object weightColumn_; + + @SuppressWarnings("serial") + private volatile java.lang.Object weightColumn_ = ""; /** * * @@ -7245,6 +7361,8 @@ public com.google.protobuf.ByteString getWeightColumnBytes() { } public static final int TIME_SERIES_ATTRIBUTE_COLUMNS_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList timeSeriesAttributeColumns_; /** * @@ -7314,6 +7432,8 @@ public com.google.protobuf.ByteString getTimeSeriesAttributeColumnsBytes(int ind } public static final int UNAVAILABLE_AT_FORECAST_COLUMNS_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unavailableAtForecastColumns_; /** * @@ -7387,6 +7507,8 @@ public com.google.protobuf.ByteString getUnavailableAtForecastColumnsBytes(int i } public static final int AVAILABLE_AT_FORECAST_COLUMNS_FIELD_NUMBER = 21; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList availableAtForecastColumns_; /** * @@ -7521,11 +7643,14 @@ public boolean hasDataGranularity() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs .GranularityOrBuilder getDataGranularityOrBuilder() { - return getDataGranularity(); + return dataGranularity_ == null + ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + .Granularity.getDefaultInstance() + : dataGranularity_; } public static final int FORECAST_HORIZON_FIELD_NUMBER = 23; - private long forecastHorizon_; + private long forecastHorizon_ = 0L; /** * * @@ -7545,7 +7670,7 @@ public long getForecastHorizon() { } public static final int CONTEXT_WINDOW_FIELD_NUMBER = 24; - private long contextWindow_; + private long contextWindow_ = 0L; /** * * @@ -7625,10 +7750,15 @@ public boolean hasExportEvaluatedDataItemsConfig() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .ExportEvaluatedDataItemsConfigOrBuilder getExportEvaluatedDataItemsConfigOrBuilder() { - return getExportEvaluatedDataItemsConfig(); + return exportEvaluatedDataItemsConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .ExportEvaluatedDataItemsConfig.getDefaultInstance() + : exportEvaluatedDataItemsConfig_; } public static final int QUANTILES_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.DoubleList quantiles_; /** * @@ -7687,7 +7817,9 @@ public double getQuantiles(int index) { private int quantilesMemoizedSerializedSize = -1; public static final int VALIDATION_OPTIONS_FIELD_NUMBER = 17; - private volatile java.lang.Object validationOptions_; + + @SuppressWarnings("serial") + private volatile java.lang.Object validationOptions_ = ""; /** * * @@ -7744,6 +7876,8 @@ public com.google.protobuf.ByteString getValidationOptionsBytes() { } public static final int ADDITIONAL_EXPERIMENTS_FIELD_NUMBER = 25; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList additionalExperiments_; /** * @@ -8239,53 +8373,42 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; targetColumn_ = ""; - timeSeriesIdentifierColumn_ = ""; - timeColumn_ = ""; - if (transformationsBuilder_ == null) { transformations_ = java.util.Collections.emptyList(); } else { transformations_ = null; transformationsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); optimizationObjective_ = ""; - trainBudgetMilliNodeHours_ = 0L; - weightColumn_ = ""; - timeSeriesAttributeColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000080); unavailableAtForecastColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000100); availableAtForecastColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - if (dataGranularityBuilder_ == null) { - dataGranularity_ = null; - } else { - dataGranularity_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + dataGranularity_ = null; + if (dataGranularityBuilder_ != null) { + dataGranularityBuilder_.dispose(); dataGranularityBuilder_ = null; } forecastHorizon_ = 0L; - contextWindow_ = 0L; - - if (exportEvaluatedDataItemsConfigBuilder_ == null) { - exportEvaluatedDataItemsConfig_ = null; - } else { - exportEvaluatedDataItemsConfig_ = null; + exportEvaluatedDataItemsConfig_ = null; + if (exportEvaluatedDataItemsConfigBuilder_ != null) { + exportEvaluatedDataItemsConfigBuilder_.dispose(); exportEvaluatedDataItemsConfigBuilder_ = null; } quantiles_ = emptyDoubleList(); - bitField0_ = (bitField0_ & ~0x00000010); validationOptions_ = ""; - additionalExperiments_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00010000); return this; } @@ -8321,62 +8444,94 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlForecastingInputs(this); - int from_bitField0_ = bitField0_; - result.targetColumn_ = targetColumn_; - result.timeSeriesIdentifierColumn_ = timeSeriesIdentifierColumn_; - result.timeColumn_ = timeColumn_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + result) { if (transformationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { transformations_ = java.util.Collections.unmodifiableList(transformations_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.transformations_ = transformations_; } else { result.transformations_ = transformationsBuilder_.build(); } - result.optimizationObjective_ = optimizationObjective_; - result.trainBudgetMilliNodeHours_ = trainBudgetMilliNodeHours_; - result.weightColumn_ = weightColumn_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { timeSeriesAttributeColumns_ = timeSeriesAttributeColumns_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000080); } result.timeSeriesAttributeColumns_ = timeSeriesAttributeColumns_; - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { unavailableAtForecastColumns_ = unavailableAtForecastColumns_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000100); } result.unavailableAtForecastColumns_ = unavailableAtForecastColumns_; - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { availableAtForecastColumns_ = availableAtForecastColumns_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000200); } result.availableAtForecastColumns_ = availableAtForecastColumns_; - if (dataGranularityBuilder_ == null) { - result.dataGranularity_ = dataGranularity_; - } else { - result.dataGranularity_ = dataGranularityBuilder_.build(); - } - result.forecastHorizon_ = forecastHorizon_; - result.contextWindow_ = contextWindow_; - if (exportEvaluatedDataItemsConfigBuilder_ == null) { - result.exportEvaluatedDataItemsConfig_ = exportEvaluatedDataItemsConfig_; - } else { - result.exportEvaluatedDataItemsConfig_ = exportEvaluatedDataItemsConfigBuilder_.build(); - } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { quantiles_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00004000); } result.quantiles_ = quantiles_; - result.validationOptions_ = validationOptions_; - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { additionalExperiments_ = additionalExperiments_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00010000); } result.additionalExperiments_ = additionalExperiments_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.targetColumn_ = targetColumn_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.timeSeriesIdentifierColumn_ = timeSeriesIdentifierColumn_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.timeColumn_ = timeColumn_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.optimizationObjective_ = optimizationObjective_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.trainBudgetMilliNodeHours_ = trainBudgetMilliNodeHours_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.weightColumn_ = weightColumn_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.dataGranularity_ = + dataGranularityBuilder_ == null ? dataGranularity_ : dataGranularityBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.forecastHorizon_ = forecastHorizon_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.contextWindow_ = contextWindow_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.exportEvaluatedDataItemsConfig_ = + exportEvaluatedDataItemsConfigBuilder_ == null + ? exportEvaluatedDataItemsConfig_ + : exportEvaluatedDataItemsConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.validationOptions_ = validationOptions_; + } } @java.lang.Override @@ -8436,21 +8591,24 @@ public Builder mergeFrom( .AutoMlForecastingInputs.getDefaultInstance()) return this; if (!other.getTargetColumn().isEmpty()) { targetColumn_ = other.targetColumn_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getTimeSeriesIdentifierColumn().isEmpty()) { timeSeriesIdentifierColumn_ = other.timeSeriesIdentifierColumn_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getTimeColumn().isEmpty()) { timeColumn_ = other.timeColumn_; + bitField0_ |= 0x00000004; onChanged(); } if (transformationsBuilder_ == null) { if (!other.transformations_.isEmpty()) { if (transformations_.isEmpty()) { transformations_ = other.transformations_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureTransformationsIsMutable(); transformations_.addAll(other.transformations_); @@ -8463,7 +8621,7 @@ public Builder mergeFrom( transformationsBuilder_.dispose(); transformationsBuilder_ = null; transformations_ = other.transformations_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); transformationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransformationsFieldBuilder() @@ -8475,6 +8633,7 @@ public Builder mergeFrom( } if (!other.getOptimizationObjective().isEmpty()) { optimizationObjective_ = other.optimizationObjective_; + bitField0_ |= 0x00000010; onChanged(); } if (other.getTrainBudgetMilliNodeHours() != 0L) { @@ -8482,12 +8641,13 @@ public Builder mergeFrom( } if (!other.getWeightColumn().isEmpty()) { weightColumn_ = other.weightColumn_; + bitField0_ |= 0x00000040; onChanged(); } if (!other.timeSeriesAttributeColumns_.isEmpty()) { if (timeSeriesAttributeColumns_.isEmpty()) { timeSeriesAttributeColumns_ = other.timeSeriesAttributeColumns_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureTimeSeriesAttributeColumnsIsMutable(); timeSeriesAttributeColumns_.addAll(other.timeSeriesAttributeColumns_); @@ -8497,7 +8657,7 @@ public Builder mergeFrom( if (!other.unavailableAtForecastColumns_.isEmpty()) { if (unavailableAtForecastColumns_.isEmpty()) { unavailableAtForecastColumns_ = other.unavailableAtForecastColumns_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureUnavailableAtForecastColumnsIsMutable(); unavailableAtForecastColumns_.addAll(other.unavailableAtForecastColumns_); @@ -8507,7 +8667,7 @@ public Builder mergeFrom( if (!other.availableAtForecastColumns_.isEmpty()) { if (availableAtForecastColumns_.isEmpty()) { availableAtForecastColumns_ = other.availableAtForecastColumns_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureAvailableAtForecastColumnsIsMutable(); availableAtForecastColumns_.addAll(other.availableAtForecastColumns_); @@ -8529,7 +8689,7 @@ public Builder mergeFrom( if (!other.quantiles_.isEmpty()) { if (quantiles_.isEmpty()) { quantiles_ = other.quantiles_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00004000); } else { ensureQuantilesIsMutable(); quantiles_.addAll(other.quantiles_); @@ -8538,12 +8698,13 @@ public Builder mergeFrom( } if (!other.getValidationOptions().isEmpty()) { validationOptions_ = other.validationOptions_; + bitField0_ |= 0x00008000; onChanged(); } if (!other.additionalExperiments_.isEmpty()) { if (additionalExperiments_.isEmpty()) { additionalExperiments_ = other.additionalExperiments_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00010000); } else { ensureAdditionalExperimentsIsMutable(); additionalExperiments_.addAll(other.additionalExperiments_); @@ -8579,19 +8740,19 @@ public Builder mergeFrom( case 10: { targetColumn_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { timeSeriesIdentifierColumn_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { timeColumn_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: @@ -8614,19 +8775,19 @@ public Builder mergeFrom( case 42: { optimizationObjective_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 case 48: { trainBudgetMilliNodeHours_ = input.readInt64(); - + bitField0_ |= 0x00000020; break; } // case 48 case 58: { weightColumn_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 58 case 122: @@ -8634,7 +8795,7 @@ public Builder mergeFrom( input.readMessage( getExportEvaluatedDataItemsConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00002000; break; } // case 122 case 129: @@ -8658,7 +8819,7 @@ public Builder mergeFrom( case 138: { validationOptions_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00008000; break; } // case 138 case 154: @@ -8685,19 +8846,19 @@ public Builder mergeFrom( case 178: { input.readMessage(getDataGranularityFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 178 case 184: { forecastHorizon_ = input.readInt64(); - + bitField0_ |= 0x00000800; break; } // case 184 case 192: { contextWindow_ = input.readInt64(); - + bitField0_ |= 0x00001000; break; } // case 192 case 202: @@ -8787,8 +8948,8 @@ public Builder setTargetColumn(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - targetColumn_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -8804,8 +8965,8 @@ public Builder setTargetColumn(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTargetColumn() { - targetColumn_ = getDefaultInstance().getTargetColumn(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -8826,8 +8987,8 @@ public Builder setTargetColumnBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - targetColumn_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -8893,8 +9054,8 @@ public Builder setTimeSeriesIdentifierColumn(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeSeriesIdentifierColumn_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -8910,8 +9071,8 @@ public Builder setTimeSeriesIdentifierColumn(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeSeriesIdentifierColumn() { - timeSeriesIdentifierColumn_ = getDefaultInstance().getTimeSeriesIdentifierColumn(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -8932,8 +9093,8 @@ public Builder setTimeSeriesIdentifierColumnBytes(com.google.protobuf.ByteString throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeSeriesIdentifierColumn_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -8999,8 +9160,8 @@ public Builder setTimeColumn(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeColumn_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -9016,8 +9177,8 @@ public Builder setTimeColumn(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeColumn() { - timeColumn_ = getDefaultInstance().getTimeColumn(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -9038,8 +9199,8 @@ public Builder setTimeColumnBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeColumn_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -9050,12 +9211,12 @@ public Builder setTimeColumnBytes(com.google.protobuf.ByteString value) { transformations_ = java.util.Collections.emptyList(); private void ensureTransformationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { transformations_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlForecastingInputs.Transformation>(transformations_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -9357,7 +9518,7 @@ public Builder addAllTransformations( public Builder clearTransformations() { if (transformationsBuilder_ == null) { transformations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { transformationsBuilder_.clear(); @@ -9539,7 +9700,7 @@ public Builder removeTransformations(int index) { com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlForecastingInputs.TransformationOrBuilder>( transformations_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); transformations_ = null; @@ -9641,8 +9802,8 @@ public Builder setOptimizationObjective(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - optimizationObjective_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -9669,8 +9830,8 @@ public Builder setOptimizationObjective(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOptimizationObjective() { - optimizationObjective_ = getDefaultInstance().getOptimizationObjective(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -9702,8 +9863,8 @@ public Builder setOptimizationObjectiveBytes(com.google.protobuf.ByteString valu throw new NullPointerException(); } checkByteStringIsUtf8(value); - optimizationObjective_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -9759,6 +9920,7 @@ public long getTrainBudgetMilliNodeHours() { public Builder setTrainBudgetMilliNodeHours(long value) { trainBudgetMilliNodeHours_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -9784,7 +9946,7 @@ public Builder setTrainBudgetMilliNodeHours(long value) { * @return This builder for chaining. */ public Builder clearTrainBudgetMilliNodeHours() { - + bitField0_ = (bitField0_ & ~0x00000020); trainBudgetMilliNodeHours_ = 0L; onChanged(); return this; @@ -9866,8 +10028,8 @@ public Builder setWeightColumn(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - weightColumn_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -9888,8 +10050,8 @@ public Builder setWeightColumn(java.lang.String value) { * @return This builder for chaining. */ public Builder clearWeightColumn() { - weightColumn_ = getDefaultInstance().getWeightColumn(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -9915,8 +10077,8 @@ public Builder setWeightColumnBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - weightColumn_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -9925,10 +10087,10 @@ public Builder setWeightColumnBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTimeSeriesAttributeColumnsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { timeSeriesAttributeColumns_ = new com.google.protobuf.LazyStringArrayList(timeSeriesAttributeColumns_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000080; } } /** @@ -10079,7 +10241,7 @@ public Builder addAllTimeSeriesAttributeColumns(java.lang.Iterable */ public Builder clearDataGranularity() { - if (dataGranularityBuilder_ == null) { - dataGranularity_ = null; - onChanged(); - } else { - dataGranularity_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + dataGranularity_ = null; + if (dataGranularityBuilder_ != null) { + dataGranularityBuilder_.dispose(); dataGranularityBuilder_ = null; } - + onChanged(); return this; } /** @@ -10680,7 +10841,7 @@ public Builder clearDataGranularity() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs .Granularity.Builder getDataGranularityBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getDataGranularityFieldBuilder().getBuilder(); } @@ -10776,6 +10937,7 @@ public long getForecastHorizon() { public Builder setForecastHorizon(long value) { forecastHorizon_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -10793,7 +10955,7 @@ public Builder setForecastHorizon(long value) { * @return This builder for chaining. */ public Builder clearForecastHorizon() { - + bitField0_ = (bitField0_ & ~0x00000800); forecastHorizon_ = 0L; onChanged(); return this; @@ -10834,6 +10996,7 @@ public long getContextWindow() { public Builder setContextWindow(long value) { contextWindow_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -10851,7 +11014,7 @@ public Builder setContextWindow(long value) { * @return This builder for chaining. */ public Builder clearContextWindow() { - + bitField0_ = (bitField0_ & ~0x00001000); contextWindow_ = 0L; onChanged(); return this; @@ -10883,8 +11046,7 @@ public Builder clearContextWindow() { * @return Whether the exportEvaluatedDataItemsConfig field is set. */ public boolean hasExportEvaluatedDataItemsConfig() { - return exportEvaluatedDataItemsConfigBuilder_ != null - || exportEvaluatedDataItemsConfig_ != null; + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -10933,11 +11095,11 @@ public Builder setExportEvaluatedDataItemsConfig( throw new NullPointerException(); } exportEvaluatedDataItemsConfig_ = value; - onChanged(); } else { exportEvaluatedDataItemsConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -10958,11 +11120,11 @@ public Builder setExportEvaluatedDataItemsConfig( builderForValue) { if (exportEvaluatedDataItemsConfigBuilder_ == null) { exportEvaluatedDataItemsConfig_ = builderForValue.build(); - onChanged(); } else { exportEvaluatedDataItemsConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -10982,20 +11144,20 @@ public Builder mergeExportEvaluatedDataItemsConfig( .ExportEvaluatedDataItemsConfig value) { if (exportEvaluatedDataItemsConfigBuilder_ == null) { - if (exportEvaluatedDataItemsConfig_ != null) { - exportEvaluatedDataItemsConfig_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig.newBuilder(exportEvaluatedDataItemsConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00002000) != 0) + && exportEvaluatedDataItemsConfig_ != null + && exportEvaluatedDataItemsConfig_ + != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .ExportEvaluatedDataItemsConfig.getDefaultInstance()) { + getExportEvaluatedDataItemsConfigBuilder().mergeFrom(value); } else { exportEvaluatedDataItemsConfig_ = value; } - onChanged(); } else { exportEvaluatedDataItemsConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -11011,14 +11173,13 @@ public Builder mergeExportEvaluatedDataItemsConfig( * */ public Builder clearExportEvaluatedDataItemsConfig() { - if (exportEvaluatedDataItemsConfigBuilder_ == null) { - exportEvaluatedDataItemsConfig_ = null; - onChanged(); - } else { - exportEvaluatedDataItemsConfig_ = null; + bitField0_ = (bitField0_ & ~0x00002000); + exportEvaluatedDataItemsConfig_ = null; + if (exportEvaluatedDataItemsConfigBuilder_ != null) { + exportEvaluatedDataItemsConfigBuilder_.dispose(); exportEvaluatedDataItemsConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -11036,7 +11197,7 @@ public Builder clearExportEvaluatedDataItemsConfig() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .ExportEvaluatedDataItemsConfig.Builder getExportEvaluatedDataItemsConfigBuilder() { - + bitField0_ |= 0x00002000; onChanged(); return getExportEvaluatedDataItemsConfigFieldBuilder().getBuilder(); } @@ -11102,9 +11263,9 @@ public Builder clearExportEvaluatedDataItemsConfig() { private com.google.protobuf.Internal.DoubleList quantiles_ = emptyDoubleList(); private void ensureQuantilesIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!((bitField0_ & 0x00004000) != 0)) { quantiles_ = mutableCopy(quantiles_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00004000; } } /** @@ -11122,7 +11283,7 @@ private void ensureQuantilesIsMutable() { * @return A list containing the quantiles. */ public java.util.List getQuantilesList() { - return ((bitField0_ & 0x00000010) != 0) + return ((bitField0_ & 0x00004000) != 0) ? java.util.Collections.unmodifiableList(quantiles_) : quantiles_; } @@ -11178,6 +11339,7 @@ public double getQuantiles(int index) { * @return This builder for chaining. */ public Builder setQuantiles(int index, double value) { + ensureQuantilesIsMutable(); quantiles_.setDouble(index, value); onChanged(); @@ -11199,6 +11361,7 @@ public Builder setQuantiles(int index, double value) { * @return This builder for chaining. */ public Builder addQuantiles(double value) { + ensureQuantilesIsMutable(); quantiles_.addDouble(value); onChanged(); @@ -11241,7 +11404,7 @@ public Builder addAllQuantiles(java.lang.Iterable va */ public Builder clearQuantiles() { quantiles_ = emptyDoubleList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -11319,8 +11482,8 @@ public Builder setValidationOptions(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - validationOptions_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -11340,8 +11503,8 @@ public Builder setValidationOptions(java.lang.String value) { * @return This builder for chaining. */ public Builder clearValidationOptions() { - validationOptions_ = getDefaultInstance().getValidationOptions(); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -11366,8 +11529,8 @@ public Builder setValidationOptionsBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - validationOptions_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -11376,10 +11539,10 @@ public Builder setValidationOptionsBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAdditionalExperimentsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!((bitField0_ & 0x00010000) != 0)) { additionalExperiments_ = new com.google.protobuf.LazyStringArrayList(additionalExperiments_); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00010000; } } /** @@ -11514,7 +11677,7 @@ public Builder addAllAdditionalExperiments(java.lang.Iterable */ public Builder clearAdditionalExperiments() { additionalExperiments_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingMetadata.java index f3395bf73712..4537e25de56a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingMetadata.java @@ -70,7 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRAIN_COST_MILLI_NODE_HOURS_FIELD_NUMBER = 1; - private long trainCostMilliNodeHours_; + private long trainCostMilliNodeHours_ = 0L; /** * * @@ -319,8 +319,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; trainCostMilliNodeHours_ = 0L; - return this; } @@ -359,11 +359,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlForecastingMetadata(this); - result.trainCostMilliNodeHours_ = trainCostMilliNodeHours_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trainCostMilliNodeHours_ = trainCostMilliNodeHours_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -451,7 +462,7 @@ public Builder mergeFrom( case 8: { trainCostMilliNodeHours_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -471,6 +482,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long trainCostMilliNodeHours_; /** * @@ -506,6 +519,7 @@ public long getTrainCostMilliNodeHours() { public Builder setTrainCostMilliNodeHours(long value) { trainCostMilliNodeHours_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -523,7 +537,7 @@ public Builder setTrainCostMilliNodeHours(long value) { * @return This builder for chaining. */ public Builder clearTrainCostMilliNodeHours() { - + bitField0_ = (bitField0_ & ~0x00000001); trainCostMilliNodeHours_ = 0L; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassification.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassification.java index 0582cf7cf9c3..5cb30d38c760 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassification.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassification.java @@ -129,7 +129,10 @@ public boolean hasInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageClassificationInputsOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null + ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlImageClassificationInputs.getDefaultInstance() + : inputs_; } public static final int METADATA_FIELD_NUMBER = 2; @@ -190,7 +193,10 @@ public boolean hasMetadata() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageClassificationMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlImageClassificationMetadata.getDefaultInstance() + : metadata_; } private byte memoizedIsInitialized = -1; @@ -442,16 +448,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + bitField0_ = 0; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; @@ -492,20 +497,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageClassification(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassification + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -596,13 +606,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -622,6 +632,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageClassificationInputs inputs_; @@ -647,7 +659,7 @@ public Builder mergeFrom( * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -694,11 +706,11 @@ public Builder setInputs( throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -718,11 +730,11 @@ public Builder setInputs( builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -741,20 +753,20 @@ public Builder mergeInputs( .AutoMlImageClassificationInputs value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlImageClassificationInputs.newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && inputs_ != null + && inputs_ + != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlImageClassificationInputs.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -769,14 +781,13 @@ public Builder mergeInputs( * */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -793,7 +804,7 @@ public Builder clearInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageClassificationInputs.Builder getInputsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputsFieldBuilder().getBuilder(); } @@ -879,7 +890,7 @@ public Builder clearInputs() { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -926,11 +937,11 @@ public Builder setMetadata( throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -950,11 +961,11 @@ public Builder setMetadata( builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -973,20 +984,20 @@ public Builder mergeMetadata( .AutoMlImageClassificationMetadata value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlImageClassificationMetadata.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlImageClassificationMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1001,14 +1012,13 @@ public Builder mergeMetadata( * */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -1025,7 +1035,7 @@ public Builder clearMetadata() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageClassificationMetadata.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassificationInputs.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassificationInputs.java index 3eec83bceef0..68afba95e3e1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassificationInputs.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassificationInputs.java @@ -293,7 +293,7 @@ private ModelType(int value) { } public static final int MODEL_TYPE_FIELD_NUMBER = 1; - private int modelType_; + private int modelType_ = 0; /** * * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType model_type = 1; @@ -316,12 +316,11 @@ public int getModelTypeValue() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageClassificationInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageClassificationInputs.ModelType result = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlImageClassificationInputs.ModelType.valueOf(modelType_); + .AutoMlImageClassificationInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageClassificationInputs.ModelType.UNRECOGNIZED @@ -329,7 +328,9 @@ public int getModelTypeValue() { } public static final int BASE_MODEL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object baseModelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object baseModelId_ = ""; /** * * @@ -386,7 +387,7 @@ public com.google.protobuf.ByteString getBaseModelIdBytes() { } public static final int BUDGET_MILLI_NODE_HOURS_FIELD_NUMBER = 3; - private long budgetMilliNodeHours_; + private long budgetMilliNodeHours_ = 0L; /** * * @@ -418,7 +419,7 @@ public long getBudgetMilliNodeHours() { } public static final int DISABLE_EARLY_STOPPING_FIELD_NUMBER = 4; - private boolean disableEarlyStopping_; + private boolean disableEarlyStopping_ = false; /** * * @@ -439,7 +440,7 @@ public boolean getDisableEarlyStopping() { } public static final int MULTI_LABEL_FIELD_NUMBER = 5; - private boolean multiLabel_; + private boolean multiLabel_ = false; /** * * @@ -727,16 +728,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; modelType_ = 0; - baseModelId_ = ""; - budgetMilliNodeHours_ = 0L; - disableEarlyStopping_ = false; - multiLabel_ = false; - return this; } @@ -777,15 +774,35 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageClassificationInputs(this); - result.modelType_ = modelType_; - result.baseModelId_ = baseModelId_; - result.budgetMilliNodeHours_ = budgetMilliNodeHours_; - result.disableEarlyStopping_ = disableEarlyStopping_; - result.multiLabel_ = multiLabel_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlImageClassificationInputs + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelType_ = modelType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.baseModelId_ = baseModelId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.budgetMilliNodeHours_ = budgetMilliNodeHours_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.disableEarlyStopping_ = disableEarlyStopping_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.multiLabel_ = multiLabel_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -847,6 +864,7 @@ public Builder mergeFrom( } if (!other.getBaseModelId().isEmpty()) { baseModelId_ = other.baseModelId_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getBudgetMilliNodeHours() != 0L) { @@ -887,31 +905,31 @@ public Builder mergeFrom( case 8: { modelType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { baseModelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { budgetMilliNodeHours_ = input.readInt64(); - + bitField0_ |= 0x00000004; break; } // case 24 case 32: { disableEarlyStopping_ = input.readBool(); - + bitField0_ |= 0x00000008; break; } // case 32 case 40: { multiLabel_ = input.readBool(); - + bitField0_ |= 0x00000010; break; } // case 40 default: @@ -931,6 +949,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int modelType_ = 0; /** * @@ -952,8 +972,8 @@ public int getModelTypeValue() { * @return This builder for chaining. */ public Builder setModelTypeValue(int value) { - modelType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -968,12 +988,11 @@ public Builder setModelTypeValue(int value) { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageClassificationInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageClassificationInputs.ModelType result = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlImageClassificationInputs.ModelType.valueOf(modelType_); + .AutoMlImageClassificationInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageClassificationInputs.ModelType.UNRECOGNIZED @@ -994,7 +1013,7 @@ public Builder setModelType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; modelType_ = value.getNumber(); onChanged(); return this; @@ -1007,7 +1026,7 @@ public Builder setModelType( * @return This builder for chaining. */ public Builder clearModelType() { - + bitField0_ = (bitField0_ & ~0x00000001); modelType_ = 0; onChanged(); return this; @@ -1086,8 +1105,8 @@ public Builder setBaseModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - baseModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1107,8 +1126,8 @@ public Builder setBaseModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearBaseModelId() { - baseModelId_ = getDefaultInstance().getBaseModelId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1133,8 +1152,8 @@ public Builder setBaseModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - baseModelId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1198,6 +1217,7 @@ public long getBudgetMilliNodeHours() { public Builder setBudgetMilliNodeHours(long value) { budgetMilliNodeHours_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1227,7 +1247,7 @@ public Builder setBudgetMilliNodeHours(long value) { * @return This builder for chaining. */ public Builder clearBudgetMilliNodeHours() { - + bitField0_ = (bitField0_ & ~0x00000004); budgetMilliNodeHours_ = 0L; onChanged(); return this; @@ -1270,6 +1290,7 @@ public boolean getDisableEarlyStopping() { public Builder setDisableEarlyStopping(boolean value) { disableEarlyStopping_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1288,7 +1309,7 @@ public Builder setDisableEarlyStopping(boolean value) { * @return This builder for chaining. */ public Builder clearDisableEarlyStopping() { - + bitField0_ = (bitField0_ & ~0x00000008); disableEarlyStopping_ = false; onChanged(); return this; @@ -1331,6 +1352,7 @@ public boolean getMultiLabel() { public Builder setMultiLabel(boolean value) { multiLabel_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1349,7 +1371,7 @@ public Builder setMultiLabel(boolean value) { * @return This builder for chaining. */ public Builder clearMultiLabel() { - + bitField0_ = (bitField0_ & ~0x00000010); multiLabel_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassificationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassificationMetadata.java index 5ee9be24ce38..6de00adc7509 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassificationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageClassificationMetadata.java @@ -229,7 +229,7 @@ private SuccessfulStopReason(int value) { } public static final int COST_MILLI_NODE_HOURS_FIELD_NUMBER = 1; - private long costMilliNodeHours_; + private long costMilliNodeHours_ = 0L; /** * * @@ -249,7 +249,7 @@ public long getCostMilliNodeHours() { } public static final int SUCCESSFUL_STOP_REASON_FIELD_NUMBER = 2; - private int successfulStopReason_; + private int successfulStopReason_ = 0; /** * * @@ -286,12 +286,11 @@ public int getSuccessfulStopReasonValue() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageClassificationMetadata.SuccessfulStopReason getSuccessfulStopReason() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageClassificationMetadata.SuccessfulStopReason result = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlImageClassificationMetadata.SuccessfulStopReason.valueOf( + .AutoMlImageClassificationMetadata.SuccessfulStopReason.forNumber( successfulStopReason_); return result == null ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition @@ -542,10 +541,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; costMilliNodeHours_ = 0L; - successfulStopReason_ = 0; - return this; } @@ -586,12 +584,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageClassificationMetadata(this); - result.costMilliNodeHours_ = costMilliNodeHours_; - result.successfulStopReason_ = successfulStopReason_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlImageClassificationMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.costMilliNodeHours_ = costMilliNodeHours_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.successfulStopReason_ = successfulStopReason_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -683,13 +695,13 @@ public Builder mergeFrom( case 8: { costMilliNodeHours_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { successfulStopReason_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -709,6 +721,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long costMilliNodeHours_; /** * @@ -744,6 +758,7 @@ public long getCostMilliNodeHours() { public Builder setCostMilliNodeHours(long value) { costMilliNodeHours_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -761,7 +776,7 @@ public Builder setCostMilliNodeHours(long value) { * @return This builder for chaining. */ public Builder clearCostMilliNodeHours() { - + bitField0_ = (bitField0_ & ~0x00000001); costMilliNodeHours_ = 0L; onChanged(); return this; @@ -802,8 +817,8 @@ public int getSuccessfulStopReasonValue() { * @return This builder for chaining. */ public Builder setSuccessfulStopReasonValue(int value) { - successfulStopReason_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -825,12 +840,11 @@ public Builder setSuccessfulStopReasonValue(int value) { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageClassificationMetadata.SuccessfulStopReason getSuccessfulStopReason() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageClassificationMetadata.SuccessfulStopReason result = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlImageClassificationMetadata.SuccessfulStopReason.valueOf( + .AutoMlImageClassificationMetadata.SuccessfulStopReason.forNumber( successfulStopReason_); return result == null ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition @@ -859,7 +873,7 @@ public Builder setSuccessfulStopReason( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; successfulStopReason_ = value.getNumber(); onChanged(); return this; @@ -879,7 +893,7 @@ public Builder setSuccessfulStopReason( * @return This builder for chaining. */ public Builder clearSuccessfulStopReason() { - + bitField0_ = (bitField0_ & ~0x00000002); successfulStopReason_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetection.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetection.java index bea80433f4a1..7bd022055609 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetection.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetection.java @@ -129,7 +129,10 @@ public boolean hasInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageObjectDetectionInputsOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null + ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlImageObjectDetectionInputs.getDefaultInstance() + : inputs_; } public static final int METADATA_FIELD_NUMBER = 2; @@ -190,7 +193,10 @@ public boolean hasMetadata() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageObjectDetectionMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlImageObjectDetectionMetadata.getDefaultInstance() + : metadata_; } private byte memoizedIsInitialized = -1; @@ -442,16 +448,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + bitField0_ = 0; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; @@ -492,20 +497,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageObjectDetection(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetection + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -596,13 +606,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -622,6 +632,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageObjectDetectionInputs inputs_; @@ -647,7 +659,7 @@ public Builder mergeFrom( * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -694,11 +706,11 @@ public Builder setInputs( throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -718,11 +730,11 @@ public Builder setInputs( builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -741,20 +753,20 @@ public Builder mergeInputs( .AutoMlImageObjectDetectionInputs value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlImageObjectDetectionInputs.newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && inputs_ != null + && inputs_ + != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlImageObjectDetectionInputs.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -769,14 +781,13 @@ public Builder mergeInputs( * */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -793,7 +804,7 @@ public Builder clearInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageObjectDetectionInputs.Builder getInputsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputsFieldBuilder().getBuilder(); } @@ -879,7 +890,7 @@ public Builder clearInputs() { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -926,11 +937,11 @@ public Builder setMetadata( throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -950,11 +961,11 @@ public Builder setMetadata( builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -973,20 +984,20 @@ public Builder mergeMetadata( .AutoMlImageObjectDetectionMetadata value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlImageObjectDetectionMetadata.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlImageObjectDetectionMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1001,14 +1012,13 @@ public Builder mergeMetadata( * */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -1025,7 +1035,7 @@ public Builder clearMetadata() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageObjectDetectionMetadata.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetectionInputs.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetectionInputs.java index 7fc85bd1e478..409a134729fa 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetectionInputs.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetectionInputs.java @@ -318,7 +318,7 @@ private ModelType(int value) { } public static final int MODEL_TYPE_FIELD_NUMBER = 1; - private int modelType_; + private int modelType_ = 0; /** * * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType model_type = 1; @@ -341,12 +341,11 @@ public int getModelTypeValue() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageObjectDetectionInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageObjectDetectionInputs.ModelType result = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlImageObjectDetectionInputs.ModelType.valueOf(modelType_); + .AutoMlImageObjectDetectionInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageObjectDetectionInputs.ModelType.UNRECOGNIZED @@ -354,7 +353,7 @@ public int getModelTypeValue() { } public static final int BUDGET_MILLI_NODE_HOURS_FIELD_NUMBER = 2; - private long budgetMilliNodeHours_; + private long budgetMilliNodeHours_ = 0L; /** * * @@ -386,7 +385,7 @@ public long getBudgetMilliNodeHours() { } public static final int DISABLE_EARLY_STOPPING_FIELD_NUMBER = 3; - private boolean disableEarlyStopping_; + private boolean disableEarlyStopping_ = false; /** * * @@ -656,12 +655,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; modelType_ = 0; - budgetMilliNodeHours_ = 0L; - disableEarlyStopping_ = false; - return this; } @@ -702,13 +699,29 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageObjectDetectionInputs(this); - result.modelType_ = modelType_; - result.budgetMilliNodeHours_ = budgetMilliNodeHours_; - result.disableEarlyStopping_ = disableEarlyStopping_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlImageObjectDetectionInputs + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelType_ = modelType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.budgetMilliNodeHours_ = budgetMilliNodeHours_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.disableEarlyStopping_ = disableEarlyStopping_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -803,19 +816,19 @@ public Builder mergeFrom( case 8: { modelType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { budgetMilliNodeHours_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { disableEarlyStopping_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -835,6 +848,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int modelType_ = 0; /** * @@ -856,8 +871,8 @@ public int getModelTypeValue() { * @return This builder for chaining. */ public Builder setModelTypeValue(int value) { - modelType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -872,12 +887,11 @@ public Builder setModelTypeValue(int value) { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageObjectDetectionInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageObjectDetectionInputs.ModelType result = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlImageObjectDetectionInputs.ModelType.valueOf(modelType_); + .AutoMlImageObjectDetectionInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageObjectDetectionInputs.ModelType.UNRECOGNIZED @@ -898,7 +912,7 @@ public Builder setModelType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; modelType_ = value.getNumber(); onChanged(); return this; @@ -911,7 +925,7 @@ public Builder setModelType( * @return This builder for chaining. */ public Builder clearModelType() { - + bitField0_ = (bitField0_ & ~0x00000001); modelType_ = 0; onChanged(); return this; @@ -976,6 +990,7 @@ public long getBudgetMilliNodeHours() { public Builder setBudgetMilliNodeHours(long value) { budgetMilliNodeHours_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1005,7 +1020,7 @@ public Builder setBudgetMilliNodeHours(long value) { * @return This builder for chaining. */ public Builder clearBudgetMilliNodeHours() { - + bitField0_ = (bitField0_ & ~0x00000002); budgetMilliNodeHours_ = 0L; onChanged(); return this; @@ -1048,6 +1063,7 @@ public boolean getDisableEarlyStopping() { public Builder setDisableEarlyStopping(boolean value) { disableEarlyStopping_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1066,7 +1082,7 @@ public Builder setDisableEarlyStopping(boolean value) { * @return This builder for chaining. */ public Builder clearDisableEarlyStopping() { - + bitField0_ = (bitField0_ & ~0x00000004); disableEarlyStopping_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetectionMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetectionMetadata.java index 7101aca734f7..ab01ac4caa3c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetectionMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageObjectDetectionMetadata.java @@ -229,7 +229,7 @@ private SuccessfulStopReason(int value) { } public static final int COST_MILLI_NODE_HOURS_FIELD_NUMBER = 1; - private long costMilliNodeHours_; + private long costMilliNodeHours_ = 0L; /** * * @@ -249,7 +249,7 @@ public long getCostMilliNodeHours() { } public static final int SUCCESSFUL_STOP_REASON_FIELD_NUMBER = 2; - private int successfulStopReason_; + private int successfulStopReason_ = 0; /** * * @@ -286,12 +286,11 @@ public int getSuccessfulStopReasonValue() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageObjectDetectionMetadata.SuccessfulStopReason getSuccessfulStopReason() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageObjectDetectionMetadata.SuccessfulStopReason result = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlImageObjectDetectionMetadata.SuccessfulStopReason.valueOf( + .AutoMlImageObjectDetectionMetadata.SuccessfulStopReason.forNumber( successfulStopReason_); return result == null ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition @@ -542,10 +541,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; costMilliNodeHours_ = 0L; - successfulStopReason_ = 0; - return this; } @@ -586,12 +584,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageObjectDetectionMetadata(this); - result.costMilliNodeHours_ = costMilliNodeHours_; - result.successfulStopReason_ = successfulStopReason_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlImageObjectDetectionMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.costMilliNodeHours_ = costMilliNodeHours_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.successfulStopReason_ = successfulStopReason_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -683,13 +695,13 @@ public Builder mergeFrom( case 8: { costMilliNodeHours_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { successfulStopReason_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -709,6 +721,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long costMilliNodeHours_; /** * @@ -744,6 +758,7 @@ public long getCostMilliNodeHours() { public Builder setCostMilliNodeHours(long value) { costMilliNodeHours_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -761,7 +776,7 @@ public Builder setCostMilliNodeHours(long value) { * @return This builder for chaining. */ public Builder clearCostMilliNodeHours() { - + bitField0_ = (bitField0_ & ~0x00000001); costMilliNodeHours_ = 0L; onChanged(); return this; @@ -802,8 +817,8 @@ public int getSuccessfulStopReasonValue() { * @return This builder for chaining. */ public Builder setSuccessfulStopReasonValue(int value) { - successfulStopReason_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -825,12 +840,11 @@ public Builder setSuccessfulStopReasonValue(int value) { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageObjectDetectionMetadata.SuccessfulStopReason getSuccessfulStopReason() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageObjectDetectionMetadata.SuccessfulStopReason result = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlImageObjectDetectionMetadata.SuccessfulStopReason.valueOf( + .AutoMlImageObjectDetectionMetadata.SuccessfulStopReason.forNumber( successfulStopReason_); return result == null ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition @@ -859,7 +873,7 @@ public Builder setSuccessfulStopReason( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; successfulStopReason_ = value.getNumber(); onChanged(); return this; @@ -879,7 +893,7 @@ public Builder setSuccessfulStopReason( * @return This builder for chaining. */ public Builder clearSuccessfulStopReason() { - + bitField0_ = (bitField0_ & ~0x00000002); successfulStopReason_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentation.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentation.java index e50598031fc0..94e7da5a8edd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentation.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentation.java @@ -129,7 +129,10 @@ public boolean hasInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageSegmentationInputsOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null + ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlImageSegmentationInputs.getDefaultInstance() + : inputs_; } public static final int METADATA_FIELD_NUMBER = 2; @@ -190,7 +193,10 @@ public boolean hasMetadata() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageSegmentationMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlImageSegmentationMetadata.getDefaultInstance() + : metadata_; } private byte memoizedIsInitialized = -1; @@ -442,16 +448,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + bitField0_ = 0; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; @@ -489,20 +494,25 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageSegmentation(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -593,13 +603,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -619,6 +629,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageSegmentationInputs inputs_; @@ -644,7 +656,7 @@ public Builder mergeFrom( * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -691,11 +703,11 @@ public Builder setInputs( throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -715,11 +727,11 @@ public Builder setInputs( builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -738,20 +750,20 @@ public Builder mergeInputs( .AutoMlImageSegmentationInputs value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlImageSegmentationInputs.newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && inputs_ != null + && inputs_ + != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlImageSegmentationInputs.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -766,14 +778,13 @@ public Builder mergeInputs( * */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -790,7 +801,7 @@ public Builder clearInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageSegmentationInputs.Builder getInputsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputsFieldBuilder().getBuilder(); } @@ -876,7 +887,7 @@ public Builder clearInputs() { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -923,11 +934,11 @@ public Builder setMetadata( throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -947,11 +958,11 @@ public Builder setMetadata( builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -970,20 +981,20 @@ public Builder mergeMetadata( .AutoMlImageSegmentationMetadata value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlImageSegmentationMetadata.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlImageSegmentationMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -998,14 +1009,13 @@ public Builder mergeMetadata( * */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -1022,7 +1032,7 @@ public Builder clearMetadata() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageSegmentationMetadata.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentationInputs.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentationInputs.java index d8a02cf2f0fa..79dd093a8241 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentationInputs.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentationInputs.java @@ -260,7 +260,7 @@ private ModelType(int value) { } public static final int MODEL_TYPE_FIELD_NUMBER = 1; - private int modelType_; + private int modelType_ = 0; /** * * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType model_type = 1; @@ -283,12 +283,11 @@ public int getModelTypeValue() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageSegmentationInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlImageSegmentationInputs .ModelType result = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlImageSegmentationInputs.ModelType.valueOf(modelType_); + .AutoMlImageSegmentationInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageSegmentationInputs.ModelType.UNRECOGNIZED @@ -296,7 +295,7 @@ public int getModelTypeValue() { } public static final int BUDGET_MILLI_NODE_HOURS_FIELD_NUMBER = 2; - private long budgetMilliNodeHours_; + private long budgetMilliNodeHours_ = 0L; /** * * @@ -326,7 +325,9 @@ public long getBudgetMilliNodeHours() { } public static final int BASE_MODEL_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object baseModelId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object baseModelId_ = ""; /** * * @@ -631,12 +632,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; modelType_ = 0; - budgetMilliNodeHours_ = 0L; - baseModelId_ = ""; - return this; } @@ -677,13 +676,29 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageSegmentationInputs(this); - result.modelType_ = modelType_; - result.budgetMilliNodeHours_ = budgetMilliNodeHours_; - result.baseModelId_ = baseModelId_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlImageSegmentationInputs + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelType_ = modelType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.budgetMilliNodeHours_ = budgetMilliNodeHours_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.baseModelId_ = baseModelId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -748,6 +763,7 @@ public Builder mergeFrom( } if (!other.getBaseModelId().isEmpty()) { baseModelId_ = other.baseModelId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -779,19 +795,19 @@ public Builder mergeFrom( case 8: { modelType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { budgetMilliNodeHours_ = input.readInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { baseModelId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -811,6 +827,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int modelType_ = 0; /** * @@ -832,8 +850,8 @@ public int getModelTypeValue() { * @return This builder for chaining. */ public Builder setModelTypeValue(int value) { - modelType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -848,12 +866,11 @@ public Builder setModelTypeValue(int value) { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageSegmentationInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageSegmentationInputs.ModelType result = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlImageSegmentationInputs.ModelType.valueOf(modelType_); + .AutoMlImageSegmentationInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageSegmentationInputs.ModelType.UNRECOGNIZED @@ -874,7 +891,7 @@ public Builder setModelType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; modelType_ = value.getNumber(); onChanged(); return this; @@ -887,7 +904,7 @@ public Builder setModelType( * @return This builder for chaining. */ public Builder clearModelType() { - + bitField0_ = (bitField0_ & ~0x00000001); modelType_ = 0; onChanged(); return this; @@ -948,6 +965,7 @@ public long getBudgetMilliNodeHours() { public Builder setBudgetMilliNodeHours(long value) { budgetMilliNodeHours_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -975,7 +993,7 @@ public Builder setBudgetMilliNodeHours(long value) { * @return This builder for chaining. */ public Builder clearBudgetMilliNodeHours() { - + bitField0_ = (bitField0_ & ~0x00000002); budgetMilliNodeHours_ = 0L; onChanged(); return this; @@ -1054,8 +1072,8 @@ public Builder setBaseModelId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - baseModelId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1075,8 +1093,8 @@ public Builder setBaseModelId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearBaseModelId() { - baseModelId_ = getDefaultInstance().getBaseModelId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1101,8 +1119,8 @@ public Builder setBaseModelIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - baseModelId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentationMetadata.java index ad8d3ec8484f..d38d924435df 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlImageSegmentationMetadata.java @@ -229,7 +229,7 @@ private SuccessfulStopReason(int value) { } public static final int COST_MILLI_NODE_HOURS_FIELD_NUMBER = 1; - private long costMilliNodeHours_; + private long costMilliNodeHours_ = 0L; /** * * @@ -249,7 +249,7 @@ public long getCostMilliNodeHours() { } public static final int SUCCESSFUL_STOP_REASON_FIELD_NUMBER = 2; - private int successfulStopReason_; + private int successfulStopReason_ = 0; /** * * @@ -286,12 +286,11 @@ public int getSuccessfulStopReasonValue() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageSegmentationMetadata.SuccessfulStopReason getSuccessfulStopReason() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageSegmentationMetadata.SuccessfulStopReason result = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlImageSegmentationMetadata.SuccessfulStopReason.valueOf( + .AutoMlImageSegmentationMetadata.SuccessfulStopReason.forNumber( successfulStopReason_); return result == null ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition @@ -540,10 +539,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; costMilliNodeHours_ = 0L; - successfulStopReason_ = 0; - return this; } @@ -584,12 +582,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageSegmentationMetadata(this); - result.costMilliNodeHours_ = costMilliNodeHours_; - result.successfulStopReason_ = successfulStopReason_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlImageSegmentationMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.costMilliNodeHours_ = costMilliNodeHours_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.successfulStopReason_ = successfulStopReason_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -681,13 +693,13 @@ public Builder mergeFrom( case 8: { costMilliNodeHours_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { successfulStopReason_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -707,6 +719,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long costMilliNodeHours_; /** * @@ -742,6 +756,7 @@ public long getCostMilliNodeHours() { public Builder setCostMilliNodeHours(long value) { costMilliNodeHours_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -759,7 +774,7 @@ public Builder setCostMilliNodeHours(long value) { * @return This builder for chaining. */ public Builder clearCostMilliNodeHours() { - + bitField0_ = (bitField0_ & ~0x00000001); costMilliNodeHours_ = 0L; onChanged(); return this; @@ -800,8 +815,8 @@ public int getSuccessfulStopReasonValue() { * @return This builder for chaining. */ public Builder setSuccessfulStopReasonValue(int value) { - successfulStopReason_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -823,12 +838,11 @@ public Builder setSuccessfulStopReasonValue(int value) { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageSegmentationMetadata.SuccessfulStopReason getSuccessfulStopReason() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlImageSegmentationMetadata.SuccessfulStopReason result = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlImageSegmentationMetadata.SuccessfulStopReason.valueOf( + .AutoMlImageSegmentationMetadata.SuccessfulStopReason.forNumber( successfulStopReason_); return result == null ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition @@ -857,7 +871,7 @@ public Builder setSuccessfulStopReason( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; successfulStopReason_ = value.getNumber(); onChanged(); return this; @@ -877,7 +891,7 @@ public Builder setSuccessfulStopReason( * @return This builder for chaining. */ public Builder clearSuccessfulStopReason() { - + bitField0_ = (bitField0_ & ~0x00000002); successfulStopReason_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTables.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTables.java index 1a5bb2f1e1c5..d68cfc2d51b4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTables.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTables.java @@ -122,7 +122,10 @@ public boolean hasInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTablesInputsOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null + ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + .getDefaultInstance() + : inputs_; } public static final int METADATA_FIELD_NUMBER = 2; @@ -181,7 +184,10 @@ public boolean hasMetadata() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTablesMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata + .getDefaultInstance() + : metadata_; } private byte memoizedIsInitialized = -1; @@ -412,16 +418,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + bitField0_ = 0; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; @@ -455,20 +460,24 @@ public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlT buildPartial() { com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTables result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -555,13 +564,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -581,6 +590,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs inputs_; private com.google.protobuf.SingleFieldBuilderV3< @@ -604,7 +615,7 @@ public Builder mergeFrom( * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -649,11 +660,11 @@ public Builder setInputs( throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -672,11 +683,11 @@ public Builder setInputs( builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -694,20 +705,20 @@ public Builder mergeInputs( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs - .newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && inputs_ != null + && inputs_ + != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlTablesInputs.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -722,14 +733,13 @@ public Builder mergeInputs( * */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -746,7 +756,7 @@ public Builder clearInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs .Builder getInputsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputsFieldBuilder().getBuilder(); } @@ -828,7 +838,7 @@ public Builder clearInputs() { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -873,11 +883,11 @@ public Builder setMetadata( throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -897,11 +907,11 @@ public Builder setMetadata( builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -919,20 +929,20 @@ public Builder mergeMetadata( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata - .newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlTablesMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -947,14 +957,13 @@ public Builder mergeMetadata( * */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -971,7 +980,7 @@ public Builder clearMetadata() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata .Builder getMetadataBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMetadataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTablesInputs.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTablesInputs.java index f2bc88a17d50..b4a41f278ac2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTablesInputs.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTablesInputs.java @@ -410,7 +410,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; /** * string column_name = 1; * @@ -681,8 +683,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; columnName_ = ""; - return this; } @@ -722,11 +724,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTablesInputs.Transformation.AutoTransformation(this); - result.columnName_ = columnName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + .Transformation.AutoTransformation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -788,6 +802,7 @@ public Builder mergeFrom( return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -819,7 +834,7 @@ public Builder mergeFrom( case 10: { columnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -839,6 +854,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object columnName_ = ""; /** * string column_name = 1; @@ -882,8 +899,8 @@ public Builder setColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -893,8 +910,8 @@ public Builder setColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearColumnName() { - columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -909,8 +926,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1083,7 +1100,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; /** * string column_name = 1; * @@ -1120,7 +1139,7 @@ public com.google.protobuf.ByteString getColumnNameBytes() { } public static final int INVALID_VALUES_ALLOWED_FIELD_NUMBER = 2; - private boolean invalidValuesAllowed_; + private boolean invalidValuesAllowed_ = false; /** * * @@ -1392,10 +1411,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; columnName_ = ""; - invalidValuesAllowed_ = false; - return this; } @@ -1435,12 +1453,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTablesInputs.Transformation.NumericTransformation(this); - result.columnName_ = columnName_; - result.invalidValuesAllowed_ = invalidValuesAllowed_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + .Transformation.NumericTransformation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.invalidValuesAllowed_ = invalidValuesAllowed_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1502,6 +1534,7 @@ public Builder mergeFrom( return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getInvalidValuesAllowed() != false) { @@ -1536,13 +1569,13 @@ public Builder mergeFrom( case 10: { columnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { invalidValuesAllowed_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -1562,6 +1595,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object columnName_ = ""; /** * string column_name = 1; @@ -1605,8 +1640,8 @@ public Builder setColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1616,8 +1651,8 @@ public Builder setColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearColumnName() { - columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1632,8 +1667,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1675,6 +1710,7 @@ public boolean getInvalidValuesAllowed() { public Builder setInvalidValuesAllowed(boolean value) { invalidValuesAllowed_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1693,7 +1729,7 @@ public Builder setInvalidValuesAllowed(boolean value) { * @return This builder for chaining. */ public Builder clearInvalidValuesAllowed() { - + bitField0_ = (bitField0_ & ~0x00000002); invalidValuesAllowed_ = false; onChanged(); return this; @@ -1851,7 +1887,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; /** * string column_name = 1; * @@ -2129,8 +2167,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; columnName_ = ""; - return this; } @@ -2170,11 +2208,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTablesInputs.Transformation.CategoricalTransformation(this); - result.columnName_ = columnName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + .Transformation.CategoricalTransformation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2236,6 +2286,7 @@ public Builder mergeFrom( return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -2267,7 +2318,7 @@ public Builder mergeFrom( case 10: { columnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -2287,6 +2338,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object columnName_ = ""; /** * string column_name = 1; @@ -2330,8 +2383,8 @@ public Builder setColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2341,8 +2394,8 @@ public Builder setColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearColumnName() { - columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2357,8 +2410,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2574,7 +2627,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; /** * string column_name = 1; * @@ -2611,7 +2666,9 @@ public com.google.protobuf.ByteString getColumnNameBytes() { } public static final int TIME_FORMAT_FIELD_NUMBER = 2; - private volatile java.lang.Object timeFormat_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeFormat_ = ""; /** * * @@ -2680,7 +2737,7 @@ public com.google.protobuf.ByteString getTimeFormatBytes() { } public static final int INVALID_VALUES_ALLOWED_FIELD_NUMBER = 3; - private boolean invalidValuesAllowed_; + private boolean invalidValuesAllowed_ = false; /** * * @@ -2958,12 +3015,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; columnName_ = ""; - timeFormat_ = ""; - invalidValuesAllowed_ = false; - return this; } @@ -3003,13 +3058,29 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTablesInputs.Transformation.TimestampTransformation(this); - result.columnName_ = columnName_; - result.timeFormat_ = timeFormat_; - result.invalidValuesAllowed_ = invalidValuesAllowed_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + .Transformation.TimestampTransformation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.timeFormat_ = timeFormat_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.invalidValuesAllowed_ = invalidValuesAllowed_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3071,10 +3142,12 @@ public Builder mergeFrom( return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getTimeFormat().isEmpty()) { timeFormat_ = other.timeFormat_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getInvalidValuesAllowed() != false) { @@ -3109,19 +3182,19 @@ public Builder mergeFrom( case 10: { columnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { timeFormat_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { invalidValuesAllowed_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -3141,6 +3214,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object columnName_ = ""; /** * string column_name = 1; @@ -3184,8 +3259,8 @@ public Builder setColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3195,8 +3270,8 @@ public Builder setColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearColumnName() { - columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3211,8 +3286,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3308,8 +3383,8 @@ public Builder setTimeFormat(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeFormat_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3335,8 +3410,8 @@ public Builder setTimeFormat(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeFormat() { - timeFormat_ = getDefaultInstance().getTimeFormat(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3367,8 +3442,8 @@ public Builder setTimeFormatBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeFormat_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3410,6 +3485,7 @@ public boolean getInvalidValuesAllowed() { public Builder setInvalidValuesAllowed(boolean value) { invalidValuesAllowed_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3428,7 +3504,7 @@ public Builder setInvalidValuesAllowed(boolean value) { * @return This builder for chaining. */ public Builder clearInvalidValuesAllowed() { - + bitField0_ = (bitField0_ & ~0x00000004); invalidValuesAllowed_ = false; onChanged(); return this; @@ -3587,7 +3663,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; /** * string column_name = 1; * @@ -3867,8 +3945,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; columnName_ = ""; - return this; } @@ -3908,11 +3986,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTablesInputs.Transformation.TextTransformation(this); - result.columnName_ = columnName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + .Transformation.TextTransformation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3974,6 +4064,7 @@ public Builder mergeFrom( return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -4005,7 +4096,7 @@ public Builder mergeFrom( case 10: { columnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -4025,6 +4116,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object columnName_ = ""; /** * string column_name = 1; @@ -4068,8 +4161,8 @@ public Builder setColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4079,8 +4172,8 @@ public Builder setColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearColumnName() { - columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -4095,8 +4188,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4266,7 +4359,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; /** * string column_name = 1; * @@ -4303,7 +4398,7 @@ public com.google.protobuf.ByteString getColumnNameBytes() { } public static final int INVALID_VALUES_ALLOWED_FIELD_NUMBER = 2; - private boolean invalidValuesAllowed_; + private boolean invalidValuesAllowed_ = false; /** * * @@ -4570,10 +4665,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; columnName_ = ""; - invalidValuesAllowed_ = false; - return this; } @@ -4613,12 +4707,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTablesInputs.Transformation.NumericArrayTransformation(this); - result.columnName_ = columnName_; - result.invalidValuesAllowed_ = invalidValuesAllowed_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + .Transformation.NumericArrayTransformation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.invalidValuesAllowed_ = invalidValuesAllowed_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -4680,6 +4788,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getInvalidValuesAllowed() != false) { @@ -4714,13 +4823,13 @@ public Builder mergeFrom( case 10: { columnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { invalidValuesAllowed_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -4740,6 +4849,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object columnName_ = ""; /** * string column_name = 1; @@ -4783,8 +4894,8 @@ public Builder setColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4794,8 +4905,8 @@ public Builder setColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearColumnName() { - columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -4810,8 +4921,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4853,6 +4964,7 @@ public boolean getInvalidValuesAllowed() { public Builder setInvalidValuesAllowed(boolean value) { invalidValuesAllowed_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4871,7 +4983,7 @@ public Builder setInvalidValuesAllowed(boolean value) { * @return This builder for chaining. */ public Builder clearInvalidValuesAllowed() { - + bitField0_ = (bitField0_ & ~0x00000002); invalidValuesAllowed_ = false; onChanged(); return this; @@ -5029,7 +5141,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; /** * string column_name = 1; * @@ -5307,8 +5421,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; columnName_ = ""; - return this; } @@ -5349,11 +5463,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTablesInputs.Transformation.CategoricalArrayTransformation(this); - result.columnName_ = columnName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + .Transformation.CategoricalArrayTransformation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -5415,6 +5541,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -5446,7 +5573,7 @@ public Builder mergeFrom( case 10: { columnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -5466,6 +5593,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object columnName_ = ""; /** * string column_name = 1; @@ -5509,8 +5638,8 @@ public Builder setColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5520,8 +5649,8 @@ public Builder setColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearColumnName() { - columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -5536,8 +5665,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5691,7 +5820,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object columnName_ = ""; /** * string column_name = 1; * @@ -5967,8 +6098,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; columnName_ = ""; - return this; } @@ -6008,11 +6139,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTablesInputs.Transformation.TextArrayTransformation(this); - result.columnName_ = columnName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + .Transformation.TextArrayTransformation + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.columnName_ = columnName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -6074,6 +6217,7 @@ public Builder mergeFrom( return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -6105,7 +6249,7 @@ public Builder mergeFrom( case 10: { columnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -6125,6 +6269,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object columnName_ = ""; /** * string column_name = 1; @@ -6168,8 +6314,8 @@ public Builder setColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -6179,8 +6325,8 @@ public Builder setColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearColumnName() { - columnName_ = getDefaultInstance().getColumnName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -6195,8 +6341,8 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -7132,6 +7278,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (autoBuilder_ != null) { autoBuilder_.clear(); } @@ -7197,65 +7344,51 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTablesInputs.Transformation(this); - if (transformationDetailCase_ == 1) { - if (autoBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = autoBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (transformationDetailCase_ == 2) { - if (numericBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = numericBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + .Transformation + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + .Transformation + result) { + result.transformationDetailCase_ = transformationDetailCase_; + result.transformationDetail_ = this.transformationDetail_; + if (transformationDetailCase_ == 1 && autoBuilder_ != null) { + result.transformationDetail_ = autoBuilder_.build(); } - if (transformationDetailCase_ == 3) { - if (categoricalBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = categoricalBuilder_.build(); - } + if (transformationDetailCase_ == 2 && numericBuilder_ != null) { + result.transformationDetail_ = numericBuilder_.build(); } - if (transformationDetailCase_ == 4) { - if (timestampBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = timestampBuilder_.build(); - } + if (transformationDetailCase_ == 3 && categoricalBuilder_ != null) { + result.transformationDetail_ = categoricalBuilder_.build(); } - if (transformationDetailCase_ == 5) { - if (textBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = textBuilder_.build(); - } + if (transformationDetailCase_ == 4 && timestampBuilder_ != null) { + result.transformationDetail_ = timestampBuilder_.build(); } - if (transformationDetailCase_ == 6) { - if (repeatedNumericBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = repeatedNumericBuilder_.build(); - } + if (transformationDetailCase_ == 5 && textBuilder_ != null) { + result.transformationDetail_ = textBuilder_.build(); } - if (transformationDetailCase_ == 7) { - if (repeatedCategoricalBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = repeatedCategoricalBuilder_.build(); - } + if (transformationDetailCase_ == 6 && repeatedNumericBuilder_ != null) { + result.transformationDetail_ = repeatedNumericBuilder_.build(); } - if (transformationDetailCase_ == 8) { - if (repeatedTextBuilder_ == null) { - result.transformationDetail_ = transformationDetail_; - } else { - result.transformationDetail_ = repeatedTextBuilder_.build(); - } + if (transformationDetailCase_ == 7 && repeatedCategoricalBuilder_ != null) { + result.transformationDetail_ = repeatedCategoricalBuilder_.build(); + } + if (transformationDetailCase_ == 8 && repeatedTextBuilder_ != null) { + result.transformationDetail_ = repeatedTextBuilder_.build(); } - result.transformationDetailCase_ = transformationDetailCase_; - onBuilt(); - return result; } @java.lang.Override @@ -7469,6 +7602,8 @@ public Builder clearTransformationDetail() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs .Transformation.AutoTransformation, @@ -7678,7 +7813,6 @@ public Builder clearAuto() { } transformationDetailCase_ = 1; onChanged(); - ; return autoBuilder_; } @@ -7892,7 +8026,6 @@ public Builder clearNumeric() { } transformationDetailCase_ = 2; onChanged(); - ; return numericBuilder_; } @@ -8106,7 +8239,6 @@ public Builder clearCategorical() { } transformationDetailCase_ = 3; onChanged(); - ; return categoricalBuilder_; } @@ -8320,7 +8452,6 @@ public Builder clearTimestamp() { } transformationDetailCase_ = 4; onChanged(); - ; return timestampBuilder_; } @@ -8533,7 +8664,6 @@ public Builder clearText() { } transformationDetailCase_ = 5; onChanged(); - ; return textBuilder_; } @@ -8747,7 +8877,6 @@ public Builder clearRepeatedNumeric() { } transformationDetailCase_ = 6; onChanged(); - ; return repeatedNumericBuilder_; } @@ -8964,7 +9093,6 @@ public Builder clearRepeatedCategorical() { } transformationDetailCase_ = 7; onChanged(); - ; return repeatedCategoricalBuilder_; } @@ -9178,7 +9306,6 @@ public Builder clearRepeatedText() { } transformationDetailCase_ = 8; onChanged(); - ; return repeatedTextBuilder_; } @@ -9377,7 +9504,9 @@ public float getOptimizationObjectivePrecisionValue() { } public static final int PREDICTION_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object predictionType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object predictionType_ = ""; /** * * @@ -9438,7 +9567,9 @@ public com.google.protobuf.ByteString getPredictionTypeBytes() { } public static final int TARGET_COLUMN_FIELD_NUMBER = 2; - private volatile java.lang.Object targetColumn_; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetColumn_ = ""; /** * * @@ -9487,6 +9618,8 @@ public com.google.protobuf.ByteString getTargetColumnBytes() { } public static final int TRANSFORMATIONS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs .Transformation> @@ -9594,7 +9727,9 @@ public int getTransformationsCount() { } public static final int OPTIMIZATION_OBJECTIVE_FIELD_NUMBER = 4; - private volatile java.lang.Object optimizationObjective_; + + @SuppressWarnings("serial") + private volatile java.lang.Object optimizationObjective_ = ""; /** * * @@ -9681,7 +9816,7 @@ public com.google.protobuf.ByteString getOptimizationObjectiveBytes() { } public static final int TRAIN_BUDGET_MILLI_NODE_HOURS_FIELD_NUMBER = 7; - private long trainBudgetMilliNodeHours_; + private long trainBudgetMilliNodeHours_ = 0L; /** * * @@ -9709,7 +9844,7 @@ public long getTrainBudgetMilliNodeHours() { } public static final int DISABLE_EARLY_STOPPING_FIELD_NUMBER = 8; - private boolean disableEarlyStopping_; + private boolean disableEarlyStopping_ = false; /** * * @@ -9729,7 +9864,9 @@ public boolean getDisableEarlyStopping() { } public static final int WEIGHT_COLUMN_NAME_FIELD_NUMBER = 9; - private volatile java.lang.Object weightColumnName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object weightColumnName_ = ""; /** * * @@ -9848,10 +9985,15 @@ public boolean hasExportEvaluatedDataItemsConfig() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .ExportEvaluatedDataItemsConfigOrBuilder getExportEvaluatedDataItemsConfigOrBuilder() { - return getExportEvaluatedDataItemsConfig(); + return exportEvaluatedDataItemsConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .ExportEvaluatedDataItemsConfig.getDefaultInstance() + : exportEvaluatedDataItemsConfig_; } public static final int ADDITIONAL_EXPERIMENTS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList additionalExperiments_; /** * @@ -10254,33 +10396,27 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; predictionType_ = ""; - targetColumn_ = ""; - if (transformationsBuilder_ == null) { transformations_ = java.util.Collections.emptyList(); } else { transformations_ = null; transformationsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); optimizationObjective_ = ""; - trainBudgetMilliNodeHours_ = 0L; - disableEarlyStopping_ = false; - weightColumnName_ = ""; - - if (exportEvaluatedDataItemsConfigBuilder_ == null) { - exportEvaluatedDataItemsConfig_ = null; - } else { - exportEvaluatedDataItemsConfig_ = null; + exportEvaluatedDataItemsConfig_ = null; + if (exportEvaluatedDataItemsConfigBuilder_ != null) { + exportEvaluatedDataItemsConfigBuilder_.dispose(); exportEvaluatedDataItemsConfigBuilder_ = null; } additionalExperiments_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000400); additionalOptimizationObjectiveConfigCase_ = 0; additionalOptimizationObjectiveConfig_ = null; return this; @@ -10316,42 +10452,70 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs( this); - int from_bitField0_ = bitField0_; - if (additionalOptimizationObjectiveConfigCase_ == 5) { - result.additionalOptimizationObjectiveConfig_ = additionalOptimizationObjectiveConfig_; - } - if (additionalOptimizationObjectiveConfigCase_ == 6) { - result.additionalOptimizationObjectiveConfig_ = additionalOptimizationObjectiveConfig_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.predictionType_ = predictionType_; - result.targetColumn_ = targetColumn_; + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + result) { if (transformationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { transformations_ = java.util.Collections.unmodifiableList(transformations_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } result.transformations_ = transformations_; } else { result.transformations_ = transformationsBuilder_.build(); } - result.optimizationObjective_ = optimizationObjective_; - result.trainBudgetMilliNodeHours_ = trainBudgetMilliNodeHours_; - result.disableEarlyStopping_ = disableEarlyStopping_; - result.weightColumnName_ = weightColumnName_; - if (exportEvaluatedDataItemsConfigBuilder_ == null) { - result.exportEvaluatedDataItemsConfig_ = exportEvaluatedDataItemsConfig_; - } else { - result.exportEvaluatedDataItemsConfig_ = exportEvaluatedDataItemsConfigBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { additionalExperiments_ = additionalExperiments_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000400); } result.additionalExperiments_ = additionalExperiments_; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.predictionType_ = predictionType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.targetColumn_ = targetColumn_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.optimizationObjective_ = optimizationObjective_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.trainBudgetMilliNodeHours_ = trainBudgetMilliNodeHours_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.disableEarlyStopping_ = disableEarlyStopping_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.weightColumnName_ = weightColumnName_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.exportEvaluatedDataItemsConfig_ = + exportEvaluatedDataItemsConfigBuilder_ == null + ? exportEvaluatedDataItemsConfig_ + : exportEvaluatedDataItemsConfigBuilder_.build(); + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs + result) { result.additionalOptimizationObjectiveConfigCase_ = additionalOptimizationObjectiveConfigCase_; - onBuilt(); - return result; + result.additionalOptimizationObjectiveConfig_ = this.additionalOptimizationObjectiveConfig_; } @java.lang.Override @@ -10409,17 +10573,19 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getPredictionType().isEmpty()) { predictionType_ = other.predictionType_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getTargetColumn().isEmpty()) { targetColumn_ = other.targetColumn_; + bitField0_ |= 0x00000008; onChanged(); } if (transformationsBuilder_ == null) { if (!other.transformations_.isEmpty()) { if (transformations_.isEmpty()) { transformations_ = other.transformations_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureTransformationsIsMutable(); transformations_.addAll(other.transformations_); @@ -10432,7 +10598,7 @@ public Builder mergeFrom( transformationsBuilder_.dispose(); transformationsBuilder_ = null; transformations_ = other.transformations_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); transformationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransformationsFieldBuilder() @@ -10444,6 +10610,7 @@ public Builder mergeFrom( } if (!other.getOptimizationObjective().isEmpty()) { optimizationObjective_ = other.optimizationObjective_; + bitField0_ |= 0x00000020; onChanged(); } if (other.getTrainBudgetMilliNodeHours() != 0L) { @@ -10454,6 +10621,7 @@ public Builder mergeFrom( } if (!other.getWeightColumnName().isEmpty()) { weightColumnName_ = other.weightColumnName_; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasExportEvaluatedDataItemsConfig()) { @@ -10462,7 +10630,7 @@ public Builder mergeFrom( if (!other.additionalExperiments_.isEmpty()) { if (additionalExperiments_.isEmpty()) { additionalExperiments_ = other.additionalExperiments_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000400); } else { ensureAdditionalExperimentsIsMutable(); additionalExperiments_.addAll(other.additionalExperiments_); @@ -10514,13 +10682,13 @@ public Builder mergeFrom( case 10: { predictionType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 10 case 18: { targetColumn_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 18 case 26: @@ -10543,7 +10711,7 @@ public Builder mergeFrom( case 34: { optimizationObjective_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 34 case 45: @@ -10561,19 +10729,19 @@ public Builder mergeFrom( case 56: { trainBudgetMilliNodeHours_ = input.readInt64(); - + bitField0_ |= 0x00000040; break; } // case 56 case 64: { disableEarlyStopping_ = input.readBool(); - + bitField0_ |= 0x00000080; break; } // case 64 case 74: { weightColumnName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 74 case 82: @@ -10581,7 +10749,7 @@ public Builder mergeFrom( input.readMessage( getExportEvaluatedDataItemsConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 82 case 90: @@ -10673,6 +10841,7 @@ public float getOptimizationObjectiveRecallValue() { * @return This builder for chaining. */ public Builder setOptimizationObjectiveRecallValue(float value) { + additionalOptimizationObjectiveConfigCase_ = 5; additionalOptimizationObjectiveConfig_ = value; onChanged(); @@ -10746,6 +10915,7 @@ public float getOptimizationObjectivePrecisionValue() { * @return This builder for chaining. */ public Builder setOptimizationObjectivePrecisionValue(float value) { + additionalOptimizationObjectiveConfigCase_ = 6; additionalOptimizationObjectiveConfig_ = value; onChanged(); @@ -10851,8 +11021,8 @@ public Builder setPredictionType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - predictionType_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -10874,8 +11044,8 @@ public Builder setPredictionType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPredictionType() { - predictionType_ = getDefaultInstance().getPredictionType(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -10902,8 +11072,8 @@ public Builder setPredictionTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - predictionType_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -10969,8 +11139,8 @@ public Builder setTargetColumn(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - targetColumn_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -10986,8 +11156,8 @@ public Builder setTargetColumn(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTargetColumn() { - targetColumn_ = getDefaultInstance().getTargetColumn(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -11008,8 +11178,8 @@ public Builder setTargetColumnBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - targetColumn_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -11020,12 +11190,12 @@ public Builder setTargetColumnBytes(com.google.protobuf.ByteString value) { transformations_ = java.util.Collections.emptyList(); private void ensureTransformationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { transformations_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs .Transformation>(transformations_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000010; } } @@ -11327,7 +11497,7 @@ public Builder addAllTransformations( public Builder clearTransformations() { if (transformationsBuilder_ == null) { transformations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { transformationsBuilder_.clear(); @@ -11509,7 +11679,7 @@ public Builder removeTransformations(int index) { com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs .TransformationOrBuilder>( transformations_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); transformations_ = null; @@ -11635,8 +11805,8 @@ public Builder setOptimizationObjective(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - optimizationObjective_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -11671,8 +11841,8 @@ public Builder setOptimizationObjective(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOptimizationObjective() { - optimizationObjective_ = getDefaultInstance().getOptimizationObjective(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -11712,8 +11882,8 @@ public Builder setOptimizationObjectiveBytes(com.google.protobuf.ByteString valu throw new NullPointerException(); } checkByteStringIsUtf8(value); - optimizationObjective_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -11769,6 +11939,7 @@ public long getTrainBudgetMilliNodeHours() { public Builder setTrainBudgetMilliNodeHours(long value) { trainBudgetMilliNodeHours_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -11794,7 +11965,7 @@ public Builder setTrainBudgetMilliNodeHours(long value) { * @return This builder for chaining. */ public Builder clearTrainBudgetMilliNodeHours() { - + bitField0_ = (bitField0_ & ~0x00000040); trainBudgetMilliNodeHours_ = 0L; onChanged(); return this; @@ -11835,6 +12006,7 @@ public boolean getDisableEarlyStopping() { public Builder setDisableEarlyStopping(boolean value) { disableEarlyStopping_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -11852,7 +12024,7 @@ public Builder setDisableEarlyStopping(boolean value) { * @return This builder for chaining. */ public Builder clearDisableEarlyStopping() { - + bitField0_ = (bitField0_ & ~0x00000080); disableEarlyStopping_ = false; onChanged(); return this; @@ -11934,8 +12106,8 @@ public Builder setWeightColumnName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - weightColumnName_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -11956,8 +12128,8 @@ public Builder setWeightColumnName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearWeightColumnName() { - weightColumnName_ = getDefaultInstance().getWeightColumnName(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -11983,8 +12155,8 @@ public Builder setWeightColumnNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - weightColumnName_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -12015,8 +12187,7 @@ public Builder setWeightColumnNameBytes(com.google.protobuf.ByteString value) { * @return Whether the exportEvaluatedDataItemsConfig field is set. */ public boolean hasExportEvaluatedDataItemsConfig() { - return exportEvaluatedDataItemsConfigBuilder_ != null - || exportEvaluatedDataItemsConfig_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -12065,11 +12236,11 @@ public Builder setExportEvaluatedDataItemsConfig( throw new NullPointerException(); } exportEvaluatedDataItemsConfig_ = value; - onChanged(); } else { exportEvaluatedDataItemsConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -12090,11 +12261,11 @@ public Builder setExportEvaluatedDataItemsConfig( builderForValue) { if (exportEvaluatedDataItemsConfigBuilder_ == null) { exportEvaluatedDataItemsConfig_ = builderForValue.build(); - onChanged(); } else { exportEvaluatedDataItemsConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -12114,20 +12285,20 @@ public Builder mergeExportEvaluatedDataItemsConfig( .ExportEvaluatedDataItemsConfig value) { if (exportEvaluatedDataItemsConfigBuilder_ == null) { - if (exportEvaluatedDataItemsConfig_ != null) { - exportEvaluatedDataItemsConfig_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .ExportEvaluatedDataItemsConfig.newBuilder(exportEvaluatedDataItemsConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && exportEvaluatedDataItemsConfig_ != null + && exportEvaluatedDataItemsConfig_ + != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .ExportEvaluatedDataItemsConfig.getDefaultInstance()) { + getExportEvaluatedDataItemsConfigBuilder().mergeFrom(value); } else { exportEvaluatedDataItemsConfig_ = value; } - onChanged(); } else { exportEvaluatedDataItemsConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -12143,14 +12314,13 @@ public Builder mergeExportEvaluatedDataItemsConfig( * */ public Builder clearExportEvaluatedDataItemsConfig() { - if (exportEvaluatedDataItemsConfigBuilder_ == null) { - exportEvaluatedDataItemsConfig_ = null; - onChanged(); - } else { - exportEvaluatedDataItemsConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + exportEvaluatedDataItemsConfig_ = null; + if (exportEvaluatedDataItemsConfigBuilder_ != null) { + exportEvaluatedDataItemsConfigBuilder_.dispose(); exportEvaluatedDataItemsConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -12168,7 +12338,7 @@ public Builder clearExportEvaluatedDataItemsConfig() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .ExportEvaluatedDataItemsConfig.Builder getExportEvaluatedDataItemsConfigBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getExportEvaluatedDataItemsConfigFieldBuilder().getBuilder(); } @@ -12235,10 +12405,10 @@ public Builder clearExportEvaluatedDataItemsConfig() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAdditionalExperimentsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000400) != 0)) { additionalExperiments_ = new com.google.protobuf.LazyStringArrayList(additionalExperiments_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000400; } } /** @@ -12373,7 +12543,7 @@ public Builder addAllAdditionalExperiments(java.lang.Iterable */ public Builder clearAdditionalExperiments() { additionalExperiments_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTablesMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTablesMetadata.java index e33607f15153..4b5caa7b812c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTablesMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTablesMetadata.java @@ -69,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRAIN_COST_MILLI_NODE_HOURS_FIELD_NUMBER = 1; - private long trainCostMilliNodeHours_; + private long trainCostMilliNodeHours_ = 0L; /** * * @@ -313,8 +313,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; trainCostMilliNodeHours_ = 0L; - return this; } @@ -349,11 +349,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTablesMetadata(this); - result.trainCostMilliNodeHours_ = trainCostMilliNodeHours_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trainCostMilliNodeHours_ = trainCostMilliNodeHours_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -439,7 +450,7 @@ public Builder mergeFrom( case 8: { trainCostMilliNodeHours_ = input.readInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -459,6 +470,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long trainCostMilliNodeHours_; /** * @@ -494,6 +507,7 @@ public long getTrainCostMilliNodeHours() { public Builder setTrainCostMilliNodeHours(long value) { trainCostMilliNodeHours_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -511,7 +525,7 @@ public Builder setTrainCostMilliNodeHours(long value) { * @return This builder for chaining. */ public Builder clearTrainCostMilliNodeHours() { - + bitField0_ = (bitField0_ & ~0x00000001); trainCostMilliNodeHours_ = 0L; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextClassification.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextClassification.java index 9abfbec5c2fa..f2a9074d0df9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextClassification.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextClassification.java @@ -129,7 +129,10 @@ public boolean hasInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTextClassificationInputsOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null + ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlTextClassificationInputs.getDefaultInstance() + : inputs_; } private byte memoizedIsInitialized = -1; @@ -367,10 +370,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + bitField0_ = 0; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } return this; @@ -411,15 +414,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTextClassification(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextClassification + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -507,7 +517,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -527,6 +537,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTextClassificationInputs inputs_; @@ -552,7 +564,7 @@ public Builder mergeFrom( * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -599,11 +611,11 @@ public Builder setInputs( throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -623,11 +635,11 @@ public Builder setInputs( builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -646,20 +658,20 @@ public Builder mergeInputs( .AutoMlTextClassificationInputs value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlTextClassificationInputs.newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && inputs_ != null + && inputs_ + != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlTextClassificationInputs.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -674,14 +686,13 @@ public Builder mergeInputs( * */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -698,7 +709,7 @@ public Builder clearInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTextClassificationInputs.Builder getInputsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputsFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextClassificationInputs.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextClassificationInputs.java index 93fca57de041..ecb10baad42c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextClassificationInputs.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextClassificationInputs.java @@ -67,7 +67,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int MULTI_LABEL_FIELD_NUMBER = 1; - private boolean multiLabel_; + private boolean multiLabel_ = false; /** * bool multi_label = 1; * @@ -303,8 +303,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; multiLabel_ = false; - return this; } @@ -345,11 +345,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTextClassificationInputs(this); - result.multiLabel_ = multiLabel_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlTextClassificationInputs + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.multiLabel_ = multiLabel_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -438,7 +450,7 @@ public Builder mergeFrom( case 8: { multiLabel_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -458,6 +470,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean multiLabel_; /** * bool multi_label = 1; @@ -477,6 +491,7 @@ public boolean getMultiLabel() { public Builder setMultiLabel(boolean value) { multiLabel_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -486,7 +501,7 @@ public Builder setMultiLabel(boolean value) { * @return This builder for chaining. */ public Builder clearMultiLabel() { - + bitField0_ = (bitField0_ & ~0x00000001); multiLabel_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextExtraction.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextExtraction.java index 7d7bd6acd87f..3dd37c2ec6cb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextExtraction.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextExtraction.java @@ -129,7 +129,10 @@ public boolean hasInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTextExtractionInputsOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null + ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlTextExtractionInputs.getDefaultInstance() + : inputs_; } private byte memoizedIsInitialized = -1; @@ -364,10 +367,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + bitField0_ = 0; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } return this; @@ -405,15 +408,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTextExtraction(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtraction + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -499,7 +509,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -519,6 +529,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTextExtractionInputs inputs_; @@ -544,7 +556,7 @@ public Builder mergeFrom( * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -590,11 +602,11 @@ public Builder setInputs( throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -614,11 +626,11 @@ public Builder setInputs( builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -636,20 +648,20 @@ public Builder mergeInputs( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextExtractionInputs value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlTextExtractionInputs.newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && inputs_ != null + && inputs_ + != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlTextExtractionInputs.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -664,14 +676,13 @@ public Builder mergeInputs( * */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -688,7 +699,7 @@ public Builder clearInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTextExtractionInputs.Builder getInputsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputsFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextSentiment.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextSentiment.java index fb9a9ab914d5..c455904c5c3b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextSentiment.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextSentiment.java @@ -127,7 +127,10 @@ public boolean hasInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTextSentimentInputsOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null + ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlTextSentimentInputs.getDefaultInstance() + : inputs_; } private byte memoizedIsInitialized = -1; @@ -361,10 +364,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + bitField0_ = 0; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } return this; @@ -401,15 +404,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment( this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentiment + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -495,7 +505,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -515,6 +525,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTextSentimentInputs inputs_; @@ -540,7 +552,7 @@ public Builder mergeFrom( * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -586,11 +598,11 @@ public Builder setInputs( throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -610,11 +622,11 @@ public Builder setInputs( builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -632,20 +644,20 @@ public Builder mergeInputs( com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlTextSentimentInputs.newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && inputs_ != null + && inputs_ + != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlTextSentimentInputs.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -660,14 +672,13 @@ public Builder mergeInputs( * */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -684,7 +695,7 @@ public Builder clearInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTextSentimentInputs.Builder getInputsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputsFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextSentimentInputs.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextSentimentInputs.java index 579e68c152e9..5aae80a8bdfb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextSentimentInputs.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTextSentimentInputs.java @@ -65,7 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SENTIMENT_MAX_FIELD_NUMBER = 1; - private int sentimentMax_; + private int sentimentMax_ = 0; /** * * @@ -312,8 +312,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; sentimentMax_ = 0; - return this; } @@ -352,11 +352,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlTextSentimentInputs(this); - result.sentimentMax_ = sentimentMax_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTextSentimentInputs + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sentimentMax_ = sentimentMax_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -444,7 +455,7 @@ public Builder mergeFrom( case 8: { sentimentMax_ = input.readInt32(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -464,6 +475,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int sentimentMax_; /** * @@ -507,6 +520,7 @@ public int getSentimentMax() { public Builder setSentimentMax(int value) { sentimentMax_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -528,7 +542,7 @@ public Builder setSentimentMax(int value) { * @return This builder for chaining. */ public Builder clearSentimentMax() { - + bitField0_ = (bitField0_ & ~0x00000001); sentimentMax_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoActionRecognition.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoActionRecognition.java index 7485d84eca82..7bbb65dd3259 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoActionRecognition.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoActionRecognition.java @@ -130,7 +130,10 @@ public boolean hasInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoActionRecognitionInputsOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null + ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlVideoActionRecognitionInputs.getDefaultInstance() + : inputs_; } private byte memoizedIsInitialized = -1; @@ -369,10 +372,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + bitField0_ = 0; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } return this; @@ -413,15 +416,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoActionRecognition(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlVideoActionRecognition + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -510,7 +521,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -530,6 +541,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoActionRecognitionInputs inputs_; @@ -555,7 +568,7 @@ public Builder mergeFrom( * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -602,11 +615,11 @@ public Builder setInputs( throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -626,11 +639,11 @@ public Builder setInputs( builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -649,20 +662,20 @@ public Builder mergeInputs( .AutoMlVideoActionRecognitionInputs value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlVideoActionRecognitionInputs.newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && inputs_ != null + && inputs_ + != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlVideoActionRecognitionInputs.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -677,14 +690,13 @@ public Builder mergeInputs( * */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -701,7 +713,7 @@ public Builder clearInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoActionRecognitionInputs.Builder getInputsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputsFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java index 1a10e422e99e..3d83567399fc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java @@ -282,7 +282,7 @@ private ModelType(int value) { } public static final int MODEL_TYPE_FIELD_NUMBER = 1; - private int modelType_; + private int modelType_ = 0; /** * * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType model_type = 1; @@ -305,12 +305,11 @@ public int getModelTypeValue() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoActionRecognitionInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoActionRecognitionInputs.ModelType result = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlVideoActionRecognitionInputs.ModelType.valueOf(modelType_); + .AutoMlVideoActionRecognitionInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoActionRecognitionInputs.ModelType.UNRECOGNIZED @@ -549,8 +548,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; modelType_ = 0; - return this; } @@ -591,11 +590,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoActionRecognitionInputs(this); - result.modelType_ = modelType_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlVideoActionRecognitionInputs + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelType_ = modelType_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -684,7 +695,7 @@ public Builder mergeFrom( case 8: { modelType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -704,6 +715,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int modelType_ = 0; /** * @@ -725,8 +738,8 @@ public int getModelTypeValue() { * @return This builder for chaining. */ public Builder setModelTypeValue(int value) { - modelType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -741,12 +754,11 @@ public Builder setModelTypeValue(int value) { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoActionRecognitionInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoActionRecognitionInputs.ModelType result = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlVideoActionRecognitionInputs.ModelType.valueOf(modelType_); + .AutoMlVideoActionRecognitionInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoActionRecognitionInputs.ModelType.UNRECOGNIZED @@ -767,7 +779,7 @@ public Builder setModelType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; modelType_ = value.getNumber(); onChanged(); return this; @@ -780,7 +792,7 @@ public Builder setModelType( * @return This builder for chaining. */ public Builder clearModelType() { - + bitField0_ = (bitField0_ & ~0x00000001); modelType_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoClassification.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoClassification.java index a564da9c006e..f38d813a8107 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoClassification.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoClassification.java @@ -129,7 +129,10 @@ public boolean hasInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoClassificationInputsOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null + ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlVideoClassificationInputs.getDefaultInstance() + : inputs_; } private byte memoizedIsInitialized = -1; @@ -367,10 +370,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + bitField0_ = 0; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } return this; @@ -411,15 +414,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoClassification(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassification + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -507,7 +517,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -527,6 +537,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoClassificationInputs inputs_; @@ -552,7 +564,7 @@ public Builder mergeFrom( * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -599,11 +611,11 @@ public Builder setInputs( throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -623,11 +635,11 @@ public Builder setInputs( builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -646,20 +658,20 @@ public Builder mergeInputs( .AutoMlVideoClassificationInputs value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlVideoClassificationInputs.newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && inputs_ != null + && inputs_ + != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlVideoClassificationInputs.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -674,14 +686,13 @@ public Builder mergeInputs( * */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -698,7 +709,7 @@ public Builder clearInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoClassificationInputs.Builder getInputsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputsFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoClassificationInputs.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoClassificationInputs.java index 1be3ec18d6db..5b978c2c47c7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoClassificationInputs.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoClassificationInputs.java @@ -256,7 +256,7 @@ private ModelType(int value) { } public static final int MODEL_TYPE_FIELD_NUMBER = 1; - private int modelType_; + private int modelType_ = 0; /** * * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType model_type = 1; @@ -279,12 +279,11 @@ public int getModelTypeValue() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoClassificationInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoClassificationInputs.ModelType result = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlVideoClassificationInputs.ModelType.valueOf(modelType_); + .AutoMlVideoClassificationInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoClassificationInputs.ModelType.UNRECOGNIZED @@ -523,8 +522,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; modelType_ = 0; - return this; } @@ -565,11 +564,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoClassificationInputs(this); - result.modelType_ = modelType_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlVideoClassificationInputs + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelType_ = modelType_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -658,7 +669,7 @@ public Builder mergeFrom( case 8: { modelType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -678,6 +689,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int modelType_ = 0; /** * @@ -699,8 +712,8 @@ public int getModelTypeValue() { * @return This builder for chaining. */ public Builder setModelTypeValue(int value) { - modelType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -715,12 +728,11 @@ public Builder setModelTypeValue(int value) { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoClassificationInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoClassificationInputs.ModelType result = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlVideoClassificationInputs.ModelType.valueOf(modelType_); + .AutoMlVideoClassificationInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoClassificationInputs.ModelType.UNRECOGNIZED @@ -741,7 +753,7 @@ public Builder setModelType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; modelType_ = value.getNumber(); onChanged(); return this; @@ -754,7 +766,7 @@ public Builder setModelType( * @return This builder for chaining. */ public Builder clearModelType() { - + bitField0_ = (bitField0_ & ~0x00000001); modelType_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoObjectTracking.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoObjectTracking.java index 8f3fd49abe80..98fe5177293d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoObjectTracking.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoObjectTracking.java @@ -129,7 +129,10 @@ public boolean hasInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoObjectTrackingInputsOrBuilder getInputsOrBuilder() { - return getInputs(); + return inputs_ == null + ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlVideoObjectTrackingInputs.getDefaultInstance() + : inputs_; } private byte memoizedIsInitialized = -1; @@ -367,10 +370,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; + bitField0_ = 0; + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } return this; @@ -411,15 +414,22 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoObjectTracking(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTracking + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputs_ = inputsBuilder_ == null ? inputs_ : inputsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -507,7 +517,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getInputsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -527,6 +537,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoObjectTrackingInputs inputs_; @@ -552,7 +564,7 @@ public Builder mergeFrom( * @return Whether the inputs field is set. */ public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -599,11 +611,11 @@ public Builder setInputs( throw new NullPointerException(); } inputs_ = value; - onChanged(); } else { inputsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -623,11 +635,11 @@ public Builder setInputs( builderForValue) { if (inputsBuilder_ == null) { inputs_ = builderForValue.build(); - onChanged(); } else { inputsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -646,20 +658,20 @@ public Builder mergeInputs( .AutoMlVideoObjectTrackingInputs value) { if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlVideoObjectTrackingInputs.newBuilder(inputs_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && inputs_ != null + && inputs_ + != com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlVideoObjectTrackingInputs.getDefaultInstance()) { + getInputsBuilder().mergeFrom(value); } else { inputs_ = value; } - onChanged(); } else { inputsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -674,14 +686,13 @@ public Builder mergeInputs( * */ public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + inputs_ = null; + if (inputsBuilder_ != null) { + inputsBuilder_.dispose(); inputsBuilder_ = null; } - + onChanged(); return this; } /** @@ -698,7 +709,7 @@ public Builder clearInputs() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoObjectTrackingInputs.Builder getInputsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputsFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoObjectTrackingInputs.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoObjectTrackingInputs.java index ff58a06ce47d..0050185d7bc9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoObjectTrackingInputs.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoObjectTrackingInputs.java @@ -326,7 +326,7 @@ private ModelType(int value) { } public static final int MODEL_TYPE_FIELD_NUMBER = 1; - private int modelType_; + private int modelType_ = 0; /** * * .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType model_type = 1; @@ -349,12 +349,11 @@ public int getModelTypeValue() { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoObjectTrackingInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoObjectTrackingInputs.ModelType result = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlVideoObjectTrackingInputs.ModelType.valueOf(modelType_); + .AutoMlVideoObjectTrackingInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoObjectTrackingInputs.ModelType.UNRECOGNIZED @@ -593,8 +592,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; modelType_ = 0; - return this; } @@ -635,11 +634,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoObjectTrackingInputs(this); - result.modelType_ = modelType_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .AutoMlVideoObjectTrackingInputs + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelType_ = modelType_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -728,7 +739,7 @@ public Builder mergeFrom( case 8: { modelType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -748,6 +759,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int modelType_ = 0; /** * @@ -769,8 +782,8 @@ public int getModelTypeValue() { * @return This builder for chaining. */ public Builder setModelTypeValue(int value) { - modelType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -785,12 +798,11 @@ public Builder setModelTypeValue(int value) { public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoObjectTrackingInputs.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoObjectTrackingInputs.ModelType result = com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition - .AutoMlVideoObjectTrackingInputs.ModelType.valueOf(modelType_); + .AutoMlVideoObjectTrackingInputs.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .AutoMlVideoObjectTrackingInputs.ModelType.UNRECOGNIZED @@ -811,7 +823,7 @@ public Builder setModelType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; modelType_ = value.getNumber(); onChanged(); return this; @@ -824,7 +836,7 @@ public Builder setModelType( * @return This builder for chaining. */ public Builder clearModelType() { - + bitField0_ = (bitField0_ & ~0x00000001); modelType_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfig.java index c98bfe616456..681babc451d0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfig.java @@ -75,7 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DESTINATION_BIGQUERY_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object destinationBigqueryUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationBigqueryUri_ = ""; /** * * @@ -132,7 +134,7 @@ public com.google.protobuf.ByteString getDestinationBigqueryUriBytes() { } public static final int OVERRIDE_EXISTING_TABLE_FIELD_NUMBER = 2; - private boolean overrideExistingTable_; + private boolean overrideExistingTable_ = false; /** * * @@ -391,10 +393,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; destinationBigqueryUri_ = ""; - overrideExistingTable_ = false; - return this; } @@ -435,12 +436,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition .ExportEvaluatedDataItemsConfig(this); - result.destinationBigqueryUri_ = destinationBigqueryUri_; - result.overrideExistingTable_ = overrideExistingTable_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition + .ExportEvaluatedDataItemsConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.destinationBigqueryUri_ = destinationBigqueryUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.overrideExistingTable_ = overrideExistingTable_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -499,6 +514,7 @@ public Builder mergeFrom( .ExportEvaluatedDataItemsConfig.getDefaultInstance()) return this; if (!other.getDestinationBigqueryUri().isEmpty()) { destinationBigqueryUri_ = other.destinationBigqueryUri_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getOverrideExistingTable() != false) { @@ -533,13 +549,13 @@ public Builder mergeFrom( case 10: { destinationBigqueryUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { overrideExistingTable_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -559,6 +575,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object destinationBigqueryUri_ = ""; /** * @@ -632,8 +650,8 @@ public Builder setDestinationBigqueryUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - destinationBigqueryUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -653,8 +671,8 @@ public Builder setDestinationBigqueryUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDestinationBigqueryUri() { - destinationBigqueryUri_ = getDefaultInstance().getDestinationBigqueryUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -679,8 +697,8 @@ public Builder setDestinationBigqueryUriBytes(com.google.protobuf.ByteString val throw new NullPointerException(); } checkByteStringIsUtf8(value); - destinationBigqueryUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -720,6 +738,7 @@ public boolean getOverrideExistingTable() { public Builder setOverrideExistingTable(boolean value) { overrideExistingTable_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -737,7 +756,7 @@ public Builder setOverrideExistingTable(boolean value) { * @return This builder for chaining. */ public Builder clearOverrideExistingTable() { - + bitField0_ = (bitField0_ & ~0x00000002); overrideExistingTable_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto index f3bff6ad9e42..917616422ad3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto @@ -204,6 +204,18 @@ message CustomJobSpec { // (within // [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.trials]). bool enable_web_access = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether you want Vertex AI to enable access to the customized + // dashboard in training chief container. + // + // If set to `true`, you can access the dashboard at the URIs given + // by + // [CustomJob.web_access_uris][google.cloud.aiplatform.v1beta1.CustomJob.web_access_uris] + // or + // [Trial.web_access_uris][google.cloud.aiplatform.v1beta1.Trial.web_access_uris] + // (within + // [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.trials]). + bool enable_dashboard_access = 16 [(google.api.field_behavior) = OPTIONAL]; } // Represents the spec of a worker pool in a job.